/**
 * Fast4U Shop — Stylesheets & Flyer-inspired Components + Accessibility & CWV Polish
 * Version : v004.000.000 (T-161)
 * shop.fast4u.co/assets/css/shop.css
 */

* {
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
}

code, kbd, samp, pre, .font-mono, [class*="font-mono"] {
    font-family: 'JetBrains Mono', monospace !important;
    font-variant-numeric: tabular-nums;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

:root {
    --f4-brand: #00c4ff;
    --f4-accent: #10b981;
    --f4-purple: #583bff;
    --f4-dark: #070b14;
    --f4-card: #0d1424;
    --f4-border: #1e293b;
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    background-color: var(--f4-dark);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--f4-dark);
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f1f5f9;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

/* Editorial Measure for Long Prose & Disclaimers */
.f4-prose-measure {
    max-width: 70ch;
}

/* Keyboard Focus Ring (WCAG 2.2 AA/AAA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--f4-brand);
    outline-offset: 2px;
}

/* Accessible Skip-to-Content Link */
.f4-skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 10000;
    padding: 0.625rem 1rem;
    background: var(--f4-brand);
    color: #020617;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    transition: top 180ms ease-out;
}

.f4-skip-link:focus {
    top: 0.75rem;
}

/* Flyer Product Card Calibrated Spring Transition */
.f4-product-card {
    transition:
        transform 240ms var(--ease-spring),
        border-color 200ms ease-out,
        box-shadow 240ms ease-out;
}

.f4-product-card:hover {
    transform: translateY(-4px);
}

/* Grille de Produits Ultra-Responsive Originale (1 / 2 / 4 / 6 / 8 / 10 colonnes) */
.f4-product-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

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

@media (min-width: 1024px) {
    .f4-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1536px) {
    .f4-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 2000px) {
    .f4-product-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 2560px) {
    .f4-product-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 0.875rem;
    }
}

/* Studio Surfaces for Dedicated Product Page & Cart Thumbnails */
.f4-titanium-surface {
    background-color: var(--f4-card);
    border: 1px solid rgba(30, 41, 59, 0.9);
}

.f4-studio-stage {
    background-color: rgba(2, 6, 23, 0.45);
}

.f4-studio-stage-hd {
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 196, 255, 0.10) 0%, rgba(13, 20, 36, 0.55) 55%, rgba(7, 11, 20, 0.96) 100%);
}

/* Slide-over Cart transitions */
#cartDrawer {
    transition: transform 260ms var(--ease-spring);
}

#cartDrawer.translate-x-full {
    transform: translateX(100%);
}

#cartDrawer:not(.translate-x-full) {
    transform: translateX(0);
}

/* Centered Translucent Glass Toast Notifications (Haute Lisibilité) */
@keyframes f4CenterToastEnter {
    0% {
        opacity: 0;
        transform: scale(0.88) translate3d(0, 16px, 0);
    }
    65% {
        transform: scale(1.02) translate3d(0, -2px, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
    }
}

@keyframes f4CenterToastExit {
    0% {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.92) translate3d(0, -8px, 0);
    }
}

.f4-center-toast {
    animation: f4CenterToastEnter 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: linear-gradient(135deg, rgba(6, 14, 32, 0.82) 0%, rgba(10, 24, 52, 0.72) 100%);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.90),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.f4-center-toast-emerald {
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.90),
        0 0 32px rgba(16, 185, 129, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(16, 185, 129, 0.20);
}

.f4-center-toast-cyan {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.90),
        0 0 32px rgba(0, 229, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(0, 229, 255, 0.20);
}

.f4-center-toast-rose {
    border-color: rgba(251, 113, 133, 0.55);
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.90),
        0 0 32px rgba(244, 63, 94, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(244, 63, 94, 0.20);
}

.f4-center-toast.f4-toast-leaving {
    animation: f4CenterToastExit 180ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.f4-toast {
    animation: f4CenterToastEnter 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.f4-toast-leaving {
    animation: f4CenterToastExit 180ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Fast4u Brand Logo Outer Glow & Shimmer */
@keyframes f4-logo-shimmer {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(0, 196, 255, 0.45)) drop-shadow(0 0 14px rgba(0, 196, 255, 0.25));
        opacity: 0.95;
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.75)) drop-shadow(0 0 22px rgba(0, 196, 255, 0.5)) drop-shadow(0 0 32px rgba(56, 189, 248, 0.35));
        opacity: 1;
    }
}

.f4-brand-logo-glow {
    animation: f4-logo-shimmer 3.2s ease-in-out infinite;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.f4-brand-logo-glow:hover {
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.9)) drop-shadow(0 0 28px rgba(0, 196, 255, 0.65));
    transform: scale(1.05);
}

/* Print Invoice styles */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    header, footer, .no-print, #cartDrawer, #cartDrawerBackdrop, #shopToastContainer, #quickViewModal {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    .printable-invoice {
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: none !important;
        padding: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .printable-invoice * {
        color: #0f172a !important;
    }
}

