* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure [hidden] always hides — prevents display:flex from overriding it */
[hidden] {
    display: none !important;
}

html {
    overflow-x: hidden;
}

:root {
    /* 1. Base & Backgrounds */
    --bg-main: #F6F7FB;
    --bg-card: #FFFFFF;
    --border-main: #E5E7EB;
    --divider: #F1F2F6;

    /* 2. Primary Brand (Electric Raspberry) */
    --primary: #FF2E63;
    --primary-hover: #D81B4E;
    --primary-light: #FFE6ED;

    /* 3. Deep Premium Accent */
    --accent-dark: #0F172A;

    /* 4. Text & Typography */
    --text-heading: #111827;
    --text-body: #374151;
    --text-muted: #6B7280;
    --text-disabled: #9CA3AF;

    /* 5. E-commerce Utilities */
    --status-success: #22C55E;
    /* In Stock */
    --status-success-bg: #E8F9F0;
    --status-error: #EF4444;
    /* Out of Stock */
    --status-error-bg: #FEECEC;
    --status-discount: #FF7A00;
    /* Discounts/Sales */
    --status-rating: #FFC107;
    /* Star Yellow */

    /* 6. Interactive Surfaces (Buttons/Chips) */
    --surface-btn: #F3F4F6;
    --surface-btn-hover: #E5E7EB;
}

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

/* Disable iOS Safari auto-link formatting for phone numbers and emails */
a[href^="tel:"], 
a[href^="mailto:"], 
a[href^="sms:"] {
    color: inherit !important;
    text-decoration: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========== HEADER / NAVBAR ========== */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background: var(--primary);
    color: white;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.3px;
    overflow: hidden;
    white-space: nowrap;
}

.nav-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 clamp(16px, 9.72vw, 140px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== BREADCRUMB BAR ========== */
.breadcrumb-bar {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    display: flex;
    align-items: center;
    padding: 10px clamp(16px, 9.72vw, 140px);
    border: none;
    background: var(--bg-card);
}

.breadcrumb-back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--text-heading);
    text-decoration: none;
    font-size: 16px;
    margin-right: 12px;
    transition: color 0.15s ease;
}

.breadcrumb-back-btn:hover {
    color: var(--primary-hover);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

/* Parent level links — light & secondary */
.breadcrumb a,
.breadcrumb .breadcrumb-link {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    padding-left: 16px;
    transition: color 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumb a:hover,
.breadcrumb .breadcrumb-link:hover {
    color: var(--primary);
}

/* Remove extra left padding from the first item to ensure left alignment with safe gap from back button */
.breadcrumb a:first-child,
.breadcrumb .breadcrumb-link:first-child {
    padding-left: 0;
}

/* Separator — very soft */
.breadcrumb .breadcrumb-sep {
    margin: 0 5px;
    color: #D1D5DB;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

/* Current/last crumb — dark & readable */
.breadcrumb .breadcrumb-current {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
}

/* ========== CATEGORY BAR (DESKTOP) ========== */
.category-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
    position: relative;
    /* anchor for mega-dropdown */
}

.category-bar-inner {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 clamp(16px, 9.72vw, 140px);
    display: flex;
    gap: 4px;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
}

/* Individual category tab */
.category-link {
    display: block;
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 18px;
    transition: color 0.2s ease, background 0.2s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    user-select: none;
}

.category-link:hover {
    color: var(--primary-hover);
    background: rgba(192, 224, 141, 0.1);
    border-bottom-color: var(--primary-hover);
}

/* ========== MEGA DROPDOWN PANEL ========== */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 999;
    /* Smooth open/close via opacity + transform — no display toggle */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease-out,
        transform 0.22s ease-out,
        visibility 0s linear 0.22s;
    pointer-events: none;
}

.mega-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease-out,
        transform 0.22s ease-out,
        visibility 0s linear 0s;
    pointer-events: auto;
}

.mega-dropdown-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 40px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 32px;
}

/* Subcategory column */
.mega-subcategory-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-hover);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.mega-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-subcategory-list li {
    margin-bottom: 6px;
}

.mega-subcategory-link {
    display: block;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 5px 0;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.mega-subcategory-link:hover {
    color: var(--primary-hover);
    padding-left: 6px;
}

.mega-empty-msg {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .category-bar {
        display: none;
    }
}


.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
    flex: 1;
}

/* Search Bar */
.search-container {
    flex: 2;
    max-width: 600px;
    margin: 0 30px;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border-main);
    border-radius: 25px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.search-bar:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.2);
}

/* When suggestions dropdown is open, flatten bottom corners to connect seamlessly */
.search-container:has(.search-suggestions.active) .search-bar {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary);
    border-bottom-color: transparent;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.02);
}

