/* ==========================================================================
   iSpace Premium Storefront Stylesheet - VIP Apple Intelligence Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Custom Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-dark-base: #070708;
    --bg-dark-surface: #0e0e10;
    --bg-dark-card: rgba(20, 20, 22, 0.65);
    
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-muted: #6e6e73;
    
    /* Neon Accents (Apple Intelligence Fluid Gradients) */
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-pink: #d946ef;
    --accent-cyan: #06b6d4;
    
    --neon-gradient: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet), var(--accent-pink));
    --neon-glow: 0 0 20px rgba(139, 92, 246, 0.25);
    
    /* Glassmorphism Configuration (Optimized blur to 12px for buttery smooth 60FPS) */
    --glass-bg: rgba(18, 18, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-blur: blur(12px);
    
    /* System Tokens */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Premium hardware-efficient background glows using standard fixed radial-gradients directly on body */
    background-color: #070708;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(217, 70, 239, 0.09) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.07) 0%, transparent 65%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .logo-text, .hero-tag, .category-tab {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   3. Background Glow Orbs (Performance Optimized via GPU translate3d & will-change)
   -------------------------------------------------------------------------- */
.glow-orb {
    display: none; /* Disabled large fixed blurred elements to achieve 100% rendering compatibility and 0% CPU overhead */
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.08) 70%);
}

.orb-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.3) 0%, rgba(99, 102, 241, 0.04) 75%);
    animation-delay: -8s;
}

.orb-3 {
    top: 40%;
    left: 45%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(139, 92, 246, 0.02) 80%);
    animation-delay: -16s;
}

/* Optimized keyframes using transform3d to avoid repaints */
@keyframes floatGlow {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, 3%, 0) scale(1.08); }
    100% { transform: translate3d(-2%, -3%, 0) scale(0.95); }
}

/* --------------------------------------------------------------------------
   4. Sticky Glassmorphism Navigation
   -------------------------------------------------------------------------- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: height var(--transition-normal), background var(--transition-normal);
    /* GPU layer promotion */
    will-change: background, height;
    transform: translate3d(0,0,0);
    pointer-events: none !important;
}

.glass-nav.scrolled {
    height: 70px;
    background: rgba(10, 10, 12, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    pointer-events: none !important;
}

.logo-link,
.search-wrapper,
.header-actions {
    pointer-events: auto !important;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-highlight {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

/* Header Search */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 44px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-wrapper input {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    padding: 0 20px 0 46px;
    color: var(--text-primary);
    font-size: 0.925rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-wrapper input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.search-wrapper input:focus + .search-icon {
    color: var(--accent-violet);
}

.clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: var(--border-radius-full);
    transition: var(--transition-fast);
}

.clear-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Premium Language Selector Pill */
.lang-selector-capsule {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    padding: 3px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    width: 32px;
    height: 28px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 46px;
    height: 46px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-fast);
    transform: translate3d(0,0,0);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.cart-btn:hover {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--neon-gradient);
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark-base);
    box-shadow: var(--neon-glow);
    animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   5. Interactive Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 130px;
    padding-bottom: 50px;
    position: relative;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.12) 0%, rgba(14, 14, 16, 0.8) 75%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 48px 64px;
    transition: opacity var(--transition-slow);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #c7c7cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--neon-gradient);
    border-radius: var(--border-radius-full);
    filter: blur(80px);
    opacity: 0.35;
    z-index: -1;
    animation: rotateGlow 10s infinite linear;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-img {
    max-width: 90%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: floatImg 6s infinite ease-in-out;
}

@keyframes floatImg {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Slide Transition Animations */
.hero-slide.active .animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide.active .hero-tag.animate-in { animation-delay: 0.1s; }
.hero-slide.active .hero-title.animate-in { animation-delay: 0.2s; }
.hero-slide.active .hero-description.animate-in { animation-delay: 0.3s; }
.hero-slide.active .hero-cta-group.animate-in { animation-delay: 0.4s; }
.hero-slide.active .hero-image-wrapper.animate-in { animation-delay: 0.25s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider indicators */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    width: 32px;
    background: var(--text-primary);
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* --------------------------------------------------------------------------
   6. Custom Styled Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
    transform: translate3d(0,0,0);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark-base);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 10px 20px rgba(255,255,255,0.06);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translate3d(0, -2px, 0);
}

.btn-block {
    width: 100%;
}

/* Special Neon Checkout Button */
.checkout-btn {
    background: var(--neon-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--neon-glow);
    padding: 16px 28px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-indigo));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.checkout-btn:hover::before {
    opacity: 1;
}

