/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4a6fa5;
    --secondary: #166088;
    --accent: #ff6b6b;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --border-radius: 12px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.2), 0 10px 20px -10px rgba(0, 0, 0, 0.1);
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Responsive sizing */
    --container-padding: 15px;
    --nav-height: 108px;
    --carousel-gap: 20px;
    --carousel-height: clamp(280px, 22vw, 380px);
    --carousel-slide-width: calc(var(--carousel-height) * 1.2);
}

/* Mobile 576px â€“ 767px: Unified scaling, no plateau */
@media (min-width: 576px) and (max-width: 767px) {
    :root {
        --nav-height: 85px;
        --carousel-gap: 20px;
        --carousel-height: clamp(170px, 28vw, 225px);
        --carousel-slide-width: calc(var(--carousel-height) * 1.25);
    }
}

/* Mobile 401px â€“ 575px: nav pill bottom is ~76-80px */
@media (min-width: 401px) and (max-width: 575px) {
    :root {
        --nav-height: 78px;
        --carousel-gap: 20px;
        --carousel-height: clamp(140px, 30vw, 190px);
        --carousel-slide-width: clamp(150px, 52vw, 265px);
    }
}

/* Small mobile: â‰¤ 400px: nav pill bottom is ~74px */
@media (max-width: 400px) {
    :root {
        --nav-height: 74px;
        --carousel-gap: 20px;
        --carousel-height: clamp(110px, 40vw, 155px);
        --carousel-slide-width: clamp(140px, 66vw, 200px);
    }
}

/* Dark theme variables */
.dark-theme {
    --primary: #6a8cbf;
    --secondary: #2d4f6e;
    --accent: #ff8585;
    --light: #2d3748;
    --dark: #f8f9fa;
    --gray: #a0aec0;
    --light-gray: #4a5568;
    --success: #38a169;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 4px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 10px 20px -10px rgba(0, 0, 0, 0.4);
}

/* Single page scroll on html — avoids duplicate white + hidden scrollbars on body */
html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: #0f172a;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Universal scrollbar removal for Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.shopping-scroll-locked,
html.shopping-scroll-locked {
    overflow: hidden !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: btnPulse 2s ease-in-out infinite;
}

.scroll-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.6);
    animation: none;
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(74, 111, 165, 0.7);
    }
}

/* ============================================
   CYBER MESH BACKGROUND
   ============================================ */
.cyber-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #0F172A;
}

.cyber-bg::before {
    content: '';
    position: absolute;
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    background:
        radial-gradient(ellipse 60% 50% at 25% 35%, rgba(79, 70, 229, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 55% 45% at 75% 65%, rgba(6, 182, 212, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
    animation: cyberBreath 12s ease-in-out infinite alternate;
}

.cyber-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 45% 40% at 80% 20%, rgba(6, 182, 212, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 50% 45% at 20% 80%, rgba(79, 70, 229, 0.12) 0%, transparent 65%);
    animation: cyberBreath2 16s ease-in-out infinite alternate;
}

/* Glowing orb 1 - Purple */
.cyber-orb-1 {
    position: absolute;
    width: clamp(280px, 40vw, 600px);
    height: clamp(280px, 40vw, 600px);
    top: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, rgba(79, 70, 229, 0.06) 50%, transparent 75%);
    border-radius: 50%;
    animation: orbFloat1 20s ease-in-out infinite alternate;
}

/* Glowing orb 2 - Cyan */
.cyber-orb-2 {
    position: absolute;
    width: clamp(250px, 35vw, 550px);
    height: clamp(250px, 35vw, 550px);
    bottom: -8%;
    right: -6%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.20) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 75%);
    border-radius: 50%;
    animation: orbFloat2 25s ease-in-out infinite alternate;
}

/* Glowing orb 3 - mixed accent */
.cyber-orb-3 {
    position: absolute;
    width: clamp(200px, 28vw, 420px);
    height: clamp(200px, 28vw, 420px);
    top: 45%;
    left: 55%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.13) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat3 18s ease-in-out infinite alternate;
}

@keyframes cyberBreath {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }

    33% {
        transform: scale(1.08) translate(2%, -2%);
        opacity: 0.85;
    }

    66% {
        transform: scale(0.96) translate(-2%, 3%);
        opacity: 1;
    }

    100% {
        transform: scale(1.04) translate(1%, 1%);
        opacity: 0.9;
    }
}

@keyframes cyberBreath2 {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1) translate(-3%, 2%);
        opacity: 1;
    }

    100% {
        transform: scale(0.94) translate(2%, -2%);
        opacity: 0.75;
    }
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.12);
    }

    100% {
        transform: translate(-20px, 40px) scale(0.92);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, -40px) scale(1.15);
    }

    100% {
        transform: translate(30px, 20px) scale(0.88);
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-40px, -20px) scale(0.9);
    }
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   TOP STICKY NAVIGATION
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: clamp(15px, 2vw, 20px) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
}

.top-nav.visible {
    transform: translateY(0);
    pointer-events: all;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: clamp(4px, 1vw, 10px);
    background: linear-gradient(135deg, #4a6fa5 0%, #2a5298 100%) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent) border-box;
    padding: clamp(6px, 1.5vw, 12px) clamp(8px, 2vw, 20px);
    border-radius: 50px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-premium);
    max-width: 800px;
    overflow: visible !important;
    transition: var(--transition);
    animation: navbarEntry 1s cubic-bezier(0.16, 1, 0.3, 1) both,
        borderShimmer 3s linear infinite;
    background-size: 100% 100%, 200% 100%;
}

@keyframes navbarEntry {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

@keyframes borderShimmer {
    0% {
        background-position: 0% 0%, -100% 0%;
    }

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

.dark-theme .desktop-nav {
    background: linear-gradient(135deg, #2d4f6e 0%, #1e3c72 100%) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
}

.nav-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: clamp(6px, 1vw, 10px) clamp(8px, 1.5vw, 16px);
    margin: 0;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: clamp(3px, 0.8vw, 7px);
    color: white;
    font-size: clamp(0.65rem, 2vw, 1rem);
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    outline: none;
    overflow: visible !important;
}

.nav-icon-btn i {
    font-size: clamp(0.85rem, 2.5vw, 1.3rem);
    color: white;
    transition: transform 0.3s ease;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.nav-icon-btn:hover i {
    transform: scale(1.2) rotate(8deg);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-icon-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-icon-btn:focus,
.nav-icon-btn:active,
.nav-icon-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}


/* Premium Cart count Notification Design */
.nav-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757, #ff6b8b);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    font-weight: 700;
    padding: 0 5px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
    z-index: 10;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: elegantFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes elegantFadeIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

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

.nav-cart-count.updated {
    transform: scale(1.3);
    background: linear-gradient(135deg, #ff6b8b, #ff4757);
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.6);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, #4a6fa5 0%, #2a5298 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-theme .mobile-menu-btn {
    background: linear-gradient(135deg, #2d4f6e 0%, #1e3c72 100%);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.unified-page-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: transparent;
    color: var(--light);
    /* Use padding-top instead of carousel margin-top to avoid margin collapse bugs */
    padding-top: calc(var(--nav-height) + var(--carousel-gap));
    /* z-index needed so it sits above stars but below nav */
    z-index: 1;
}

.unified-page-content > .container {
    flex: 1 0 auto;
}

/* Blob & hero-bg-blobs removed â€” replaced by .cyber-bg */

.carousel-container {
    position: relative;
    width: 100%;
    height: var(--carousel-height);
    margin-bottom: clamp(20px, 6vw, 60px);
    overflow: hidden;
    z-index: 2;
}

.carousel-track {
    display: flex;
    width: fit-content;
    animation: scroll 20s linear infinite;
    will-change: transform;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.carousel-track:hover {
    animation-play-state: running;
}

.carousel-slide {
    flex: 0 0 var(--carousel-slide-width);
    height: var(--carousel-height);
    margin: 0 clamp(4px, 1.2vw, 15px);
    position: relative;
    border-radius: clamp(8px, 1.5vw, 16px);
    overflow: hidden;
    background-color: #e9ecef;
}

.dark-theme .carousel-slide {
    background-color: #2d3748;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Welcome Text */
.welcome-text {
    text-align: center;
    margin: clamp(40px, 5vw, 60px) 0 clamp(60px, 8vw, 100px) 0;
    position: relative;
    z-index: 2;
}

.welcome-text h2 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(74, 111, 165, 0.3));
}

.welcome-text h2::before {
    content: 'Welcome to IT Store';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #4a6fa5, #7e22ce, #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite reverse;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.section-title {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 40px);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--dark);
    position: relative;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: width 0.8s ease 0.3s;
}

.section-title.animate::after {
    width: clamp(60px, 10vw, 80px);
}

/* Filter */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(20px, 3vw, 30px);
    position: relative;
}

.currency-icon-btn {
    min-width: 50px;
    height: 50px;
    padding: 0 12px;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
    border: 2px solid transparent;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: borderShimmer 3s linear infinite;
}

.currency-icon-btn__code {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dark-theme .currency-icon-btn {
    background: linear-gradient(#2d3748, #2d3748) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
    color: white;
}

.currency-icon-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(var(--primary), var(--primary)) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) border-box;
    color: white;
}

.currency-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
}

.currency-modal.active {
    display: flex;
}

.currency-card {
    width: min(420px, 100%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    padding: 20px;
    animation: filterResetIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dark-theme .currency-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.98), rgba(30, 41, 59, 0.95));
    border-color: rgba(255, 255, 255, 0.1);
}

.currency-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.currency-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.dark-theme .currency-card-header h3 {
    color: #e2e8f0;
}

.currency-card-hint {
    margin: 0 0 16px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--gray);
}

.close-currency-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(74, 111, 165, 0.15);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.close-currency-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.shop-currency-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.shop-currency-option {
    background: var(--light);
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.dark-theme .shop-currency-option {
    background: #4a5568;
}

.shop-currency-option:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
}

.shop-currency-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(74, 111, 165, 0.3);
}

.shop-currency-option.active .shop-currency-symbol,
.shop-currency-option.active .shop-currency-code {
    color: white;
}

.shop-currency-symbol {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.shop-currency-code {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray);
}

.shop-currency-option.active .shop-currency-code {
    color: rgba(255, 255, 255, 0.88);
}

.filter-reset-container {
    display: none;
    justify-content: center;
    margin-bottom: 30px;
    animation: filterResetIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.filter-reset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #496384, #3b4a5d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-reset-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-reset-btn:hover {
    background: linear-gradient(135deg, #557298, #496384);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-reset-btn:hover i {
    transform: translateX(-3px);
}

.filter-reset-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes filterResetIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-icon-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: borderShimmer 3s linear infinite;
}

.dark-theme .filter-icon-btn {
    background: linear-gradient(#2d3748, #2d3748) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
    border-color: transparent;
    color: white;
}

.filter-icon-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: linear-gradient(var(--primary), var(--primary)) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
}

.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 20px;
    perspective: 1500px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}


.filter-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.filter-modal.closing {
    display: flex;
    animation: fadeOut 0.3s ease forwards;
}