.search-container.search-active .search-bar {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.2);
}

@keyframes searchPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: auto;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.search-icon * {
    pointer-events: none;
}

/* FIXED: Close button inside search box on mobile */
.search-close {
    display: none;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-body);
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--status-error);
}

/* Header Actions (Wishlist / Cart / Login) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.header-action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-heading);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.header-action-btn i {
    font-size: 17px;
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    background: var(--status-success);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .search-container.expanded .search-close {
        display: block;
    }
}

/* NEW: Search Suggestions Dropdown */
.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-top: 1px solid var(--border-main);
    border-radius: 0 0 25px 25px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    margin-top: 0;
}

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

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 46, 99, 0.05);
}

.suggestion-icon {
    color: var(--text-muted);
    font-size: 16px;
}

.suggestion-text {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 14px;
}

.suggestion-price {
    color: var(--primary-hover);
    font-weight: 600;
    font-size: 13px;
}

.search-results-info {
    text-align: center;
    padding: 20px;
    color: var(--text-body);
    font-size: 16px;
    display: none;
}

.search-results-info.active {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-heading);
    padding: 5px;
    z-index: 1002;
    position: relative;
}

/* Hidden on desktop, shown in mobile media query */
.mobile-search-btn {
    display: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1101;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.35s ease;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18);
    will-change: transform, opacity;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-header {
    height: 65px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(255, 46, 99, 0.3);
    position: relative;
    z-index: 1;
}

.mobile-menu-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu-content {
    padding: 10px 0 0;
}

.mobile-category {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Remove bottom divider when expanded — children supply their own */
.mobile-category.expanded {
    border-bottom: none;
}

.mobile-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    padding: 0 16px;
    cursor: pointer;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, border-left-color 0.2s ease;
}

.mobile-category-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Expanded parent: subtle tint + left accent */
.mobile-category.expanded>.mobile-category-header {
    background: rgba(226, 31, 90, 0.06);
    border-left-color: var(--primary);
}

.mobile-category-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-heading);
    text-decoration: none;
}

.mobile-category-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.15s ease;
    flex-shrink: 0;
}

.mobile-category.expanded .mobile-category-toggle {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-category-products {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s ease;
    opacity: 0;
    padding-left: 0;
}

.mobile-category.expanded .mobile-category-products {
    max-height: 1000px;
    opacity: 1;
}

.mobile-product-item {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 16px 0 32px;
    cursor: pointer;
    text-decoration: none;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease;
    font-size: 14px;
    color: var(--text-body);
}

.mobile-product-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-heading);
    padding-left: 32px;
}

/* Mobile 2-level accordion: subcategory groups */
.mobile-subcategory-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    padding: 0 16px 0 28px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s ease;
}

.mobile-subcategory-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.mobile-subcategory-name {
    font-weight: 500;
    font-size: 14px;
    color: #4B5563;
    text-decoration: none;
}

.mobile-subcategory-header .mobile-subgroup-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #6B7280;
    transition: transform 0.25s ease, color 0.15s ease;
    flex-shrink: 0;
}

.mobile-subcategory-group.expanded .mobile-subgroup-toggle {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-subcategory-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s ease;
    opacity: 0;
    padding-left: 12px;
}

.mobile-subcategory-group.expanded .mobile-subcategory-items {
    max-height: 500px;
    opacity: 1;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    aspect-ratio: 3 / 1;
    height: auto;
    overflow: hidden;
    margin-bottom: 60px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border: none;
    padding: 0;
    appearance: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* ========== CATEGORY NAVIGATION ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.category-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-main);
    border-top: 1px solid var(--border-main);
    position: sticky;
    top: 0;
    z-index: 99;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.category-buttons {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

.category-btn {
    padding: 0.6rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-main);
    color: var(--text-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    background: var(--primary);
    color: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-btn.active {
    background: var(--primary-hover);
    color: var(--bg-card);
    border-color: var(--primary-hover);
}

/* ========== MAIN CONTENT ========== */
main {
    width: 100%;
    margin: 0;
    padding: 3rem 2rem;
    box-sizing: border-box;
}

.category-section {
    margin-bottom: 4rem;
    scroll-margin-top: 180px;
}

.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-heading);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ========== DISCOVERY SECTION ========== */
.discovery-products {
    padding: 2.5rem 0 3rem;
}

.discovery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 2rem;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ========== CATEGORY / SUBCATEGORY PAGES ========== */
.category-page,
.subcategory-page {
    padding: 0 0 3rem;
    max-width: 100vw;
    overflow-x: hidden;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-body);
}