.checkout-btn:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
}

/* --------------------------------------------------------------------------
   7. Store Catalog (Category Tabs & Grid)
   -------------------------------------------------------------------------- */
.store-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 32px 30px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Category Filter Swiper */
.category-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: var(--border-radius-full);
    backdrop-filter: var(--glass-blur);
    min-width: max-content;
}

.category-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.category-tab:hover {
    color: var(--text-primary);
}

.category-tab.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.category-tab:focus,
.category-tab:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    transition: opacity var(--transition-normal);
}

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Spinner Loading */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    gap: 16px;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--accent-violet);
    border-radius: var(--border-radius-full);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   8. Premium Product Cards (Hardware Accelerated via will-change & translate3d)
   -------------------------------------------------------------------------- */
.product-card {
    background: rgba(18, 18, 20, 0.98); /* Solid dark surface with 100% browser compatibility and 0% scroll lag */
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Removed backdrop-filter to prevent massive layout/painting stutters when rendering 100 grid cards */
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    /* GPU promotion & smooth rendering */
    will-change: transform, border-color, box-shadow;
    transform: translate3d(0, 0, 0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

/* Glow Border hover trigger */
.product-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

/* Card Visuals (Badge & Image) */
.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    z-index: 2;
}

/* 25% Discount Floating Neon Badge */
.discount-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #f43f5e, #e11d48, #be123c);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
    z-index: 2;
    letter-spacing: 0.02em;
    will-change: transform;
    animation: bouncePromo 2.5s infinite ease-in-out;
}

@keyframes bouncePromo {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(0,-2px,0) scale(1.06); }
}

.product-img-container {
    height: 240px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.product-img-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--accent-indigo);
    border-radius: var(--border-radius-full);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    opacity: 0.12;
    /* Fixed blur to allow immediate GPU caching and eliminate stutters on hover */
    filter: blur(50px);
    -webkit-filter: blur(50px);
}

.product-card:hover .product-img-glow {
    opacity: 0.28;
    transform: translate3d(0,0,0) scale(1.2);
}

.product-image {
    max-width: 90%;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    z-index: 1;
    transition: transform var(--transition-normal);
    will-change: transform;
}

.product-card:hover .product-image {
    transform: translate3d(0, -4px, 0) scale(1.06);
}

/* Card Info */
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Swatches configuration container */
.product-config-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Color Circles */
.color-swatches {
    display: flex;
    gap: 8px;
}

.swatch {
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.swatch.active {
    border-color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

/* Storage capacity selector pills */
.storage-options {
    display: flex;
    gap: 4px;
}

.storage-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.storage-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.storage-pill.active {
    background: var(--text-primary);
    color: var(--bg-dark-base);
    border-color: var(--text-primary);
}

/* Price & Buy Action */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* Double Price Layout: crossed-out original vs glowing KZT promo */
.price-original {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 1px;
    letter-spacing: -0.01em;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #e4e4e7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.product-card:hover .product-price {
    background: linear-gradient(135deg, #fff 30%, var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.add-to-cart-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.add-to-cart-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark-base);
    border-color: var(--text-primary);
    transform: scale(1.08);
}

.add-to-cart-btn i {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   9. Brand Benefits Section
   -------------------------------------------------------------------------- */
.benefits-section {
    max-width: 1300px;
    margin: 50px auto 90px;
    padding: 0 32px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--glass-border);
    padding: 36px 28px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition-normal);
}

.benefit-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translate3d(0, -4px, 0);
}

.benefit-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-violet);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.benefit-card:hover .benefit-icon-wrapper {
    color: var(--accent-pink);
    box-shadow: var(--shadow-glow);
    background: rgba(139, 92, 246, 0.06);
}

