/* ==========================================================================
   PPAI 2026 Best In Show - Cinematic Product Showcase
   ========================================================================== */

/* CSS Variables */
:root {
    --bg-dark: #08080c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-tertiary: #ec4899;
    --glow-primary: rgba(99, 102, 241, 0.4);
    --glow-secondary: rgba(168, 85, 247, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-dark);
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.95) 0%, rgba(8, 8, 12, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.nav-logo:hover img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.75rem 1.5rem !important;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-quart) !important;
}

.nav-cta:hover {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--glow-primary);
}

/* Category pills in header */
.nav-categories {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s var(--ease-out-quart);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.nav.scrolled .nav-categories {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-category-pill {
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out-quart);
}

.nav-category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.nav-category-pill.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s forwards;
}

.eyebrow-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px var(--glow-primary);
    filter: drop-shadow(0 0 30px var(--glow-primary));
}

.eyebrow-star {
    color: var(--accent-secondary);
    font-size: 0.8em;
    animation: starPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--glow-secondary));
}

.eyebrow-star:last-child {
    animation-delay: 1s;
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
    animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

.title-line:first-child {
    animation-delay: 0.3s;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero-subtitle a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.hero-subtitle a:hover {
    color: var(--accent-primary);
    border-bottom-color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 1s forwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

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

/* ==========================================================================
   Product Sections
   ========================================================================== */

.products-container {
    position: relative;
}

.product-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.product-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.product-section:nth-child(even)::before {
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.03) 0%, transparent 70%);
}

.product-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.product-inner.layout-right {
    direction: rtl;
}

.product-inner.layout-right > * {
    direction: ltr;
}

/* Product Visual */
.product-visual {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s var(--ease-out-expo);
}

.product-section.is-visible .product-image-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    aspect-ratio: 1;
}

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

.image-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, var(--glow-primary) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.product-image-wrapper:hover .image-glow {
    opacity: 0.5;
}

/* Product Info */
.product-info {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-out-expo) 0.2s;
}

.product-section.is-visible .product-info {
    opacity: 1;
    transform: translateY(0);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.product-category {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
}

.badge-eco {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-usa {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.product-name {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0;
}

.product-moq {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 40px;
}

.moq-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.moq-value {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-value {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}

.product-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-cta span,
.product-cta svg {
    position: relative;
    z-index: 1;
}

.product-cta svg {
    transition: transform 0.4s var(--ease-out-quart);
}

.product-cta:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 20px 60px var(--glow-primary);
}

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

.product-cta:hover svg {
    transform: translate(4px, -4px);
}

/* Product Decoration */
.product-decoration {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
}

.deco-line {
    display: block;
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, var(--border-subtle) 0%, transparent 100%);
}

/* ==========================================================================
   Footer CTA
   ========================================================================== */

.footer-cta {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.footer-cta-content {
    position: relative;
    z-index: 10;
}

.footer-cta h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.footer-cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s var(--ease-out-quart);
}

.cta-button svg {
    transition: transform 0.4s var(--ease-out-quart);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 80px var(--glow-primary);
}

.cta-button:hover svg {
    transform: translateX(6px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .nav {
        padding: 1rem 2rem;
    }

    .product-section {
        padding: 6rem 2rem;
    }

    .product-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-inner.layout-right {
        direction: ltr;
    }

    .product-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .product-info {
        text-align: center;
    }

    .product-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero-title {
        font-size: clamp(5rem, 25vw, 100px);
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-image-frame {
        overflow: hidden;
        min-width: 300px;
    }

    /* Force visibility on mobile - don't rely on JS */
    .product-image-wrapper {
        opacity: 1 !important;
        transform: none !important;
    }

    .product-info {
        opacity: 1 !important;
        transform: none !important;
    }

    .product-image {
        opacity: 1 !important;
    }

    .product-section {
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .product-name {
        font-size: 1.75rem;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .product-cta {
        width: 100%;
        justify-content: center;
    }

    .product-decoration {
        display: none;
    }

    .footer-cta {
        min-height: auto;
        padding: 4rem 1.5rem;
    }
}

/* ==========================================================================
   Animations for Scroll Trigger (controlled by JS)
   ========================================================================== */

.product-section .product-image-wrapper,
.product-section .product-info {
    will-change: transform, opacity;
}

/* Stagger animation for elements */
.product-meta > * {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease-out-expo);
}

.product-section.is-visible .product-meta > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.3s; }
.product-section.is-visible .product-meta > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.4s; }
.product-section.is-visible .product-meta > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.5s; }
.product-section.is-visible .product-meta > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.6s; }

/* ==========================================================================
   Special Effects
   ========================================================================== */

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9998;
}

