/* =================================================================
   BLACK OUT THE SUN — theme.css
   Inter + Space Grotesk, aligned with the original static front-end design.
================================================================= */

/* ---- CSS Variables ----------------------------------------- */
:root {
    /* Colors (overridden by wp_add_inline_style from Customizer) */
    --color-background: #0a0a0a;
    --color-foreground: #ededed;
    --color-card:       #141016;
    --color-primary:    #a855e8;
    --color-primary-fg: #ffffff;
    --color-muted:      #252228;
    --color-muted-fg:   #8a8790;
    --color-accent:     #e6b422;
    --color-accent-fg:  #0a0a0a;
    --color-destructive:#e23838;
    --color-border:     #2a262c;

    /* Fonts */
    --font-body:    'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;

    /* Spacing */
    --max-width:     1400px;
    --px:            2rem;      /* horizontal padding */
    --px-lg:         3rem;
    --header-height: 96px;

    /* Button vars */
    --btn-radius:          0;
    --btn-height:          44px;
    --btn-padding:         0.875rem 2rem;
    --btn-font-size:       0.75rem;
    --btn-font-weight:     500;
    --btn-letter-spacing:  0.15em;
    --btn-text-transform:  uppercase;

    /* Card */
    --card-radius: 0;

    /* Section */
    --section-padding: 2rem;
    --section-py:      4rem;
    --section-py-lg:   6rem;

    /* Logo */
    --logo-height: 32px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

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

input, textarea, select {
    font-family: inherit;
}

/* ---- Utility ----------------------------------------------- */
.text-center { text-align: center; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s ease, transform 1s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   SECTION KICKER / HEADERS
================================================================= */
.section-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-muted-fg);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-foreground);
    line-height: 1.15;
}

.section-header {
    margin-bottom: 3rem;
    padding: 0 var(--px);
}

/* =================================================================
   BUTTONS
================================================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding);
    background-color: var(--color-foreground);
    color: var(--color-background);
    font-family: var(--font-body);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    letter-spacing: var(--btn-letter-spacing);
    text-transform: var(--btn-text-transform);
    border: none;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-padding);
    background-color: transparent;
    color: var(--color-foreground);
    font-family: var(--font-body);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(237,237,237,0.3);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-decoration: none;
}
.btn-outline:hover {
    background-color: var(--color-foreground);
    color: var(--color-background);
    border-color: var(--color-foreground);
}

/* Hero CTA */
.btn-hero {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--color-foreground);
    color: var(--color-background);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-hero:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}

/* =================================================================
   HEADER
================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}

/* Logged-in preview: keep header and overlays below the WordPress admin bar */
body.admin-bar .site-header {
    top: 32px;
}
body.admin-bar .mobile-menu {
    top: 32px;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    inset: unset;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
    body.admin-bar .mobile-menu {
        top: 46px;
    }
}

.site-header.is-solid,
.site-header.is-scrolled {
    background-color: rgba(10,10,10,0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: rgba(42,38,44,0.4);
}

/* Menu open: bar above overlay (z-70) */
.site-header.is-menu-open {
    z-index: 70;
    background-color: rgba(10, 10, 10, 0.9);
    background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: color-mix(in srgb, var(--color-border) 40%, transparent);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
@media (min-width: 1024px) {
    .header-inner { padding: 0 var(--px-lg); }
}

.header-spacer-left {
    width: 80px;
    flex-shrink: 0;
}

/* Logo */
.site-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.site-logo-img {
    height: var(--logo-height) !important;
    width: auto !important;
    display: block;
}
.site-logo-text {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: var(--logo-height);
    display: block;
}

/* Header actions (cart + hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 80px;
    justify-content: flex-end;
}

.cart-btn {
    position: relative;
    padding: 0.5rem;
    color: var(--color-muted-fg);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-btn:hover { color: var(--color-foreground); }

.theme-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.theme-cart-count:empty { display: none; }

/* Desktop nav */
.desktop-nav {
    display: none;
    justify-content: center;
    padding-bottom: 1rem;
}
@media (min-width: 768px) {
    .desktop-nav { display: flex; }
}
.desktop-nav .theme-nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px);
}
.desktop-nav .theme-nav-list li a,
.desktop-nav .theme-nav-list li > a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted-fg);
    text-decoration: none;
    transition: color 0.3s;
}
.desktop-nav .theme-nav-list li a:hover { color: var(--color-foreground); }