/* GPU Brand Gradient Iridescent Text Styles (No box, no border) */
.gpu-text-nvidia {
    background: linear-gradient(135deg, #76b900 0%, #a4e030 50%, #4c8200 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(118, 185, 0, 0.35));
}

.gpu-text-intel {
    background: linear-gradient(135deg, #0071c5 0%, #29b6f6 50%, #003c71 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 113, 197, 0.35));
}

.gpu-text-amd {
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 50%, #ed1c24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.35));
}

/* ==========================================================================
   Luminous Translucent Glass Header + Full-Bleed Ken Burns & Parallax Stage
   Version : v004.000.001 (T-161 Visual Illumination & Motion Pass)
   ========================================================================== */

.f4-header-glass {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(
        180deg,
        rgba(4, 14, 32, 0.40) 0%,
        rgba(5, 12, 26, 0.26) 100%
    );
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    border-bottom: 1px solid rgba(0, 196, 255, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(0, 229, 255, 0.55),
        inset 0 -1px 0 rgba(0, 196, 255, 0.18),
        0 8px 32px rgba(2, 6, 23, 0.45),
        0 1px 24px rgba(0, 196, 255, 0.16);
    transition:
        background-color 260ms ease,
        backdrop-filter 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease;
}

/* Radiant atmospheric aura shining through the header from behind */
.f4-header-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 90% 160% at 50% -20%,
        rgba(0, 229, 255, 0.42) 0%,
        rgba(56, 189, 248, 0.22) 36%,
        rgba(37, 99, 235, 0.12) 65%,
        transparent 85%
    );
}

/* Glowing electric cyan hairline at the top edge */
.f4-header-glass::after {
    content: "";
    position: absolute;
    top: 0;
    left: 2%;
    right: 2%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.85) 15%, rgba(186, 230, 253, 0.98) 50%, rgba(0, 229, 255, 0.85) 85%, transparent 100%);
    pointer-events: none;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.90), 0 0 32px rgba(0, 196, 255, 0.50);
}

.f4-header-glass.is-scrolled {
    background: linear-gradient(
        180deg,
        rgba(5, 12, 28, 0.65) 0%,
        rgba(6, 14, 30, 0.52) 100%
    );
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom-color: rgba(0, 208, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(0, 229, 255, 0.65),
        0 14px 40px rgba(2, 6, 23, 0.65),
        0 2px 28px rgba(0, 196, 255, 0.22);
}

.f4-header-subbar-glass {
    background: rgba(4, 10, 24, 0.18);
    border-top: 1px solid rgba(56, 189, 248, 0.20);
}

.f4-header-capsule {
    background: rgba(8, 18, 38, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 200ms ease;
}

.f4-header-capsule:hover {
    background: rgba(12, 26, 56, 0.54);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 14px rgba(0, 196, 255, 0.24);
}

/* Full-Bleed Diaporama Stage (Bleeds behind Sticky Header at Top & Main Pagination/Grid at Bottom) */
.f4-hero-section {
    position: relative;
    padding-top: 3.5rem;
    padding-bottom: 2.8rem;
}

@media (min-width: 768px) {
    .f4-hero-section {
        padding-top: 4.8rem;
        padding-bottom: 3.6rem;
    }
}

.f4-hero-bleed-stage {
    position: absolute;
    top: -180px;
    left: 0;
    right: 0;
    bottom: -340px;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

/* Dedicated Outer Parallax Track (decoupled from CSS @keyframes so parallax + Ken Burns compose cleanly) */
.f4-hero-parallax-track {
    position: absolute;
    inset: -95px -60px -120px -60px;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
}

.f4-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    filter: brightness(1.24) saturate(1.20) contrast(1.06);
    opacity: 0;
    transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.f4-hero-slide.is-active {
    opacity: 1;
}

/* Illuminated Atmospheric Crown & Horizon Veils (Bright Middle + Feathered Top & Main-Top Bleed) */
.f4-hero-crown-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 84% 55% at 50% 0%, rgba(0, 229, 255, 0.42) 0%, rgba(37, 99, 235, 0.22) 46%, transparent 80%),
        radial-gradient(ellipse 58% 46% at 18% 32%, rgba(0, 196, 255, 0.24) 0%, transparent 72%),
        radial-gradient(ellipse 54% 46% at 82% 34%, rgba(124, 58, 237, 0.24) 0%, transparent 72%);
    mix-blend-mode: screen;
}

.f4-hero-readability-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 18, 0.50) 0%, rgba(5, 10, 22, 0.20) 44%, rgba(5, 10, 22, 0.08) 72%, rgba(4, 8, 18, 0.26) 100%),
        linear-gradient(180deg, rgba(4, 9, 20, 0.16) 0%, rgba(5, 10, 22, 0.04) 22%, rgba(5, 10, 22, 0.06) 54%, rgba(6, 10, 20, 0.26) 72%, rgba(7, 11, 20, 0.62) 86%, rgba(7, 11, 20, 0.92) 97%, #070b14 100%);
}

