/* 
   Liudiam Premium Design System 
   Style: Techwear, Brutalist, Industrial Luxury
   Version: 5.2 (Mobile Optimizations)
*/

:root {
    /* Colors - Deep & Industrial */
    --bg-color: #050505;
    --surface-color: #0a0a0a;
    --surface-hover: #141414;

    --text-primary: #E5E5E5;
    --text-secondary: #888888;
    --text-tertiary: #444444;

    --border-color: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.2);

    /* Accents */
    --accent-color: #FFFFFF;
    --status-green: #00AA00;
    --status-orange: #FF4400;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --spacing-xxl: 12rem;

    /* Layout */
    --container-width: 100%;
    --container-padding: 5vw;
    /* More air */
    --header-height: 80px;
    /* Taller header */

    /* Animation */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --header-bg: rgba(5, 5, 5, 0.95);
    --hero-overlay: linear-gradient(to right, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 50%, rgba(5, 5, 5, 0.4) 100%);
}

[data-theme="light"] {
    --bg-color: #F5F5F7;
    --surface-color: #FFFFFF;
    --surface-hover: #EAEAEA;

    --text-primary: #111111;
    --text-secondary: #555555;
    --text-tertiary: #999999;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);

    --accent-color: #000000;
    --status-green: #00AA00;

    --header-bg: rgba(255, 255, 255, 0.95);
    --hero-overlay: linear-gradient(to right, rgba(245, 245, 247, 0.9) 0%, rgba(245, 245, 247, 0.6) 50%, rgba(245, 245, 247, 0.1) 100%);
}

[data-theme="light"] .logo img {
    filter: invert(1);
}

.hero-img-light {
    display: none;
}

[data-theme="light"] .hero-img-dark {
    display: none;
}

[data-theme="light"] .hero-img-light {
    display: block;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    /* Force sharp edges */
}

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

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

/* Premium Polish: Selection */
::selection {
    background: var(--status-orange);
    color: #000;
}