.breadcrumb-sep {
    color: var(--text-light, #bbb);
    font-size: 0.8rem;
}

.breadcrumb-active {
    color: var(--text-heading);
    font-weight: 600;
}

.breadcrumb-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.breadcrumb-close:hover {
    background: #e0e0e0;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.subcategory-card {
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subcategory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.subcategory-name {
    display: block;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.subcategory-cta {
    font-size: 0.9rem;
    color: var(--primary-hover);
}

.page-error {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

/* ========== SUBCATEGORY TOOLBAR ========== */
.subcategory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px 0px;
    margin-bottom: 10px;
}

/* ========== SORT BAR (DESKTOP) ========== */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sort-bar label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
}

.sort-bar select {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-heading);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.sort-bar select:hover,
.sort-bar select:focus {
    border-color: var(--primary);
}

/* ========== MOBILE SORT BOTTOM BAR ========== */
.mobile-sort-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #FFFFFF;
    border-top: none;
    padding: 9px 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.mobile-sort-btn {
    width: 50%;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #F4F5F7;
    color: #374151;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mobile-sort-btn i {
    color: var(--primary);
    font-size: 14px;
    opacity: 0.9;
}

.mobile-sort-btn:active {
    background: #E5E7EB;
}

/* ========== SORT MODAL ========== */
.sort-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.45);
    align-items: flex-end;
    justify-content: center;
}

.sort-modal-overlay.active {
    display: flex;
}

.sort-modal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.sort-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-main);
}

.sort-modal-header span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
}

.sort-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-body);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.sort-modal-close:hover {
    background: var(--bg-main);
}

.sort-modal-options {
    padding: 8px 0;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: background 0.15s ease;
}

.sort-option:hover {
    background: var(--bg-main);
}

.sort-option.active {
    color: var(--primary-hover);
    font-weight: 600;
    background: rgba(192, 224, 141, 0.1);
}

.sort-option input[type="radio"] {
    accent-color: var(--primary-hover);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sort-bar {
        display: none;
    }

    .subcategory-toolbar {
        justify-content: flex-start;
    }

    .mobile-sort-bar {
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .mobile-sort-btn {
        flex: 1;
        max-width: 160px;
        width: auto;
    }

    /* Add bottom padding to page so content isn't hidden behind fixed bar */
    .subcategory-page {
        padding-bottom: 80px;
    }

    /* Prevent footer overlap with fixed bottom sort bar */
    .subcategory-body .footer {
        margin-bottom: 65px;
    }


}


/* Discovery card sizing (about 2/3 of catalog size) */
.discovery-products .product-card .product-image-container {
    height: 276px;
    padding: 19px;
}

.discovery-products .product-info {
    padding: 19px;
}

.discovery-products .product-name {
    font-size: 1.08rem;
    min-height: 46px;
}

/* CARD */
.product-card {
    width: 256px;
    background: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.product-card.hidden {
    display: none;
}

/* IMAGE AREA */
.product-card .image-container {
    position: relative;
    background: #E8EEF2;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-card-link {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .image-container picture,
.product-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-name-link {
    text-decoration: none;
}

/* DISCOUNT BADGE */
.product-card .discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #eb640a;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 8px 12px 8px;
    text-align: center;
    line-height: 1.2;
    border-top-right-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 83.3% 85%, 66.6% 100%, 50% 85%, 33.3% 100%, 16.6% 85%, 0 100%);
    z-index: 10;
}

/* PRODUCT TITLE */
.product-card .title {
    font-size: 14.5px;
    font-weight: 600;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.discovery-products .product-info {
    padding-bottom: 0;
}

/* TAGS */
.product-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* STOCK BADGE */
.product-card .stock {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
}

.product-card .in-stock {
    background: var(--status-success);
}

.product-card .out-stock {
    background: var(--primary);
}

/* VARIANT BADGES */
.product-card .variant {
    background: var(--surface-btn);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-card .variant.out-stock-variant {
    background: #F9FAFB;
    color: var(--text-disabled);
    text-decoration: line-through;
    opacity: 0.7;
}

/* PRICE + RATING */
.product-card .price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card .price-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card .selling-price {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

.product-card .original-price {
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
    white-space: nowrap;
}

.product-card .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #555;
}

.product-card .rating::before {
    content: "|";
    margin-right: 8px;
    color: #ccc;
}

.product-card .star {
    color: #F2C94C;
}

/* BUTTON */
.product-card .add-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #FF2E63, #ff6b9d);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(255, 46, 99, 0.14);
}

.product-card .add-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e8264f, #ff4f8b);
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.20);
}

.product-card .add-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.product-card .add-btn[disabled],
.product-card .add-btn.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--surface-btn) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-main) !important;
    box-shadow: none !important;
}

