/* ============================================================
   StyleStride — Premium Glassmorphic Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9d4edd;
    --primary-light: #c77dff;
    --secondary: #00f5d4;
    --dark-bg: #0b0914;
    --dark-surface: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(20, 18, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--dark-bg);
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at 15% 50%, rgba(157, 78, 221, 0.15), transparent 25%), radial-gradient(circle at 85% 30%, rgba(0, 245, 212, 0.1), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ─── GLASSMORPHIC NAVBAR ─────────────────────────────────────────────── */
.navbar-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-glass {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--glass-shadow);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

    .nav-link:hover, .nav-link.active {
        color: var(--text-main);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-light);
        transition: var(--transition);
        border-radius: 2px;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

.nav-actions .btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

    .nav-actions .btn-glass:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-light);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
    }

/* ─── HERO SECTION ─────────────────────────────────────────────── */
.hero-section {
    padding-top: 130px;
    padding-bottom: 40px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container-centered {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    gap: 1.5rem;
}

.hero-text-center {
    text-align: center;
    max-width: 800px;
}

.hero-text-center h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-center p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-discover-showcase {
    width: 100%;
    position: relative;
}

.discover-heading-mini {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-align: center;
}

/* ─── SECTION HEADERS ─────────────────────────────────────────────── */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 2px;
    }

/* ─── PRODUCT GRID ─────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.glass-product {
    background: var(--dark-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .glass-product::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: var(--radius-lg);
        padding: 2px;
        background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .glass-product:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(157, 78, 221, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
    }

.product-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    margin-bottom: 1.5rem;
}

    .product-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .product-img-wrapper .img-back {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
    }

.glass-product:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.glass-product:hover .product-img-wrapper.has-back-image:not(.show-back) .img-front {
    opacity: 0;
}

.glass-product:hover .product-img-wrapper.has-back-image:not(.show-back) .img-back {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    z-index: 10;
}

    .product-badge.hot {
        background: linear-gradient(135deg, #ff4d4d, #f9cb28);
        color: #111;
        border: none;
    }

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.price-original {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.glass-product:hover .btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer-glass {
    background: rgba(10, 8, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    align-items: start;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
}

    .footer-col a:hover {
        color: var(--secondary);
        padding-left: 5px;
    }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto 1.5rem;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-col form {
        max-width: 450px;
        margin: 0 auto;
    }

    .floating-badge {
        display: none;
    }

    .nav-links {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────────
   CAROUSEL SLIDER CONTROLS & LIGHTBOX MODAL
   ────────────────────────────────────────────────────────── */
.product-img-wrapper img {
    cursor: pointer;
}

/* Default state */
.product-img-wrapper .img-front {
    opacity: 1;
}
.product-img-wrapper .img-back {
    opacity: 0;
}

/* Explicit show-front and show-back class overrides */
.product-img-wrapper.show-front .img-front {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.product-img-wrapper.show-front .img-back {
    opacity: 0 !important;
    pointer-events: none !important;
}

.product-img-wrapper.show-back .img-front {
    opacity: 0 !important;
    pointer-events: none !important;
}
.product-img-wrapper.show-back .img-back {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Navigation controls */
.product-img-wrapper .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s ease;
    z-index: 8;
    padding: 0;
    line-height: 1;
}

.product-img-wrapper:hover .nav-arrow {
    opacity: 1;
}

.product-img-wrapper .nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.product-img-wrapper .prev-arrow {
    left: 12px;
}

.product-img-wrapper .next-arrow {
    right: 12px;
}

/* Carousel dots */
.product-img-wrapper .carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 8;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-img-wrapper .carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.product-img-wrapper .carousel-dots .dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(15px);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--secondary);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content img {
    transform: scale(1);
}

/* Lightbox Nav Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10003;
    padding: 0;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--secondary);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* Lightbox Dots */
.lightbox-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* Responsiveness for Lightbox */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    .lightbox-next {
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
    }
}

/* ============================================================
   GLOBAL PRODUCT SEARCH BAR & HIGHLIGHTING
   ============================================================ */

.search-container {
    position: relative;
    flex: 1;
    max-width: 360px;
    margin: 0 1.5rem;
    transition: var(--transition);
}

.nav-guest .search-container {
    max-width: 500px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.search-input-wrapper:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-input-wrapper:focus-within {
    background: rgba(20, 18, 30, 0.85);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.25);
    max-width: 400px;
}