/* Premium Polish: Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 0;
    /* Sharp scrollbar */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    /* Slightly more open */
    line-height: 1.2;
    /* Better readability */
    text-transform: uppercase;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    /* More space */
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 65ch;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-details {
    width: 100%;
    max-width: 1320px;
    /* Wider for better layout */
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-wide {
    width: 100%;
    max-width: 98vw;
    /* Almost full width but with air */
    margin: 0 auto;
    padding: 0 2rem;
    /* Small premium margins */
}

.container-wide .page-header {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Size Chart Fixes */
.size-chart-table {
    width: 100%;
    border-collapse: collapse;
}

.size-chart-table th,
.size-chart-table td {
    padding: 0.75rem;
    text-align: center !important;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.size-chart-table th:first-child,
.size-chart-table td:first-child {
    text-align: left !important;
    font-weight: 500;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    cursor: pointer;
    /* transition видалено звідси повністю */
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

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

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

.btn-outline {
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-color) !important;
    border-color: var(--text-primary) !important;
}

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

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

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

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

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

.fade-in {
    opacity: 0;
    animation: revealUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateZ(0); /* Force GPU layer */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: var(--header-bg);
    /* More opaque */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 28px !important;
    /* Larger logo */
    width: auto;
    opacity: 1;
    /* Clearer visibility */
    display: block;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::before {
    content: '[';
    margin-right: 4px;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-link::after {
    content: ']';
    margin-left: 4px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

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

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--text-secondary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before,
.nav-link.active::after {
    opacity: 1;
    transform: translateX(0);
}

/* Burger Button - Hidden on Desktop */
.burger-btn {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    overflow: visible;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center;
    opacity: 0.1;
    z-index: 2;
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
    transition: none !important;
    animation: none !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

.hero-content {
    position: relative;
    z-index: 10;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.hero-text {
    max-width: 900px;
}

.hero-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
}

.status-dot.green {
    background-color: var(--status-green);
    box-shadow: 0 0 10px var(--status-green-dim);
}

.status-dot.orange {
    background-color: var(--status-orange);
}

/* Features */
.features {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
    background: var(--bg-color);
}

.features::before {
    content: 'SPECIFICATIONS';
    position: absolute;
    top: -10px;
    left: var(--container-padding);
    background: var(--bg-color);
    padding: 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.about-text {
    border-left: 1px solid var(--status-orange);
    padding-left: 2rem;
    margin-bottom: 4rem !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.feature-card {
    padding: 4rem;
    background: var(--bg-color);
    transition: background 0.3s ease;
}



.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

/* Footer */
.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --spacing-xl: 4rem;
    }

    /* Header Fixes */
    .header-actions {
        margin-left: auto;
        margin-right: 1rem;
        gap: 1rem !important;
    }

    .header-actions .btn {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-color);
        z-index: 99;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 5vh; /* Optical centering compensation */
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-main);
        font-weight: 300;
    }

    .burger-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 101;
        background: none;
        border: none;
        padding: 0.5rem;
    }

    .burger-btn span {
        display: block;
        width: 24px;
        height: 1px;
        background-color: var(--text-primary);
        transition: 0.3s;
    }

    .burger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Fixes */
    .hero {
        padding-top: 120px;
        align-items: center;
        /* Center vertically */
        justify-content: center;
        /* Center horizontally */
    }

    .hero-content {
        border-left: none;
        padding-left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center the block */
    }

    .hero-text {
        margin: 0 auto;
        text-align: left;
        /* Left align text */
        padding: 0 1.5rem;
        /* Add padding for readability */
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
        /* Center buttons */
        margin-top: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 350px;
        /* Prevent overly wide buttons */
    }

    .hero-stats {
        justify-content: flex-start;
        /* Left align stats */
        padding: 0 1.5rem;
        width: 100%;
    }

    /* Center Feature Blocks on Mobile */
    .feature-card {
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Catalog Fixes */
    .catalog-grid {
        grid-template-columns: 1fr;
    }

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

    /* Mobile: Disable grayscale and hover effects */
    .product-image {
        filter: grayscale(0%) brightness(1) !important;
    }

    .product-card:hover .product-image {
        filter: grayscale(0%) brightness(1) !important;
    }

    .product-card:hover .product-image img {
        transform: none !important;
    }

    .feature-card:hover {
        background: var(--bg-color) !important;
    }

    /* Mobile: Restore vertical aspect ratio */
    .product-image {
        aspect-ratio: 3/4;
    }



    section {
        scroll-margin-top: calc(var(--header-height) + 1rem);
    }
}

/* --- Inner Pages & Catalog --- */

.page-header {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    border-left: 1px solid var(--text-tertiary);
    padding-left: 1.5rem;
}

/* Catalog Grid (Standard) */
.catalog-grid {
    display: grid;
    gap: 0;
    /* FIXED: Removed gap to prevent background leak */
    background-color: transparent;
    /* FIXED: Transparent background */
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
    transition: all 0.3s ease;
    grid-template-columns: repeat(4, 1fr);
    /* Default 4 cols */
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        /* Mobile 1 col */
    }
}

.product-card {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 0.3s ease;
    /* FIXED: Borders on cards instead of gap */
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-image {
    aspect-ratio: 4/3;
    background: var(--bg-color);
    /* Fixed: Match main background */
    position: relative;
    overflow: hidden;
    filter: grayscale(30%);
    transition: filter 0.4s ease;
    /* GPU Acceleration Fix for 'stuck' transitions */
    transform: translateZ(0);
    will-change: filter, opacity;
    backface-visibility: hidden;
}

/* Shimmer Effect for Loading */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.product-card:hover .product-image {
    filter: grayscale(0%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}



.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.product-title {
    font-family: var(--font-main);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* Product Details Grid (New) */
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Grid (New) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Shop Details */
.shop-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.shop-gallery {
    display: grid;
    gap: 1rem;
}

.shop-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.shop-info {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    padding-top: 1rem;
}

.shop-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.shop-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.shop-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.shop-specs {
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.shop-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.shop-spec-label {
    color: var(--text-secondary);
}

.shop-spec-value {
    font-family: 'JetBrains Mono', monospace;
}

.size-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.size-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

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

.size-btn.active {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.size-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .container-wide {
        max-width: 100%;
        padding: 0 1.25rem;
    }

    .shop-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .shop-info {
        position: static;
    }

    .product-details-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.service-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--status-green);
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    /* Ensure dark background */
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--surface-hover);
    box-shadow: 0 0 0 1px var(--text-primary);
    /* Sharper focus */
}

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

/* Fix for Select Options */
option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Cart & Modals - FIXED VISIBILITY */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    opacity: 1;
    animation: revealUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cart-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-primary);
    color: var(--bg-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    border: 1px solid var(--text-primary);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--status-orange);
    color: black;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

/* Quiz Fixed */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: revealUp 0.5s ease;
}

/* Success Step Alignment Fix */
#step-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#step-success.active {
    display: flex;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.quiz-option {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quiz-option:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.quiz-option.selected {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    font-weight: 600;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Mobile Fixes Override - Ensure Page Header is not covered */
/* Mobile Fixes Override - Ensure Page Header is not covered for specific pages */
@media (max-width: 768px) {

    /* Apply offset only to Catalog, Services, Contact, Shop pages */
    body.page-catalog .page-header,
    body.page-services .page-header,
    body.page-contact .page-header,
    body.page-shop .page-header {
        padding-top: calc(var(--header-height) + 3rem) !important;
    }

    /* Ensure anchors have correct scroll offset only for About section */
    #about {
        scroll-margin-top: calc(var(--header-height) + 1rem);
    }
}

/* Utility to lock scroll */
body.locked-scroll {
    overflow: hidden !important;
    height: 100vh;
}