/* Mobile menu trigger — matches Lucide Menu / X (Lovable Header.tsx) */
.mobile-menu-btn {
    padding: 0.5rem; /* p-2 */
    color: var(--color-foreground);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn__ic {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.mobile-menu-btn__ic svg {
    display: block;
    width: 20px;
    height: 20px;
}
.mobile-menu-btn__ic--close {
    display: none;
}
.mobile-menu-btn.is-open .mobile-menu-btn__ic--menu {
    display: none;
}
.mobile-menu-btn.is-open .mobile-menu-btn__ic--close {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/*
 * Capa móvil = Lovable: `md:hidden fixed inset-0 z-[60] bg-background/98
 * backdrop-blur-xl transition-all duration-500 opacity-…`
 * <nav> = Lovable: `flex flex-col items-center justify-center h-full gap-10`
 * El menú de WP añade ul/li; con display: contents el <a> pasa a ser
 * “hijo” lógico del <nav> y gap-2.5rem aplica entre enlaces como en React.
 */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    box-sizing: border-box;
    /* Lovable: `bg-background/98` + `backdrop-blur-xl` — cristal semitransparente + desenfoque
       de lo de detrás (héroe/vídeo). Tailwind /98 = ~98% de opacidad del color; con #0a casi
       sólido se pierde el efecto; 82% color-mix deja notar claramente el blur. */
    background-color: color-mix(in srgb, var(--color-background) 82%, transparent);
    /* Tailwind `backdrop-blur-xl` = 24px; saturate reforzado piel de cristal (shadcn/lovable) */
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    /* Mejor compositing del blur en WebKit móviles */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* transition-all duration-500 */
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease;
    overflow: hidden;
    overflow-x: hidden;
    /* Safe area en el contenedor, no en el <nav> (Lovable: nav sin padding propio) */
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}
.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0; /* h-full: flex center stack */
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* gap-10: espacio *entre* enlaces, como anclas hermanas bajo <nav> */
    gap: 2.5rem; /* 10 × 0.25rem Tailwind */
}
/* WordPress: ul/li dejan de generar cajas; los <a> participan en el flex del <nav> */
.mobile-menu__nav .mobile-nav-list,
.mobile-menu__nav .theme-nav-list,
.mobile-menu__nav ul.menu {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu__nav .mobile-nav-list > li,
.mobile-menu__nav .theme-nav-list > li,
.mobile-menu__nav ul.menu > li {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Enlaces de primer nivel (GALLERY… visual vía text-transform) */
.mobile-menu__nav .mobile-nav-list > li > a,
.mobile-menu__nav .theme-nav-list > li > a,
.mobile-menu__nav ul.menu > li > a {
    font-family: var(--font-body);
    /* text-sm: en Tailwind preflight suele ser 0.875rem / line 1.25 */
    font-size: 0.875rem;
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em; /* tracking-[0.3em] */
    color: var(--color-foreground);
    text-align: center;
    text-decoration: none;
    /* Evita que <li> fantasma añada altura: el ancla es el único cuerpo de línea */
    display: block;
    margin: 0;
    padding: 0.125rem 0;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.mobile-menu__nav .mobile-nav-list > li > a:hover,
.mobile-menu__nav .mobile-nav-list > li > a:focus-visible,
.mobile-menu__nav .theme-nav-list > li > a:hover,
.mobile-menu__nav .theme-nav-list > li > a:focus-visible,
.mobile-menu__nav ul.menu > li > a:hover,
.mobile-menu__nav ul.menu > li > a:focus-visible {
    color: var(--color-primary);
    outline: none;
}
/* sub-menus: el <ul> (no contents) mantiene bloque bajo un ítem con hijos */
.mobile-menu__nav .sub-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0.25rem 0 0 0;
    list-style: none;
    width: 100%;
    max-width: 100%;
}
.mobile-menu__nav .sub-menu li {
    display: list-item;
    margin: 0;
    text-align: center;
}
.mobile-menu__nav .sub-menu a {
    display: block;
    font-size: 0.75rem;
    line-height: 1.3;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted-fg);
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}
.mobile-menu__nav .sub-menu a:hover,
.mobile-menu__nav .sub-menu a:focus-visible {
    color: var(--color-primary);
    outline: none;
}
/* md:hidden */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* =================================================================
   HERO SECTION
================================================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-background) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px) 6rem;
    padding-top: 10rem;
}
@media (min-width: 1024px) {
    .hero-content {
        padding: 0 var(--px-lg) 8rem;
        padding-top: 10rem;
    }
}

