/* ============================================
   CINEMATIC E-COMMERCE — Sonic-Canvas Style
   Dark, Industrial, Premium 3D Print Landing
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES — Dark Cinematic Palette
   ============================================ */
:root {
    /* Colors — Dark industrial palette */
    --color-black: #0A0A0A;
    --color-graphite: #141414;
    --color-dark: #1A1A1A;
    --color-surface: #222222;
    --color-border: #2A2A2A;
    --color-muted: #3A3A3A;
    --color-gray: #666666;
    --color-light: #999999;
    --color-white: #FFFFFF;

    /* Accent — Molten filament orange */
    --color-accent: #FF6B35;
    --color-accent-bright: #FF8855;
    --color-accent-glow: rgba(255, 107, 53, 0.4);
    --color-accent-subtle: rgba(255, 107, 53, 0.1);

    /* Electric alternative */
    --color-electric: #FF4D00;

    /* Typography */
    --font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --text-hero: clamp(3rem, 8vw, 6rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Shadows — Cinematic depth */
    --shadow-glow: 0 0 60px rgba(255, 107, 53, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 107, 53, 0.1);
    --shadow-button: 0 4px 20px rgba(255, 107, 53, 0.3);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions — Smooth, premium easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
    --duration-slower: 800ms;

    /* Layout */
    --container-max: 1440px;
    --header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-height) + var(--space-4));
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Fill Dynamic Island area */
    background-color: var(--color-black);
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    /* Safe areas for Dynamic Island and notch */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Prevent scroll when modal/checkout is open */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--color-accent);
    color: var(--color-black);
}

/* ============================================
   GLOBAL LOADER
   ============================================ */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.global-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-text-container {
    position: relative;
    font-size: 5rem;
    font-weight: 800;
    /* Increased to 800 to look more like a logo */
    font-family: var(--font-family);
    letter-spacing: -0.03em;
    /* text-transform: uppercase; Removed to match logo */
}

/* Background/Base Text */
.loader-text-bg {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    display: block;
}

/* Foreground/Filling Text */
.loader-text-fg {
    position: absolute;
    top: 0;
    left: 0;
    /* Gradient from Orange to Transparent.
       Size 100% width, 200% height.
       Initially positioned to show the transparent part. */
    background: linear-gradient(to top, var(--color-accent) 50%, transparent 50%);
    background-size: 100% 200%;
    background-position: 0% 100%;
    /* Start at bottom (transparent part visible) */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: textFill 2.5s ease-in-out infinite;
    width: 100%;
    height: 100%;
}

@keyframes textFill {
    0% {
        background-position: 0% 100%;
        /* Fully transparent */
    }

    50% {
        background-position: 0% 0%;
        /* Fully filled */
    }

    100% {
        background-position: 0% 0%;
        /* Stay filled for a moment before restarting or loop seamlessly */
    }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* ============================================
   FLOATING HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: background var(--duration-normal) var(--ease-out),
        backdrop-filter var(--duration-normal) var(--ease-out);
}

.header--scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header__logo-img {
    height: 32px;
    width: auto;
    min-width: 32px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer__logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: var(--space-2);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

@media (max-width: 768px) {
    .header__inner {
        padding: 0 var(--space-4);
    }

    .header__logo {
        font-size: var(--text-lg);
    }

    .header__logo-img {
        height: 24px;
    }

    .header__nav {
        gap: var(--space-4);
    }

    .header__link {
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {

    /* On very small screens, hide the text logo and just keep the icon if needed, 
       or just make the nav even more compact. 
       Let's hide the nav text and just show icons or hide it completely 
       to focus on Logo and Cart.
    */
    .header__nav {
        display: none;
    }
}

.header__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-light);
    letter-spacing: 0.01em;
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--duration-normal) var(--ease-out);
}

.header__link:hover {
    color: var(--color-white);
}

.header__link:hover::after {
    width: 100%;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header__cart {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-light);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.header__cart:hover {
    color: var(--color-white);
    background: var(--color-surface);
}

.header__cart svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.header__cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   VIDEO HERO — Full Screen Cinematic
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Fallback only. Overridden by JS inline style. */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.1);
}

/* YouTube iframe fullscreen styling */
#ytPlayer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.78vh;
    /* Fallback */
    /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.7) saturate(1.1);
}

#ytPlayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Loading cover - hides YouTube loader until video plays */
.hero__loading-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: var(--color-black);
    transition: opacity 0.5s ease-out;
}