/* Global Disabled Button Styling for Product Page */
button:disabled,
button.is-disabled,
#cartBtn.is-disabled,
#cartBtnDesktop.is-disabled,
#mobileBuyBtn.is-disabled,
#mobileAddBtn.is-disabled,
.action-btn.is-disabled,
.buy-now-btn.is-disabled,
.add-to-cart-wrapper .action-btn.is-disabled {
    background: #f1f5f9 !important;
    background-image: none !important;
    color: #94a3b8 !important;
    border: 1.5px solid #cbd5e1 !important;
    pointer-events: none !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
}

/* Ensure inner text/icons inside the disabled button also turn gray */
button.is-disabled span,
button.is-disabled i,
#cartBtn.is-disabled span,
#cartBtnDesktop.is-disabled span {
    color: #94a3b8 !important;
}



/* Modal styles removed - product details now shown on product.html page */

/* ========== INFO BANNER ========== */
.info-banner {
    background: linear-gradient(135deg, #d4eab5, #f7f6d39b);
    padding: 60px 0;
    margin: 80px 0;
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.info-item {
    padding: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.info-icon i {
    font-size: 22px;
}

.info-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.info-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--accent-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgb(255, 255, 255);
}

.footer-section {
    text-align: center;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-links span {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

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

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

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-icon {
    padding: 8px 16px;
    background: white;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-heading);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        font-size: 20px;
        border-radius: 8px;
        border: none;
        background: none;
        flex-shrink: 0;
    }

    .nav-container {
        padding: 0 12px;
        height: 60px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .breadcrumb-bar {
        padding: 10px 15px; /* 15px left padding identically matches the mobile .container padding used in subcategory page */
    }

    .logo {
        font-size: 24px;
        pointer-events: auto;
        margin-right: auto;
        margin-left: 12px;
        flex: 0 1 auto;
    }

    /* Hide the full search bar input on mobile — use icon only */
    .search-container {
        display: none;
        margin: 0;
        max-width: none;
        width: auto;
    }

    /* When expanded (tapped search icon) -> fullscreen overlay */
    .search-container.expanded {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
        background: var(--bg-card);
        padding: 12px 16px;
        z-index: 1200;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        align-items: center;
    }

    .search-container.expanded .search-bar {
        display: block;
        flex: 1;
        padding-right: 80px;
    }

    .search-container.expanded .search-icon {
        position: absolute;
        right: 56px;
        top: 50%;
        transform: translateY(-50%);
    }

    .search-container.expanded .search-close {
        display: block;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: 0;
        flex-shrink: 0;
    }

    /* Search icon button - visible on mobile in the actions row */
    .mobile-search-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-heading);
        font-size: 17px;
        border-radius: 8px;
        padding: 0;
    }

    .header-action-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: none;
        background: none;
    }

    .hero-slider {
        aspect-ratio: 2 / 1;
        /* Keep mobile slightly taller so it isn't completely crushed */
        height: auto;
    }

    .category-section {
        scroll-margin-top: 200px;
    }

    .category-buttons {
        padding: 1rem 1rem;
    }

    .category-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

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

    .discovery-products {
        padding: 2rem 0 2.5rem;
    }

    .discovery-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .category-page,
    .subcategory-page {
        padding: 0 0 2.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        margin-bottom: 1.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .subcategory-card {
        padding: 16px;
        border-radius: 14px;
    }


    .discovery-products .product-card .product-image-container {
        height: 195px;
        padding: 13px;
    }

    .discovery-products .product-info {
        padding: 10px;
    }

    .discovery-products .product-name {
        font-size: 1.04rem;
        min-height: 36px;
    }

    .discovery-products .product-info>* {
        margin-bottom: 6px;
    }

    .discovery-products .product-info>*:last-child {
        margin-bottom: 0;
    }

    .discovery-products .rating-stock-row {
        margin: 4px 0 6px;
    }

    .discovery-products .rating-stock-row .star-rating {
        transform: scale(0.8);
    }

    .product-image-container {
        height: 220px;
        padding: 16px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
        min-height: 40px;
    }

    .star-rating {
        margin-bottom: 10px;
    }

    .stock-size-row {
        margin-bottom: 12px;
        gap: 10px;
    }

    .product-size-inline {
        font-size: 0.85rem;
    }

    .stock-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-bottom: 0;
        letter-spacing: 0.2px;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-size {
        font-size: 0.9rem;
    }

    .view-details-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-gallery {
        padding: 1.5rem;
    }

    .modal-details {
        .modal-product-name {
            font-size: 1.5rem;
        }

        .modal-price {
            font-size: 1.5rem;
        }

        .modal-action-buttons {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .copy-notification {
            bottom: 20px;
            right: 20px;
            padding: 12px 20px;
            font-size: 14px;
        }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
        max-width: 100%;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .footer-tagline {
        font-size: 12px;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-links a,
    .footer-links span {
        font-size: 12px;
        gap: 6px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .social-links {
        gap: 10px;
        margin-top: 10px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 15px 20px;
    }
}

/* ========== DISCOVERY MODE ========== */
.discovery-mode .filter-sidebar {
    display: none !important;
}

.discovery-mode .subcategory-layout {
    grid-template-columns: 1fr !important;
}

.discovery-mode .sort-bar {
    display: none !important;
}

.discovery-mode .breadcrumb {
    display: none !important;
}

/* Redefine Breadcrumb/Toolbar for Chips */
.discovery-mode .subcategory-toolbar {
    margin-bottom: 2rem;
    justify-content: center;
}

/* Filter Chips Layout */
.subcategory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
    max-width: 100%;
    overflow: hidden;
}

.breadcrumb {
    /* Reset old breadcrumb styles if needed, or wrap it in a chip */
    margin: 0;
    padding: 0;
}

/* ===== BREADCRUMB NAV ===== */
.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 14px;
    color: var(--text-heading);
    padding: 0;
}

/* Parent level links — light & secondary */
.breadcrumb-link {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Separator — very soft */
.breadcrumb-separator {
    margin: 0 5px;
    color: #D1D5DB;
    font-size: 13px;
    line-height: 1;
}

/* Current/last crumb — dark & readable */
.breadcrumb-active {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    font-size: 13.5px;
    color: var(--text-heading);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.filter-chip:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.filter-chip .chip-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-chip .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    padding: 0;
    background: #f0f0f0;
    border-radius: 50%;
    color: #666;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip .close-btn:hover {
    background: #ff4d4d;
    color: white;
}

.clear-all-chips {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    margin-left: 4px;
}

.clear-all-chips:hover {
    color: var(--text-heading);
}

.discovery-mode .product-grid {
    grid-template-columns: repeat(4, 1fr);
    /* Ensure 4 cols on desktop */
}

@media (max-width: 992px) {
    .discovery-mode .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .discovery-mode .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subcategory-toolbar {
        gap: 6px;
    }

    .filter-chip {
        padding: 5px 12px;
        font-size: 12px;
        gap: 5px;
    }

    .filter-chip .close-btn {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .clear-all-chips {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .slider-dots {
        gap: 8px;
        bottom: 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 20px;
    }

    main {
        padding: 2rem 1rem;
    }

    .product-grid,
    .discovery-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        border-top: 1px solid #EBEBEB;
        border-left: 1px solid #EBEBEB;
    }

    .product-card {
        width: 100%;
        padding: 12px 10px;
        gap: 8px;
        border-radius: 0;
        border: none;
        border-right: 1px solid #EBEBEB;
        border-bottom: 1px solid #EBEBEB;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-card .image-container {
        aspect-ratio: 1/1;
        height: auto;
        border-radius: 6px;
        overflow: hidden;
    }

    .product-card .image-container picture,
    .product-card .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .product-card .title {
        font-size: 12.5px;
        min-height: 34px;
    }

    .product-card .price-block {
        gap: clamp(4px, 1.5vw, 6px);
    }

    .product-card .price-block .selling-price {
        font-size: clamp(12px, 3.5vw, 14px);
    }

    .product-card .price-block .original-price {
        font-size: clamp(10px, 2.8vw, 12px);
    }

    .product-card .discount-badge {
        font-size: 8px;
        padding: 3px 4px 6px 4px;
        line-height: 1.2;
        border-top-right-radius: 6px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 83.3% 85%, 66.6% 100%, 50% 85%, 33.3% 100%, 16.6% 85%, 0 100%);
    }

    .product-card .tags {
        gap: 4px;
    }

    .product-card .stock,
    .product-card .variant {
        font-size: 9px;
        padding: 1px 4px;
        line-height: 1.2;
    }

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

    .product-card .rating .star {
        font-size: 10px;
    }

    .product-card .add-btn {
        padding: 7px;
        font-size: 12px;
        border-radius: 6px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-wrap: wrap;
    }
}

/* Tablet Layout (iPad Mini, 3 Columns) */
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid,
    .discovery-grid,
    .category-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }

    /* Sidebar pages (search/subcategory) — 2 columns keeps cards readable */
    .subcategory-content .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card {
        width: 100%;
    }
}

/* Large Tablet Layout (iPad Pro, 4 Columns) */
@media (min-width: 992px) and (max-width: 1024px) {
    .product-grid,
    .discovery-grid,
    .category-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .product-card {
        width: 100%;
    }
}

/* Desktop Layout (5 Columns) */
@media (min-width: 1025px) {

    .product-grid,
    .discovery-grid,
    .category-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.25rem;
    }

    /* Pages with sidebars need fewer columns */
    .subcategory-content .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-card {
        width: 100%;
    }
}

/* ========== HORIZONTAL SCROLL GRIDS ========== */
.horizontal-scroll-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 1.25rem !important;
    padding-bottom: 15px;
    /* Space for scroll bar/shadows */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.horizontal-scroll-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.horizontal-scroll-grid .product-card {
    flex: 0 0 auto;
    width: 256px !important;
    /* Default desktop card width */
    scroll-snap-align: start;
    border: 1px solid #EBEBEB !important;
    border-radius: 10px !important;
}

@media (max-width: 992px) {
    .horizontal-scroll-grid .product-card {
        width: 220px !important;
    }
}

@media (max-width: 768px) {
    .horizontal-scroll-grid {
        gap: 1rem !important;
        border: none !important;
        /* Override mobile grid connected borders */
    }

    .horizontal-scroll-grid .product-card {
        width: calc(50vw - 20px) !important;
        /* Matches exactly half screen minus margins */
        padding: 12px 10px !important;
        /* Restore padding */
    }
}

@media (max-width: 480px) {
    .horizontal-scroll-grid {
        border-top: none !important;
        border-left: none !important;
        padding-bottom: 10px;
    }

    .horizontal-scroll-grid .product-card {
        width: calc(50vw - 20px) !important;
        /* Exact match to 2-column mobile grid */
        border-radius: 0 !important;
        /* Match native card look */
    }
}

/* ========== SUBCATEGORY FILTERING SYSTEM ========== */

/* LAYOUT: Desktop Grid */
@media (min-width: 769px) {
    .subcategory-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 40px;
        align-items: start;
    }

    .filter-sidebar {
        position: sticky;
        top: 120px;
        /* Below header */
        background: var(--bg-card);
        border: 1px solid var(--border-main);
        border-radius: 12px;
        padding: 24px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        /* Align top with first product card row, below toolbar */
        margin-top: 52px;
    }
}