.hero-card {
    max-width: 36rem;
    background-color: rgba(20,16,22,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(42,38,44,0.5);
    padding: 2.5rem;
}
@media (min-width: 1024px) {
    .hero-card { padding: 3.5rem; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--color-foreground);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-body {
    font-size: 1rem;
    color: var(--color-muted-fg);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* =================================================================
   GALLERY SECTION
================================================================= */
.gallery-section {
    padding: var(--section-py) 0;
}
@media (min-width: 1024px) {
    .gallery-section { padding: var(--section-py-lg) 0; }
}

.gallery-section .section-header { margin-bottom: 3rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
    cursor: pointer;
}
.gallery-item-inner {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.gallery-item-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}
.gallery-item:hover .gallery-item-inner img {
    transform: scale(1.05);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10,10,10,0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-quick-view-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-foreground);
    border: 1px solid rgba(237,237,237,0.3);
    padding: 0.625rem 1.5rem;
}
.gallery-item-caption {
    padding: 0.75rem 0.5rem;
}
.gallery-item-caption span {
    font-size: 0.875rem;
    color: rgba(237,237,237,0.8);
    font-weight: 500;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.8);
}
.gallery-modal-content {
    position: relative;
    z-index: 1;
    background-color: var(--color-background);
    border: 1px solid rgba(42,38,44,0.2);
    max-width: 48rem;
    width: 90%;
    overflow: hidden;
    animation: modal-in 0.2s ease forwards;
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
.gallery-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10,10,10,0.7);
    color: var(--color-foreground);
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    border-radius: 0;
}
.gallery-modal-close:hover { color: var(--color-primary); }
.gallery-modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.gallery-modal-caption {
    padding: 1rem;
    text-align: center;
}
.gallery-modal-caption h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-foreground);
}

/* =================================================================
   SHOP SECTION
================================================================= */
.shop-section {
    padding: var(--section-py) 0;
}
@media (min-width: 1024px) {
    .shop-section { padding: var(--section-py-lg) 0; }
}
.shop-subtitle {
    font-size: 0.875rem;
    color: var(--color-muted-fg);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.shop-search-wrap {
    position: relative;
    max-width: 280px;
    margin: 0 auto 1.5rem;
}
.shop-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted-fg);
    pointer-events: none;
}
.shop-search-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(42,38,44,0.3);
    border-radius: 0;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    color: var(--color-foreground);
    outline: none;
    transition: border-color 0.2s;
}
.shop-search-input::placeholder { color: var(--color-muted-fg); }
.shop-search-input:focus { border-color: rgba(237,237,237,0.5); }

/* Category filter */
.shop-cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0;
}
.shop-cat-btn {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.375rem 1rem;
    border: 1px solid rgba(42,38,44,0.2);
    border-radius: 0;
    color: var(--color-muted-fg);
    background: transparent;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.shop-cat-btn:hover {
    color: var(--color-foreground);
    border-color: rgba(237,237,237,0.4);
}
.shop-cat-btn.is-active {
    border-color: rgba(237,237,237,0.6);
    color: var(--color-foreground);
    background-color: rgba(237,237,237,0.05);
}

/* Product grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
@media (min-width: 768px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Product card wrap + card */
.theme-product-card-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.theme-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* Pattern A hit-area overlay */
.theme-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
}
.theme-product-card * { pointer-events: none; }
.theme-product-card .theme-card-link,
.theme-product-card .add_to_cart_button,
.theme-product-card .theme-card-atc {
    pointer-events: auto;
}