.filter-card {
    background-color: #273142;
    border-radius: 10px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-theme .filter-card {
    background-color: #273142;
}

.filter-modal.active .filter-card {
    animation: modalPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center bottom;
}

.filter-modal.closing .filter-card {
    animation: modalPopOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: center bottom;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: rotateX(10deg) scale(0.9) translateY(40px);
    }

    100% {
        opacity: 1;
        transform: rotateX(0) scale(1) translateY(0);
    }
}

@keyframes modalPopMobile {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

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

.filter-card-header {
    padding: 18px 24px;
    background-color: #354258;
    color: #8fa0b5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-card-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #a4b5cc;
}

.close-filter-btn {
    background: none;
    border: none;
    color: #8fa0b5;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-filter-btn:hover {
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.filter-card-body {
    display: block;
    position: relative;
    padding: 24px;
    background-color: #273142;
    overflow: hidden;
}

.filter-view {
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    visibility: hidden;
}

.filter-view.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: visible;
}

.filter-view.slide-in-right {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    visibility: visible;
}

.filter-view.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: visible;
}

.filter-view.slide-in-left {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    visibility: visible;
}

#typeSection.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    visibility: visible;
}

.return-btn {
    background: none;
    border: none;
    color: #8fa0b5;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.return-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.filter-section-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.filter-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

#typeSection {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    width: 100%;
}

#typeSection.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.category-options,
.type-options {
    flex-grow: 1;
    align-content: flex-start;
    overflow: visible;
    padding: 4px;
    margin: -4px;
}

.category-option,
.type-option {
    padding: 10px 18px;
    background-color: #303a4d;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    color: #8fa0b5;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(10px);
}

.filter-modal.active .category-option,
#typeSection.active .type-option {
    opacity: 1;
    transform: translateY(0);
}

.filter-modal.active .category-option:nth-child(1) {
    transition-delay: 0s, 0s, 0s, 0.1s, 0.1s;
}

.filter-modal.active .category-option:nth-child(2) {
    transition-delay: 0s, 0s, 0s, 0.15s, 0.15s;
}

.filter-modal.active .category-option:nth-child(3) {
    transition-delay: 0s, 0s, 0s, 0.2s, 0.2s;
}

.filter-modal.active .category-option:nth-child(4) {
    transition-delay: 0s, 0s, 0s, 0.25s, 0.25s;
}

.filter-modal.active .category-option:nth-child(5) {
    transition-delay: 0s, 0s, 0s, 0.3s, 0.3s;
}

.filter-modal.active .category-option:nth-child(6) {
    transition-delay: 0s, 0s, 0s, 0.35s, 0.35s;
}

.filter-modal.active .category-option:nth-child(7) {
    transition-delay: 0s, 0s, 0s, 0.4s, 0.4s;
}

.filter-modal.active .category-option:nth-child(8) {
    transition-delay: 0s, 0s, 0s, 0.45s, 0.45s;
}

.filter-modal.active .category-option:nth-child(9) {
    transition-delay: 0s, 0s, 0s, 0.5s, 0.5s;
}

.dark-theme .category-option,
.dark-theme .type-option {
    background-color: #303a4d;
    color: #8fa0b5;
}

.filter-modal.active .category-option:hover,
#typeSection .type-option:hover {
    background-color: #3b4a5d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-modal.active .category-option.active,
#typeSection .type-option.active {
    background-color: #496384;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-card-footer {
    padding: 10px 24px 24px;
    background-color: #273142;
    border-top: none;
    display: flex;
    gap: 12px;
}

.dark-theme .filter-card-footer {
    border-top-color: transparent;
}

#goToTypesBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #3a475d, #2a3548) !important;
    box-shadow: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalPopOut {
    from {
        opacity: 1;
        transform: rotateX(0deg) scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: rotateX(10deg) scale(0.9) translateY(40px);
    }
}

/* Product Cards */
.product-card {
    background: linear-gradient(white, white) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    display: flex;
    flex-direction: column;
}

.product-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dark-theme .product-card {
    background: linear-gradient(#2d3748, #2d3748) padding-box,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) border-box;
    background-size: 100% 100%, 200% 100%;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dark-theme .product-card:hover {
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: clamp(110px, 22vw, 220px);
    overflow: hidden;
    background-color: var(--light-gray);
    position: relative;
    flex-shrink: 0;
}

.product-img::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: clamp(8px, 2vw, 20px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    color: var(--gray);
    font-size: clamp(0.65rem, 1.4vw, 0.9rem);
    margin-bottom: clamp(2px, 0.5vw, 5px);
}

.product-branch {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary, #6c5ce7);
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.25);
    vertical-align: middle;
}

.product-name {
    font-size: clamp(0.8rem, 1.8vw, 1.3rem);
    margin-bottom: clamp(4px, 1vw, 10px);
    color: var(--dark);
    min-height: 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: break-word;
}

.product-price {
    font-size: clamp(0.95rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: clamp(6px, 1.5vw, 15px);
    margin-top: auto;
}

.wishlist-btn {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: clamp(6px, 1.5vw, 15px);
    display: inline-block;
    align-self: flex-start;
}

.wishlist-btn:hover {
    transform: scale(1.2);
}

.wishlist-btn.wishlist-active {
    color: var(--accent);
    animation: heartPulse 0.4s ease-in-out;
}

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

    50% {
        transform: scale(1.3);
    }

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

.product-actions {
    display: flex;
    gap: clamp(4px, 1vw, 10px);
    flex-wrap: wrap;
}

.add-to-cart,
.view-details {
    flex: 1;
    padding: clamp(6px, 1.2vw, 10px);
    border-radius: clamp(6px, 1vw, 12px);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.7rem, 1.4vw, 0.95rem);
    transition: var(--transition);
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.add-to-cart::before,
.view-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.add-to-cart:hover::before,
.view-details:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart {
    background-color: var(--primary);
    color: white;
}

.add-to-cart:hover {
    background-color: var(--secondary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(74, 111, 165, 0.3);
}

.add-to-cart::after,
.view-details::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
}

.add-to-cart:hover::after,
.view-details:hover::after {
    animation: shimmer 0.8s ease-in-out;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

.view-details {
    background-color: var(--light-gray);
    color: var(--dark);
}

.dark-theme .view-details {
    background-color: #4a5568;
    color: var(--dark);
}

.view-details:hover {
    background-color: #d1d9e0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .view-details:hover {
    background-color: #5a6573;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: min(400px, 100vw);
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: right 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
}

.dark-theme .cart-sidebar {
    background-color: #2d3748;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

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

/* Wishlist panel — clear card on blurred backdrop (leave strip for backdrop tap on small screens) */
#wishlistSidebar.cart-sidebar {
    z-index: 1120;
    max-width: min(400px, 88vw);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.28);
}

.dark-theme #wishlistSidebar.cart-sidebar {
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    border-left-color: rgba(255, 255, 255, 0.08);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
}

#wishlistSidebar .cart-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dark-theme #wishlistSidebar .cart-header {
    background: rgba(45, 55, 72, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

#wishlistSidebar .cart-header h3 {
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dark-theme #wishlistSidebar .cart-header h3 {
    color: #f1f5f9;
}

#wishlistSidebar .cart-items {
    background: transparent;
}

#wishlistSidebar .cart-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.dark-theme #wishlistSidebar .cart-item {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(15px, 3vw, 20px);
    border-bottom: 1px solid var(--light-gray);
    flex-shrink: 0;
    animation: slideDown 0.5s ease-out;
}

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

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

@keyframes slideDownSearch {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

.cart-header h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    cursor: pointer;
    color: var(--gray);
    padding: 5px;
    touch-action: manipulation;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.close-cart:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--accent);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(15px, 3vw, 20px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-items::-webkit-scrollbar {
    display: none;
}

.cart-item {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    padding: clamp(12px, 2vw, 15px) 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item.entering {
    animation: slideInRight 0.5s ease-out both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.cart-item-img {
    width: clamp(70px, 15vw, 80px);
    height: clamp(70px, 15vw, 80px);
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.wishlist-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.trash-btn {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trash-btn:hover {
    color: var(--danger);
    background-color: rgba(220, 53, 69, 0.1);
    transform: scale(1.2) rotate(15deg);
}

.cart-view-details {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(74, 111, 165, 0.45);
    background: rgba(74, 111, 165, 0.12);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cart-view-details:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.dark-theme .cart-view-details {
    border-color: rgba(106, 140, 191, 0.5);
    background: rgba(106, 140, 191, 0.15);
    color: #a8c5e8;
}

.dark-theme .cart-view-details:hover {
    background: var(--primary);
    color: #fff;
}

.cart-item.removing {
    animation: smoothRemove 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes smoothRemove {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 150px;
        margin-bottom: 15px;
        padding: 15px 0;
    }

    40% {
        opacity: 0;
        transform: scale(0.95);
        max-height: 150px;
        margin-bottom: 15px;
        padding: 15px 0;
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
        border: none;
    }
}

.cart-item-img:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dark);
    word-break: break-word;
    overflow-wrap: break-word;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 10px);
    flex-wrap: wrap;
}

.quantity-btn {
    width: clamp(28px, 5vw, 30px);
    height: clamp(28px, 5vw, 30px);
    border-radius: 50%;
    border: 1px solid var(--light-gray);
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    touch-action: manipulation;
    transition: var(--transition);
    color: var(--dark);
}

.dark-theme .quantity-btn {
    background-color: #4a5568;
    border-color: #6b7280;
}

.quantity-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.2) rotate(15deg);
    border-color: var(--primary);
}

.quantity {
    font-weight: 600;
    min-width: clamp(25px, 5vw, 30px);
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--dark);
    animation: scaleIn 0.3s ease;
}

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

    50% {
        transform: scale(1.2);
    }

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

.cart-wishlist-btn {
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.1rem);
    padding: 5px;
    touch-action: manipulation;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.cart-wishlist-btn:hover,
.cart-wishlist-btn.is-active {
    color: #e91e63;
    transform: scale(1.15);
}

.remove-item {
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    font-size: clamp(1rem, 2vw, 1.1rem);
    padding: 5px;
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.remove-item:hover {
    transform: scale(1.3) rotate(15deg);
    color: #ff5252;
}

.cart-footer {
    padding: clamp(15px, 3vw, 20px);
    border-top: 1px solid var(--light-gray);
    flex-shrink: 0;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 3vw, 20px);
    color: var(--dark);
}

.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 10px);
}

.checkout-btn,
.view-cart-btn {
    padding: clamp(10px, 2vw, 12px);
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition);
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before,
.view-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.checkout-btn:hover::before,
.view-cart-btn:hover::before {
    width: 400px;
    height: 400px;
}

.checkout-btn {
    background-color: var(--success);
    color: white;
}

.checkout-btn:hover {
    background-color: #218838;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.view-cart-btn {
    background-color: var(--light-gray);
    color: var(--dark);
}

.dark-theme .view-cart-btn {
    background-color: #4a5568;
}

