:root {
    --primary-color: #ff007f;
    --secondary-color: #ff5cad;
    --accent-color: #ffca28;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-light: #f8f9fa;
    --text-muted: #b0b3b8;
    --whatsapp-color: #25D366;
    --font-main: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: #f0f2f5;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-link {
    font-weight: 600;
    color: #444 !important;
    margin-left: 20px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2a0a18 0%, #66103a 50%, #4d0d2d 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    border-bottom: 4px solid var(--primary-color); /* Separator */
}
/* Removed slanted ::after */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #ffb3d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e2e8f0;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-shapes div {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite linear;
    z-index: 1;
}

.shape-1 { width: 300px; height: 300px; top: -100px; left: -100px; }
.shape-2 { width: 200px; height: 200px; bottom: 50px; right: -50px; animation-delay: -5s; }
.shape-3 { width: 150px; height: 150px; top: 20%; right: 10%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 100px) rotate(360deg); }
}

/* Cards */
.product-card {
    background: white;
    border: none;
    border-radius: 16px; /* Slightly smaller radius for compact look */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em; /* Fallback for fixed height */
}

/* Responsive Badge Sold */
.badge-sold {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.3);
    z-index: 2;
}

@media (max-width: 576px) {
    .badge-sold {
        padding: 4px 8px;
        font-size: 0.6rem;
        top: 8px;
        right: 8px;
    }

    .card-body {
        padding: 12px !important;
    }

    .card-title {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }

    .price-tag {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .product-title-detail {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }
    
    .price-detail {
        font-size: 1.25rem !important;
        margin-bottom: 15px !important;
    }

    .badge-sold-detail {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        top: 10px !important;
        right: 10px !important;
    }
}

/* Badge Sold Detail Page */
.badge-sold-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    z-index: 5;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.price-tag {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: block;
}

.btn-detail {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

/* Detail Page */
.detail-img-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.detail-img {
    transition: transform 0.5s;
    width: 100%;
}

.detail-img:hover {
    transform: scale(1.02);
}

.product-title-detail {
    font-weight: 800;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.price-detail {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.desc-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Category Scroll */
.category-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    width: 100%;
    padding-bottom: 5px; /* Ensure scrollbar space if any (though hidden) */
}
.category-scroll::-webkit-scrollbar {
    display: none;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Pagination Styling */
.pagination .page-link {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 50% !important;
    margin: 0 5px;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
}

.pagination .page-link:hover, .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 0, 127, 0.3);
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* --- Bootstrap Overrides for Pink Theme --- */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #d6006c !important; /* Darker pink */
    border-color: #d6006c !important;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Input Focus Ring */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 127, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ffb3d9; /* Pink muda */
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