.theme-product-card__image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.theme-product-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}
.theme-product-card:hover .theme-product-card__image-wrapper img {
    transform: scale(1.05);
}

.theme-product-card__hover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10,10,10,0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.theme-product-card:hover .theme-product-card__hover-overlay {
    opacity: 1;
}

.theme-card-atc,
.add_to_cart_button.ajax_add_to_cart.theme-card-atc {
    position: relative;
    z-index: 3;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-foreground);
    border: 1px solid rgba(237,237,237,0.3);
    padding: 0.625rem 1.5rem;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}
.theme-card-atc:hover,
.add_to_cart_button.ajax_add_to_cart.theme-card-atc:hover {
    background-color: var(--color-foreground);
    color: var(--color-background);
}
.theme-card-sold-out {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted-fg);
    pointer-events: none;
}

.theme-product-card__info {
    padding: 0.75rem 0.5rem;
    flex: 1;
}
.theme-product-card__cat {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted-fg);
    margin-bottom: 0.25rem;
}
.theme-product-card__name {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
    min-width: 0;
}
.theme-product-card__price {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 500;
}
.theme-product-card__price .amount,
.theme-product-card__price .woocommerce-Price-amount {
    color: var(--color-accent);
}

/* Shop empty / no results */
.shop-empty-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted-fg);
    padding: 4rem 0;
    grid-column: 1 / -1;
}

/* See more/less button */
.shop-load-more-wrap {
    text-align: center;
    margin-top: 2.5rem;
}

/* WooCommerce add-to-cart button overrides */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
    background-color: var(--color-foreground) !important;
    color: var(--color-background) !important;
    border: none !important;
    border-radius: var(--btn-radius) !important;
    min-height: var(--btn-height) !important;
    padding: var(--btn-padding) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-body) !important;
    font-size: var(--btn-font-size) !important;
    font-weight: var(--btn-font-weight) !important;
    letter-spacing: var(--btn-letter-spacing) !important;
    text-transform: var(--btn-text-transform) !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
    opacity: 0.85 !important;
    background-color: var(--color-foreground) !important;
    color: var(--color-background) !important;
}

/* Disabled state */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
    cursor: not-allowed !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
    opacity: 0.4 !important;
    background-color: var(--color-foreground) !important;
}

/* Card compact button override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-atc {
    min-height: unset !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: var(--color-foreground) !important;
    border: 1px solid rgba(237,237,237,0.3) !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-atc:hover {
    background-color: var(--color-foreground) !important;
    color: var(--color-background) !important;
    opacity: 1 !important;
}

/* Hide WooCommerce "View cart" link after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
    display: none !important;
}

/* Button loading state */
.ajax_add_to_cart.theme-btn-loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: wait !important;
}

/* =================================================================
   ABOUT SECTION
================================================================= */
.about-section {
    padding: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 600px;
}
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-card);
    padding: 5rem 2.5rem;
}
@media (min-width: 1024px) {
    .about-text-col { padding: 5rem; }
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-foreground);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-body {
    font-size: 1rem;
    color: var(--color-muted-fg);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.about-text-col .btn-outline {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.about-image-col {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}
@media (min-width: 768px) {
    .about-image-col { min-height: 400px; }
}
@media (min-width: 1024px) {
    .about-image-col { min-height: 0; }
}
.about-full-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================================================================
   CONTACT SECTION
================================================================= */
.contact-section {
    padding: 7rem 0 10rem;
    background-color: rgba(20,16,22,0.2);
}
@media (min-width: 1024px) {
    .contact-section { padding: 10rem 0; }
}

.contact-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--px);
}
@media (min-width: 1024px) {
    .contact-wrap { padding: 0 var(--px-lg); }
}