/* SIDEBAR STYLES */
.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-main);
}

.filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}

.filter-section h2,
.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-heading);
    font-family: 'Outfit', sans-serif;
}

/* Range Slider Styles */
.price-slider-wrapper {
    padding: 10px 0;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 20px;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.10);
    border-radius: 3px;
    z-index: 1;
}

.slider-progress {
    position: absolute;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-hover);
    border-radius: 3px;
    z-index: 2;
}

.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
    top: 0;
    margin: 0;
    /* Reset margin */
}

/* Thumb Styles - Webkit */
.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border: 2px solid var(--primary-hover);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 4;
}

/* Thumb Hover/Active */
.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Firefox Thumb */
.slider-container input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border: 2px solid var(--primary-hover);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 4;
}

/* Fix z-indexing for overlapping slides works naturally with pointer-events: none on input */

/* Checkbox Style */
.stock-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.stock-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.stock-checkbox span {
    font-size: 15px;
    color: var(--text-body);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.filter-apply-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 180ms cubic-bezier(0.25, 0.1, 0.25, 1), filter 180ms cubic-bezier(0.25, 0.1, 0.25, 1), background 180ms cubic-bezier(0.25, 0.1, 0.25, 1), opacity 180ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.filter-apply-btn:hover {
    background: var(--primary-hover);
}

.filter-apply-btn:active:not(:disabled):not(.is-loading) {
    transform: scale(0.975);
    filter: brightness(0.96);
}

.filter-apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-muted);
}