/* iOS 26 Glass Effect Bar - hides YouTube branding at top */
.hero__glass-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 5;

    /* iOS 26 Liquid Glass effect */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 40%,
            rgba(255, 255, 255, 0.02) 70%,
            transparent 100%);

    /* Frosted glass blur */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);

    /* Subtle inner glow */
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Smooth gradient fade to bottom */
    -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 100%);
    mask-image: linear-gradient(180deg, black 0%, transparent 100%);

    pointer-events: none;
}

/* Fallback poster image */
.hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark gradient overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.4) 0%,
            rgba(10, 10, 10, 0.2) 40%,
            rgba(10, 10, 10, 0.6) 80%,
            rgba(10, 10, 10, 1) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.3) 100%);
}

/* Subtle vignette effect */
.hero__vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-8);
    animation: heroFadeIn 1.2s var(--ease-out) 0.3s both;
}

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

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

.hero__title {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero__title-accent {
    color: var(--color-accent);
    text-shadow: 0 0 60px var(--color-accent-glow);
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.45vw, 1.1rem);
    font-weight: 400;
    color: var(--color-light);
    margin-bottom: var(--space-10);
    letter-spacing: 0.02em;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.85rem 1.7rem;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-accent);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-button);
}

.hero__cta--white {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero__cta--white:hover {
    background: var(--color-light);
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.2) !important;
}

.hero__cta:hover {
    background: var(--color-accent-bright);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(255, 107, 53, 0.4);
}

.hero__cta:active {
    transform: translateY(0) scale(0.98);
}

.hero__cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.hero__cta:hover svg {
    transform: translateY(3px);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-gray);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    text-transform: uppercase;
    animation: heroScrollFadeIn 1.2s var(--ease-out) 0.8s both;
}

@keyframes heroScrollFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 1024px) {
    .hero__scroll {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Payment Methods */
.payment-methods {
    margin: var(--space-8) 0;
}

.payment-methods__title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

/* Hero Payment Icons */
.hero__payments {
    margin-top: var(--space-12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    color: var(--color-gray);
    opacity: 0.7;
    transition: all var(--duration-normal);
}

.hero__payments:hover {
    opacity: 1;
    color: var(--color-light);
}

.payment-icon {
    height: 20px;
    width: auto;
}

/* Ensure Google Pay colors are visible even at lower opacity */
.payment-icon path[fill] {
    transition: opacity var(--duration-normal);
}

.payment-icon-v,
.payment-icon-m {
    height: 20px;
    width: auto;
}

.hero__payments-divider {
    width: 1px;
    height: 16px;
    background: var(--color-border);
    opacity: 0.5;
}

.hero__payments-cards {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .hero__payments {
        gap: var(--space-4);
        margin-top: var(--space-8);
    }
}

.payment-methods__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

@media (max-width: 600px) {
    .payment-methods__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.payment-method {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: all var(--duration-fast);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 500;
    min-height: 80px;
}



.payment-method:hover {
    border-color: var(--color-gray);
}

.payment-method.selected {
    border-color: var(--color-accent);
    background: rgba(255, 107, 53, 0.05);
}

.payment-method__icons {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.payment-icon-small {
    height: 16px;
    width: auto;
    border-radius: 2px;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-gray) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--color-accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        transform: translateY(60px);
        opacity: 1;
    }
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section--dark {
    background: var(--color-graphite);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.section__title {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   PRODUCT GRID — Minimal, Large Imagery
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

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

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .product-card__content {
        padding: var(--space-3);
    }

    .product-card__title {
        font-size: var(--text-sm);
    }

    .product-card__price {
        font-size: var(--text-xs);
    }
}

/* ============================================
   PRODUCT CARD — Minimal, Premium
   ============================================ */
.product-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-dark);
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.product-card__image-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-surface);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__image {
    transform: scale(1.08);
}

.product-card__content {
    padding: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
}

.product-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: -0.01em;
}

.product-card__price {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-accent);
}

/* Hover glow effect */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--color-accent) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.btn--primary {
    color: var(--color-black);
    background: var(--color-accent);
    box-shadow: var(--shadow-button);
}

.btn--primary:hover {
    background: var(--color-accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

.btn--secondary {
    color: var(--color-white);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background: var(--color-muted);
    border-color: var(--color-muted);
}

.btn--lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn--block {
    width: 100%;
}

/* ============================================
   TRUST BAR — Minimal
   ============================================ */
.trust-bar {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-16);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-gray);
    font-size: var(--text-sm);
    font-weight: 500;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    fill: none;
}