.contact-subtitle {
    font-size: 0.875rem;
    color: var(--color-muted-fg);
}

.contact-form {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-fields-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .contact-fields-row { grid-template-columns: 1fr 1fr; }
}

.contact-field { display: flex; flex-direction: column; }

.field-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted-fg);
    margin-bottom: 0.5rem;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    font-size: 0.875rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
}
.contact-input::placeholder,
.contact-textarea::placeholder { color: rgba(138,135,144,0.5); }
.contact-input:focus,
.contact-textarea:focus { border-color: var(--color-foreground); }
.contact-textarea { resize: none; }

.contact-submit {
    width: 100%;
    justify-content: center;
}

/* Toast */
.contact-toast {
    padding: 0.75rem 1rem;
    border-radius: 2px;
    font-size: 0.875rem;
    text-align: center;
}
.contact-toast.success {
    background-color: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}
.contact-toast.error {
    background-color: rgba(226,56,56,0.15);
    color: var(--color-destructive);
    border: 1px solid rgba(226,56,56,0.3);
}

/* =================================================================
   FOOTER
================================================================= */
.site-footer {
    border-top: 1px solid rgba(42,38,44,0.3);
    padding: 2.5rem 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
@media (min-width: 1024px) {
    .footer-inner { padding: 0 var(--px-lg); }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    letter-spacing: 0.1em;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-muted-fg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .footer-links {
        flex-direction: row;
        gap: 1rem;
    }
}
.footer-link {
    font-size: 0.75rem;
    color: var(--color-muted-fg);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--color-foreground); }
.footer-sep {
    font-size: 0.75rem;
    color: var(--color-muted-fg);
    display: none;
}
@media (min-width: 640px) {
    .footer-sep { display: inline; }
}

/* =================================================================
   SIDE CART DRAWER
================================================================= */
#theme-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background-color: rgba(10,10,10,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

#theme-cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 90;
    width: 100%;
    max-width: 28rem;
    background-color: var(--color-card);
    border-left: 1px solid rgba(42,38,44,0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}
body.cart-open #theme-cart-drawer {
    transform: translateX(0);
}
#theme-cart-drawer.is-updating {
    opacity: 0.6;
    pointer-events: none;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(42,38,44,0.3);
}
.cart-drawer-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-foreground);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cart-drawer-close {
    padding: 0.25rem;
    color: var(--color-muted-fg);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.cart-drawer-close:hover { color: var(--color-foreground); }

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-empty-state {
    text-align: center;
    padding: 4rem 0;
}
.cart-empty-state svg {
    color: rgba(138,135,144,0.2);
    margin: 0 auto 1rem;
}
.cart-empty-text {
    font-size: 0.875rem;
    color: var(--color-muted-fg);
    margin-bottom: 1rem;
}
.cart-continue-btn {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted-fg);
    text-decoration: none;
    border: 1px solid rgba(42,38,44,0.3);
    padding: 0.625rem 1.5rem;
    display: inline-block;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    cursor: pointer;
}
.cart-continue-btn:hover {
    color: var(--color-foreground);
    border-color: rgba(237,237,237,0.3);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(42,38,44,0.2);
}
.cart-item-img-wrap {
    width: 56px;
    height: 72px;
    flex-shrink: 0;
    overflow: hidden;
}
.cart-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-cat {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted-fg);
    margin-bottom: 0.25rem;
}
.cart-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 0.25rem;
}
.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.cart-item-remove {
    color: var(--color-muted-fg);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.cart-item-remove:hover { color: var(--color-destructive); }
.cart-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cart-qty-btn {
    color: var(--color-muted-fg);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.cart-qty-btn:hover { color: var(--color-foreground); }
.cart-qty-value {
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 1rem;
    text-align: center;
}

.cart-drawer-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(42,38,44,0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-total-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted-fg);
}
.cart-total-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-foreground);
}

