/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c2185b;
    --primary-dark: #a01349;
    --primary-light: #e91e63;
    --accent: #ff6f00;
    --green: #2e7d32;
    --dark: #1a1a2e;
    --text-dark: #1a1a2e;
    --text-gray: #555555;
    --text-light: #888888;
    --bg-light: #f7f7f9;
    --bg-white: #ffffff;
    --bg-warm: #fef9f4;
    --border-color: #e8e8ed;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    background: var(--bg-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    height: 48px;
    width: auto;
}

.search-bar {
    flex: 1;
    max-width: 520px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 11px 48px 11px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    color: var(--text-dark);
    background: var(--bg-light);
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-bar input:focus,
.search-bar.focused input {
    border-color: var(--primary);
    background: var(--bg-white);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

/* Smart Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    z-index: 1000;
    display: none;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background .15s;
}

.search-dropdown-item:hover,
.search-dropdown-item.highlighted {
    background: var(--bg-light);
}

.search-dropdown-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.search-dropdown-info {
    flex: 1;
    min-width: 0;
}

.search-dropdown-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-info h4 mark {
    background: rgba(194,24,91,.12);
    color: var(--primary);
    border-radius: 2px;
    padding: 0 1px;
}

.search-dropdown-info .search-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.search-dropdown-info .search-price s {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 6px;
}

.search-dropdown-info .search-category {
    font-size: 12px;
    color: var(--text-light);
}

.search-dropdown-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.search-dropdown-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: background .15s;
}

.search-dropdown-footer:hover {
    background: var(--bg-light);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    gap: 2px;
}

.icon-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.icon-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-gray);
    line-height: 1;
}

.icon-btn:hover .icon-label {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================
   MAIN NAVIGATION (pill bar)
   ============================================ */
.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    background: var(--bg-light);
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-pill:hover {
    color: var(--primary);
    background: rgba(194,24,91,0.06);
    border-color: rgba(194,24,91,0.15);
}

.nav-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   HERO BANNER (full-width image)
   ============================================ */
.hero-banner {
    width: 100%;
    line-height: 0;
    background: var(--bg-light);
}

.hero-banner .hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
    padding: 20px 0;
    background: var(--bg-white);
}

.badges-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.badge-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(194, 24, 91, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.badge-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1px;
}

.badge-text p {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
}

/* ============================================
   SECTION HEADER (shared)
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}

.view-all:hover {
    gap: 8px;
}

/* ============================================
   TOP CATEGORIES
   ============================================ */
.top-categories {
    padding: 48px 0;
    background: var(--bg-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

a.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-color);
}

.category-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-card h3 {
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   PRODUCT CARDS GRID (HOME PAGE)
   ============================================ */
.featured-products {
    padding: 48px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.product-card-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-card-rating span {
    font-size: 11px;
    color: var(--text-light);
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.product-card-price .current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-card-price .original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-add {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(194,24,91,0.3);
    z-index: 2;
}

.product-card-add:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ============================================
   DEALS SECTION
   ============================================ */
.deals-section {
    padding: 48px 0;
    background: var(--bg-white);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ============================================
   BOTTOM USP BAR
   ============================================ */
.bottom-usp {
    padding: 40px 0;
    background: var(--dark);
    color: #fff;
}

.bottom-usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bottom-usp-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bottom-usp-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.bottom-usp-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.bottom-usp-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Size option buttons (product page) */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 8px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.size-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* ============================================
   SLIDE-OUT CART DRAWER
   ============================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.close-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition);
}

.close-cart:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    text-align: center;
    gap: 12px;
}

.empty-cart p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
}

.empty-cart span {
    font-size: 13px;
    color: var(--text-light);
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
}

.cart-total span:first-child {
    font-weight: 500;
    color: var(--text-gray);
}

.total-amount {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

.continue-shopping-btn {
    width: 100%;
    padding: 12px;
    background: none;
    color: var(--text-gray);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: var(--transition);
}

.continue-shopping-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   BODY SCROLL LOCK
   ============================================ */
body.cart-open,
body.mobile-menu-open {
    overflow: hidden;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bottom-usp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .search-bar {
        max-width: 380px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo img {
        height: 38px;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .search-bar input {
        padding: 10px 44px 10px 16px;
        font-size: 13px;
    }

    .icon-label {
        display: none;
    }

    .icon-btn {
        padding: 8px;
    }

    /* Search dropdown mobile */
    .search-dropdown {
        border-radius: 12px;
        max-height: 60vh;
    }

    .search-dropdown-item {
        padding: 10px 14px;
        gap: 10px;
    }

    .search-dropdown-item img {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .search-dropdown-info h4 {
        font-size: 13px;
    }

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        background: var(--bg-white);
        flex-direction: column;
        padding: 12px 20px;
        z-index: 100;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 6px;
    }

    .nav-links.active {
        display: flex;
    }

    /* Badges — 2 columns on mobile */
    .badges-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        justify-content: center;
    }

    .badge {
        gap: 10px;
        padding: 8px 0;
    }

    .badge-icon {
        width: 36px;
        height: 36px;
    }

    .badge-icon svg {
        width: 18px;
        height: 18px;
    }

    .badge-text h4 {
        font-size: 12px;
    }

    .badge-text p {
        font-size: 10px;
    }

    /* Section header */
    .section-header h2 {
        font-size: 20px;
    }

    /* Categories */
    .top-categories {
        padding: 36px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card h3 {
        font-size: 13px;
        padding: 10px 8px;
    }

    /* Products */
    .featured-products {
        padding: 36px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-info {
        padding: 12px;
    }

    .product-card-info h3 {
        font-size: 13px;
    }

    .product-card-price .current-price {
        font-size: 16px;
    }

    .product-card-add {
        width: 30px;
        height: 30px;
        bottom: 12px;
        right: 12px;
    }

    /* Deals */
    .deals-section {
        padding: 36px 0;
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Bottom USP */
    .bottom-usp {
        padding: 30px 0;
    }

    .bottom-usp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .bottom-usp-icon {
        width: 40px;
        height: 40px;
    }

    .bottom-usp-item strong {
        font-size: 13px;
    }

    .bottom-usp-item span {
        font-size: 11px;
    }

    /* Cart drawer */
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 32px;
    }

    .badges-grid {
        gap: 10px;
    }

    .badge {
        gap: 8px;
    }

    .badge-icon {
        width: 34px;
        height: 34px;
    }

    .badge-icon svg {
        width: 18px;
        height: 18px;
    }

    .badge-text h4 {
        font-size: 12px;
    }

    .badge-text p {
        font-size: 10px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .view-all {
        font-size: 13px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .products-grid {
        gap: 10px;
    }

    .product-card-info {
        padding: 10px;
    }

    .product-card-info h3 {
        font-size: 12px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .product-card-price .current-price {
        font-size: 14px;
    }

    .product-card-price .original-price {
        font-size: 11px;
    }

    .bottom-usp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .bottom-usp-item {
        gap: 10px;
    }

    .bottom-usp-icon {
        width: 36px;
        height: 36px;
    }

    .bottom-usp-icon svg {
        width: 18px;
        height: 18px;
    }

    .bottom-usp-item strong {
        font-size: 12px;
    }

    .bottom-usp-item span {
        font-size: 10px;
    }

    /* Search dropdown */
    .search-dropdown {
        max-height: 50vh;
    }

    .search-dropdown-item img {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   MOBILE SLIDE-OUT MENU
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 900;
    opacity: 0;
    transition: opacity .3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-white);
    z-index: 910;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    display: none;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-menu-nav {
    padding: 12px 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--primary);
    background: rgba(194,24,91,.04);
}

.mobile-menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.mobile-menu-link svg {
    flex-shrink: 0;
    color: var(--text-light);
}

.mobile-menu-link:hover svg,
.mobile-menu-link.active svg {
    color: var(--primary);
}

.mobile-menu-cart-count {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 20px;
}

/* ============================================
   MOBILE BOTTOM NAV BAR
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    z-index: 200;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item svg {
    transition: var(--transition);
}

.bottom-nav-item.active svg {
    stroke: var(--primary);
}

.bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================
   MOBILE-ONLY HEADER ADJUSTMENTS
   ============================================ */
.mobile-search-btn,
.mobile-hamburger {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop elements on mobile */
    .search-bar {
        display: none !important;
    }

    .header-icons {
        display: none !important;
    }

    .main-nav {
        display: none !important;
    }

    /* Show mobile header controls */
    .mobile-search-btn,
    .mobile-hamburger {
        display: flex;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 0;
        justify-content: space-between;
    }

    .top-header {
        padding: 10px 0;
    }

    .logo img {
        height: 34px;
    }

    /* Mobile header right icons */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-search-btn {
        width: 38px;
        height: 38px;
        background: var(--primary);
        border-radius: var(--radius-sm);
        align-items: center;
        justify-content: center;
        color: #fff;
    }

    .mobile-hamburger {
        flex-direction: column;
        gap: 5px;
        padding: 8px 4px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-hamburger span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: var(--transition);
    }

    /* Show slide-out menu & bottom nav on mobile */
    .mobile-menu {
        display: block;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    /* Add bottom padding for bottom nav */
    body {
        padding-bottom: 62px;
    }

    .site-footer {
        margin-bottom: 0;
    }

    /* Cart drawer above bottom nav */
    .cart-drawer {
        bottom: 0;
    }
}

/* Mobile search overlay (fullscreen on mobile) */
.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    z-index: 950;
    flex-direction: column;
    padding: 16px;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-search-top input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    color: var(--text-dark);
    background: var(--bg-light);
}

.mobile-search-top input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
}

.mobile-search-cancel {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
    padding: 8px;
}

.mobile-search-results {
    flex: 1;
    overflow-y: auto;
}