.trust-item--fast svg {
    width: 30px;
    height: 30px;
    stroke-width: 1;
}



/* Payment icons */
.payment-icons {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.payment-icon {
    height: 21px;
    min-width: 50px;
    padding: 4px 4px;
    background: white;
    border-radius: 6px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--duration-fast) var(--ease-out);
    object-fit: contain;
    object-position: center;
}

.payment-icon--no-bg {
    background: transparent;
    padding: 4px 0;
}

.payment-icon--mono {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    color: #000;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ============================================
   PAYMENT STATUS MODAL
   ============================================ */
.payment-status-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.payment-status-modal.active {
    display: flex;
}

.payment-status-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.payment-status-modal__content {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-12) var(--space-10);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.4s var(--ease-out);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

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

.payment-status-modal__icon {
    margin-bottom: var(--space-6);
    color: var(--color-accent);
}

.payment-status-modal__icon--error {
    color: #ff4d4d;
}

.payment-status-modal__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.payment-status-modal__message {
    font-size: var(--text-base);
    color: var(--color-muted);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

/* ============================================
   FOOTER — Minimal
   ============================================ */
.footer {
    padding: var(--space-20) 0 var(--space-10);
    background: var(--color-black);
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.footer__tagline {
    font-size: var(--text-base);
    color: var(--color-gray);
    line-height: 1.6;
    max-width: 32ch;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__col-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-gray);
    transition: color var(--duration-fast) var(--ease-out);
    text-decoration: none;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

@media (max-width: 768px) {
    .footer__nav {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: var(--color-graphite);
    z-index: 1600;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.cart-sidebar__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
}

.cart-sidebar__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-gray);
    transition: all var(--duration-fast) var(--ease-out);
}

.cart-sidebar__close:hover {
    background: var(--color-surface);
    color: var(--color-white);
}

.cart-sidebar__close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.cart-sidebar__items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6) var(--space-8);
}

.cart-sidebar__empty {
    text-align: center;
    padding: var(--space-12) 0;
    color: var(--color-gray);
}

.cart-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

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

.cart-item__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item__name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-1);
}

.cart-item__price {
    font-size: var(--text-sm);
    color: var(--color-accent);
}

.cart-item__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.cart-item__qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    color: var(--color-light);
    font-size: var(--text-base);
    transition: all var(--duration-fast) var(--ease-out);
}

.cart-item__qty-btn:hover {
    background: var(--color-muted);
    color: var(--color-white);
}

.cart-item__qty {
    font-size: var(--text-sm);
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item__remove {
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--color-gray);
    transition: color var(--duration-fast) var(--ease-out);
}

.cart-item__remove:hover {
    color: #FF4444;
}

.cart-sidebar__footer {
    padding: var(--space-6) var(--space-8);
    border-top: 1px solid var(--color-border);
    background: var(--color-dark);
}

.cart-sidebar__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.cart-sidebar__total-label {
    font-size: var(--text-base);
    color: var(--color-gray);
}

.cart-sidebar__total-price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--color-black);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal__close {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    color: var(--color-light);
    z-index: 10;
    transition: all var(--duration-fast) var(--ease-out);
}

.product-modal__close:hover {
    background: var(--color-muted);
    color: var(--color-white);
}

.product-modal__close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

.product-modal__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-20) var(--space-8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

@media (max-width: 900px) {
    .product-modal__inner {
        grid-template-columns: 1fr;
        padding-top: var(--space-24);
    }

    .product-modal__gallery {
        position: relative;
        top: 0;
        width: 100%;
        margin-left: 0;
    }

    /* Mobile/tablet: fill container while keeping outer padding + rounded corners */
    .product-modal__image {
        width: 100%;
        height: 70svh;
        min-height: 360px;
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .product-modal__image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }
}

.product-modal__gallery {
    position: sticky;
    top: var(--space-8);
}

.product-modal__image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    overflow: hidden;
}

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

.product-modal__info {
    padding-top: var(--space-4);
}

.product-modal__category {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.product-modal__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.product-modal__price {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-8);
}

.product-modal__description {
    font-size: var(--text-base);
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 48ch;
}

.product-modal__divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-8) 0;
}