.search-icon {
    font-size: 0.95rem;
    opacity: 0.6;
    margin-right: 0.5rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-input-wrapper:focus-within .search-icon {
    opacity: 1;
    color: var(--secondary);
}

#global-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0;
}

#global-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-shortcut {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
    transition: var(--transition);
}

.search-input-wrapper:focus-within .search-shortcut {
    opacity: 0;
    transform: scale(0.8);
}

/* Search Dropdown */
.search-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(15, 12, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 380px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Custom Scrollbar for Dropdown */
.search-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.search-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.search-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.search-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Search Items */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

.search-result-item.selected {
    border-color: rgba(157, 78, 221, 0.3);
    background: rgba(157, 78, 221, 0.08);
}

.search-result-img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-result-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-result-category {
    font-weight: 500;
    color: var(--primary-light);
}

.search-result-status {
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.search-result-status.in-stock {
    background: rgba(0, 245, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.search-result-status.out-of-stock {
    background: rgba(239, 71, 111, 0.1);
    color: #ef476f;
    border: 1px solid rgba(239, 71, 111, 0.2);
}

.search-no-results, .search-loading, .search-prompt {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-highlight-match {
    color: var(--secondary);
    font-weight: 700;
}

/* ============================================================
   PRODUCT PULSE HIGHLIGHT EFFECT
   ============================================================ */

@keyframes highlight-glow-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 245, 212, 0.8), var(--glass-shadow);
        transform: scale(1);
    }
    30% {
        box-shadow: 0 0 30px 10px rgba(0, 245, 212, 0.6), var(--glass-shadow);
        transform: scale(1.025);
        border-color: var(--secondary);
    }
    60% {
        box-shadow: 0 0 20px 5px rgba(157, 78, 221, 0.4), var(--glass-shadow);
        transform: scale(1.01);
        border-color: var(--primary-light);
    }
    100% {
        box-shadow: 0 0 0 0px rgba(0, 245, 212, 0), var(--glass-shadow);
        transform: scale(1);
    }
}

.highlight-pulse {
    animation: highlight-glow-pulse 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    z-index: 10;
    position: relative;
}

/* Mobile search styles adjustment */
@media (max-width: 991px) {
    .navbar-header {
        padding: 0.5rem 0;
    }
    .nav-glass {
        flex-direction: row;
        border-radius: 35px;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        justify-content: space-between;
        position: relative;
    }
    .search-container {
        margin: 0 0.5rem;
        max-width: 360px;
        min-width: 80px;
        flex: 1;
    }
    .search-input-wrapper {
        padding: 0.4rem 0.8rem;
    }
    #global-search-input {
        font-size: 0.85rem;
    }
    .search-shortcut {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
    .nav-links, .nav-actions {
        display: none !important;
    }
    .hero-section {
        padding-top: 120px;
        padding-bottom: 25px;
        min-height: auto;
    }
    .footer-glass {
        margin-top: 2rem;
        padding: 2rem 1rem 1.5rem;
    }
}

/* ============================================================
   QUICK DISCOVER SLIDER SHOWCASE
   ============================================================ */

.quick-discover-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem 2rem;
    position: relative;
}

.discover-heading {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.discover-subheading {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.discover-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.discover-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    padding: 1rem 0.5rem;
    /* Hide default scrollbars */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.discover-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Slider Cards */
.discover-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    scroll-snap-align: start;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.discover-card:hover {
    transform: translateY(-4px);
    border-color: rgba(157, 78, 221, 0.25);
    box-shadow: 0 12px 40px rgba(157, 78, 221, 0.15);
}

.discover-card-header {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.discover-card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.discover-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.discover-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.btn-discover-see-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-discover-see-more span {
    transition: transform 0.2s ease;
}

.btn-discover-see-more:hover {
    color: var(--secondary);
}

.btn-discover-see-more:hover span {
    transform: translateX(3px);
}

/* Slider Products Preview */
.discover-card-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.discover-empty-products {
    grid-column: span 2;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: var(--radius-sm);
}

.discover-product-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.discover-product-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0, 245, 212, 0.1);
}

.discover-product-img-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    height: 110px;
    background: var(--dark-bg);
}

.discover-product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.discover-product-item:hover .discover-product-img-wrapper img {
    transform: scale(1.08);
}

.discover-product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.discover-product-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2rem;
}