.filter-apply-btn:disabled:hover {
    background: var(--text-muted);
    transform: none;
    box-shadow: none;
}

.filter-input-error {
    outline: 2px solid var(--status-error);
    border-radius: 6px;
    outline-offset: 4px;
}

.filter-clear-link {
    text-align: center;
    color: var(--text-body);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.filter-clear-link:hover {
    color: var(--status-error);
}

/* MOBILE FILTER PANEL (Right Slide-In) */
.filter-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1101;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.52s cubic-bezier(0.52, 1, 0.36, 1);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    will-change: transform;
}

.filter-panel.active {
    transform: translateX(0);
}

.filter-panel-header {
    height: 65px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-panel-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
}

.filter-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.filter-panel-body {
    padding: 24px;
}

.filter-panel-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-clear-link-mobile {
    width: 100%;
    background: none;
    border: 1px solid var(--border-main);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-clear-link-mobile:hover {
    border-color: var(--status-error);
    color: var(--status-error);
}

@media (max-width: 768px) {
    .filter-sidebar {
        display: none;
    }

    .subcategory-layout {
        display: block;
    }
}

/* EMPTY STATE */
.empty-filter-state {
    display: none;
    /* hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px dashed var(--border-main);
    margin-top: 20px;
}

.empty-filter-state.visible {
    display: flex;
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-filter-state h2,
.empty-filter-state h3 {
    font-size: 20px;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.empty-filter-state p {
    color: var(--text-body);
    margin-bottom: 24px;
}

.clear-filters-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary-hover);
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: var(--primary);
    color: white;
}

/* SCROLL LOCK */
body.filter-modal-open {
    overflow: hidden;
    height: 100vh;
}

/* ===== MOTION SYSTEM ===== */
:root {
    --motion-fast: 120ms;
    --motion-base: 170ms;
    --motion-slow: 200ms;
    --motion-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

body.motion-enter-lift main,
body.motion-enter-fade main {
    opacity: 0;
}

body.motion-enter-lift main {
    transform: translateY(6px);
}

body.motion-enter-lift.motion-enter-active main,
body.motion-enter-fade.motion-enter-active main {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--motion-base) var(--motion-ease), transform var(--motion-base) var(--motion-ease);
    will-change: opacity, transform;
}

body.motion-leaving main {
    opacity: 0;
    transition: opacity 140ms var(--motion-ease);
}

.motion-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease);
    will-change: opacity, transform;
}