.view-cart-btn:hover {
    background-color: #d1d9e0;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dark-theme .view-cart-btn:hover {
    background-color: #5a6573;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: min(400px, 85vw);
    height: 100vh;
    background-color: white;
    z-index: 1100;
    transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dark-theme .mobile-menu {
    background-color: #2d3748;
}

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

.mobile-menu-header {
    background-color: var(--primary);
    color: white;
    padding: clamp(15px, 3vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.mobile-menu-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInLeft 0.5s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.mobile-menu-header h2 i {
    animation: swing 1s ease-in-out infinite;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: white;
    cursor: pointer;
    padding: 5px;
    touch-action: manipulation;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.close-mobile-menu:hover {
    transform: rotate(90deg) scale(1.2);
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: clamp(15px, 3vw, 20px);
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.mobile-nav-links li {
    margin-bottom: clamp(8px, 1.5vw, 12px);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-links li:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-links li:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-links li:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-links li:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav-links li:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-nav-links li:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-nav-links li:nth-child(8) {
    animation-delay: 0.45s;
}

.mobile-nav-links li:nth-child(9) {
    animation-delay: 0.5s;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 15px);
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    touch-action: manipulation;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background-color: var(--light);
    color: var(--primary);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-links a i {
    width: 20px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    transition: transform 0.3s ease;
}

.mobile-nav-links a:hover i {
    transform: scale(1.3) rotate(10deg);
}

/* Mobile Search */
.mobile-search-container {
    margin-top: clamp(15px, 3vw, 20px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s ease, overflow 0s 0.45s;
    opacity: 0;
}

.mobile-search-container.active {
    max-height: 500px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s ease, overflow 0s 0s;
}

.mobile-search-container.closing {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.665, 0.045, 0.355, 1), opacity 0.25s ease;
}

.mobile-search-form.closing {
    opacity: 0;
    transition: opacity 0s;
}

.mobile-search-form {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .mobile-search-form {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-search-input {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1rem;
    padding: 0 80px 0 12px;
    height: 38px;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-search-input:focus {
    outline: none;
}

.mobile-search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.dark-theme .mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.mobile-search-btn:hover {
    transform: scale(1.1);
}

.close-mobile-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.9;
    z-index: 2;
}

.close-mobile-search:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Overlay — dims & blurs shopping page behind cart / wishlist / menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: default;
    transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.overlay.active.overlay--wishlist,
.overlay.active.overlay--cart {
    z-index: 1118;
    background-color: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.overlay.active.overlay--payment {
    z-index: 1140;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

/* Extra soft blur on main shop content when wishlist / cart panel is open */
body.wishlist-panel-open .unified-page-content,
body.wishlist-panel-open .top-nav,
body.wishlist-panel-open .cyber-bg,
body.cart-panel-open .unified-page-content,
body.cart-panel-open .top-nav,
body.cart-panel-open .cyber-bg,
body.payment-modal-open .unified-page-content,
body.payment-modal-open .top-nav,
body.payment-modal-open .cyber-bg,
body.payment-modal-open .mobile-menu,
body.payment-modal-open #footer,
body.payment-modal-open footer {
    filter: blur(6px);
    transition: filter 0.35s ease;
    pointer-events: none;
}

body.payment-modal-open #paymentModal,
body.payment-modal-open .overlay.overlay--payment {
    filter: none;
    pointer-events: auto;
}

body.wishlist-panel-open .cart-sidebar:not(#wishlistSidebar),
body.cart-panel-open .cart-sidebar:not(#cartSidebar) {
    filter: none;
    pointer-events: auto;
}

/* Custom Alerts */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: min(420px, calc(100vw - 40px));
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2500;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: alertSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.custom-alert__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 1px;
}

.custom-alert__text {
    flex: 1;
    min-width: 0;
}

.custom-alert--error,
.custom-alert.error {
    background-color: #e53e3e;
}

.custom-alert--success,
.custom-alert.success {
    background-color: #38a169;
}

.custom-alert--info,
.custom-alert.info {
    background-color: #3182ce;
}

.custom-alert--warning,
.custom-alert.warning {
    background-color: #d69e2e;
}

@keyframes alertSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

.custom-alert.fade-out {
    animation: alertFadeOut 0.5s forwards;
}

@keyframes alertFadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Footer — bottom of shopping page (inside .unified-page-content) */
/* Do NOT use var(--dark) here: in .dark-theme that token is light text color (#f8f9fa). */
.unified-page-content > footer,
.unified-page-content #footer,
#footer {
    --shop-footer-bg: #0f172a;
    --shop-footer-bg-top: #1a202c;
    --shop-footer-text: #e2e8f0;
    --shop-footer-muted: rgba(226, 232, 240, 0.82);
    background: linear-gradient(180deg, var(--shop-footer-bg-top) 0%, var(--shop-footer-bg) 100%);
    color: var(--shop-footer-text);
    padding: clamp(40px, 5vw, 60px) 0 clamp(20px, 3vw, 30px);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    margin-top: clamp(24px, 4vw, 48px);
    z-index: 3;
    isolation: isolate;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

#footer .container {
    position: relative;
    z-index: 1;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.6), transparent);
    animation: footerGlow 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes footerGlow {
    0% {
        left: -60%;
    }

    100% {
        left: 100%;
    }
}

.footer-content {
    margin-bottom: clamp(20px, 4vw, 30px);
}

.footer-column {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-column.animate {
    opacity: 1;
    transform: translateY(0);
}

#footer .footer-column h4 {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    margin-bottom: clamp(15px, 2vw, 20px);
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.6s ease;
}

.footer-column.animate h4::after {
    width: 40px;
}

#footer .footer-column p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--shop-footer-muted, rgba(226, 232, 240, 0.82));
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: clamp(8px, 1.5vw, 12px);
}

#footer .footer-links li {
    color: var(--shop-footer-muted, rgba(226, 232, 240, 0.82));
}

#footer .footer-links a {
    color: var(--shop-footer-muted, rgba(226, 232, 240, 0.82));
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
}

#footer .footer-links a:hover {
    color: #ffffff;
    transform: translateX(10px);
}

.footer-links a:hover i {
    transform: scale(1.2) rotate(10deg);
}

.footer-links i {
    width: 20px;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: transform 0.3s ease;
}

#footer .copyright {
    text-align: center;
    padding-top: clamp(15px, 3vw, 20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(226, 232, 240, 0.65);
}

#footer .copyright p {
    margin: 0;
    color: inherit;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    :root {
        --container-padding: 12px;
    }

    .desktop-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: clamp(8px, 2.5vw, 15px);
        width: fit-content;
        min-width: clamp(260px, 85vw, 360px);
        /* Stable width for all states */
        max-width: 95%;
        margin: 8px auto;
        padding: 8px clamp(10px, 3vw, 15px);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(12px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        /* Removed overflow: hidden so search suggestions can be seen */
    }

    .desktop-nav.searching {
        /* Inherit stable pill dimensions from base .desktop-nav */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .desktop-nav.searching .inline-search-form {
        padding: 0 8px;
    }

    .inline-search-input {
        font-size: 0.9rem;
        padding: 0 8px;
    }

    .search-suggestions {
        width: calc(100% + 20px);
        max-width: none;
        left: -10px;
        transform: none;
        top: calc(100% + 12px);
        border-radius: 10px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        max-height: clamp(140px, 35vh, 200px);
        font-size: 0.82rem;
    }

    .suggestion-item {
        padding: 7px 10px;
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    }

    .suggestion-item small {
        font-size: clamp(0.62rem, 1.8vw, 0.72rem);
        margin-left: 5px;
        display: inline-block;
    }

    .nav-icon-btn[data-page="search"] {
        display: flex !important;
    }

    .inline-search-btn {
        display: none !important;
    }

    .close-inline-search {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .desktop-nav:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        transform: translateY(-1px);
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav-icon-btn span {
        display: inline-block;
    }

    /* carousel sizing handled via CSS variables in :root mobile override */

    .cart-sidebar,
    .mobile-menu {
        max-width: 100vw;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 15px;
        font-size: 1rem;
    }

    .custom-alert {
        right: 10px;
        left: 10px;
        top: 10px;
        padding: 12px 15px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .about-modal {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
    }

    .about-modal-header {
        padding: 8px 15px;
        border-radius: 16px 16px 0 0;
    }

    .about-modal-header h2 {
        font-size: 1.2rem;
        gap: 10px;
    }

    .about-modal-header h2 i {
        font-size: 1.4rem;
    }

    .about-modal-content {
        padding: 12px 15px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .close-about-modal {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .details-card {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px;
    }

    .details-img-container {
        min-height: 200px;
        max-height: 250px;
    }

    .details-content {
        padding: 20px;
        gap: 15px;
    }

    .details-name {
        font-size: 1.4rem;
    }

    .details-price {
        font-size: 1.8rem;
    }

    .details-actions {
        flex-direction: row;
        gap: 10px;
    }

    .details-add-btn {
        padding: 12px 20px;
    }

    .details-close-btn {
        width: 36px;
        height: 36px;
    }

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

    .payment-option,
    .currency-option {
        padding: 10px;
    }

    .payment-option i {
        font-size: 1.5rem;
    }

    .payment-total-display {
        padding: 15px;
        margin: 15px 0;
    }

    .payment-total-display .total-amount {
        font-size: 1.4rem;
    }

    .pay-now-btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    .card-form,
    .mobile-payment-content {
        padding: 15px;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .welcome-text {
        padding: 0 10px;
    }

    .welcome-text h2 {
        letter-spacing: 0;
    }

    .nav-cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .mobile-menu-btn {
        padding: clamp(10px, 2vw, 12px) clamp(13px, 2.5vw, 16px);
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .mobile-search-input {
        width: calc(100% - 14px);
        max-width: 100%;
        padding-right: 16px;
        margin-right: 0;
        transition: all 0.25s ease;
    }

    .mobile-search-btn {
        right: 12px;
    }

    .cart-item-img {
        width: clamp(60px, 15vw, 80px);
        height: clamp(60px, 15vw, 80px);
    }

    .section-title {
        font-size: clamp(1.3rem, 4vw, 2.2rem);
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .category-option {
        padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 15px);
        font-size: clamp(0.85rem, 1.8vw, 1rem);
    }

    .custom-alert {
        font-size: clamp(0.8rem, 2vw, 0.85rem);
    }
}

/* Small Phones (max-width: 500px) */
@media (max-width: 500px) {
    .nav-icon-btn span:not(.nav-cart-count) {
        display: none !important;
    }

    .product-card {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .product-img {
        height: clamp(90px, 25vw, 130px);
    }

    .product-info {
        padding: 8px;
    }

    .product-category {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .product-name {
        font-size: 0.78rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .wishlist-btn {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .product-actions {
        gap: 4px;
    }

    .add-to-cart,
    .view-details {
        padding: 5px 4px;
        font-size: 0.68rem;
        border-radius: 6px;
    }
}

/* Large Phones (576px â€“ 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .product-card {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .product-img {
        height: clamp(140px, 28vw, 190px);
    }

    .product-info {
        padding: 12px;
    }

    .product-category {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .product-name {
        font-size: 0.92rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .wishlist-btn {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .product-actions {
        gap: 8px;
    }

    .add-to-cart,
    .view-details {
        padding: 8px 10px;
        font-size: 0.82rem;
        border-radius: 8px;
    }
}

/* Tablet (768px â€“ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --container-padding: 20px;
        --carousel-height: clamp(225px, 28vw, 286px);
        --carousel-slide-width: calc(var(--carousel-height) * 1.2);
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav-icon-btn span {
        display: inline-block;
    }

    .inline-search-btn {
        display: none !important;
    }

    .search-suggestions {
        top: calc(100% + 20px);
        max-height: 200px;
        border-radius: 10px;
    }

    .suggestion-item {
        padding: 8px 12px;
        font-size: 0.84rem;
    }

    .about-modal {
        width: 80%;
    }

    .carousel-slide {
        flex: 0 0 var(--carousel-slide-width);
        height: var(--carousel-height);
        border-radius: clamp(10px, 1.5vw, 14px);
    }

    .product-card {
        border-radius: 14px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }

    .product-img {
        height: clamp(140px, 20vw, 200px);
    }

    .product-info {
        padding: 14px;
    }

    .product-category {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .product-name {
        font-size: 0.95rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-price {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .wishlist-btn {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .product-actions {
        gap: 8px;
    }

    .add-to-cart,
    .view-details {
        padding: 8px 10px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

/* Desktop (1024px â€“ 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .product-card {
        border-radius: var(--border-radius);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .product-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    }

    .product-img {
        height: clamp(160px, 14vw, 220px);
    }

    .product-info {
        padding: 16px;
    }

    .product-category {
        font-size: 0.8rem;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .product-name {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .wishlist-btn {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .product-actions {
        gap: 8px;
    }

    .add-to-cart,
    .view-details {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    /* .nav-icon-btn span { display: none; } removed to show text */
}

/* Extra Large (â‰¥ 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .product-card {
        border-radius: 16px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }

    .product-card:hover {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }

    .product-img {
        height: 220px;
    }

    .product-info {
        padding: 20px;
    }

    .product-category {
        font-size: 0.85rem;
        margin-bottom: 6px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .product-name {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .wishlist-btn {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .product-actions {
        gap: 10px;
    }

    .add-to-cart,
    .view-details {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .carousel-container {
        height: clamp(280px, 22vw, 380px);
    }

    .carousel-slide {
        flex: 0 0 clamp(320px, 26vw, 440px);
        height: clamp(280px, 22vw, 380px);
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
    }

    .nav-icon-btn {
        padding: 12px 18px;
        min-height: 44px;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
    }

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

    .product-card:hover .product-price {
        transform: none;
    }

    .carousel-slide:hover img {
        transform: none;
    }

    .carousel-slide:hover::after {
        opacity: 0;
    }

    .carousel-slide:hover .slide-caption {
        transform: translateY(100%);
    }

    /* Remove sticky hover states perfectly on buttons */
    .add-to-cart,
    .view-details,
    .wishlist-btn,
    .product-card {
        -webkit-tap-highlight-color: transparent;
    }

    .add-to-cart:hover {
        background-color: var(--primary);
        transform: none;
        box-shadow: none;
    }

    .add-to-cart:hover::before,
    .view-details:hover::before {
        display: none;
    }

    .add-to-cart:hover::after,
    .view-details:hover::after {
        animation: none;
        display: none;
    }

    .view-details:hover {
        background-color: var(--light-gray);
        transform: none;
        box-shadow: none;
    }

    .dark-theme .view-details:hover {
        background-color: #4a5568;
    }

    .wishlist-btn:hover {
        transform: none;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .carousel-container {
        height: 120px;
        margin-bottom: 20px;
    }

    .carousel-slide {
        height: 120px;
    }

    .welcome-text {
        margin: 15px 0 30px;
    }

    .about-modal {
        max-height: 95vh;
        overflow-y: auto;
    }

    .details-card {
        grid-template-columns: 1fr 1.2fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .details-img-container {
        min-height: 200px;
    }
}

/* Safe area insets */
@supports (padding: env(safe-area-inset-bottom)) {
    .top-nav {
        padding-top: calc(clamp(15px, 2vw, 20px) + env(safe-area-inset-top));
    }

    footer {
        padding-bottom: calc(clamp(20px, 3vw, 30px) + env(safe-area-inset-bottom));
    }

    .cart-sidebar,
    .mobile-menu {
        padding-top: env(safe-area-inset-top);
    }
}

/* ============================================
   ABOUT / PRODUCT DETAILS MODALS
   ============================================ */
.about-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-modal::-webkit-scrollbar {
    display: none;
}

.dark-theme .about-modal {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95), rgba(45, 55, 72, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.about-modal-header {
    background: linear-gradient(135deg, #4a6fa5 0%, #2a5298 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.about-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: modalPulse 4s ease-in-out infinite;
}

@keyframes modalPulse {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10%, -10%);
    }
}

@keyframes modalPopReverse {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }
}

.about-modal-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.about-modal-header h2 i {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.close-about-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.close-about-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Product Details Modal */
.details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.details-modal.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

body:has(.details-modal.active) .overlay.active {
    z-index: 1350;
}

.details-modal.closing {
    display: flex;
    animation: fadeOut 0.35s ease forwards;
}

.details-modal.closing .details-card {
    animation: modalPopReverse 0.35s ease forwards;
}

.details-card {
    background: white;
    width: 100%;
    max-width: min(1080px, calc(100vw - 32px));
    max-height: min(88vh, 720px);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(240px, 300px);
    grid-template-areas: "media content specs";
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.details-media {
    grid-area: media;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 0;
}

.details-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    flex-shrink: 0;
}

.details-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.details-thumb.is-active {
    border-color: #60a5fa;
}

.details-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.details-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.details-loading {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.details-specs-empty {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    padding: 8px 0;
}

.info-value.is-out-of-stock {
    color: #f87171;
}

.details-wishlist-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.details-add-btn.details-add-btn--added {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.details-wishlist-btn.is-active {
    color: #e91e63;
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.15);
}

.details-wishlist-btn.is-active i {
    color: #e91e63;
}

.details-specs-container {
    grid-area: specs;
    background: rgba(255, 255, 255, 0.03);
    padding: 28px 20px 28px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
}

.details-specs-container .specs-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.specs-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #60a5fa;
    font-weight: 800;
    margin-bottom: 5px;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e0;
    padding: 12px;
    background: rgba(96, 165, 250, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.15);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

.spec-item i {
    color: #60a5fa;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.details-handle {
    display: none;
    width: 50px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 12px auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.dark-theme .details-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.details-modal.active .details-card {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
    animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.details-img-container {
    position: relative;
    flex: 1 1 auto;
    min-height: 220px;
    overflow: hidden;
}

.details-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-content {
    grid-area: content;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.details-header-text {
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

.details-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #60a5fa;
    font-weight: 700;
}

.details-name {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #f1f5f9;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-right: 0;
}

.details-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 0;
}

.info-badge {
    background: rgba(74, 111, 165, 0.08);
    padding: 12px 15px;
    border-radius: 16px;
    border: 1.5px solid rgba(96, 165, 250, 0.25);
    transition: all 0.3s ease;
}

.info-badge:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

.info-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 1rem;
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fbbf24;
    font-size: 1.1rem;
}

.details-description {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

.dark-theme .details-description {
    color: #cbd5e0;
}

.details-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.details-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.details-add-btn {
    flex: 2;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.details-add-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.details-wishlist-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(147, 197, 253, 0.1)) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    color: #60a5fa !important;
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.25);
}

.details-close-btn {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.details-close-btn i {
    transition: transform 0.3s ease;
}

.details-close-btn:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
}

.details-close-btn:hover i {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .details-modal {
        align-items: center;
        justify-content: center;
        padding: clamp(10px, 3vw, 20px);
        perspective: none;
    }

    .details-card {
        width: min(94vw, 520px);
        max-width: calc(100vw - 24px);
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "content"
            "specs";
        max-height: 90dvh;
        border-radius: 24px;
        transform: scale(0.85) translateY(0);
        opacity: 0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        display: grid;
        overflow: hidden;
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .details-specs-container {
        display: flex;
        flex-direction: column;
        padding: 12px 14px;
        gap: 8px;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(45, 55, 72, 0.6) 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        flex-shrink: 0;
    }

    .details-specs-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 8px;
    }

    .specs-title {
        font-size: 0.7rem;
        margin-bottom: 0;
        padding: 0;
        opacity: 0.7;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight: 700;
        color: #60a5fa;
    }

    .specs-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0;
    }

    .spec-item {
        font-size: 0.75rem;
        gap: 6px;
        background: rgba(255, 255, 255, 0.04);
        padding: 6px 8px;
        border-radius: 6px;
        border: 1px solid rgba(96, 165, 250, 0.15);
        transition: all 0.3s ease;
        line-height: 1.3;
    }

    .spec-item:hover {
        background: rgba(96, 165, 250, 0.1);
        border-color: rgba(96, 165, 250, 0.3);
    }

    .spec-item i {
        width: 14px;
        font-size: 0.75rem;
        color: #60a5fa;
        flex-shrink: 0;
    }

    .details-modal.active .details-card {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
        animation: modalPopMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .details-handle {
        display: none;
    }

    .details-img-container {
        display: block;
        min-height: 200px;
        max-height: 240px;
    }

    .details-content {
        padding: clamp(12px, 4vw, 20px);
        display: flex;
        flex-direction: column;
        gap: clamp(8px, 2.5vw, 15px);
        overflow-y: auto;
        max-height: none;
    }

    .details-category {
        font-size: clamp(0.6rem, 1.5vw, 0.75rem);
        margin-bottom: 0;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #60a5fa;
        font-weight: 700;
    }

    .details-name {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        line-height: 1.2;
        margin: 0;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: -0.3px;
    }

    .details-info-grid {
        margin: 0;
        gap: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .info-badge {
        padding: 10px 12px;
        border-radius: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(147, 197, 253, 0.05) 100%);
        border: 1.5px solid rgba(96, 165, 250, 0.25);
        transition: all 0.3s ease;
    }

    .info-badge:hover {
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(147, 197, 253, 0.1) 100%);
        border-color: rgba(96, 165, 250, 0.4);
        transform: translateY(-2px);
    }

    .info-label {
        font-size: 0.6rem;
        opacity: 0.65;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        font-weight: 700;
        margin-bottom: 2px;
        color: #94a3b8;
    }

    .info-value {
        font-size: 0.85rem;
        font-weight: 700;
        color: #f1f5f9;
    }

    .details-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0;
        color: #cbd5e0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .details-price {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        font-weight: 800;
        margin: 0;
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .details-actions {
        position: static;
        padding: 0;
        margin-top: 15px;
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: 100%;
        flex-shrink: 0;
        align-items: center;
    }

    .details-add-btn {
        flex: 1;
        padding: 12px 14px;
        height: 48px;
        font-size: 0.95rem;
        border-radius: 12px;
        font-weight: 700;
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
        border: none;
        color: white;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .details-add-btn:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    }

    .details-wishlist-btn {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        border: 1.5px solid rgba(96, 165, 250, 0.3) !important;
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(147, 197, 253, 0.05)) !important;
        color: #94a3b8 !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        transition: all 0.3s ease !important;
        flex-shrink: 0;
    }

    .details-wishlist-btn:active {
        transform: scale(0.95);
        background: rgba(96, 165, 250, 0.15) !important;
    }

    .details-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-top: 0;
    }
}

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

    50% {
        transform: scale(1.4);
    }

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

.heart-pop {
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-modal-content {
    padding: 10px 18px;
    color: var(--dark);
    line-height: 1.4;
}

.about-modal-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-modal-content h3 i {
    color: var(--accent);
}

.about-modal-content p {
    margin-bottom: 15px;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.about-feature {
    background: var(--light);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dark-theme .about-feature {
    background: #4a5568;
}

.about-feature:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
}

.about-feature i {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary);
    margin-bottom: 5px;
    display: block;
}

/* Payment Modal */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin: 10px 0 15px;
}

.payment-currency-hint {
    margin: 0 0 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #0f766e;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
}

.dark-theme .payment-currency-hint {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}



/* Keep old class names working for JS compatibility */
.currency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0 15px;
}

.currency-option {
    background: var(--light);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    user-select: none;
}

.dark-theme .currency-option {
    background: #4a5568;
}

.currency-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
}

.currency-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(74, 111, 165, 0.3);
}

.currency-option.active .currency-symbol,
.currency-option.active .currency-code {
    color: white;
}

.currency-option .currency-symbol {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.currency-option .currency-code {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gray);
    text-transform: uppercase;
}

.currency-option.active .currency-code {
    color: rgba(255, 255, 255, 0.88);
}

.currency-option span.currency-code {
    font-size: 0.85rem;
}

.payment-option {
    background: var(--light);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dark-theme .payment-option {
    background: #4a5568;
}

.payment-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
}

.payment-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(74, 111, 165, 0.3);
}

.payment-option.active i {
    color: white;
}

.payment-option i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.payment-option span {
    font-size: 0.85rem;
}

.payment-total-display {
    background: linear-gradient(135deg, #4a6fa5 0%, #2a5298 100%);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.payment-total-display h4 {
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.payment-total-display .total-amount {
    font-size: 1.5rem;
    font-weight: 800;
}

/* ============================================
   OTP VERIFICATION STEP
   ============================================ */
.otp-verify-content {
    text-align: center;
    padding: 10px 0 20px;
}

.otp-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.35);
}

.otp-pulse-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(56, 161, 105, 0.5);
    z-index: 1;
    animation: otpPulse 2s ease-out infinite;
}

@keyframes otpPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.otp-message {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.otp-phone-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: #38a169;
    letter-spacing: 1px;
    margin-bottom: 25px;
    direction: ltr;
}

.otp-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.15);
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    caret-color: #38a169;
}

.otp-digit:focus {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.25), 0 4px 12px rgba(56, 161, 105, 0.15);
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.25);
}

.otp-digit.filled {
    border-color: rgba(56, 161, 105, 0.5);
    background: rgba(56, 161, 105, 0.08);
}

.otp-digit.error {
    border-color: #e53e3e;
    animation: otpShake 0.5s ease;
}

.otp-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
    margin: 0 2px;
}

@keyframes otpShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.otp-error {
    color: #e53e3e;
    font-size: 0.88rem;
    margin: 8px 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: fadeIn 0.3s ease;
}

.otp-timer-container {
    margin-top: 10px;
}

.otp-resend-text {
    font-size: 0.85rem;
    color: var(--gray);
}

.otp-timer {
    font-weight: 700;
    color: #38a169;
    font-variant-numeric: tabular-nums;
}

.otp-resend-btn {
    background: transparent;
    border: 1px solid rgba(56, 161, 105, 0.4);
    color: #38a169;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.otp-resend-btn:hover {
    background: rgba(56, 161, 105, 0.12);
    border-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.2);
}

.otp-resend-btn:active {
    transform: translateY(0);
}

.otp-resend-btn i {
    font-size: 0.8rem;
}

.otp-success-check {
    animation: otpSuccessScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.payment-step {
    display: none;
}

.payment-step.active {
    display: block;
}

.payment-step.active.slide-in-right {
    animation: slideInRight 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.payment-step.active.slide-in-left {
    animation: slideInLeft 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.step-header h3 {
    margin: 0;
    line-height: 1;
}

.redo-btn {
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dark-theme .redo-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.redo-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.card-form,
.mobile-payment-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(74, 111, 165, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(74, 111, 165, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.qr-code-box {
    animation: floatQRCode 4s ease-in-out infinite;
    border: 2px solid var(--primary);
    position: relative;
}

.qr-code-box::after {
    content: 'SCAN ME';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

@keyframes floatQRCode {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.dark-theme .card-form {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    opacity: 0.8;
}

.dark-theme .form-group label {
    color: white;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid rgba(74, 111, 165, 0.1);
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: inherit;
}

.dark-theme .form-group input {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Custom Animated Dropdown */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.select-trigger {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid rgba(74, 111, 165, 0.1);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: inherit;
}

.dark-theme .select-trigger {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.select-trigger:hover {
    border-color: var(--primary);
}

.select-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.custom-select.active .select-trigger i {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Animated Custom Scrollbar for Dropdown */
.select-options::-webkit-scrollbar {
    width: 6px;
    display: block !important;
}

.select-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 5px 0;
}

.select-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: scrollbarPulse 2s infinite ease-in-out;
    min-height: 30px;
}

@keyframes scrollbarPulse {

    0%,
    100% {
        background: var(--primary);
        box-shadow: 0 0 5px var(--primary);
    }

    50% {
        background: #3182ce;
        box-shadow: 0 0 15px #3182ce;
    }
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #2b6cb0;
    box-shadow: 0 0 20px #2b6cb0;
}

.dark-theme .select-options {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Location Button */
.location-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    height: 100%;
}

.location-btn {
    width: 100%;
    height: 60px;
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.dark-theme .location-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.location-btn:hover {
    background: var(--primary);
    color: white;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

.location-btn.success {
    background: var(--success);
    color: white;
    border-color: var(--success);
    border-style: solid;
}

.location-btn i {
    font-size: 1.2rem;
}

.location-btn.searching i {
    animation: pulseMap 1.5s infinite;
}

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

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

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

.select-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.select-option:hover {
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary);
    padding-left: 20px;
}

.select-option.selected {
    background: var(--primary);
    color: white;
}

.dark-theme .select-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .select-option.selected {
    background: var(--primary);
    color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.pay-now-btn {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.pay-now-btn:hover {
    background: #218838;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.4);
}

.pay-now-btn i {
    font-size: 1.2rem;
}

.about-feature h4 {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-bottom: 3px;
    color: var(--dark);
}

.about-feature p {
    font-size: clamp(0.75rem, 1.5vw, 0.8rem);
    color: var(--gray);
    margin: 0;
    line-height: 1.2;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.dark-theme .form-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: linear-gradient(135deg, #4a6fa5 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-top: 5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.4);
}

/* Inline Search */
.desktop-nav {
    position: relative;
    transition: all 0.3s ease;
}

.inline-search-form {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 0;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    overflow: visible;
    /* allow instruction/suggestions to show below */
    white-space: nowrap;
}

.desktop-nav.searching .inline-search-form {
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.inline-search-form.closing {
    width: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.665, 0.045, 0.355, 1);
}

.desktop-nav.searching .nav-icon-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.9);
}

.inline-search-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0 15px;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 28px);
    left: 0;
    right: 0;
    max-height: clamp(150px, 30vh, 220px);
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: clamp(6px, 1vw, 10px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.52);
    z-index: 20;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
    -webkit-overflow-scrolling: touch;
}

.search-suggestions::-webkit-scrollbar {
    display: block !important;
    width: 4px !important;
}

.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.suggestion-item {
    padding: clamp(6px, 1.2vw, 10px) clamp(8px, 1.5vw, 12px);
    cursor: pointer;
    color: #f8f9fa;
    font-size: clamp(0.78rem, 1.6vw, 0.88rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

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

.suggestion-item:hover,
.suggestion-item:active {
    background: rgba(74, 111, 165, 0.25);
    color: #ffffff;
}

.suggestion-item small {
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(0.62rem, 1.3vw, 0.72rem);
    margin-left: clamp(4px, 0.8vw, 8px);
    white-space: nowrap;
}


.inline-search-input:focus {
    outline: none;
}

.inline-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.inline-search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    visibility: hidden;
}

.desktop-nav.searching .inline-search-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    animation: slideInBtn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.inline-search-btn:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.close-inline-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.6) rotate(-90deg);
    visibility: hidden;
}

.desktop-nav.searching .close-inline-search {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotate(0deg);
    animation: slideInCloseBtn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.1s;
}

.close-inline-search:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@keyframes slideInBtn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }

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

@keyframes slideInCloseBtn {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-90deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Page exit animation */
body.page-exit-to-home {
    animation: pageExitZoom 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes pageExitZoom {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
        filter: blur(15px);
    }
}

/* Prevent scrollbar flicker during entrance animation (do not clip footer after load) */
html.page-entered,
body.page-entered {
    overflow: hidden !important;
    height: 100%;
}

/* Page entrance */
body.page-entered .top-nav {
    animation: contentRevealDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

body.page-entered .hero-bg-blobs {
    animation: contentFadeIn 1.2s ease 0s both;
}

body.page-entered .carousel-container {
    animation: contentRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

body.page-entered .welcome-text {
    animation: contentRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

body.page-entered .container {
    animation: contentRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes contentRevealUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
        filter: blur(5px);
    }

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

@keyframes contentRevealDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.97);
        filter: blur(5px);
    }

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

@keyframes contentFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}

/* 3D tilt */
@media (min-width: 1024px) {
    .product-card {
        transform-style: preserve-3d;
    }

    .product-card .product-img,
    .product-card .product-info {
        transform: translateZ(20px);
    }
}

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.7s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Nav glow */
.nav-icon-btn {
    position: relative;
}

.nav-icon-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(74, 111, 165, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-icon-btn:hover::after {
    opacity: 1;
}

/* ============================================
   ADDITIONAL RESPONSIVE FIXES
   ============================================ */

img {
    max-width: 100%;
}

/* Payment / About modal: scrollable on ALL screen sizes */
.about-modal {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.about-modal::-webkit-scrollbar {
    display: none;
}

/* Filter modal: one scrollbar on the card body (not nested on category/type lists) */
.filter-card-body {
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.filter-card-body::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
    height: auto !important;
}

.filter-card-body::-webkit-scrollbar-track {
    background: transparent;
}

.filter-card-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.filter-card-body:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.filter-card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* Details card: touch-scroll */
.details-card {
    -webkit-overflow-scrolling: touch;
}

/* Top nav pill is naturally centered on all devices */

/* â”€â”€ Extra Small Phones (< 360px) â”€â”€ */
@media (max-width: 360px) {
    :root {
        --container-padding: 8px;
    }

    .search-suggestions {
        max-height: clamp(110px, 28vh, 160px);
        border-radius: 8px;
        top: calc(100% + 8px);
    }

    .suggestion-item {
        padding: 5px 8px;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .suggestion-item small {
        font-size: 0.58rem;
        margin-left: 4px;
    }

    .carousel-slide {
        border-radius: 6px;
        margin: 0 3px;
    }

    .slide-caption {
        padding: 6px 8px;
        font-size: 0.65rem;
    }

    .welcome-text h2 {
        font-size: clamp(1.5rem, 9vw, 2rem);
        letter-spacing: 0;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-img {
        height: 80px;
    }

    .product-info {
        padding: 6px;
    }

    .product-category {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .product-name {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        margin-bottom: 3px;
    }

    .product-price {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }

    .wishlist-btn {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }

    .add-to-cart,
    .view-details {
        padding: 4px 2px;
        font-size: 0.6rem;
        border-radius: 5px;
    }

    .about-modal {
        width: 98%;
    }

    .cart-header h3 {
        font-size: 0.95rem;
    }

    .cart-total {
        font-size: 0.95rem;
    }

    .cart-item-img {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 0.78rem;
    }

    .cart-item-price {
        font-size: 0.78rem;
    }

    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .quantity {
        font-size: 0.82rem;
        min-width: 20px;
    }

    .checkout-btn,
    .view-cart-btn {
        font-size: 0.82rem;
        padding: 9px;
    }

    .payment-options,
    .currency-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
     }

    .payment-option,
    .currency-option {
        padding: 8px 6px;
    }



    .payment-option i {
        font-size: 1.2rem;
    }

    .currency-option span {
        font-size: 1rem;
    }

    .pay-now-btn {
        font-size: 0.9rem;
        padding: 11px;
    }

    .mobile-menu {
        max-width: 95vw;
    }

    .carousel-slide {
        flex: 0 0 clamp(150px, 55vw, 230px);
    }

    .category-option {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .footer-column h4 {
        font-size: 0.92rem;
    }

    .footer-links a {
        font-size: 0.82rem;
    }

    .copyright {
        font-size: 0.75rem;
    }
}

/* â”€â”€ 361px â€“ 400px â”€â”€ */
@media (min-width: 361px) and (max-width: 400px) {
    .cart-item-img {
        width: 58px;
        height: 58px;
    }

    .quantity-btn {
        width: 26px;
        height: 26px;
    }

    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-content {
        padding: 18px;
    }

    .details-name {
        font-size: 1.25rem;
    }

    .details-price {
        font-size: 1.6rem;
    }

    .details-add-btn {
        padding: 11px 16px;
        font-size: 0.95rem;
    }
}

/* â”€â”€ Landscape mobile â”€â”€ */
@media (max-width: 767px) and (orientation: landscape) {
    .about-modal {
        max-height: 85vh;
    }

    .cart-sidebar {
        overflow-y: auto;
    }

    .mobile-menu {
        overflow-y: auto;
    }

    .carousel-container {
        height: 110px;
        margin-bottom: 20px;
    }

    .carousel-slide {
        height: 110px;
    }
}

/* â”€â”€ Payment modal: no-scroll on ALL mobile screens â”€â”€ */
@media (max-width: 767px) {

    /* Modal itself: fill viewport cleanly, never scroll */
    .about-modal {
        max-height: 100dvh !important;
        overflow-y: hidden !important;
        display: flex;
        flex-direction: column;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        width: 96% !important;
        border-radius: 16px;
    }

    .about-modal.active {
        transform: translate(-50%, -50%) scale(1);
        overflow-y: hidden !important;
    }

    /* Shrink the green header */
    .about-modal-header {
        padding: 10px 14px;
        flex-shrink: 0;
    }

    .about-modal-header h2 {
        font-size: 1rem;
        gap: 7px;
    }

    .about-modal-header h2 i {
        font-size: 1.15rem;
        /* stop the bounce animation â€” saves vertical space during animation */
        animation: none;
    }

    .close-about-modal {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    /* Content area: allow internal scroll only if truly needed */
    .about-modal-content {
        padding: 8px 10px 10px;
        overflow-y: auto;
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Step 0 title */
    .payment-step h3 {
        font-size: 0.95rem;
        margin-top: 4px !important;
        margin-bottom: 4px;
    }

    /* Tighten the form card */
    .card-form,
    .mobile-payment-content {
        padding: 8px 10px;
        gap: 6px;
        margin-bottom: 8px;
    }

    /* Form row gap */
    .form-row {
        gap: 8px;
    }

    /* Labels */
    .form-group {
        gap: 3px;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    /* Inputs & select trigger */
    .form-group input,
    .select-trigger {
        padding: 7px 10px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Textarea (Detailed Address) */
    #shippingAddress {
        min-height: 42px !important;
        padding: 7px 10px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    /* Location button */
    .location-btn {
        height: 44px;
        font-size: 0.78rem;
        gap: 3px;
        border-radius: 8px;
    }

    .location-btn i {
        font-size: 0.95rem;
    }

    /* Continue / Pay Now button */
    .pay-now-btn {
        padding: 9px;
        font-size: 0.88rem;
    }

    /* Step header (Back button rows) */
    .step-header {
        gap: 8px;
        padding-top: 4px;
        margin-bottom: 8px;
    }

    .redo-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    /* Payment / currency options */
    .payment-options,
    .currency-options {
        gap: 7px;
    }

    .payment-option,
    .currency-option {
        padding: 8px 5px;
    }



    .payment-option i {
        font-size: 1.1rem;
    }

    .payment-option span,
    .currency-option span {
        font-size: 0.8rem;
    }

    /* Total display */
    .payment-total-display {
        padding: 10px;
        margin: 8px 0;
    }

    .payment-total-display .total-amount {
        font-size: 1.2rem;
    }

    /* QR image */
    .qr-code-box img {
        width: 100px;
        height: 100px;
    }
}

/* â”€â”€ Payment modal tweaks (< 480px) â”€â”€ */
@media (max-width: 480px) {
    .about-modal {
        width: 98% !important;
    }
}

/* â”€â”€ Details modal: Fully Responsive for All Mobile Screens â”€â”€ */
@media (max-width: 767px) {
    .details-modal {
        padding: clamp(10px, 4vw, 20px);
        align-items: center;
        justify-content: center;
        height: 100dvh;
    }

    .details-card {
        width: min(100%, 450px);
        border-radius: clamp(16px, 5vw, 24px);
        max-height: 88dvh;
        margin: auto;
    }

    /* Adjust info badget layout for very small screens */
    @media (max-width: 360px) {
        .details-info-grid {
            grid-template-columns: 1fr;
        }

        .specs-list {
            grid-template-columns: 1fr;
        }
    }
}

/* â”€â”€ Product grid tighter gutters on small screens â”€â”€ */
@media (max-width: 575px) {
    .products-grid .col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }

    .products-grid.row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }
}

/* â”€â”€ Touch-friendly tap targets â”€â”€ */
@media (hover: none) and (pointer: coarse) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 15px;
    }

    .filter-icon-btn {
        width: 48px;
        height: 48px;
    }

    .quantity-btn {
        min-width: 36px;
        min-height: 36px;
    }

    .close-cart,
    .close-mobile-menu,
    .close-filter-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .details-close-btn {
        min-width: 30px;
        min-height: 30px;
    }
}

/* â”€â”€ Prevent text overflow causing horizontal scroll â”€â”€ */
.product-name,
.cart-item-name,
.footer-links a,
.mobile-nav-links a {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* â”€â”€ Page Exit Animation â”€â”€ */
/* â”€â”€ Page Exit Animation (Split to prevent fixed element jump) â”€â”€ */
.page-transition-fade-only {
    animation: pageFadeOutOnly 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes pageFadeOutOnly {
    0% {
        opacity: 1;
        filter: blur(0);
    }

    100% {
        opacity: 0;
        filter: blur(15px);
    }
}

.page-transition-zoom-only {
    animation: pageZoomOnly 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

/* ============================================
   ANIMATED PAGINATION
   ============================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: clamp(40px, 5vw, 55px);
    /* more space from product cards */
    margin-bottom: clamp(10px, 2vw, 15px);
    /* keeps footer tight */
    position: relative;
    z-index: 2;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(6, 182, 212, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 3vw, 25px);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.pagination-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.15), rgba(6, 182, 212, 0.15));
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 25px;
    padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 18px);
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 100px;
    justify-content: center;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.pagination-btn:hover::before {
    left: 100%;
}

.pagination-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.4);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.pagination-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pagination-btn i {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: transform 0.3s ease;
}

.pagination-btn:hover i {
    transform: scale(1.2);
}

.prev-btn:hover i {
    transform: translateX(-3px) scale(1.2);
}

.next-btn:hover i {
    transform: translateX(3px) scale(1.2);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
}

.page-number {
    width: clamp(35px, 4vw, 45px);
    height: clamp(35px, 4vw, 45px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.page-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(74, 111, 165, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.page-number:hover::before {
    width: 120%;
    height: 120%;
}

.page-number:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.3);
}

.page-number.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.5);
    animation: pulseActive 2s ease-in-out infinite;
}

.page-number.active::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    width: 100%;
    height: 100%;
}

.pagination-dots {
    color: var(--gray);
    font-weight: 600;
    padding: 0 5px;
    letter-spacing: 2px;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination-wrapper {
        padding: 8px 12px;
        gap: 6px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }

    .pagination-btn span {
        display: none;
    }

    .page-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Dark theme adjustments */
.dark-theme .pagination-wrapper {
    background: linear-gradient(135deg, rgba(45, 79, 110, 0.2), rgba(6, 182, 212, 0.15));
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .page-number {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Fix for slow carousel on mobile */
@media (max-width: 767px) {
    .carousel-track {
        animation-duration: 8s;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-track {
        animation-duration: 12s;
    }
}

/* ============================================
   REFINE BY TYPE BUTTON — Animated States
   ============================================ */
.refine-type-btn {
    position: relative;
    width: 100%;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;

    /* Disabled (default) look */
    background: linear-gradient(135deg, #3a4a5e, #2c3e50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.55;
    transform: scale(0.97);

    transition:
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        box-shadow 0.5s ease,
        background 0.5s ease,
        border-color 0.5s ease;
}

/* Shimmer sweep overlay */
.refine-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.18) 50%,
            transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: none;
}

/* Arrow icon */
.refine-arrow {
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---- DISABLED state ---- */
.refine-type-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: scale(0.97);
    background: linear-gradient(135deg, #3a4a5e, #2c3e50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.06);
    animation: none;
}

.refine-type-btn:disabled .refine-arrow {
    transform: translateX(0);
}

.refine-type-btn:disabled::before {
    display: none;
}

/* ---- ENABLED (active) state ---- */
.refine-type-btn:not(:disabled) {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, #4a6fa5, #2a5298, #1e6fd1);
    background-size: 200% 200%;
    box-shadow:
        0 4px 18px rgba(42, 82, 152, 0.45),
        0 0 20px rgba(74, 111, 165, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    animation: refineGradientShift 3s ease infinite, refinePulseGlow 2s ease-in-out infinite;
}



/* Shimmer sweep on activation */
.refine-type-btn.just-activated::before {
    animation: refineSweep 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Arrow nudge when active */
.refine-type-btn:not(:disabled) .refine-arrow {
    animation: refineArrowBounce 1.5s ease-in-out infinite;
}

/* Hover - only when enabled */
.refine-type-btn:not(:disabled):hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow:
        0 8px 28px rgba(42, 82, 152, 0.55),
        0 0 30px rgba(74, 111, 165, 0.3);
    border-color: rgba(255, 255, 255, 0.35);
}

.refine-type-btn:not(:disabled):hover .refine-arrow {
    animation: none;
    transform: translateX(4px);
}

/* Active press */
.refine-type-btn:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(42, 82, 152, 0.3);
}

/* ---- Deactivation (going back to disabled) ---- */
.refine-type-btn.deactivating {
    animation: refineDeactivate 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* ---- KEYFRAMES ---- */

/* Gradient shift for the active button */
@keyframes refineGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Subtle pulse glow */
@keyframes refinePulseGlow {

    0%,
    100% {
        box-shadow:
            0 4px 18px rgba(42, 82, 152, 0.45),
            0 0 20px rgba(74, 111, 165, 0.2);
    }

    50% {
        box-shadow:
            0 4px 24px rgba(42, 82, 152, 0.6),
            0 0 35px rgba(74, 111, 165, 0.35);
    }
}



/* Sweep shimmer on activation */
@keyframes refineSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Arrow bounce */
@keyframes refineArrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Deactivation: scale down + fade */
@keyframes refineDeactivate {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 18px rgba(42, 82, 152, 0.45);
    }

    100% {
        opacity: 0.55;
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   AUTH MODAL STYLES (Modern Design)
   ============================================ */
.auth-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-width: 420px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    opacity: 0;
    /* Base state before animation */
}

.filter-modal.active .auth-card {
    animation: modalPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center center;
}

.filter-modal.closing .auth-card {
    animation: modalPopOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: center center;
}

/* Login modal centered overlay — separate from page footer at bottom */
#loginModal.filter-modal {
    align-items: center;
    justify-content: center;
}

.auth-card-header {
    padding: 30px 30px 10px;
    text-align: center;
    position: relative;
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.auth-logo {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #4a6fa5, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0;
}

.auth-card-body {
    display: grid;
    padding: 20px 30px 30px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 380px;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Style the scrollbar specifically for the auth-card-body so users know they can scroll */
.auth-card-body::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
}

.auth-card-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.auth-card-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.auth-card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.auth-view {
    grid-area: 1 / 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    pointer-events: none;
}

.auth-view.hidden-view {
    display: none !important;
}

.auth-view.active-view {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.auth-view.slide-left {
    transform: translateX(-40px);
}

.auth-input-group {
    position: relative;
    margin-bottom: 20px;
}

.auth-input-group .input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.auth-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.1);
}

.auth-input:focus~.input-icon,
.auth-input:not(:placeholder-shown)~.input-icon {
    color: var(--primary);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: white;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.5);
    background: linear-gradient(135deg, #5b82bd, #1a719c);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--gray);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: white;
}

/* Auth Modal Mobile Optimization */
@media (max-width: 576px) {
    .auth-card {
        border-radius: 16px;
    }

    .auth-card-header {
        padding: 25px 20px 5px;
    }

    .auth-logo {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        min-height: 45px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .auth-card-body {
        padding: 15px 20px 25px;
    }

    .auth-input-group {
        margin-bottom: 15px;
    }

    .auth-options {
        margin-bottom: 20px;
    }

    .auth-switch {
        margin-top: 20px;
    }
}

/* Auth Form Grid & Styles */
.auth-card {
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease, opacity 0.5s ease;
}

.auth-card.wide {
    max-width: min(600px, calc(100vw - 40px));
    width: 100%;
}

.auth-card.wide .auth-card-body {
    max-height: min(75vh, 560px);
}

.auth-card.wide .auth-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.auth-card.wide .auth-field-full {
    grid-column: 1 / -1;
}

.auth-card.wide #signUpForm,
.auth-card.wide .auth-grid,
.auth-card.wide .auth-input-group,
.auth-card.wide .signup-phones,
.auth-card.wide .signup-phone-verify-block {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 20px;
    margin-bottom: 20px;
    min-width: 0;
}

.auth-field-full {
    grid-column: span 1;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.auth-input-wrapper {
    position: relative;
    width: 100%;
}

.auth-input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.auth-input:focus~.input-icon {
    color: var(--primary);
}

.signup-phones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.signup-phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px 10px 4px 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.signup-phone-intl {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: stretch;
}

.signup-phone-field-icon {
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    margin-right: 4px;
    color: var(--gray);
}

.signup-email-input-wrap:has(.signup-phone-intl) .input-icon {
    display: none;
}

.signup-phone-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.1);
}

.signup-phone-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    font-size: 0.95rem !important;
    color: white !important;
    box-shadow: none !important;
}

.signup-phone-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signup-phone-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.signup-phone-primary input {
    accent-color: var(--primary);
    cursor: pointer;
}

.signup-phone-remove {
    background: rgba(220, 53, 69, 0.1);
    border: none;
    color: var(--danger);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.signup-phone-remove:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.signup-add-phone-btn {
    background: rgba(74, 111, 165, 0.05);
    border: 1px dashed rgba(74, 111, 165, 0.4);
    color: var(--primary);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.signup-add-phone-btn:hover {
    background: rgba(74, 111, 165, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Auth modal — My Profile mode */
.auth-card.auth-card--profile {
    max-width: min(460px, calc(100vw - 40px));
}

.auth-card.auth-card--profile .auth-logo {
    display: none;
}

.auth-card.auth-card--profile .auth-card-header {
    padding: 26px 28px 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(74, 111, 165, 0.22) 0%, rgba(30, 41, 59, 0) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-card.auth-card--profile .auth-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #93c5fd 55%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.auth-card.auth-card--profile .auth-subtitle {
    display: block !important;
    min-height: 0 !important;
    max-width: 300px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.auth-card.auth-card--profile .auth-card-body {
    padding: 18px 24px 28px;
    max-height: min(68vh, 520px);
}

/* Profile view content */
.profile-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.profile-hero {
    text-align: center;
    padding: 8px 0 4px;
}

.profile-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #e0f2fe;
    background: linear-gradient(145deg, rgba(74, 111, 165, 0.55) 0%, rgba(59, 130, 246, 0.35) 100%);
    border: 2px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 0 0 4px rgba(74, 111, 165, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.25);
}

.profile-display-name {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.profile-display-email {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-detail-card:hover {
    background: rgba(74, 111, 165, 0.1);
    border-color: rgba(96, 165, 250, 0.28);
}

.profile-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
}

.profile-detail-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.profile-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.profile-logout-btn {
    flex: 1;
    margin-top: 0 !important;
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    box-shadow: 0 8px 22px rgba(71, 85, 105, 0.22);
}

.profile-logout-btn:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    box-shadow: 0 10px 28px rgba(71, 85, 105, 0.32);
}

.profile-delete-btn {
    flex: 1;
    margin-top: 0 !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 8px 22px rgba(220, 53, 69, 0.22);
}

.profile-delete-btn:hover {
    background: linear-gradient(135deg, #e04555 0%, #d32535 100%) !important;
    box-shadow: 0 10px 28px rgba(220, 53, 69, 0.35);
}

@media (max-width: 400px) {
    .profile-actions {
        flex-direction: column;
        gap: 8px;
    }
}

.profile-phones-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-phone-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.profile-phone-item.is-empty {
    font-weight: 500;
    color: #94a3b8;
}

.profile-phone-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.profile-detail-card--phones .profile-detail-body {
    gap: 8px;
}

@media (max-width: 576px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-card.auth-card--profile .auth-card-header {
        padding: 22px 20px 12px;
    }

    .auth-card.auth-card--profile .auth-card-body {
        padding: 16px 18px 24px;
    }

    .profile-avatar {
        width: 68px;
        height: 68px;
        font-size: 1.5rem;
    }

    .profile-display-name {
        font-size: 1.2rem;
    }
}

/* Responsive adjustments for auth forms */
/* @media (max-width: 768px) {
    .auth-card {
        max-width: 90%;
        padding: 25px 20px;
    }

    .auth-form-section.active {
        padding: 20px;
    }
} */

/* Password Visibility Toggle Styles */
.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: white;
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary);
}

.auth-input.password-input-field {
    padding-right: 45px;
}

/* ── Premium Select Dropdown Styling for Auth Modal ── */
select.auth-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select.auth-input:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

select.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.15), 0 4px 12px rgba(74, 111, 165, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a6fa5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select.auth-input option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px 14px;
}

/* Searchable country/city dropdowns — Create Account */
.auth-input-wrapper--searchable .input-icon {
    z-index: 12;
}

.searchable-select--auth {
    --ss-text: #e2e8f0;
    --ss-muted: var(--gray);
    --ss-border: rgba(255, 255, 255, 0.12);
    --ss-bg: rgba(255, 255, 255, 0.05);
    --ss-panel-bg: #1e293b;
    --ss-accent: var(--primary);
}

.searchable-select--auth .searchable-select__control {
    min-height: 48px;
    padding: 12px 40px 12px 45px;
    border-radius: 12px;
    border: 1px solid var(--ss-border);
    background: var(--ss-bg);
    color: var(--ss-text);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.searchable-select--auth .searchable-select__control:hover {
    border-color: rgba(74, 111, 165, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.searchable-select--auth.is-open .searchable-select__control,
.searchable-select--auth .searchable-select__control:focus-visible {
    border-color: var(--ss-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.15);
    outline: none;
}

.searchable-select--auth .searchable-select__value--placeholder {
    color: var(--ss-muted);
}

.searchable-select--auth .searchable-select__chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease, color 0.25s ease;
}

.searchable-select--auth.is-open .searchable-select__chevron {
    transform: rotate(180deg);
    color: var(--ss-accent);
}

/* Dropdown panel styles: see searchable-select-auth.css */

/* Sign up — email verification */
.signup-email-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
}

.signup-email-input-wrap {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.signup-email-verify-btn,
.signup-email-confirm-btn {
    flex-shrink: 0;
    align-self: stretch;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4a6fa5, #5b7fb8);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.signup-email-verify-btn:hover:not(:disabled),
.signup-email-confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b7fb8, #6a8cbf);
    transform: translateY(-1px);
}

.signup-email-verify-btn:disabled,
.signup-email-confirm-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.signup-email-verify-btn.is-verified {
    background: linear-gradient(135deg, #28a745, #38a169);
}

.signup-email-status {
    margin: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.signup-email-status.is-success {
    color: #6ee7a0;
}

.signup-email-status.is-error {
    color: #f87171;
}

.signup-email-status.is-info {
    color: #93c5fd;
}

.signup-email-code-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-email-code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.signup-email-code-input {
    flex: 1;
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Sign up — phone verification (reuses email verify styles) */
.signup-phone-verify-block {
    width: 100%;
}

.signup-phone-hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
}

.signup-phone-hint strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.signup-phone-demo-code {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px dashed rgba(251, 191, 36, 0.45);
}

.signup-phone-demo-code strong {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    color: #fde68a;
}

.signup-phone-row--verify {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.signup-phone-row--verify .signup-phone-input-wrapper.signup-email-input-wrap {
    padding: 0;
    border: none;
    background: transparent;
    min-width: 0;
    flex: 1;
    max-width: 100%;
}

.signup-phone-row--verify .signup-phone-input-wrapper:focus-within {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.signup-phone-actions--below {
    justify-content: flex-start;
    padding: 0 4px;
}

.signup-phone-input-wrapper.signup-email-input-wrap {
    flex: 1;
    min-width: 0;
}

.signup-phone-input-wrapper.signup-email-input-wrap .input-icon {
    right: 12px;
}

/* Create Account — avoid horizontal scroll; stack verify on narrow screens */
@media (max-width: 540px) {
    .auth-card.wide {
        max-width: calc(100vw - 24px);
    }

    .auth-card.wide .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-card.wide .signup-email-row {
        flex-direction: column;
    }

    .auth-card.wide .signup-email-verify-btn,
    .auth-card.wide .signup-email-confirm-btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    .auth-card-body {
        padding: 15px 18px 22px;
    }
}

/* Premium Success Notifications */
.reg-success-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 60px);
    pointer-events: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 576px) {
    .reg-success-notification {
        bottom: 20px;
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
        max-width: none;
    }
}

.reg-success-card {
    position: relative;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 22px 25px 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(56, 161, 105, 0.1);
    overflow: hidden;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-success-card.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.reg-success-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: regGlowRotation 10s linear infinite;
}

@keyframes regGlowRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reg-success-icon-wrap {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Beautiful Animated SVG Checkmark */
.reg-success-checkmark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: #38a169;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #38a169;
    animation: regCheckmarkFill .4s ease-in-out .4s forwards, regCheckmarkScale .3s ease-in-out .9s infinite alternate;
}

.reg-success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke-miterlimit: 10;
    stroke: #38a169;
    fill: none;
    animation: regCheckmarkStroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.reg-success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: regCheckmarkStroke .3s cubic-bezier(0.65, 0, 0.45, 1) .6s forwards;
}

@keyframes regCheckmarkStroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes regCheckmarkFill {
    100% { box-shadow: inset 0px 0px 0px 30px rgba(56, 161, 105, 0.1); }
}

@keyframes regCheckmarkScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.reg-success-content {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.reg-success-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.reg-success-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.reg-success-name {
    color: #48bb78;
    font-weight: 700;
}

.reg-success-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 4px;
    margin-top: -4px;
    margin-right: -8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.reg-success-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.reg-success-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #38a169, #48bb78);
    width: 100%;
    transform-origin: left;
    animation: regProgressBarDrain 5s linear forwards;
}

@keyframes regProgressBarDrain {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Confetti styling */
.reg-confetti-particle {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    will-change: transform, opacity;
    animation: regConfettiFall 3.5s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes regConfettiFall {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) translateX(var(--drift, 100px)) rotate(720deg);
        opacity: 0;
    }
}

/* Logout Success Notification Variations */
.reg-success-card.logout {
    border: 1px solid rgba(66, 153, 225, 0.3);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(66, 153, 225, 0.1);
}

.reg-success-card.logout .reg-success-progress-bar {
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.reg-success-logout-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.15);
    border: 2px solid #4299e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4299e1;
    font-size: 1.2rem;
    box-shadow: 0 0 12px rgba(66, 153, 225, 0.3);
    animation: logoutIconPulse 2s infinite alternate;
}

@keyframes logoutIconPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Responsive Profile and Order Tracking */
.auth-card.auth-card--profile {
    max-width: min(600px, calc(100vw - 32px)) !important;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tabs-nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.profile-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.profile-tab-btn.active {
    color: #fff;
    background: rgba(74, 111, 165, 0.35);
    box-shadow: 
        0 4px 14px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.profile-tab-content {
    display: none;
    animation: profileTabSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-tab-content.active {
    display: block;
}

@keyframes profileTabSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orders-list,
.order-tracking-list,
#clientOrdersList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

.orders-list::-webkit-scrollbar {
    width: 6px;
}
.orders-list::-webkit-scrollbar-track {
    background: transparent;
}
.orders-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.orders-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.order-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(96, 165, 250, 0.18);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-id {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
}

.order-date {
    font-size: 0.8rem;
    color: #64748b;
}

.order-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.order-status.badge-on-the-way {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    animation: statusBadgePulse 2s infinite alternate;
}

.order-status.badge-delivered {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

@keyframes statusBadgePulse {
    0% { opacity: 0.85; }
    100% { opacity: 1; box-shadow: 0 0 8px rgba(245, 158, 11, 0.15); }
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.order-total {
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #48bb78;
}

.order-toggle-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.order-card.expanded .order-toggle-btn {
    transform: rotate(180deg);
    color: #f8fafc;
}

/* Order timeline */
.order-timeline {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.order-card.expanded .order-timeline {
    display: flex;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 17px;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 0;
}

.timeline-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-step.completed .step-icon {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.timeline-step.active .step-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
}

.timeline-step.completed .step-title,
.timeline-step.active .step-title {
    color: #f8fafc;
}

.step-time {
    font-size: 0.76rem;
    color: #64748b;
}

/* Two-column responsive layout */
@media (min-width: 600px) {
    .auth-card.auth-card--profile .profile-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* Custom Destructive Account Delete Warning Modal */
.delete-warning-backdrop,
.profile-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    padding: 16px;
    box-sizing: border-box;
}

.delete-warning-backdrop.active,
.profile-confirm-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.delete-warning-card,
.profile-confirm-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    width: min(440px, calc(100vw - 32px));
    padding: 28px 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(239, 68, 68, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-confirm-backdrop--logout .profile-confirm-card {
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.15);
}

.delete-warning-backdrop.active .delete-warning-card,
.profile-confirm-backdrop.active .profile-confirm-card {
    transform: translateY(0) scale(1);
}

.warning-icon-wrap,
.profile-confirm-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.profile-confirm-backdrop--logout .profile-confirm-icon-wrap {
    background: rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    color: #60a5fa;
}

.warning-icon-animate,
.profile-confirm-icon-animate {
    animation: warningIconPulse 1.8s infinite;
}

@keyframes warningIconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.delete-warning-title,
.profile-confirm-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.delete-warning-message,
.profile-confirm-message {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.delete-warning-message strong,
.profile-confirm-message strong {
    color: #f87171;
}

.delete-warning-actions,
.profile-confirm-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.warning-btn,
.profile-confirm-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.warning-btn-cancel,
.profile-confirm-btn-cancel {
    background: #334155;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.warning-btn-cancel:hover:not(:disabled),
.profile-confirm-btn-cancel:hover:not(:disabled) {
    background: #475569;
    color: #fff;
}

.warning-btn-confirm,
.profile-confirm-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.profile-confirm-backdrop--logout .profile-confirm-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.warning-btn-confirm:hover:not(:disabled),
.profile-confirm-btn-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.profile-confirm-backdrop--logout .profile-confirm-btn-confirm:hover:not(:disabled) {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.warning-btn:disabled,
.profile-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.delete-success-card {
    border-color: rgba(239, 68, 68, 0.25) !important;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 5px 15px rgba(239, 68, 68, 0.1) !important;
}

/* ============================================
   SHOP ACTION FX — cart / wishlist animations
   ============================================ */
.shop-action-fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100000;
    overflow: hidden;
}

.shop-fly-item {
    position: fixed;
    left: 0;
    top: 0;
    border-radius: 16px;
    overflow: hidden;
    will-change: transform, opacity;
    z-index: 2;
}

.shop-fly-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-fly-item--cart {
    box-shadow:
        0 16px 42px rgba(74, 111, 165, 0.55),
        0 0 0 2px rgba(255, 255, 255, 0.92),
        0 0 28px rgba(74, 111, 165, 0.35);
}

.shop-fly-item--wishlist {
    border-radius: 50%;
    box-shadow:
        0 16px 42px rgba(233, 30, 99, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.92),
        0 0 30px rgba(255, 107, 107, 0.4);
}

.shop-action-ring {
    position: fixed;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.shop-action-ring--cart {
    border: 2px solid rgba(107, 147, 214, 0.95);
    animation: shopRingBurstCart 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shop-action-ring--wishlist {
    border: 2px solid rgba(255, 107, 135, 0.95);
    animation: shopRingBurstWish 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shop-particle {
    position: fixed;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 10px currentColor;
}

.shop-particle--wishlist {
    width: 8px;
    height: 8px;
    clip-path: polygon(50% 0%, 61% 10%, 74% 8%, 78% 22%, 92% 26%, 84% 38%, 88% 52%, 76% 58%, 74% 72%, 62% 78%, 50% 88%, 38% 78%, 26% 72%, 24% 58%, 12% 52%, 16% 38%, 8% 26%, 22% 22%, 26% 8%, 39% 10%);
    border-radius: 0;
}

.add-to-cart--tap,
.details-add-btn.add-to-cart--tap {
    animation: cartBtnTap 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.add-to-cart--success,
.details-add-btn.add-to-cart--success {
    background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%) !important;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-2px) scale(1.03);
}

.wishlist-btn--tap,
.details-wishlist-btn.wishlist-btn--tap,
.cart-wishlist-btn.wishlist-btn--tap {
    animation: wishlistTapPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-btn--remove,
.details-wishlist-btn.wishlist-btn--remove,
.cart-wishlist-btn.wishlist-btn--remove {
    animation: wishlistRemovePop 0.42s ease;
}

.product-card--action-glow {
    animation: productCardActionGlow 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-icon-btn--cart-landed {
    animation: navCartLanded 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon-btn--wish-landed {
    animation: navWishLanded 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-cart-count--bounce {
    animation: navBadgeBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shopRingBurstCart {
    0% {
        transform: scale(0.4);
        opacity: 0.95;
        box-shadow: 0 0 0 0 rgba(107, 147, 214, 0.45);
    }

    100% {
        transform: scale(4.2);
        opacity: 0;
        box-shadow: 0 0 0 14px rgba(107, 147, 214, 0);
    }
}

@keyframes shopRingBurstWish {
    0% {
        transform: scale(0.4);
        opacity: 0.95;
        box-shadow: 0 0 0 0 rgba(255, 107, 135, 0.45);
    }

    100% {
        transform: scale(4.2);
        opacity: 0;
        box-shadow: 0 0 0 14px rgba(255, 107, 135, 0);
    }
}

@keyframes cartBtnTap {
    0% { transform: scale(1); }
    35% { transform: scale(0.94); }
    70% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes wishlistTapPop {
    0% { transform: scale(1); }
    30% { transform: scale(0.82); }
    55% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@keyframes wishlistRemovePop {
    0% { transform: scale(1); opacity: 1; }
    45% { transform: scale(0.78); opacity: 0.65; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes productCardActionGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
        transform: translateY(0);
    }

    35% {
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.25), 0 18px 36px rgba(74, 111, 165, 0.18);
        transform: translateY(-4px);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
        transform: translateY(0);
    }
}

@keyframes navCartLanded {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-6px) scale(1.12) rotate(-4deg); }
    55% { transform: translateY(2px) scale(0.96) rotate(2deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes navWishLanded {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-6px) scale(1.14) rotate(4deg); }
    55% { transform: translateY(2px) scale(0.96) rotate(-2deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes navBadgeBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.45); }
    50% { transform: scale(0.88); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .shop-action-fx-layer {
        display: none;
    }

    .add-to-cart--tap,
    .wishlist-btn--tap,
    .product-card--action-glow,
    .nav-icon-btn--cart-landed,
    .nav-icon-btn--wish-landed,
    .nav-cart-count--bounce {
        animation: none !important;
    }
}