:root {
    --primary-lilac: #D8B4E2;
    --primary-lilac-soft: #F3E5F5;
    --accent-blue: #0066CC;
    --accent-blue-dark: #004C99;
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --bg-page: #FDF9FF;
    --card-bg: #FFFFFF;
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;
    --shadow-soft: 0 8px 20px rgba(155, 89, 182, 0.08);
    /* Purple tinted shadow */
    --shadow-card: 0 4px 10px rgba(0, 0, 0, 0.03);
    --container-width-desktop: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Mobile Container (Default) */
.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-page);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 80px;
    /* Space for bottom nav */
    transition: max-width 0.3s ease;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

@media (min-width: 768px) {
    .logo img {
        height: 120px;
    }
}

.menu-icon,
.cart-icon {
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E74C3C;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
}

/* Desktop Nav (Hidden on Mobile) */
.desktop-nav {
    display: none;
}

/* Hero Section */
.hero {
    padding: 0 20px;
    margin-bottom: 25px;
}

.hero-card {
    background: var(--primary-lilac);
    border-radius: var(--radius-l);
    position: relative;
    overflow: hidden;
    height: 380px;
    box-shadow: var(--shadow-soft);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(74, 35, 90, 0.6) 0%, rgba(74, 35, 90, 0) 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-overlay h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: scale(0.95);
}

/* Features */
.features {
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.feature-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
}

/* Products */
.products {
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.see-all {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns Mobile */
    gap: 16px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-m);
    padding: 10px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.img-wrapper {
    position: relative;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #E74C3C;
    font-size: 16px;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.product-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.btn-add {
    width: 100%;
    background: var(--primary-lilac-soft);
    color: #4A235A;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #e1bee7;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #B2BABB;
    text-decoration: none;
    font-size: 24px;
    gap: 4px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--accent-blue);
}

/* --- DESKTOP RESPONSIVE (min-width: 768px) --- */
@media (min-width: 768px) {

    .mobile-container {
        max-width: var(--container-width-desktop);
        border-radius: 0;
        box-shadow: none;
        padding-bottom: 40px;
        /* No bottom nav needed */
        margin: 0 auto;
    }

    /* Header Desktop */
    header {
        padding: 30px 40px;
    }

    .menu-icon {
        display: none;
        /* Hide hamburger on desktop */
    }

    .desktop-nav {
        display: flex;
        gap: 40px;
        align-items: center;
    }

    .desktop-nav a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 16px;
        position: relative;
    }

    .desktop-nav a.active,
    .desktop-nav a:hover {
        color: var(--accent-blue);
    }

    .desktop-nav a.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: var(--accent-blue);
        position: absolute;
        bottom: -5px;
    }

    /* Hero Desktop */
    .hero {
        padding: 0 40px;
        margin-bottom: 50px;
    }

    .hero-card {
        height: 500px;
        /* Taller banner */
    }

    .hero-overlay {
        width: 40%;
        height: 100%;
        background: linear-gradient(to right, rgba(74, 35, 90, 0.8) 0%, rgba(74, 35, 90, 0) 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px;
    }

    .hero-overlay h1 {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .hero-overlay p {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .btn-primary {
        align-self: flex-start;
        padding: 15px 40px;
        font-size: 16px;
    }

    /* Features Desktop */
    .features {
        justify-content: center;
        gap: 80px;
        margin-bottom: 60px;
        padding: 0 40px;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 10px;
    }

    .feature-item span {
        font-size: 16px;
    }

    /* Product Grid Desktop */
    .products {
        padding: 0 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .see-all {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 Columns */
        gap: 30px;
    }

    .product-card {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .price {
        font-size: 18px;
    }

    /* Hide Bottom Nav */
    .bottom-nav {
        display: none;
    }
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.close-nav {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.mobile-nav nav {
    padding: 20px 0;
}

.mobile-nav nav a {
    display: block;
    padding: 15px 24px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.mobile-nav nav a:hover {
    background: var(--primary-lilac-soft);
    color: var(--accent-blue);
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Wishlist Active State */
.wishlist-btn.active {
    background: white;
}

.wishlist-btn.active ion-icon {
    color: #E74C3C;
}

/* Product Detail Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-l);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@media (min-width: 768px) {
    .hero-logo {
        width: 150px;
        height: 150px;
        top: 30px;
        right: 30px;
    }
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.modal-image-container {
    position: relative;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.modal-image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.modal-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-buttons {
    display: grid;
    gap: 10px;
}

.modal-btn {
    padding: 15px;
    border: none;
    border-radius: var(--radius-m);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.modal-btn:active {
    transform: scale(0.98);
}

.modal-btn-shopee {
    background: #EE4D2D;
    color: white;
}

.modal-btn-whatsapp {
    background: #25D366;
    color: white;
}

.modal-btn-cart {
    background: var(--primary-lilac);
    color: #4A235A;
}