.product-modal__quantity {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.product-modal__quantity-label {
    font-size: var(--text-sm);
    color: var(--color-gray);
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quantity-selector__btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--color-light);
    transition: all var(--duration-fast) var(--ease-out);
}

.quantity-selector__btn:hover {
    background: var(--color-muted);
    color: var(--color-white);
}

.quantity-selector__value {
    min-width: 48px;
    text-align: center;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-white);
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--color-black);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.checkout.active {
    opacity: 1;
    visibility: visible;
}

.checkout__inner {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-8);
    padding-bottom: calc(var(--space-16) + 50svh);
    /* Extra space for keyboard */
    min-height: 100%;
    background: var(--color-black);
}

.checkout__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-gray);
    margin-bottom: var(--space-8);
    transition: color var(--duration-fast) var(--ease-out);
}

.checkout__back:hover {
    color: var(--color-white);
}

.checkout__back svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-12);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.progress-step__dot {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    background: var(--color-surface);
    color: var(--color-gray);
    transition: all var(--duration-normal) var(--ease-out);
}

.progress-step--active .progress-step__dot {
    background: var(--color-accent);
    color: var(--color-black);
}

.progress-step--completed .progress-step__dot {
    background: var(--color-accent);
    color: var(--color-black);
}

.progress-step__label {
    font-size: var(--text-sm);
    color: var(--color-gray);
    display: none;
}

@media (min-width: 500px) {
    .progress-step__label {
        display: block;
    }

    .progress-step--active .progress-step__label {
        color: var(--color-white);
    }

    .progress-step--completed .progress-step__label {
        color: var(--color-accent);
    }
}

.progress-step__line {
    flex: 1;
    min-width: 20px;
    max-width: 40px;
    height: 2px;
    background: var(--color-border);
    margin: 0 var(--space-2);
    /* Ensure alignment with dot center */
    align-self: center;
}

.progress-step--completed+.progress-step__line {
    background: var(--color-accent);
}

/* Checkout Section Styling */
.checkout__section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.checkout__section:last-of-type {
    border-bottom: none;
}

.checkout__section-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

/* Checkout Breakdown */
.checkout__breakdown {
    margin-bottom: var(--space-2);
}

.checkout__breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--color-gray);
}

.checkout__breakdown-row span:last-child {
    font-weight: 500;
    color: var(--color-light);
}

/* Checkout Step Wizard */
.checkout__step {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.checkout__step-buttons {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.checkout__step-buttons .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout__step-buttons .btn--secondary {
    flex: 0 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-6);
}

.checkout__next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Order Summary in Step 3 */
.checkout__order-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.checkout__summary-heading {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.checkout__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: var(--space-10);
}

/* Form */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-white);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.form-input::placeholder {
    color: var(--color-muted);
}

.form-input.error {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Payment Methods */
.payment-methods {
    margin: var(--space-8) 0;
}



.payment-method__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-light);
}

.payment-method.selected .payment-method__label {
    color: var(--color-white);
}

/* Order Summary in Checkout */
.order-summary {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-8) 0;
}

.order-summary__title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.order-summary__item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.order-summary__item:last-child {
    border-bottom: none;
}

.order-summary__item-name {
    color: var(--color-gray);
}

.order-summary__item-price {
    color: var(--color-white);
    font-weight: 500;
}

.order-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.order-summary__total-label {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-white);
}

.order-summary__total-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-in {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* Smooth scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slower) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.products-loading,
.products-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-16) var(--space-8);
    color: var(--color-light);
    font-size: var(--text-lg);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Product card placeholder */
.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    font-size: 4rem;
}

/* Cart item placeholder */
.cart-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

/* ============================================
   UPLOAD SECTION
   ============================================ */
.upload-wrapper {
    width: 100%;
    margin-bottom: var(--space-8);
}

.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    background: var(--color-graphite);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--color-accent);
    background: rgba(255, 107, 53, 0.05);
}

.upload-area.has-file {
    border-style: solid;
    padding: var(--space-4);
    background: transparent;
    cursor: default;
    border: none;
}

.upload-icon {
    color: var(--color-gray);
    margin-bottom: var(--space-4);
    transition: color var(--duration-fast);
}

.upload-area:hover .upload-icon {
    color: var(--color-accent);
}

.upload-text {
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.upload-hint {
    color: var(--color-gray);
    font-size: var(--text-sm);
}

/* Print Settings */
.print-settings {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--color-border);
}

