/* ============================================
   PIZJO — Global Styles (v5 Cheesy Underground)
   Reset, Typography, Layout, Components
   ============================================ */

/* ── 1. Reset & Setup ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* clip (not hidden): 'hidden' makes body the scroll container and breaks position:sticky children */
    overflow-x: clip;
    /* Noise SVG background from design */
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: var(--leading-tight);
    font-weight: 900;
    /* Extra bold for grunge */
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

a,
button,
.btn {
    touch-action: manipulation;
}

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

ul,
ol {
    list-style: none;
}

img,
svg,
canvas {
    max-width: 100%;
    display: block;
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--amber-neon);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber-neon);
    color: var(--umber-raw);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    z-index: 9999;
    border: 3px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
}

.skip-to-content:focus-visible {
    top: var(--space-md);
}

/* ── 2. Layout & Containers ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

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

/* ── 3. Components (Grunge Design) ── */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
    position: relative;
    font-size: var(--text-sm);
}

.btn:active {
    transform: scale(var(--squish-scale));
}

.btn-primary {
    background: var(--amber-neon);
    color: var(--umber-raw);
    border: 3px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-grunge-hover);
}

.btn-secondary {
    background: var(--off-white);
    color: var(--umber-raw);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
}

.btn-secondary:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-grunge-hover);
}

/* Cards */
.card-grunge {
    background: var(--off-white);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge-lg);
    position: relative;
}

/* Scroll Animation Class
   Hidden state is gated behind html.js (set by an inline head script) so
   content stays visible when JavaScript is disabled or fails to load. */
html.js .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

html.js .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* WebGL container setup - now restricted to hero */
#webgl-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

/* Product Card */
.product-card {
    background: var(--off-white);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: visible;
    margin-top: var(--space-4xl);
    /* Space for overlapping image */
    transform: rotate(-1deg);
}

.product-card:nth-child(even) {
    transform: rotate(2deg);
}

.product-card:hover {
    transform: translateY(-8px) rotate(0deg);
}

.product-card.is-unavailable {
    opacity: 0.72;
}

.product-card.is-unavailable .product-image {
    filter: grayscale(0.75) contrast(0.8);
}

.badge-unavailable {
    background: #A83A2A;
    color: var(--off-white);
}

.btn-add:disabled {
    cursor: not-allowed;
    background: #C7BEB2;
    color: var(--umber-raw);
    box-shadow: none;
    transform: none;
}

.live-offers-empty {
    max-width: 760px;
    margin: var(--space-3xl) auto 0;
    padding: var(--space-xl);
    border: var(--border-thick);
    box-shadow: var(--shadow-grunge);
    font-family: var(--font-display);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.live-offer-card {
    min-height: 300px;
    position: relative;
    overflow: visible;
    padding: var(--space-xl);
    transform: rotate(-1deg);
}

.live-offer-card:nth-child(even) {
    transform: rotate(1deg);
}

.live-offer-card-dark {
    background: var(--umber-raw);
    color: var(--off-white);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
}

.live-offer-badge {
    position: absolute;
    top: calc(var(--space-md) * -1);
    right: var(--space-md);
    z-index: 2;
}

.live-offer-copy {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.live-offer-copy h3 {
    font-size: var(--text-3xl);
    margin: var(--space-sm) 0 var(--space-md);
}

.live-offer-copy p {
    font-size: var(--text-base);
    font-weight: 700;
    line-height: var(--leading-normal);
}

.live-offer-value {
    font-family: var(--font-marker);
    font-size: var(--text-3xl) !important;
    color: var(--amber-neon);
}

.live-offer-card:not(.live-offer-card-dark) .live-offer-value {
    color: var(--umber-raw);
}

.live-offer-conditions,
.live-offer-terms {
    margin-top: var(--space-md);
    font-size: var(--text-sm) !important;
}

.live-offer-terms {
    color: var(--color-text-muted);
}

.live-offer-card-dark .live-offer-terms {
    color: rgba(245, 242, 235, 0.68);
}

.live-offer-copy .btn {
    margin-top: auto;
    padding-top: var(--space-md);
}

.live-offer-dark-action {
    background: var(--amber-neon);
    border: 3px solid var(--amber-neon);
    color: var(--umber-raw);
    box-shadow: 3px 3px 0 rgba(245, 242, 235, 0.85);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    margin-top: var(--space-3xl);
}

.product-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 10;
}

.badge {
    background: var(--umber-raw);
    color: var(--amber-neon);
    font-family: var(--font-marker);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-lg);
    transform: rotate(-10deg);
    display: inline-block;
    box-shadow: var(--shadow-grunge-hover);
}