.motion-reveal.motion-reveal-in {
    opacity: 1;
    transform: translateY(0);
}

.action-btn.cart-btn,
.checkout-btn,
.place-order-btn,
.success-btn-primary {
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease), filter var(--motion-fast) var(--motion-ease);
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {

    .action-btn.cart-btn:hover,
    .checkout-btn:hover,
    .place-order-btn:hover,
    .success-btn-primary:hover {
        transform: translateY(-2px);
    }
}

.action-btn.cart-btn:active,
.checkout-btn:active,
.place-order-btn:active,
.success-btn-primary:active {
    transform: scale(0.97);
}

/* Unified mobile loading state for CTA buttons */
.view-details-btn.is-loading,
.action-btn.cart-btn.is-loading,
.checkout-btn.is-loading,
.place-order-btn.is-loading,
.success-btn-primary.is-loading,
.filter-apply-btn.is-loading,
.auth-body .auth-submit-btn.is-loading,
.auth-body .auth-social-btn.is-loading {
    position: relative;
    pointer-events: none;
    cursor: wait;
    opacity: 0.9;
    color: transparent !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.14) !important;
}

.view-details-btn.is-loading::before,
.action-btn.cart-btn.is-loading::before,
.checkout-btn.is-loading::before,
.place-order-btn.is-loading::before,
.success-btn-primary.is-loading::before,
.filter-apply-btn.is-loading::before,
.auth-body .auth-submit-btn.is-loading::before,
.auth-body .auth-social-btn.is-loading::before {
    content: attr(data-loading-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    padding-right: 20px;
    /* Leave room for spinner */
    box-sizing: border-box;
    pointer-events: none;
    color: var(--loading-color, #fff);
    font-size: 0.95rem;
    font-weight: 600;
}

.view-details-btn.is-loading::before {
    content: "";
    /* Hide text on small buttons */
}

.view-details-btn.is-loading::after {
    right: 50%;
    margin-right: -7px;
    /* Center the spinner since text is hidden */
}

.view-details-btn.is-loading::after,
.action-btn.cart-btn.is-loading::after,
.checkout-btn.is-loading::after,
.place-order-btn.is-loading::after,
.success-btn-primary.is-loading::after,
.filter-apply-btn.is-loading::after,
.auth-body .auth-submit-btn.is-loading::after,
.auth-body .auth-social-btn.is-loading::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: var(--loading-color, #fff);
    animation: cta-spin 0.7s linear infinite;
}

@keyframes cta-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (hover: none) and (pointer: coarse) {

    .action-btn.cart-btn:active:not(:disabled):not(.is-disabled):not(.is-loading),
    .checkout-btn:active:not(:disabled):not(.is-loading),
    .place-order-btn:active:not(:disabled):not(.is-loading),
    .success-btn-primary:active:not(:disabled):not(.is-loading),
    .filter-apply-btn:active:not(:disabled):not(.is-loading) {
        transform: scale(0.975);
        filter: brightness(0.96);
        box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.05);
    }
}

.header-cart-badge.badge-pop {
    animation: cart-badge-pop 160ms var(--motion-ease);
}

@keyframes cart-badge-pop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    body.motion-enter-lift main,
    body.motion-enter-fade main,
    body.motion-enter-lift.motion-enter-active main,
    body.motion-enter-fade.motion-enter-active main,
    body.motion-leaving main,
    .motion-reveal,
    .action-btn.cart-btn,
    .checkout-btn,
    .place-order-btn,
    .success-btn-primary,
    .header-cart-badge.badge-pop {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ========== GLOBAL CHECKOUT STEPPER ========== */
.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    background: transparent;
    padding: 15px 50px 10px 50px;
    margin-bottom: 10px;
}

.stepper-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.stepper-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    padding: 3px;
    flex-shrink: 0;
}

