/* Prismatic Sports - Modern Design System */
/* Professional E-commerce Design System - All colors MUST be HSL */

/* Import Fonts */
@font-face {
    font-family: 'AKSANS 250';
    src: url('../fonts/AKSANS-250.woff2') format('woff2'),
        url('../fonts/AKSANS-250.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Import Mobile Navigation Styles */
@import url('mobile-navigation.css');

/* PWA Native App Styles - Hide browser UI when running as installed app */
@media all and (display-mode: standalone) {

    /* Running as installed PWA - looks like native app */
    body {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Prevent pull-to-refresh in PWA mode */
    body {
        overscroll-behavior-y: contain;
    }

    /* Safe area insets for notched devices */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* iOS Safari specific - when app is fullscreen */
@media all and (display-mode: fullscreen) {
    body {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Support for iOS standalone mode */
@supports (-webkit-touch-callout: none) {
    body.standalone {
        /* Extra padding for iOS status bar */
        padding-top: max(env(safe-area-inset-top), 20px);
    }
}

:root {
    /* Modern Aesthetic Color Palette - Cool Ocean Blues with Warm Coral Accents */
    --background: 210 20% 98%;
    --foreground: 215 25% 26%;

    --card: 0 0% 100%;
    --card-foreground: 215 25% 26%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 26%;

    /* Modern Gradient Black Primary */
    --primary: 0 0% 8%;
    --primary-foreground: 0 0% 100%;
    --primary-hover: 0 0% 15%;

    /* Deep Charcoal Secondary */
    --secondary: 0 0% 95%;
    --secondary-foreground: 0 0% 8%;

    /* Soft Neutrals */
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;

    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 8%;

    /* Modern State Colors */
    --success: 158 64% 52%;
    --success-foreground: 0 0% 100%;
    --warning: 38 92% 50%;
    --warning-foreground: 0 0% 100%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 100%;

    /* Refined Borders & Inputs */
    --border: 0 0% 92%;
    --input: 0 0% 96%;
    --ring: 0 0% 8%;

    /* Stunning Black Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(0 0% 8%), hsl(0 0% 25%));
    --gradient-secondary: linear-gradient(135deg, hsl(0 0% 95%), hsl(0 0% 98%));
    --gradient-hero: linear-gradient(135deg, hsl(0 0% 8% / 0.95), hsl(0 0% 25% / 0.8));
    --gradient-card: linear-gradient(145deg, hsl(0 0% 100%), hsl(0 0% 98%));

    /* Beautiful Shadows */
    --shadow-soft: 0 1px 3px 0 hsl(0 0% 0% / 0.08), 0 1px 2px 0 hsl(0 0% 0% / 0.06);
    --shadow-medium: 0 4px 12px -2px hsl(0 0% 0% / 0.12), 0 2px 8px -2px hsl(0 0% 0% / 0.08);
    --shadow-large: 0 20px 40px -12px hsl(0 0% 0% / 0.18), 0 10px 20px -8px hsl(0 0% 0% / 0.12);
    --shadow-glow: 0 0 0 1px hsl(0 0% 8% / 0.1), 0 4px 16px hsl(0 0% 8% / 0.15);

    /* Premium Typography & Spacing */
    --radius: 0.75rem;
    --font-heading: 'AKSANS 250', sans-serif;
    --font-body: 'AKSANS 250', sans-serif;

    /* Smooth Animation Timings */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
    /* Dark Mode - Modern Ocean Night Theme */
    --background: 215 28% 17%;
    --foreground: 210 20% 98%;

    --card: 215 28% 17%;
    --card-foreground: 210 20% 98%;

    --popover: 215 28% 17%;
    --popover-foreground: 210 20% 98%;

    /* Bright White for Dark Mode */
    --primary: 0 0% 100%;
    --primary-foreground: 0 0% 8%;
    --primary-hover: 0 0% 92%;

    /* Dark Charcoal Secondary */
    --secondary: 0 0% 25%;
    --secondary-foreground: 0 0% 98%;

    /* Dark Mode Neutrals */
    --muted: 0 0% 25%;
    --muted-foreground: 0 0% 70%;

    --accent: 0 0% 25%;
    --accent-foreground: 0 0% 100%;

    /* Dark Mode State Colors */
    --success: 158 64% 52%;
    --success-foreground: 215 28% 17%;
    --warning: 38 92% 50%;
    --warning-foreground: 215 28% 17%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 210 20% 98%;

    /* Dark Borders & Inputs */
    --border: 0 0% 32%;
    --input: 0 0% 25%;
    --ring: 0 0% 100%;

    /* Dark Mode Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(0 0% 100%), hsl(0 0% 92%));
    --gradient-secondary: linear-gradient(135deg, hsl(0 0% 25%), hsl(0 0% 32%));
    --gradient-hero: linear-gradient(135deg, hsl(215 28% 17% / 0.95), hsl(0 0% 25% / 0.8));
    --gradient-card: linear-gradient(145deg, hsl(215 28% 17%), hsl(0 0% 22%));

    /* Dark Mode Shadows */
    --shadow-soft: 0 1px 3px 0 hsl(0 0% 0% / 0.3), 0 1px 2px 0 hsl(0 0% 0% / 0.2);
    --shadow-medium: 0 4px 12px -2px hsl(0 0% 0% / 0.4), 0 2px 8px -2px hsl(0 0% 0% / 0.3);
    --shadow-large: 0 20px 40px -12px hsl(0 0% 0% / 0.5), 0 10px 20px -8px hsl(0 0% 0% / 0.4);
    --shadow-glow: 0 0 0 1px hsl(0 0% 100% / 0.15), 0 4px 16px hsl(0 0% 100% / 0.2);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
}

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

/* Mobile responsive base font */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
        width: 100% !important;
    }

    footer {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Remove any potential gaps */
    body>*:last-child {
        margin-bottom: 0 !important;
    }

    #app,
    #main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    :root {
        --radius: 0.5rem;
        --shadow-soft: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
        --shadow-medium: 0 2px 8px -2px hsl(0 0% 0% / 0.1);
        --shadow-large: 0 10px 20px -5px hsl(0 0% 0% / 0.15);
        --shadow-glow: 0 0 0 1px hsl(0 0% 8% / 0.08), 0 2px 8px hsl(0 0% 8% / 0.12);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

/* ========================= Hero / Carousel System ========================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: hsl(var(--background));
}

.hero.fullscreen {
    min-height: 100vh;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 62rem;
    padding: clamp(1.5rem, 4vw, 4rem) clamp(1.25rem, 3vw, 3rem);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    letter-spacing: .08em;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: .55rem 1rem;
    border-radius: 999px;
    color: #fff;
}

.dark .hero-eyebrow {
    background: rgba(0, 0, 0, .35);
    border-color: rgba(255, 255, 255, .2);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.02em;
    margin: 0 0 1.25rem;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    color: #fff;
}

.hero-title .gradient {
    background: linear-gradient(90deg, #fde047, #f59e0b);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: clamp(1rem, 2.1vw, 1.4rem);
    line-height: 1.5;
    max-width: 58ch;
    color: rgba(255, 255, 255, .88);
    font-weight: 400;
    margin: 0 0 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}

.hero-actions .btn-lg {
    font-size: .95rem;
    font-weight: 600;
    padding: .95rem 2.1rem;
    border-radius: var(--radius);
    min-height: 3.25rem;
}

.hero-actions .btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .35);
    transition: all var(--transition-normal);
}

.hero-actions .btn-outline-white:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .55);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25));
    opacity: .85;
    z-index: 1;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Ensure background helper classes applied to .hero-media divs render properly */
.hero-media.hero-t-shirts,
.hero-media.hero-sports,
.hero-media.hero-jackets,
.hero-media.hero-shorts,
.hero-media.hero-kids {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.25rem;
}

.hero-badge {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .08em;
    padding: .5rem .75rem;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
}

/* Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(4%);
    transition: opacity .9s var(--transition-normal), transform 1.2s cubic-bezier(.16, .8, .24, 1);
    will-change: opacity, transform;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.exit-left {
    opacity: 0;
    transform: translateX(-4%);
}

/* ========================= Catalogue Sidebar Enhancements ========================= */
.chevron-rotated {
    transform: rotate(180deg);
    transition: transform .25s ease;
}

.category-item .subcategories.animating {
    transition: max-height .28s ease, opacity .25s ease;
    opacity: 1;
}

.category-item .subcategories.hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .category-item .subcategories.animating {
        transition: none;
    }

    .chevron-rotated {
        transition: none;
    }
}

/* Search term highlight (optional utility) */
.catalogue-highlight {
    background: #fde68a;
    color: #78350f;
    border-radius: 3px;
    padding: 0 2px;
}

.hero-progress {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .6rem;
    z-index: 10;
}

.hero-dot {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background .3s;
}

.hero-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fde047;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform linear;
}

.hero-dot.is-active {
    background: rgba(189, 6, 6, 0.55);
}

.hero-dot.is-active::after {
    transform: scaleX(1);
    transition: transform 5s linear;
}

@media (max-width: 900px) {
    .hero {
        min-height: 92vh;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .hero-sub {
        font-size: clamp(.95rem, 2.9vw, 1.15rem);
        margin-bottom: 1.75rem;
    }

    .hero-actions .btn-lg {
        padding: .85rem 1.6rem;
        min-height: 3rem;
    }
}

@media (max-width:600px) {
    .hero {
        min-height: 88vh;
    }

    .hero-content {
        padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 1.75rem);
    }

    .hero-actions {
        gap: .75rem;
    }

    .hero-actions .btn-lg {
        flex: 1 1 100%;
        text-align: center;
    }

    .hero-progress {
        bottom: .85rem;
    }

    .hero-badges {
        margin-top: 1.5rem;
    }
}

/* Dark mode adjustments */
.dark .hero-overlay {
    opacity: .9;
}

.dark .hero-actions .btn-outline-white {
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}

.dark .hero-actions .btn-outline-white:hover {
    background: rgba(255, 255, 255, .15);
}

/* Safety: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity .6s ease !important;
        transform: none !important;
    }

    .hero-slide.is-active {
        transform: none !important;
    }

    .hero-dot.is-active::after {
        transition: none;
        transform: scaleX(1);
    }
}

/* ========================= Service Video Cards ========================= */
.service-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (max-width:900px) {
    .service-grid {
        gap: 1.5rem;
    }
}

@media (max-width:640px) {
    .service-grid {
        gap: 1.1rem;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.service-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-medium);
    transition: transform .5s var(--transition-normal), box-shadow .5s var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
}

.service-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #111;
    overflow: hidden;
}

@media (max-width:900px) {
    .service-media {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width:640px) {
    .service-media {
        aspect-ratio: 1 / 1;
    }
}

.service-media video,
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15));
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
}

.service-label {
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

@media (max-width:640px) {
    .service-label {
        font-size: .75rem;
    }
}

/* ========================= Hero Background Image Helpers ========================= */
.hero-t-shirts {
    background: url('/assets/images/hero/Final-3.jpg') center/cover no-repeat;
}

.hero-sports {
    background: url('/assets/images/hero/sports.png') center/cover no-repeat;
}

.hero-jackets {
    background: url('/assets/images/hero/jackets.png') center/cover no-repeat;
}

.hero-shorts {
    background: url('/assets/images/hero/shorts.png') center/cover no-repeat;
}

.hero-kids {
    background: url('/assets/images/hero/kids.png') center/cover no-repeat;
}

/* ========================= Incremental Hero Rebuild (v2) ========================= */
.hero-base {
    position: relative;
    min-height: calc(100vh - 47px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-base img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-base::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .25));
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    color: #fff;
}

.hero-title-simple {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.hero-sub-simple {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    max-width: 52ch;
    line-height: 1.4;
    opacity: .92;
    margin: 0 0 1.5rem;
}

/* Fade layer system */
.hero-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-layer.is-active {
    opacity: 1;
}

.hero-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive hero picture support */
.hero-layer.hero-has-picture {
    background: none;
}

.hero-media-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-media-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width:1024px) {
    .hero-base {
        min-height: calc(100vh - 47px);
    }

    .hero-title-simple {
        font-size: clamp(1.9rem, 7vw, 3rem);
    }
}

@media (max-width:640px) {
    .hero-base {
        min-height: calc(100vh - 47px);
    }

    .hero-title-simple {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-sub-simple {
        font-size: clamp(.9rem, 3.5vw, 1.05rem);
    }
}

.hero-layer .hero-container {
    position: relative;
    z-index: 2;
}

/* Dot navigation */
.hero-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .55rem;
    z-index: 10;
}

.hero-dot-btn {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background .3s ease;
}

.hero-dot-btn.is-active {
    background: #fde047;
}

.hero-dot-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-layer {
        transition: none;
    }
}