.settings-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-light);
    font-size: var(--text-sm);
}

.form-input {
    width: 100%;
    background: var(--color-black);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    color: var(--color-white);
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color var(--duration-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Range Slider Styles */
.range-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    margin-top: -8px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;

    height: 4px;
    cursor: pointer;
    background: var(--color-border);
    border-radius: 2px;
}

/* Nova Poshta Dropdown */
.np-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    z-index: 100;
    margin-top: 4px;
    box-shadow: var(--shadow-card);
}

.np-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--color-light);
    transition: all var(--duration-fast);
}

.np-item:hover {
    background: var(--color-muted);
    color: var(--color-white);
}

.np-item strong {
    color: var(--color-white);
    font-weight: 500;
}

.np-hint {
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-top: 4px;
}

/* Offer Cards */
.offer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
}

.offer-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--duration-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.offer-card.active {
    border-color: var(--color-accent);
    background: rgba(255, 107, 53, 0.05);
    /* accent color low opacity */
    box-shadow: 0 0 0 1px var(--color-accent);
}

.offer-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.offer-card__name {
    font-weight: 600;
    color: var(--color-white);
    font-size: var(--text-lg);
}

.offer-card__price {
    font-weight: 700;
    color: var(--color-accent);
    font-size: var(--text-xl);
}

.offer-card__details {
    font-size: var(--text-sm);
    color: var(--color-light);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.offer-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
}

.offer-card.active .offer-card__check {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.offer-card__check::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-black);
    border-radius: 50%;
    display: none;
}

.offer-card.active .offer-card__check::after {
    display: block;
}

/* Configuration Modal */
.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal);
}

.config-modal.open {
    opacity: 1;
    visibility: visible;
}

.config-modal__content {
    width: 95%;
    max-width: 1400px;
    height: 90svh;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.config-modal__header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-modal__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
}

.config-modal__close {
    background: transparent;
    border: none;
    color: var(--color-light);
    font-size: 1.75rem;
    cursor: pointer;
    padding: var(--space-2);
    line-height: 1;
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: calc(var(--space-2) * -1);
}

.config-modal__close:hover {
    color: var(--color-white);
}

.config-modal__body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 450px;
    overflow: hidden;
}

.config-modal__viewer {
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Ensure it takes full height of the parent grid cell */
}

.config-modal__viewer img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.config-modal__sidebar {
    padding: var(--space-6);
    overflow-y: auto;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.config-modal__section-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

@media (max-width: 1024px) {
    .config-modal__body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .config-modal__viewer {
        height: 400px;
        order: -1;
    }

    .config-modal__sidebar {
        border-left: none;
        border-top: 1px solid var(--color-border);
        overflow: visible;
        padding-bottom: 100px;
        /* Space for fixed bottom buttons if any */
    }
}

/* Configuration Modal Color Options */
.color-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: var(--color-light);
}

.color-option.selected {
    transform: scale(1.15);
    border-color: var(--color-surface);
    box-shadow: 0 0 0 2px var(--color-accent), 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.config-modal__section .custom-select select {
    background-color: var(--color-surface-light);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   PRODUCERS SECTION
   ============================================ */
.producers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.producer-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
    overflow: hidden;
}

.producer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.producer-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-muted);
    box-shadow: var(--shadow-card-hover);
}

.producer-card:hover::before {
    opacity: 1;
}

.producer-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-2);
    background: var(--color-dark);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.producer-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
}

.producer-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-light);
    margin-top: auto;
}