.product-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.product-price {
    font-family: var(--font-marker);
    font-size: var(--text-3xl);
    color: var(--color-text);
}

.product-desc {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.product-image-container {
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%) rotate(6deg);
    width: 160px;
    height: 160px;
    border: 4px solid var(--umber-raw);
    background: var(--amber-neon);
    box-shadow: var(--shadow-grunge);
    border-radius: 50%;
    overflow: hidden;
    z-index: 5;
}

.product-card:nth-child(even) .product-image-container {
    transform: translateX(-50%) rotate(-3deg);
    border-radius: 0;
    /* Square for even */
    background: var(--off-white);
}

.product-image {
    width: 110%;
    height: 110%;
    object-fit: cover;
    margin-left: -5%;
    margin-top: -5%;
    filter: contrast(1.1) saturate(1.2);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 4px solid var(--umber-raw);
    padding-top: var(--space-md);
    margin-top: auto;
}

.btn-add {
    width: 48px;
    height: 48px;
    background: var(--amber-neon);
    color: var(--umber-raw);
    border: 3px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-add:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-grunge-hover);
}

.btn-add:active {
    transform: scale(var(--squish-scale));
}

/* ── 4. Navigation (Top Bar) ── */
.navbar {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 95%;
    max-width: var(--max-width);
    height: var(--nav-height);
    background: var(--off-white);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: transform var(--duration-normal) var(--ease-out);
}

.brand-text {
    font-family: var(--font-marker);
    font-size: var(--text-3xl);
    color: var(--umber-raw);
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--duration-fast) var(--ease-out);
}

.nav-brand:hover {
    transform: rotate(-6deg) scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--space-2xl);
    transform: rotate(-1deg);
}

.nav-link {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--umber-raw);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
    text-decoration-thickness: 4px;
    text-decoration-color: var(--umber-raw);
    text-underline-offset: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-neon);
    text-decoration: underline;
}

.nav-link:active {
    transform: scale(var(--squish-scale));
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transform: rotate(2deg);
}

/* Cart Button */
.cart-toggle {
    background: var(--amber-neon);
    border: 3px solid var(--umber-raw);
    color: var(--umber-raw);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: var(--shadow-grunge);
    transition: transform var(--duration-fast) var(--ease-out);
}

.cart-toggle:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-grunge-hover);
}

.cart-toggle:active {
    transform: scale(var(--squish-scale));
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--umber-raw);
    color: var(--amber-neon);
    font-size: 12px;
    font-weight: 900;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-marker);
    border: 2px solid var(--amber-neon);
}

/* ── 5. Sliding Cart Sidebar ── */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--off-white);
    border-left: 8px solid var(--umber-raw);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: -10px 0 0 rgba(62, 39, 35, 0.1);
}

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

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(62, 39, 35, 0.6);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: var(--space-xl);
    border-bottom: 4px solid var(--umber-raw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--amber-neon);
}

.cart-header h2 {
    font-family: var(--font-marker);
    font-size: var(--text-3xl);
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--umber-raw);
    font-size: 32px;
    font-weight: 900;
    cursor: pointer;
    /* 44px minimum touch target (WCAG 2.5.5) */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform var(--duration-fast) var(--ease-out);
}

.cart-close:hover {
    transform: rotate(90deg);
}

.cart-close:active {
    transform: scale(var(--squish-scale));
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cart-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-family: var(--font-marker);
    font-size: var(--text-2xl);
    margin-top: var(--space-4xl);
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 2px dashed var(--umber-raw);
}

.cart-item-title {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.cart-item-price {
    color: var(--umber-raw);
    font-family: var(--font-marker);
    font-size: var(--text-xl);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    grid-column: 1 / -1;
    margin-top: var(--space-xs);
}

.qty-btn {
    background: var(--amber-neon);
    border: 2px solid var(--umber-raw);
    color: var(--umber-raw);
    width: 44px;
    height: 44px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-fast) var(--ease-out);
    box-shadow: 2px 2px 0 var(--umber-raw);
}

.qty-btn:active {
    transform: scale(var(--squish-scale));
}

.qty-val {
    font-weight: 900;
    font-family: var(--font-marker);
    width: 24px;
    text-align: center;
}

.cart-footer {
    padding: var(--space-xl);
    border-top: 4px solid var(--umber-raw);
    background: var(--off-white);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    font-family: var(--font-marker);
    font-size: var(--text-3xl);
}