@media (max-width:640px) {
    .hero-container {
        padding: 1.75rem 1.1rem;
    }
}



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background: hsl(var(--primary-hover));
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background: hsl(var(--accent));
}

/* Cards */
.card {
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-soft);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

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

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

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

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

@keyframes micro-bounce {

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

    25% {
        transform: translateY(-8px) scale(1.02);
    }

    50% {
        transform: translateY(-4px) scale(1.01);
    }

    75% {
        transform: translateY(-2px) scale(1.005);
    }
}

@keyframes gentle-pulse {

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

    50% {
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

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

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

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

    /* Only move half, since we duplicated */
}

.animate-marquee {
    display: flex;
    animation: marquee 18s linear infinite;
}

/* Utility Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.hover-lift {
    transition: all 0.3s ease-out;
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.hover-bounce:hover {
    animation: micro-bounce 0.6s ease-in-out;
}

.hover-rotate {
    transition: transform 0.3s;
}

.hover-rotate:hover {
    transform: rotate(2deg);
}

.hover-glow {
    transition: all 0.3s;
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.pulse-on-hover:hover {
    animation: gentle-pulse 2s infinite;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.shimmer-effect:hover::before {
    animation: shimmer 0.8s ease-out;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Touch optimization for mobile */
* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover {
        transform: none;
    }

    .hover-bounce:hover {
        animation: none;
    }

    .hover-rotate:hover {
        transform: none;
    }

    button:active,
    [role="button"]:active {
        transform: scale(0.95);
        transition: transform 0.1s ease-out;
    }
}