.benefit-icon {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Premium Footer Styling
   -------------------------------------------------------------------------- */
.premium-footer {
    background: #070708;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-container { grid-template-columns: 1.2fr 0.8fr; }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-logo i {
    width: 24px;
    height: 24px;
}

.footer-logo span span {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 380px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translate3d(0, -2px, 0);
}

.social-link i {
    width: 18px;
    height: 18px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 32px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   11. Side-drawer Shopping Cart Layout
   -------------------------------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: var(--glass-bg);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transform: translate3d(100%, 0, 0);
    transition: transform var(--transition-normal);
    will-change: transform;
}

.drawer-overlay.active .drawer-content {
    transform: translate3d(0, 0, 0);
}

/* Drawer Header */
.drawer-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-title i {
    width: 22px;
    height: 22px;
    color: var(--accent-violet);
}

.drawer-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.drawer-title .badge {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Drawer Body (Items list) */
.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Custom Scrollbar for Drawer & Modal */
.drawer-body::-webkit-scrollbar,
.form-grid::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-thumb,
.form-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-full);
}

.drawer-body::-webkit-scrollbar-track,
.form-grid::-webkit-scrollbar-track {
    background: transparent;
}

/* Empty Cart Design */
.empty-cart-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    gap: 16px;
}

.empty-cart-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    stroke-width: 1.2;
    margin-bottom: 8px;
}

.empty-cart-view p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-cart-view span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 240px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Cart Item Row Card */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: var(--border-radius-md);
    position: relative;
    transition: var(--transition-fast);
}

.cart-item:hover {
    border-color: rgba(255,255,255,0.12);
}

.cart-item-img-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    padding: 6px;
}

.cart-item-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.cart-item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Incrementor actions inside Cart */
.cart-qty-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 2px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.qty-btn i {
    width: 14px;
    height: 14px;
}

.qty-value {
    width: 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.item-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.item-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.item-delete-btn i {
    width: 16px;
    height: 16px;
}

/* Drawer Footer */
.drawer-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(14, 14, 16, 0.5);
}

.cart-calculations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.calc-row.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.free-badge {
    color: #10b981;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Premium Modals (Checkout & Telegram Preview)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    width: 100%;
    max-width: 640px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    padding: 40px;
    transform: translate3d(0, 12px, 0) scale(0.95);
    transition: transform var(--transition-normal);
    will-change: transform;
}

.modal-overlay.active .modal-content {
    transform: translate3d(0, 0, 0) scale(1);
}

/* Close Modal Button */
.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}

.modal-close-btn i {
    width: 16px;
    height: 16px;
}

/* Modal Headers */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-badge-icon {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-indigo);
    box-shadow: var(--shadow-glow);
}

.modal-badge-icon i {
    width: 24px;
    height: 24px;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #c7c7cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.5;
}

/* Checkout Form Layout */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
}

@media (min-width: 600px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid .full-width { grid-column: span 2; }
}

/* Input Fields styling */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.input-group input,
.input-group select,
.input-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.925rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' 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 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-group select option {
    background: #0f0f12;
    color: var(--text-primary);
}