.discover-product-action {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.discover-product-item:hover .discover-product-action {
    color: var(--secondary);
}

/* Slider Nav Arrows */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
    user-select: none;
}

.slider-nav-btn:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--primary-light);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-discover-btn {
    left: -24px;
}

.next-discover-btn {
    right: -24px;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .discover-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
    .prev-discover-btn {
        left: -12px;
    }
    .next-discover-btn {
        right: -12px;
    }
}

@media (max-width: 768px) {
    .discover-heading {
        font-size: 1.8rem;
    }
    .discover-subheading {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }
    .discover-card {
        flex: 0 0 82%;
    }
    .slider-nav-btn {
        display: none; /* Rely on swiping on mobile */
    }
}

/* Discover demand tags styling */
.discover-demand-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.25rem 0.45rem;
    border-radius: 20px;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    animation: tag-pulse 2.2s infinite ease-in-out;
}

.discover-demand-tag.fire {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.95), rgba(255, 159, 67, 0.95));
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 71, 111, 0.3);
}

.discover-demand-tag.electric {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.95), rgba(157, 78, 221, 0.9));
    color: #0b090a;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 245, 212, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

@keyframes tag-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

/* ──────────────────────────────────────────────────────────
   MOBILE DRAWER / HAMBURGER MENU STYLES
   ────────────────────────────────────────────────────────── */

/* Hamburger Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition);
}

/* Hamburger Transform into X when Active */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile dropdown menu positioning & visual styling */
.mobile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(15, 12, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-dropdown.active {
    display: flex;
}

.nav-link-mobile {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-link-mobile:hover, .nav-link-mobile:focus {
    color: var(--secondary);
    padding-left: 8px;
}

.mobile-logout-wrapper {
    margin-top: 0.5rem;
    width: 100%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── MOBILE RESPONSIVENESS OVERRIDES (max-width: 768px) ──────── */
@media (max-width: 768px) {
    /* Hero section adjustments */
    .hero-section {
        padding-top: 110px;
        padding-bottom: 20px;
        min-height: auto;
    }
    
    .hero-container-centered {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .hero-text-center h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-text-center p {
        font-size: 0.95rem;
    }
    
    /* Section and Grid tweaks */
    .section-wrapper {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .glass-product {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .product-img-wrapper {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    /* Image Swap Touch Controls */
    .product-img-wrapper .nav-arrow {
        opacity: 1 !important;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
        background: rgba(0, 0, 0, 0.55);
    }
    
    .product-img-wrapper .prev-arrow {
        left: 8px;
    }
    
    .product-img-wrapper .next-arrow {
        right: 8px;
    }
    
    /* Quick Discover Slider Mobile sizing */
    .discover-card {
        flex: 0 0 85%;
        min-width: 270px;
        padding: 1.2rem;
    }
    
    .discover-card-title {
        font-size: 1.2rem;
    }
    
    .discover-product-img-wrapper {
        height: 95px;
    }
    
    /* Show slide navigation arrows on mobile */
    .slider-nav-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
        background: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .prev-discover-btn {
        left: 4px !important;
    }
    
    .next-discover-btn {
        right: 4px !important;
    }
    
    /* Search dropdown adjustment on mobile */
    .search-dropdown-menu {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-text-center h1 {
        font-size: 1.9rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .discover-card {
        flex: 0 0 90%;
        min-width: 250px;
    }
}

/* ============================================================
   In-App Browser Warning Overlay
   ============================================================ */
.inapp-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(20, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 2rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f8f9fa;
}

.inapp-overlay.active {
    transform: translateY(0);
}

.inapp-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.inapp-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    animation: inapp-pulse 2s infinite;
}

.inapp-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #00f5d4, #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.inapp-text {
    font-size: 0.95rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.inapp-steps {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.inapp-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.inapp-step:last-child {
    margin-bottom: 0;
}

.inapp-step-num {
    background: #9d4edd;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.inapp-step-desc {
    color: #e9ecef;
}

.inapp-btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.inapp-btn-dismiss {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.inapp-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Pulsing Pointer Arrow at Top Right */
.inapp-pointer-arrow {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    color: #00f5d4;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
    animation: bouncePointer 1.5s infinite;
    pointer-events: none;
}

.inapp-pointer-arrow svg {
    filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.6));
}

.inapp-pointer-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

@keyframes bouncePointer {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes inapp-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