.f4-hero-dot-matrix {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: radial-gradient(rgba(0, 212, 255, 0.85) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.95) 45%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.95) 45%, transparent 95%);
}

/* Crisp Optical Readability Halo on Illuminated Hero Typography */
.f4-hero-title-glow {
    text-shadow:
        0 2px 24px rgba(2, 6, 23, 0.95),
        0 1px 4px rgba(0, 0, 0, 0.92),
        0 0 28px rgba(0, 196, 255, 0.25);
}

.f4-hero-subtitle-glow {
    text-shadow:
        0 2px 14px rgba(2, 6, 23, 0.96),
        0 1px 3px rgba(0, 0, 0, 0.95);
}

/* Frosted Glass Category Pills, Filter Controls & Top Pagination Bar */
.f4-glass-pill {
    background: rgba(7, 14, 30, 0.52);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 180ms ease;
}

.f4-glass-pill:hover {
    background: rgba(11, 22, 46, 0.72);
    border-color: rgba(0, 196, 255, 0.52);
    box-shadow: 0 4px 20px rgba(0, 196, 255, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.f4-glass-pill-active {
    background: linear-gradient(135deg, #00d4ff 0%, #00b4f0 100%);
    color: #020617 !important;
    border: 1px solid rgba(186, 230, 253, 0.85);
    box-shadow:
        0 0 22px rgba(0, 196, 255, 0.50),
        0 4px 16px rgba(0, 196, 255, 0.30);
}

.f4-hero-divider {
    border-color: rgba(56, 189, 248, 0.22);
}

/* Captivating, Unmistakable Cinema Ken Burns Trajectories (1.00 -> 1.16 scale + 3.5% pan over 15s) */
@keyframes heroKenBurns1 {
    0%   { transform: scale(1.00) translate3d(0%, 0%, 0); }
    100% { transform: scale(1.16) translate3d(-3.6%, -2.2%, 0); }
}

@keyframes heroKenBurns2 {
    0%   { transform: scale(1.15) translate3d(3.2%, -1.8%, 0); }
    100% { transform: scale(1.01) translate3d(-2.6%, 1.8%, 0); }
}

@keyframes heroKenBurns3 {
    0%   { transform: scale(1.01) translate3d(-3.2%, 1.5%, 0); }
    100% { transform: scale(1.17) translate3d(3.2%, -2.4%, 0); }
}

@keyframes heroKenBurns4 {
    0%   { transform: scale(1.15) translate3d(-3.0%, -2.0%, 0); }
    100% { transform: scale(1.00) translate3d(3.0%, 1.8%, 0); }
}

@keyframes heroKenBurns5 {
    0%   { transform: scale(1.00) translate3d(2.8%, 1.8%, 0); }
    100% { transform: scale(1.16) translate3d(-3.2%, -2.0%, 0); }
}

@keyframes heroKenBurns6 {
    0%   { transform: scale(1.01) translate3d(0%, 2.4%, 0); }
    100% { transform: scale(1.16) translate3d(0%, -2.6%, 0); }
}

.hero-kenburns-1  { animation: heroKenBurns1 15s ease-in-out infinite alternate; }
.hero-kenburns-2  { animation: heroKenBurns2 16s ease-in-out infinite alternate; }
.hero-kenburns-3  { animation: heroKenBurns3 15s ease-in-out infinite alternate; }
.hero-kenburns-4  { animation: heroKenBurns4 16s ease-in-out infinite alternate; }
.hero-kenburns-5  { animation: heroKenBurns5 15s ease-in-out infinite alternate; }
.hero-kenburns-6  { animation: heroKenBurns6 16s ease-in-out infinite alternate; }
.hero-kenburns-7  { animation: heroKenBurns1 16s ease-in-out infinite alternate; }
.hero-kenburns-8  { animation: heroKenBurns2 15s ease-in-out infinite alternate; }
.hero-kenburns-9  { animation: heroKenBurns3 16s ease-in-out infinite alternate; }
.hero-kenburns-10 { animation: heroKenBurns4 15s ease-in-out infinite alternate; }
.hero-kenburns-11 { animation: heroKenBurns5 16s ease-in-out infinite alternate; }
.hero-kenburns-12 { animation: heroKenBurns6 15s ease-in-out infinite alternate; }
.hero-kenburns-13 { animation: heroKenBurns2 16s ease-in-out infinite alternate; }
.hero-kenburns-14 { animation: heroKenBurns1 15s ease-in-out infinite alternate; }
.hero-kenburns-15 { animation: heroKenBurns3 16s ease-in-out infinite alternate; }
.hero-kenburns-16 { animation: heroKenBurns4 15s ease-in-out infinite alternate; }
.hero-kenburns-17 { animation: heroKenBurns5 16s ease-in-out infinite alternate; }
.hero-kenburns-18 { animation: heroKenBurns6 15s ease-in-out infinite alternate; }
.hero-kenburns-19 { animation: heroKenBurns1 16s ease-in-out infinite alternate; }
.hero-kenburns-20 { animation: heroKenBurns2 15s ease-in-out infinite alternate; }

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