.cart-clear-btn {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(42,38,44,0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted-fg);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.3s, border-color 0.3s;
    border-radius: 0;
}
.cart-clear-btn:hover {
    color: var(--color-destructive);
    border-color: rgba(226,56,56,0.3);
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--color-foreground);
    color: var(--color-background);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 0;
}
.cart-checkout-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}

/* Variation attributes in cart */
.cart-item-variation {
    font-size: 10px;
    color: var(--color-muted-fg);
    margin-top: 2px;
}

/* =================================================================
   WooCommerce SINGLE PRODUCT PAGE
================================================================= */
.single-product .site-main {
    padding-top: var(--header-height);
}

.single-product .theme-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 80vh;
}
@media (min-width: 768px) {
    .single-product .theme-product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
    min-width: 0;
    max-width: 100%;
}

/* Gallery column */
.theme-product-gallery {
    background-color: rgba(37,34,40,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
@media (min-width: 768px) {
    .theme-product-gallery { padding: 4rem; }
}

#product-main-img {
    width: 100%;
    max-width: 28rem;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    display: block;
}

.theme-product-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}
.theme-thumbnail-btn {
    width: 64px;
    height: 80px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.theme-thumbnail-btn.is-active {
    border-color: var(--color-foreground);
}
.theme-thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info column */
.theme-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
    .theme-product-info { padding: 4rem 3rem 4rem 4rem; }
}
@media (min-width: 1024px) {
    .theme-product-info { padding: 4rem 4rem 4rem 5rem; }
}

.product-breadcrumb {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted-fg);
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.product-breadcrumb a {
    color: var(--color-muted-fg);
    text-decoration: none;
    transition: color 0.2s;
}
.product-breadcrumb a:hover { color: var(--color-foreground); }
.product-breadcrumb .sep { color: var(--color-muted-fg); }

.product-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.product-cat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-muted-fg);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: var(--color-muted-fg);
    line-height: 1.6;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}
.product-description.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.product-read-toggle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-foreground);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.product-read-toggle:hover { color: var(--color-accent); }

.product-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 2rem;
}
.product-price .woocommerce-Price-amount,
.product-price .amount { color: var(--color-accent); }

.product-stock-indicator {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.5rem;
}
.product-stock-indicator.in-stock {
    color: #22c55e;
    background-color: rgba(34,197,94,0.1);
}
.product-stock-indicator.out-of-stock {
    color: var(--color-muted-fg);
    background-color: rgba(138,135,144,0.1);
}

/* Add to cart area */
.theme-add-to-cart-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.theme-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    background: transparent;
}
.theme-qty-minus,
.theme-qty-plus {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-muted-fg);
    cursor: pointer;
    font-size: 1.125rem;
    transition: color 0.2s;
    flex-shrink: 0;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { color: var(--color-foreground); }
.theme-qty-input {
    width: 48px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    color: var(--color-foreground);
    font-size: 0.875rem;
    height: 44px;
    outline: none;
    -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.single_add_to_cart_button.theme-btn-primary {
    flex: 1 1 auto;
    min-width: 160px;
}

/* WooCommerce variations table layout */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
    display: block;
    width: 100%;
}
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

/* Theme attr select hidden */
.theme-attr-select-hidden { display: none !important; }

/* Product description sections */
.product-short-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(42,38,44,0.3);
}
.product-details-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted-fg);
    margin-bottom: 0.75rem;
}
.woocommerce-product-details__short-description {
    overflow-wrap: break-word;
    word-break: break-word;
}
.posted_in {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Responsive single product */
.single-product .theme-product-thumbnails {
    flex-wrap: wrap;
    max-width: 100%;
}
.single-product .theme-add-to-cart-area {
    flex-wrap: wrap;
    gap: 0.75rem;
}
.single-product .single_add_to_cart_button {
    flex: 1 1 auto;
    min-width: 160px;
}

/* Related products */
.related-products {
    border-top: 1px solid rgba(42,38,44,0.1);
    padding: 3rem 0 4rem;
}
.related-products .related-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-muted-fg);
    text-align: center;
    margin-bottom: 2rem;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