.stepper-icon.active {
    background: var(--primary, #FF2E63);
    color: #FFFFFF;
}

.stepper-icon.inactive {
    background: #E2E8F0;
    color: #111827;
}

.stepper-label {
    font-size: 10px;
    color: #111827;
}

.stepper-node.active .stepper-label {
    font-weight: 700;
}

.stepper-node.inactive .stepper-label {
    font-weight: 400;
}

/* Completed step — past step, clickable for backwards navigation */
.stepper-node.completed {
    cursor: pointer;
}

.stepper-node.completed .stepper-icon {
    background: var(--primary, #FF2E63) !important;
    color: #FFFFFF !important;
}

.stepper-node.completed .stepper-label {
    font-weight: 700;
}
/* Responsive connector lines */
.stepper-line {
    flex: 1;
    height: 2px;
    margin: -15px 6px 0;
    /* offset upwards to align with circular icons */
    z-index: 1;
}

.stepper-line.active {
    background: var(--primary, #FF2E63);
}

.stepper-line.inactive.dashed {
    background: transparent;
    border-top: 2px dashed #CBD5E1;
}

/* ========== GLOBAL CTA GRADIENT ========== */
.btn,
.view-details-btn,
.product-card .add-btn,
.deliver-btn,
.action-btn.cart-btn,
.checkout-btn,
.place-order-btn,
.success-btn-primary,
.continue-shopping-btn {
    background: linear-gradient(135deg, #FF2E63, #ff6b9d) !important;
    box-shadow: 0 8px 18px rgba(255, 46, 99, 0.24) !important;
}

.btn:hover,
.view-details-btn:hover,
.product-card .add-btn:hover,
.deliver-btn:hover,
.action-btn.cart-btn:hover,
.checkout-btn:hover,
.place-order-btn:hover,
.success-btn-primary:hover {
    box-shadow: 0 10px 22px rgba(255, 46, 99, 0.3) !important;
}

.btn:disabled,
.action-btn.cart-btn:disabled,
.checkout-btn:disabled,
.place-order-btn:disabled {
    background: linear-gradient(135deg, #ffb3c6, #ffd6e3) !important;
    box-shadow: 0 8px 16px rgba(255, 46, 99, 0.16) !important;
}

/* ========== SKELETON LOADER ========== */

.skeleton-anim {
    background: #e2e5e7;
    background: linear-gradient(90deg, #e2e5e7 25%, #f0f2f4 50%, #e2e5e7 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}



/* ========== CART ITEM SKELETON ========== */
.cart-item-skeleton {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-main);
}

.cart-item-skeleton .skeleton-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-skeleton .skeleton-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.cart-item-skeleton .skeleton-brand {
    width: 40%;
    height: 12px;
}

.cart-item-skeleton .skeleton-title-line {
    width: 80%;
    height: 16px;
}

.cart-item-skeleton .skeleton-variant {
    width: 30%;
    height: 12px;
    margin-top: 4px;
}

.cart-item-skeleton .skeleton-price-row {
    width: 50%;
    height: 18px;
    margin-top: auto;
}

/* Mobile responsive for cart item skeleton */
@media (max-width: 768px) {
    .cart-item-skeleton {
        padding: 12px;
        gap: 12px;
    }

    .cart-item-skeleton .skeleton-image {
        width: 75px;
        height: 75px;
    }
}

/* ========================================= */
/*       DESKTOP VIEW UPGRADES (1024px+)     */
/* ========================================= */

@media (min-width: 1024px) {
    /* Top Bar Desktop Adjustments */
    .top-bar {
        height: 25px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    /* Seamless Google-Like Search Bar & Suggestions */
    .search-container:has(.search-suggestions.active) .search-bar {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-color: var(--primary) !important;
        border-bottom-color: transparent !important;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.02) !important;
    }

    /* Disable the annoying pulse animation on desktop when typing */
    .search-container.search-active .search-bar {
        animation: none !important;
        transform: none !important;
    }
}

/* ========================================= */
/*       MOBILE VIEW FIXES (Max 768px)       */
/* ========================================= */

@media (max-width: 768px) {
    /* Permanently disable search suggestions on mobile to prevent view blocking */
    .search-suggestions {
        display: none !important;
    }
}