.input-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Modal calculations sum */
.modal-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-line span:first-child {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.order-total-price {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-alert {
    display: flex;
    gap: 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.12);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #c7d2fe;
}

.summary-alert i {
    width: 18px;
    height: 18px;
    color: var(--accent-indigo);
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions button {
    min-width: 130px;
}

.submit-order-btn {
    background: var(--neon-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--neon-glow);
}

.submit-order-btn:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   13. Simulated Telegram Message Success Modal
   -------------------------------------------------------------------------- */
.success-card {
    max-width: 520px !important;
    text-align: center;
    padding: 40px 32px !important;
}

.success-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.success-icon-wrap {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.success-icon {
    width: 32px;
    height: 32px;
}

.success-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.success-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Custom visual layout representing raw Telegram chat bubble */
.telegram-visual-container {
    background: #17212b; /* Telegram dark mode chat background */
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.tg-header {
    background: #24303f;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.tg-avatar {
    background: var(--neon-gradient);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tg-avatar i {
    width: 16px;
    height: 16px;
}

.tg-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tg-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.tg-status {
    font-size: 0.72rem;
    color: #4da6ff;
}

.tg-badge {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tg-body {
    padding: 16px;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 16px 16px;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.tg-message-bubble {
    background: #182533;
    border-radius: 12px 12px 0 12px;
    padding: 14px 16px;
    max-width: 90%;
    margin-left: auto;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.02);
}

.tg-message-bubble pre {
    font-family: inherit;
    font-size: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.tg-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e386ff;
    letter-spacing: 0.05em;
}

.msg-bell-icon {
    width: 14px;
    height: 14px;
    animation: shakeBell 2s infinite ease-in-out;
}

@keyframes shakeBell {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.tg-message-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 0;
}

.tg-pre-code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #e4e7eb;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.tg-msg-time {
    font-size: 0.65rem;
    color: #708499;
    text-align: right;
    margin-top: 6px;
}

.success-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.success-badge-notification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.success-badge-notification i {
    width: 14px;
    height: 14px;
    color: var(--accent-pink);
}

/* --------------------------------------------------------------------------
   14. VIP Interactive Toasts
   -------------------------------------------------------------------------- */
.toast-wrapper {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3000;
    pointer-events: none;
}

.toast {
    background: rgba(14, 14, 16, 0.9);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-violet);
    backdrop-filter: var(--glass-blur);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    pointer-events: auto;
    transform: translate3d(0, 24px, 0);
    opacity: 0;
    will-change: transform, opacity;
    animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastIn {
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.toast.removing {
    animation: toastOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes toastOut {
    to {
        transform: translate3d(0, -16px, 0) scale(0.9);
        opacity: 0;
    }
}

.toast-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-violet);
}

.toast-message {
    font-size: 0.88rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   15. Global Helper Utilities & Keyframe Animation Library
   -------------------------------------------------------------------------- */
.animate-scale {
    animation: pulseScale 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseScale {
    0% { transform: scale(0.7); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-modal {
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.quantity-controller {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 4px;
}

.quantity-controller .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
}

.qty-num {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--text-primary);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .glass-nav {
        height: 120px !important;
        background: rgba(10, 10, 12, 0.95) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    }
    .glass-nav.scrolled {
        height: 110px !important;
    }
    .nav-container {
        padding: 8px 16px !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 8px 12px !important;
        align-content: center !important;
        justify-content: stretch !important;
        box-sizing: border-box !important;
    }
    .logo-link {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
    }
    .logo-text {
        font-size: 1.25rem !important;
    }
    .header-actions {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        justify-self: end !important;
        gap: 12px !important;
    }
    .search-wrapper {
        grid-column: 1 / 3 !important;
        grid-row: 2 / 3 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .search-wrapper input {
        padding-left: 36px !important;
        font-size: 0.85rem !important;
        height: 38px !important;
    }
    .search-icon {
        left: 12px !important;
        width: 14px !important;
        height: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .clear-btn {
        height: 38px !important;
        top: 0 !important;
    }
    
    .hero-section {
        padding-top: 150px !important;
    }
    
    .hero-slides-container {
        min-height: 640px !important;
    }
    .hero-slide {
        padding: 24px 16px !important;
        gap: 16px !important;
        align-content: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        height: 100% !important;
    }
    .hero-content {
        align-items: center !important;
        width: 100% !important;
    }
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }
    .hero-description {
        font-size: 0.88rem !important;
        margin-bottom: 16px !important;
    }
    .hero-image-wrapper {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 8px !important;
    }
    .hero-img {
        max-height: 160px !important;
        height: 160px !important;
    }
    .hero-img img {
        max-height: 160px !important;
        object-fit: contain !important;
    }
    
    .store-section { padding: 40px 16px 20px; }
    .category-tabs-wrapper {
        padding: 0 !important;
        margin: 0 0 24px 0 !important;
        display: block !important;
        overflow: visible !important;
    }
    .category-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        min-width: unset !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
    }
    .category-tab {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        border-radius: var(--border-radius-full) !important;
        white-space: nowrap !important;
    }
    .category-tab.active {
        background: #fff !important;
        color: #000 !important;
        border-color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
    }
    .section-title { font-size: 1.8rem; }
    
    .modal-content { padding: 24px 16px; }
    .modal-header h2 { font-size: 1.4rem; }
    
    .drawer-content { max-width: 100%; }
    .drawer-body { padding: 20px 16px; }
    
    .toast-wrapper {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    
    .product-detail-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-detail-left {
        height: 240px;
    }
    .product-detail-img-wrap img {
        max-height: 200px;
    }
    .product-detail-right h2 {
        font-size: 1.6rem;
    }
    .detail-buy-block {
        flex-direction: column;
        align-items: stretch;
    }
    .detail-buy-block .quantity-controller {
        justify-content: center;
    }
}

/* Premium Modals Styles */
.product-detail-card {
    max-width: 900px;
    width: 95%;
    padding: 36px !important;
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
}

.product-detail-left {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    height: 380px;
    position: relative;
    overflow: hidden;
}

.product-detail-img-wrap img {
    max-width: 90%;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.product-detail-right {
    display: flex;
    flex-direction: column;
}

.product-detail-right h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}

.detail-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-price-block .price-original {
    font-size: 1.2rem;
}

.detail-price-block .price-promo {
    font-size: 2rem;
}

.product-detail-desc {
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.spec-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.detail-swatches-section, .detail-specs-section {
    margin-bottom: 20px;
}

.detail-swatches-list {
    display: flex;
    gap: 12px;
}

.detail-swatches-list .swatch {
    width: 26px;
    height: 26px;
}

.detail-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-spec-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.detail-spec-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.detail-spec-btn.active {
    background: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.detail-buy-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Shipping Payment Modal Info tabs */
.shipping-payment-card {
    max-width: 650px;
    width: 95%;
    padding: 32px !important;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    gap: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-indigo);
    box-shadow: 0 0 8px var(--accent-indigo);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.shipping-payment-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.shipping-methods-list, .payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shipping-method-item, .payment-method-item {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    align-items: flex-start;
}

.method-icon {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-indigo);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    width: 20px;
    height: 20px;
}

.method-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.method-info p {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* ==========================================================================
   VIP Premium UI Bugfixes: Horizontal Qty Controls & Clean Product Card Image Crop
   ========================================================================== */

/* 1. Horizontal Quantity Controls in Product Detail Modal */
.quantity-controller {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-md) !important;
    padding: 6px 12px !important;
    width: auto !important;
    height: auto !important;
}

.quantity-controller .qty-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--border-radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: var(--transition-fast) !important;
}

.quantity-controller .qty-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.qty-num {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    min-width: 28px !important;
    text-align: center !important;
    color: var(--text-primary) !important;
}

/* 2. Premium Image rendering: clean contain view without distorted zoom crops */
.product-card .product-img-container {
    height: 220px !important;
    overflow: hidden !important;
    border-radius: var(--border-radius-md) !important;
    margin-bottom: 20px !important;
}

.product-card .product-image {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
}

.product-card .product-png-img {
    max-height: 160px !important;
    width: auto !important;
    object-fit: contain !important;
    transform: none !important;
    transition: transform var(--transition-normal) !important;
}

.product-card:hover .product-png-img {
    transform: scale(1.05) translate3d(0, -4px, 0) !important;
}

/* 3. Overlap Bugfix: Position the discount badge inside the detail modal inline next to the price */
#product-detail-modal .discount-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-left: 8px !important;
    display: inline-block !important;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25) !important;
    animation: none !important;
    transform: none !important;
}

/* 4. Drawer Footer Inner and Floating Contacts Styles */
.drawer-footer-inner {
    padding: 24px 0 0 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 24px;
}

.floating-contacts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.floating-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #005580);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.35);
}

.floating-btn:hover {
    transform: scale(1.1) translate3d(0, -4px, 0);
}

.floating-btn.whatsapp:hover {
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.floating-btn.telegram:hover {
    box-shadow: 0 12px 32px rgba(0, 136, 204, 0.55);
}

.floating-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: transform 0.25s ease;
}

.floating-btn:hover svg {
    transform: scale(1.05);
}

.floating-btn .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
    .floating-btn .tooltip {
        display: none !important;
    }
}

/* Premium outline and tap highlight cleanup */
button,
a,
.category-tab,
.storage-pill,
.swatch,
.qty-btn,
.icon-btn,
.floating-btn {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

button:focus,
a:focus,
.category-tab:focus,
.storage-pill:focus,
.swatch:focus,
.qty-btn:focus,
.icon-btn:focus,
.floating-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