@media (min-width: 768px) {
    .related-products-grid { grid-template-columns: repeat(4, 1fr); }
}
.related-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.related-product-link:hover .related-product-img-wrap img {
    transform: scale(1.05);
}
.related-product-img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: block;
}
.related-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}
.related-product-info {
    padding: 0.75rem 0.5rem;
}
.related-product-name {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
}
.related-product-price {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* WooCommerce notices scoped */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* =================================================================
   WooCommerce ARCHIVE / SHOP PAGE
================================================================= */
.woocommerce-page .site-main,
.post-type-archive-product .site-main {
    padding-top: var(--header-height);
}

.archive-shop-section {
    padding: var(--section-py) 0;
}
@media (min-width: 1024px) {
    .archive-shop-section { padding: var(--section-py-lg) 0; }
}

.archive-shop-section .shop-grid {
    padding: 0;
}

/* =================================================================
   CHECKOUT PAGE
================================================================= */
body.woocommerce-checkout .site-main {
    padding-top: var(--header-height);
    padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px);
}
@media (min-width: 1024px) {
    body.woocommerce-checkout .entry-content { padding: 0 var(--px-lg); }
}

body.woocommerce-checkout .page-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}

/* Checkout block layout */
body.woocommerce-checkout .wc-block-checkout {
    display: block;
}
@media (min-width: 768px) {
    body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2rem;
        align-items: start;
    }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
    min-width: 0;
    width: 100%;
    max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
    width: 100% !important;
    max-width: none !important;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    font-family: var(--font-body);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
    border-color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    background-color: var(--color-foreground) !important;
    color: var(--color-background) !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    transition: background-color 0.3s, color 0.3s !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
    background-color: var(--color-primary) !important;
    color: var(--color-primary-fg) !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
    background-color: rgba(20,16,22,0.5);
    border: 1px solid var(--color-border);
    padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
    background-color: rgba(168,85,232,0.1);
    border-color: var(--color-primary);
    color: var(--color-foreground);
}

/* =================================================================
   THANK YOU PAGE
================================================================= */
body.theme-thankyou-page .site-main {
    padding-top: var(--header-height);
    padding-bottom: 4rem;
}
body.theme-thankyou-page .page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--px);
}
@media (min-width: 1024px) {
    body.theme-thankyou-page .page-container { padding: 2rem var(--px-lg); }
}
body.theme-thankyou-page .woocommerce-order { color: var(--color-foreground); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    padding: 0 0 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 1rem 0 2rem;
    padding: 1.5rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
}
body.theme-thankyou-page .woocommerce-order-overview li {
    font-size: 0.875rem;
    color: var(--color-muted-fg);
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
    color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-details table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
    max-width: 480px;
    overflow-wrap: break-word;
    font-style: normal;
    color: var(--color-muted-fg);
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1.5rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
}
body.theme-thankyou-page { overflow-x: hidden; }

/* =================================================================
   PAGE (inner pages)
================================================================= */
.page-main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--px);
}
@media (min-width: 1024px) {
    .page-container { padding: 2rem var(--px-lg); }
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.entry-content {
    color: var(--color-muted-fg);
    font-size: 1rem;
    line-height: 1.7;
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    font-family: var(--font-display);
    color: var(--color-foreground);
    margin: 1.5rem 0 0.75rem;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* =================================================================
   404 PAGE
================================================================= */
.not-found-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-muted);
    padding-top: var(--header-height);
}
.not-found-content {
    text-align: center;
    padding: 2rem;
}
.not-found-code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}
.not-found-msg {
    font-size: 1.25rem;
    color: var(--color-muted-fg);
    margin-bottom: 1.5rem;
}

/* =================================================================
   WooCommerce NOTICES (scoped visibility)
================================================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: var(--color-card);
    border-left: 4px solid var(--color-primary);
    color: var(--color-foreground);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.woocommerce-error { border-left-color: var(--color-destructive); }

/* =================================================================
   WooCommerce BREADCRUMBS: suppressed (no breadcrumbs in design)
================================================================= */
.woocommerce-breadcrumb { display: none; }