.producer-card__rating {
    color: #FFD700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   Comprehensive mobile fixes for small screens
   ============================================ */

/* Small tablets and large phones */
@media (max-width: 768px) {
    :root {
        --text-hero: clamp(2rem, 6vw, 3.5rem);
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
        --text-xl: 1.125rem;
        --text-lg: 1rem;
        --space-24: 4rem;
        --space-20: 3rem;
        --space-16: 2.5rem;
        --header-height: 60px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .hero {
        min-height: 600px;
    }

    .hero__content {
        padding: 0 var(--space-4);
    }

    .hero__title {
        margin-bottom: var(--space-4);
    }

    .hero__subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-10);
    }

    .hero__cta {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section__header {
        margin-bottom: var(--space-8);
    }

    .section__title {
        font-size: var(--text-3xl);
    }

    .section__subtitle {
        font-size: var(--text-base);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --text-hero: clamp(1.75rem, 8vw, 2.5rem);
        --text-5xl: 1.75rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.25rem;
        --text-2xl: 1.125rem;
        --text-xl: 1rem;
        --text-lg: 0.9375rem;
        --text-base: 0.875rem;
        --text-sm: 0.8125rem;
        --text-xs: 0.75rem;
        --space-24: 3rem;
        --space-20: 2.5rem;
        --space-16: 2rem;
        --space-12: 1.5rem;
        --space-8: 1rem;
        --header-height: 56px;
    }

    .container {
        padding: 0 var(--space-3);
    }

    /* Header */
    .header__inner {
        padding: 0 var(--space-3);
    }

    .header__logo {
        font-size: var(--text-base);
    }

    .header__logo-img {
        height: 20px;
        min-width: 20px;
        display: block;
    }

    .header__cart {
        width: 36px;
        height: 36px;
    }

    .header__cart svg {
        width: 18px;
        height: 18px;
    }

    .header__cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: 2px;
        right: 2px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        /* Fallback only. Overridden by JS inline style. */
        min-height: calc(var(--vh, 1svh) * 100);
        padding-top: calc(var(--header-height) + var(--space-8));
        padding-bottom: var(--space-8);
    }

    .hero__content {
        padding: 0 0.75rem;
        max-width: 100%;
    }

    .hero__title {
        font-size: 1.75rem;
        /* Explicit for Safari */
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }

    .hero__subtitle {
        font-size: 0.8125rem;
        /* Explicit for Safari */
        margin-bottom: 2.5rem;
        line-height: 1.5;
    }

    .hero__actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero__cta {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
        /* Explicit for Safari */
        justify-content: center;
    }

    .hero__cta svg {
        width: 16px;
        height: 16px;
    }

    .hero__scroll {
        bottom: var(--space-6);
    }

    .hero__payments {
        margin-top: var(--space-6);
        gap: var(--space-3);
        flex-wrap: wrap;
        justify-content: center;
    }

    .payment-icon,
    .payment-icon-v,
    .payment-icon-m {
        height: 16px;
    }

    /* Trust Bar Mobile */
    .trust-bar__inner {
        flex-direction: column;
        gap: var(--space-6);
    }

    .trust-item {
        width: 100%;
        justify-content: center;
    }

    .payment-icons {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-2);
    }

    /* Sections */
    .section {
        padding: var(--space-12) 0;
    }

    .section__header {
        margin-bottom: var(--space-6);
    }

    .section__label {
        font-size: 0.625rem;
        letter-spacing: 0.1em;
        margin-bottom: var(--space-2);
    }

    .section__title {
        font-size: 1.125rem;
        /* Explicit for Safari */
        margin-bottom: 0.5rem;
    }

    .section__subtitle {
        font-size: 0.8125rem;
        /* Explicit for Safari */
    }

    /* Product Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

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

    .product-card__content {
        padding: 0.75rem;
    }

    .product-card__title {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .product-card__price {
        font-size: 0.75rem;
    }

    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }

    .btn--lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }

    .footer__grid {
        gap: var(--space-6);
    }

    .footer__brand-text {
        font-size: var(--text-sm);
    }

    .footer__logo-img {
        height: 32px;
    }

    .footer__nav {
        gap: var(--space-4);
    }

    .footer__nav-title {
        font-size: var(--text-sm);
        margin-bottom: var(--space-2);
    }

    .footer__nav-link {
        font-size: var(--text-xs);
        padding: var(--space-1) 0;
    }

    .footer__copyright {
        font-size: var(--text-xs);
    }

    /* Cart Sidebar */
    .cart-sidebar {
        max-width: 100%;
    }

    .cart-sidebar__header {
        padding: var(--space-4) var(--space-4);
    }

    .cart-sidebar__title {
        font-size: var(--text-lg);
    }

    .cart-sidebar__items {
        padding: var(--space-3);
    }

    .cart-item {
        padding: var(--space-3);
        gap: var(--space-2);
    }

    .cart-item__image {
        width: 60px;
        height: 60px;
    }

    .cart-item__name {
        font-size: var(--text-sm);
    }

    .cart-item__price {
        font-size: var(--text-sm);
    }

    .cart-sidebar__footer {
        padding: var(--space-4);
    }

    /* Checkout */
    .checkout__inner {
        padding: var(--space-4);
    }

    .checkout__header {
        padding: var(--space-4);
    }

    .checkout__title {
        font-size: var(--text-lg);
    }

    .checkout__step h3 {
        font-size: var(--text-base);
        margin-bottom: var(--space-3);
    }

    .form-group label {
        font-size: var(--text-sm);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents iOS Safari auto-zoom on focus */
        padding: var(--space-3);
    }

    .progress-steps {
        gap: var(--space-1);
    }

    .progress-step {
        font-size: var(--text-xs);
        padding: var(--space-2);
    }

    /* Payment Status Modal */
    .payment-status-modal__content {
        padding: var(--space-6) var(--space-4);
        margin: var(--space-4);
        width: calc(100% - var(--space-8));
    }

    .payment-status-modal__icon svg {
        width: 48px;
        height: 48px;
    }

    .payment-status-modal__title {
        font-size: var(--text-lg);
    }

    .payment-status-modal__message {
        font-size: var(--text-sm);
    }

    /* Product Modal */
    .product-modal__inner {
        display: flex;
        flex-direction: column;
        padding: var(--space-4);
        padding-top: var(--space-16);
        gap: var(--space-4);
    }

    .product-modal__gallery {
        position: relative;
        top: 0;
        width: 100%;
        margin-left: 0;
    }

    .product-modal__image {
        width: 100%;
        height: 70svh;
        min-height: 360px;
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .product-modal__image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .product-modal__info {
        padding-top: 0;
    }

    .product-modal__close {
        top: var(--space-3);
        right: var(--space-3);
        width: 40px;
        height: 40px;
    }

    .product-modal__close svg {
        width: 20px;
        height: 20px;
    }

    .product-modal__content {
        padding: var(--space-4);
        max-height: 90svh;
    }

    .product-modal__title {
        font-size: var(--text-lg);
    }

    .product-modal__price {
        font-size: var(--text-xl);
    }

    .product-modal__description {
        font-size: var(--text-sm);
    }

    /* Upload Section */
    .upload-zone {
        padding: var(--space-6);
    }

    .upload-zone__icon {
        width: 48px;
        height: 48px;
    }

    .upload-zone__title {
        font-size: var(--text-base);
    }

    .upload-zone__subtitle {
        font-size: var(--text-xs);
    }

    /* Producer Cards */
    .producer-card {
        padding: var(--space-4);
    }

    .producer-card__icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .producer-card__name {
        font-size: var(--text-base);
    }

    .producer-card__info {
        font-size: var(--text-xs);
    }

    /* Payment Methods */
    .payment-methods__grid {
        grid-template-columns: 1fr 1fr;
    }

    .payment-method {
        padding: var(--space-2);
        min-height: 60px;
        font-size: 0.625rem;
    }

    .payment-icon-small {
        height: 14px;
    }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 360px) {
    :root {
        --text-hero: 1.5rem;
        --text-5xl: 1.5rem;
        --text-4xl: 1.25rem;
        --text-3xl: 1.125rem;
        --text-2xl: 1rem;
        --text-xl: 0.9375rem;
        --text-lg: 0.875rem;
        --text-base: 0.8125rem;
        --text-sm: 0.75rem;
        --text-xs: 0.6875rem;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__cta {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .products-grid {
        gap: var(--space-1);
    }

    .product-card__content {
        padding: var(--space-2);
    }

    .product-card__title {
        font-size: 0.625rem;
    }

    .product-card__price {
        font-size: 0.625rem;
    }

    .section__title {
        font-size: var(--text-xl);
    }
}

/* ============================================
   NOVA POSHTA DROPDOWN STYLES
   ============================================ */
.np-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    /* More spacing from input */
    left: 0;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background: #1e1e1e;
    /* Slightly lighter than pure black/surface */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    /* Larger radius */
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);

    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray) transparent;
}

.np-dropdown::-webkit-scrollbar {
    width: 6px;
}

.np-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.np-dropdown::-webkit-scrollbar-thumb {
    background-color: var(--color-muted);
    border-radius: 3px;
}

.np-option {
    padding: 14px 16px;
    /* 14px vertical padding for touch targets */
    font-family: var(--font-family);
    /* Enforce global font */
    font-size: 0.95rem;
    /* Slightly larger text */
    font-weight: 400;
    color: #e0e0e0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.np-option:last-child {
    border-bottom: none;
}

.np-option:hover {
    background: rgba(255, 107, 53, 0.1);
    /* Subtle accent tint */
    color: var(--color-white);
    padding-left: 20px;
    /* Slide effect */
}