/* Carousel/Embla specific styles */
.embla {
    overflow: hidden;
}

.embla__container {
    display: flex;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* Line clamp utility */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Transition utilities */
.transition-fast {
    transition-duration: var(--transition-fast);
}

.transition-normal {
    transition-duration: var(--transition-normal);
}

.transition-slow {
    transition-duration: var(--transition-slow);
}

/* Stagger animations */
.stagger-delay-1 {
    animation-delay: 0.1s;
}

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

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

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

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

/* Mobile gradient optimizations */
.mobile-gradient-primary {
    background: var(--gradient-primary);
}

.mobile-gradient-hero {
    background: var(--gradient-hero);
}

@media (max-width: 640px) {
    .mobile-gradient-primary {
        background: linear-gradient(180deg, hsl(0 0% 8%), hsl(0 0% 15%));
    }

    .mobile-gradient-hero {
        background: linear-gradient(180deg, hsl(0 0% 8% / 0.95), hsl(0 0% 15% / 0.8));
    }
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.btn:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: hsl(var(--primary-hover));
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Utility Classes */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fade In Animation */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-on-scroll.animate-fadeIn {
    opacity: 1;
    transform: translateY(0);
}

/* Persistent visibility class used after intersection observer triggers */
.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Safety: if element has both classes, keep it visible */
.fade-in-on-scroll.fade-in,
.fade-in-on-scroll.fade-in-visible,
.fade-in.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ================= Scroll Reveal System ================= */
/* Base hidden state */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(.21, .6, .35, 1), transform 0.7s cubic-bezier(.21, .6, .35, 1), filter 0.7s ease;
    will-change: opacity, transform, filter;
}

html.reveal-ready .reveal {
    visibility: visible;
}

/* Variants initial states */
.reveal[data-reveal="fade"] {
    transform: translateY(12px);
}

.reveal[data-reveal="fade-up"] {
    transform: translateY(32px);
}

.reveal[data-reveal="fade-down"] {
    transform: translateY(-32px);
}

.reveal[data-reveal="fade-left"] {
    transform: translateX(48px);
}

.reveal[data-reveal="fade-right"] {
    transform: translateX(-48px);
}

.reveal[data-reveal="zoom-in"] {
    transform: scale(.92);
    filter: blur(2px);
}

.reveal[data-reveal="zoom-out"] {
    transform: scale(1.08);
    filter: blur(2px);
}

.reveal[data-reveal="flip-up"] {
    transform: perspective(800px) rotateX(25deg) translateY(40px);
    transform-origin: bottom;
}

.reveal[data-reveal="flip-in"] {
    transform: perspective(800px) rotateY(-35deg) translateX(-40px);
    transform-origin: left;
}

/* Active state */
.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.reveal.is-visible[data-reveal^="flip"] {
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
}

/* Stagger support */
[data-reveal-parent]>.reveal {
    transition-delay: var(--reveal-delay, 0s);
}

/* Custom delay utility via data attribute */
.reveal[data-reveal-delay] {
    transition-delay: calc(var(--reveal-base-delay, 0s) + var(--reveal-self-delay, 0s));
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.is-visible {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* Utility helper for faster transitions */
.reveal.fast {
    transition-duration: .45s;
}

.reveal.slow {
    transition-duration: 1s;
}

/* Emphasis variants (optional subtle scale) */
.reveal.emphasis {
    transition-property: opacity, transform, filter, box-shadow;
}

.reveal.emphasis.is-visible {
    box-shadow: 0 4px 32px -8px rgba(0, 0, 0, .12);
}

/* Sequence container helper */
.reveal-sequence>.reveal {
    --reveal-delay: calc(var(--reveal-seq-index, 0) * 90ms);
}

/* Container Styles */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1280px;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Header enhancements for professional appearance */
.header-enhanced {
    position: relative;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.header-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.98) 50%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Fixed header positioning - eliminate gaps */
#header-component {
    top: 0 !important;
    margin: 0;
    padding: 0;
}

#main-content {
    margin-top: 0;
}

/* Premium full-height hero sections */
.hero-full-height {
    min-height: 100vh;
    margin-top: 0;
    padding-top: 0;
}

.logo-enhanced {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.logo-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.logo-enhanced:hover::before {
    left: 100%;
}

/* ================= Responsive System ================= */
/* Breakpoints (mobile-first):
     --sm: 480px (small phones -> larger phones)
     --md: 640px (phablets / small tablets)
     --lg: 768px (tablets landscape)
     --xl: 1024px (small laptops)
     --2xl: 1280px (desktops)
*/

/* Fluid Typography Scale */
html {
    font-size: 15px;
}

@media (min-width:480px) {
    html {
        font-size: 15.5px;
    }
}

@media (min-width:640px) {
    html {
        font-size: 16px;
    }
}

@media (min-width:768px) {
    html {
        font-size: 16.5px;
    }
}

@media (min-width:1024px) {
    html {
        font-size: 17px;
    }
}

@media (min-width:1280px) {
    html {
        font-size: 17.25px;
    }
}

/* Utility: responsive container padding refinement */
.container {
    width: 100%;
}

@media (max-width:479.98px) {
    .container {
        padding-left: .85rem;
        padding-right: .85rem;
    }
}

/* Section vertical rhythm */
.section {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-sm {
    padding-block: clamp(1.25rem, 4vw, 2rem);
}

.section-lg {
    padding-block: clamp(3rem, 8vw, 6rem);
}

/* Responsive Grid Helpers */
.grid-auto-fit-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

@media (min-width:640px) {
    .grid-auto-fit-sm {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.15rem;
    }
}

@media (min-width:1024px) {
    .grid-auto-fit-sm {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.35rem;
    }
}

.grid-auto-fit-md {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.15rem;
}

@media (min-width:640px) {
    .grid-auto-fit-md {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.35rem;
    }
}

@media (min-width:1024px) {
    .grid-auto-fit-md {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.75rem;
    }
}

/* Product grid override enhancement */
@media (max-width:479.98px) {
    #products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }
}

@media (min-width:640px) {
    #products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

@media (min-width:1440px) {
    #products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Contact page two-column refinement on medium screens */
@media (min-width:860px) and (max-width:1099px) {
    .contact-form-card {
        padding: 2rem 1.75rem;
    }
}

@media (max-width:640px) {
    .contact-form-card {
        padding: 1.25rem 1rem;
    }
}

/* Form control density adjustments */
@media (max-width:480px) {

    .contact-input,
    .contact-select,
    .contact-textarea {
        padding: .7rem .75rem;
        font-size: .8rem;
    }

    .btn {
        padding: .55rem .85rem;
    }
}

@media (min-width:1024px) {

    .contact-input,
    .contact-select,
    .contact-textarea {
        font-size: .9rem;
    }
}

/* Header / Nav adaptive spacing (if header uses these utility classes) */
.site-header-tight {
    padding-block: .75rem;
}

@media (min-width:640px) {
    .site-header-tight {
        padding-block: 1rem;
    }
}

@media (min-width:1024px) {
    .site-header-tight {
        padding-block: 1.25rem;
    }
}

/* Card responsiveness */
.card-responsive {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1.25rem;
}

@media (min-width:640px) {
    .card-responsive {
        padding: 1.5rem;
    }
}

@media (min-width:1024px) {
    .card-responsive {
        padding: 2rem;
    }
}

/* Flex wrap helpers */
.flex-wrap-gap {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

@media (min-width:640px) {
    .flex-wrap-gap {
        gap: 1rem;
    }
}

/* Typography refinement for long-form content */
.prose-narrow {
    max-width: 60ch;
}

@media (min-width:1024px) {
    .prose-narrow {
        max-width: 70ch;
    }
}

/* Footer stack adjustments (if footer uses these class hooks) */
@media (max-width:640px) {
    .footer-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width:420px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Safe area support for modern mobile browsers */
body {
    padding-bottom: env(safe-area-inset-bottom);
}


.nav-link-enhanced {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-enhanced:hover::before {
    width: 100%;
}

.action-btn-enhanced {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.action-btn-enhanced:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* ================= Unified Form & Contact Styling (Deduplicated) ================= */
.form-card,
.contact-form-card {
    /* keep legacy class for now */
    position: relative;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 2px);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    animation: formCardFade .5s cubic-bezier(.4, .14, .3, 1);
}

.form-card::before,
.contact-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 8%, hsl(var(--primary) / 0.06), transparent 55%), radial-gradient(circle at 88% 92%, hsl(var(--primary) / 0.07), transparent 60%);
    pointer-events: none;
    opacity: .85;
}

.form-field,
.contact-field-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form-field label,
.contact-field-group label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: hsl(var(--muted-foreground));
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea,
.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    border-radius: calc(var(--radius) - 2px);
    padding: .875rem .95rem;
    font: 500 .875rem/1.4 var(--font-body);
    color: hsl(var(--foreground));
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder,
.contact-input::placeholder,
.contact-textarea::placeholder {
    color: hsl(var(--muted-foreground) / 0.6);
}

input:focus,
select:focus,
textarea:focus,
.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring) / 0.6);
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15), 0 1px 2px hsl(var(--ring) / 0.25);
    background: hsl(var(--background));
}

textarea,
.contact-textarea {
    resize: vertical;
    min-height: 140px;
}

.inline-note,
.contact-inline-note {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: hsl(var(--muted-foreground));
}

.status-note,
.contact-status-message {
    font-size: .75rem;
    color: hsl(var(--muted-foreground));
    min-height: 1.25rem;
}

.warning-text {
    color: hsl(var(--warning));
}

@keyframes formCardFade {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }

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

.dark .form-card::before,
.dark .contact-form-card::before {
    background: radial-gradient(circle at 12% 8%, hsl(var(--primary) / 0.25), transparent 55%), radial-gradient(circle at 88% 92%, hsl(var(--primary) / 0.2), transparent 60%);
}

.dark input[type=text],
.dark input[type=email],
.dark input[type=tel],
.dark select,
.dark textarea,
.dark .contact-input,
.dark .contact-select,
.dark .contact-textarea {
    background: hsl(var(--input));
    border-color: hsl(var(--border));
}

.dark input:focus,
.dark select:focus,
.dark textarea:focus,
.dark .contact-input:focus,
.dark .contact-select:focus,
.dark .contact-textarea:focus {
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25), 0 1px 3px hsl(var(--ring) / 0.35);
}

@media (max-width:400px) {

    .form-card,
    .contact-form-card {
        padding: 1.25rem 1rem;
    }
}


.logo-enhanced {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.logo-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.logo-enhanced:hover::before {
    left: 100%;
}

.nav-link-enhanced {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-enhanced:hover::before {
    width: 100%;
}

.action-btn-enhanced {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.action-btn-enhanced:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Minimal Product Cards */
.product-card-minimal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.product-card-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: hsl(var(--accent-primary));
}

.product-card-minimal .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card-minimal .product-image img {
    transition: transform 0.3s ease;
}

.product-card-minimal:hover .product-image img {
    transform: scale(1.05);
}

.product-card-minimal .product-meta {
    padding: 1rem;
}

.product-card-minimal .product-name {
    font-weight: 600;
    color: hsl(var(--neutral-900));
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card-minimal .product-id {
    font-size: 0.75rem;
    color: hsl(var(--neutral-500));
    font-family: "JetBrains Mono", monospace;
    /* Keeping monospace for code */
    margin-bottom: 0.75rem;
}

.product-card-minimal .product-colors {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.product-card-minimal .color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.product-card-minimal .min-quantity {
    font-size: 0.75rem;
    color: hsl(var(--neutral-600));
    font-weight: 500;
}

/* Enhanced Modal Styling */
.modal-header-enhanced {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--accent-primary)) 0%, hsl(var(--accent-secondary)) 100%);
}

.modal-body-enhanced {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 1rem;
    margin-bottom: 2rem;
}

.main-image {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.thumbnail.active {
    border-color: hsl(var(--accent-primary));
}

.product-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.option-title {
    font-weight: 600;
    color: hsl(var(--neutral-100));
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-badge {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.875rem;
    color: hsl(var(--neutral-200));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, hsl(var(--accent-primary)), hsl(var(--accent-secondary)));
    border-radius: 16px;
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

.json-viewer {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.json-content {
    font-family: "JetBrains Mono", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: hsl(var(--neutral-200));
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.action-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-button.primary {
    background: linear-gradient(135deg, hsl(var(--accent-primary)), hsl(var(--accent-secondary)));
    color: white;
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: hsl(var(--neutral-200));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-button.primary:hover {
    box-shadow: 0 4px 20px hsla(var(--accent-primary), 0.4);
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .product-options {
        grid-template-columns: 1fr;
    }

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

/* Mobile Header Text Optimization - Force smaller text */
@media (max-width: 768px) {
    #header-container h1 {
        font-size: 1.25rem !important;
        letter-spacing: 0.05em !important;
    }

    #header-container .flex-shrink-0 img {
        height: 2.5rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    #header-container h1 {
        font-size: 0.9rem !important;
    }
}