/* Mouse follower glow - controlled by JS */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Category Navigation
   ========================================================================== */

.category-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: opacity 0.4s var(--ease-out-quart);
}

.category-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out-quart);
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.category-pill.active .category-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Category Section Headers
   ========================================================================== */

.category-section {
    scroll-margin-top: 70px;
}

/* Placeholder space when nav becomes fixed */
.category-nav-placeholder {
    height: 0;
    transition: height 0.3s ease;
}

.category-nav-placeholder.is-active {
    height: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-product-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
}

/* ==========================================================================
   Mobile Side Navigation (Dots)
   ========================================================================== */

.side-nav {
    display: none;
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    flex-direction: column;
    gap: 1rem;
}

.side-nav-dot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.5rem;
}

.side-nav-dot .dot {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out-quart);
}

.side-nav-dot .dot-label {
    position: absolute;
    right: 2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s var(--ease-out-quart);
    pointer-events: none;
}

.side-nav-dot:hover .dot-label {
    opacity: 1;
    transform: translateX(0);
}

.side-nav-dot:hover .dot {
    background: var(--accent-primary);
    transform: scale(1.3);
}

.side-nav-dot.active .dot {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--glow-primary);
}

/* ==========================================================================
   Responsive - Category Nav
   ========================================================================== */

@media (max-width: 768px) {
    .category-nav {
        display: none;
    }

    .nav-categories {
        display: none !important;
    }

    .side-nav {
        display: flex;
    }

    .category-header {
        padding: 3rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .category-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Shopping Bag / Cart
   ========================================================================== */

/* Nav Cart Button */
.nav-cart {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-quart);
}

.nav-cart:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease-out-quart);
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* Product Actions Container */
.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-add-bag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #a855f7;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.product-add-bag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.product-add-bag.added {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
}

.product-add-bag.added span {
    display: none;
}

.product-add-bag.added::after {
    content: 'Added!';
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-quart);
    z-index: 1998;
}

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

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-quart);
    z-index: 1999;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.cart-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 1rem;
}

.cart-empty svg {
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.cart-empty span {
    font-size: 0.85rem;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    animation: slideIn 0.3s var(--ease-out-quart);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
}

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

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

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #ef4444;
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-glass);
}

.cart-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 0.75rem;
}

.cart-share,
.cart-checkout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.cart-share {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.cart-share:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.cart-share.copied {
    border-color: #22c55e;
    color: #22c55e;
}

.cart-checkout {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
}

.cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-primary);
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-quart);
    z-index: 2000;
}

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

.checkout-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2rem;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-out-quart);
}

.checkout-modal.open .checkout-content {
    transform: scale(1) translateY(0);
}

.checkout-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.checkout-close:hover {
    color: var(--text-primary);
}

.checkout-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.checkout-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: 12px;
}

.checkout-preview-item {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

.checkout-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-preview-more {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

#checkoutForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

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

.checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 100px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.checkout-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-primary);
}

.checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.checkout-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.checkout-success.visible {
    display: flex;
}

.checkout-success svg {
    color: #22c55e;
    margin-bottom: 1.5rem;
}

.checkout-success h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.checkout-success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.checkout-done {
    padding: 1rem 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.checkout-done:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

#checkoutForm.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-add-bag {
        width: 100%;
        justify-content: center;
    }

    .checkout-content {
        padding: 1.5rem;
        border-radius: 16px;
    }
}