.cart-checkout-btn {
    width: 100%;
    background: var(--amber-neon);
    color: var(--umber-raw);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge-lg);
    border-radius: 0;
    font-size: var(--text-xl);
    padding: var(--space-md);
}

.cart-checkout-btn:hover {
    transform: translate(4px, 4px);
    box-shadow: 4px 4px 0 0 var(--umber-raw);
}

/* ── 6. Footer ── */
.footer {
    background: var(--umber-raw);
    color: var(--off-white);
    padding: var(--space-6xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-4xl);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: var(--amber-neon);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3xl);
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-brand {
    font-family: var(--font-marker);
    font-size: var(--text-7xl);
    color: var(--amber-neon);
    transform: rotate(-3deg);
    transition: transform var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.footer-brand:hover {
    transform: scale(1.1) rotate(0deg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    font-size: var(--text-lg);
}

.footer-links a {
    transition: color var(--duration-fast) var(--ease-out);
    text-decoration: underline;
    text-decoration-color: var(--amber-neon);
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
    display: inline-block;
    padding: var(--space-sm) 0;
}

.footer-links a:hover {
    color: var(--amber-neon);
}

/* Breadcrumb links sit at ~18px tall without this — too small to tap reliably. */
.breadcrumb a {
    display: inline-block;
    padding: var(--space-sm) var(--space-xs);
    margin-left: calc(var(--space-xs) * -1);
}

.footer-bottom {
    margin-top: var(--space-3xl);
    font-family: var(--font-scribble);
    font-size: var(--text-2xl);
    color: var(--amber-neon);
    transform: rotate(2deg);
}

/* Footer: multi-column layout on wide screens (was a single centred column) */
@media (min-width: 900px) {
    .footer-grid {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: start;
        text-align: left;
        gap: var(--space-xl) var(--space-3xl);
    }

    .footer-brand {
        justify-self: start;
    }

    .footer-links {
        justify-self: center;
    }

    .footer-social {
        justify-self: end;
    }

    .footer-newsletter,
    .footer-bottom {
        grid-column: 1 / -1;
    }

    .footer-newsletter {
        justify-self: center;
        width: 100%;
        max-width: 560px;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* Utilities */
.scribble-text {
    font-family: var(--font-scribble);
    color: var(--amber-neon);
    text-shadow: 1px 1px 0px var(--umber-raw), -1px -1px 0px var(--umber-raw), 1px -1px 0px var(--umber-raw), -1px 1px 0px var(--umber-raw);
}

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

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--umber-raw);
    cursor: pointer;
    /* 44px minimum touch target (WCAG 2.5.5) */
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-xs);
    align-items: center;
    justify-content: center;
}

/* Floating WhatsApp Button (shared across all pages; markup is class-only) */
.whatsapp-float {
    position: fixed;
    bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
    right: var(--space-xl);
    z-index: var(--z-float);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s infinite;
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
        right: var(--space-lg);
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -4px;
        right: -4px;
        background: var(--off-white);
        border: 4px solid var(--umber-raw);
        padding: var(--space-xl);
        gap: var(--space-xl);
        box-shadow: var(--shadow-grunge);
        transform: rotate(0deg);
        z-index: var(--z-sticky);
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 0 var(--space-md);
    }

    .nav-actions {
        gap: var(--space-xs);
    }

    .cart-toggle {
        padding: var(--space-xs) var(--space-sm);
    }

    .brand-logo {
        height: 36px;
    }

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

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

    .cart-toggle .cart-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: var(--text-xl);
    }

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

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Quality baseline: accessible motion and visually-hidden utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

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


/* Accessibility: active navigation must remain readable on the off-white surface. */
.nav-link.active {
    color: var(--umber-raw);
    text-decoration: underline;
}

/* ── Skeleton Loading (Professional UX) ── */
.skeleton {
    background: linear-gradient(90deg, var(--off-white) 25%, #E8E0D0 50%, var(--off-white) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.long { width: 100%; }
.skeleton-img {
    background: linear-gradient(90deg, #E8E0D0 25%, var(--amber-neon) 50%, #E8E0D0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}
.skeleton-card {
    background: var(--off-white);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}
.hero-skeleton { position: absolute; inset: 0; border-radius: 0; animation: none; background: #E8E0D0; }

/* ── Below-fold rendering (cuts style/layout work on first paint) ──
   Note: #cafe stays OUT of this list — its lazy image with srcset/sizes makes
   Chrome's "lazy-loaded images need explicit dimensions" check flag the page. */
.reviews-section, .offers-section, .footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}
@media (prefers-reduced-motion: reduce) {
    .skeleton, .skeleton-img { animation: none; background: #E8E0D0; }
}
