/* ==============================================
   KING CREATIONS LLC — theme.css
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ===========================
   CSS VARIABLES (Design System)
   =========================== */
:root {
    /* Colors — set via Customizer wp_add_inline_style */
    --color-bg:              hsl(0, 0%, 7%);
    --color-foreground:      hsl(45, 20%, 92%);
    --color-card:            hsl(0, 0%, 10%);
    --color-card-foreground: hsl(45, 20%, 92%);
    --color-primary:         hsl(43, 85%, 55%);
    --color-primary-fg:      hsl(0, 0%, 5%);
    --color-secondary:       hsl(0, 0%, 14%);
    --color-secondary-fg:    hsl(45, 15%, 85%);
    --color-muted:           hsl(0, 0%, 18%);
    --color-muted-foreground:hsl(40, 8%, 55%);
    --color-border:          hsl(40, 10%, 20%);
    --color-input:           hsl(40, 10%, 20%);
    --color-ring:            hsl(43, 85%, 55%);
    --color-destructive:     hsl(0, 84%, 60%);
    --color-button-text:     hsl(0, 0%, 5%);

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body:    'Raleway', sans-serif;

    /* Button system */
    --btn-radius:         0.5rem;
    --btn-height:         2.75rem;
    --btn-padding:        0.75rem 1.5rem;
    --btn-font-size:      0.875rem;
    --btn-font-weight:    600;
    --btn-letter-spacing: 0.05em;
    --btn-text-transform: uppercase;

    /* Spacing */
    --section-padding:  5rem;
    --card-radius:      0.75rem;

    /* Logo height */
    --logo-height: 60px;

    /* Shadows */
    --shadow-soft:     0 4px 20px -4px hsl(43 85% 55% / 0.08);
    --shadow-elevated: 0 8px 40px -8px hsl(43 85% 55% / 0.15);

    /* Checkout (block + classic) */
    --checkout-gap: 2rem;
    --checkout-content-max: 80rem;
    --checkout-sidebar-min: 360px;
    --checkout-sidebar-max: 400px;
    --checkout-grid-gap: 1.5rem;
}

/* ===========================
   RESET / BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--color-border); }
html { scroll-behavior: smooth; }
body {
    background-color: var(--color-bg);
    color: var(--color-foreground);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); background: none; border: none; }
input, select, textarea { font-family: var(--font-body); }
ul, ol { list-style: none; }
sup { font-size: 0.6em; vertical-align: super; color: var(--color-primary); }

/* ===========================
   LAYOUT
   =========================== */
.container-wide {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 1024px) {
    .container-wide { padding-left: 2rem; padding-right: 2rem; }
}
.scroll-mt { scroll-margin-top: 6rem; }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInFromLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInFromRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.animate-fade-in { animation: fadeIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }

.animate-on-scroll { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll[data-animate="fade-up"] { transform: translateY(40px); }
.animate-on-scroll[data-animate="slide-in-left"] { transform: translateX(-60px); }
.animate-on-scroll[data-animate="slide-in-right"] { transform: translateX(60px); }
.animate-on-scroll[data-animate="scale-up"] { transform: scale(0.9); }
.animate-on-scroll.is-visible { opacity: 1; transform: none; }

/* ===========================
   TYPOGRAPHY UTILITIES
   =========================== */
.font-display { font-family: var(--font-display); }
.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-top: 0.5rem;
}
.section-subtitle {
    color: var(--color-muted-foreground);
    margin-top: 1rem;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.text-muted { color: var(--color-muted-foreground); }

/* ===========================
   BUTTONS
   =========================== */
.btn-primary,
.btn-primary:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding);
    background-color: var(--color-primary);
    color: var(--color-button-text);
    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-radius: var(--btn-radius);
    border: 1px solid transparent;
    min-height: var(--btn-height);
    transition: opacity 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary:disabled:hover { opacity: 0.5; }

.btn-outline,
.btn-outline:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    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: var(--btn-letter-spacing);
    text-transform: var(--btn-text-transform);
    border-radius: var(--btn-radius);
    border: 1px solid var(--color-border);
    min-height: var(--btn-height);
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover { border-color: var(--color-foreground); }

.btn-cta-inverse,
.btn-cta-inverse:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-bg);
    color: var(--color-foreground);
    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-radius: var(--btn-radius);
    border: none;
    min-height: var(--btn-height);
    transition: opacity 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-cta-inverse:hover { opacity: 0.85; }

/* ===========================
   LINK UNDERLINE
   =========================== */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ===========================
   LOGO
   =========================== */
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; border-radius: 50%; object-fit: cover; }
.site-logo-text { line-height: var(--logo-height); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

/* ===========================
   HEADER
   =========================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
html[data-scrolled="true"] .site-header,
.site-header.is-scrolled {
    background-color: hsla(0, 0%, 7%, 0.95);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--color-border);
}
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
@media (min-width: 1024px) { .site-nav { height: 5rem; } }

.site-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-links-desktop {
    display: none;
    align-items: center;
    gap: 2.5rem;
}
@media (min-width: 1024px) { .nav-links-desktop { display: flex; } }
.nav-link {
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: hsla(45,20%,92%,.8);
    transition: color 0.2s;
}
.nav-link:hover { color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-btn {
    position: relative;
    padding: 0.5rem;
    color: var(--color-foreground);
    transition: opacity 0.2s;
    background: none; border: none;
}
.cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 1.25rem; height: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
    border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn { padding: 0.5rem; color: var(--color-foreground); }
.mobile-menu-btn:hover { opacity: 0.6; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
}
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--color-muted-foreground); }

/* ===========================
   HERO
   =========================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.1);
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 48rem;
    animation: fadeIn 0.8s ease 0.2s both;
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-primary);
    animation: slideUp 0.8s ease 0.2s both;
}
.hero-sparkle { color: var(--color-primary); }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    color: var(--color-foreground);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: slideUp 0.9s ease 0.4s both;
}
.hero-subtitle {
    color: hsla(45,20%,92%,0.7);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.8s ease 0.6s both;
}
.hero-cta {
    animation: scaleUp 0.5s ease 0.8s both;
    border: 1px solid hsla(43,85%,55%,.3) !important;
}

/* ===========================
   BRAND STRIP
   =========================== */
.brand-strip { background-color: var(--color-primary); color: var(--color-primary-fg); }
.brand-strip-inner {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    flex-wrap: wrap;
}
.brand-strip-divider { opacity: 0.3; }

/* ===========================
   ABOUT
   =========================== */
.about-section { padding: 6rem 0; background-color: var(--color-bg); }
.about-grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.about-photo-wrap { position: relative; }
.about-photo-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}
.about-photo-bg-circle--top {
    top: -1.5rem; left: -1.5rem;
    width: 6rem; height: 6rem;
    background-color: hsla(43,85%,55%,0.15);
}
.about-photo-bg-circle--bottom {
    bottom: -1rem; right: -1rem;
    width: 4rem; height: 4rem;
    background-color: hsla(43,85%,55%,0.20);
}
.about-photo-frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: hsla(0,0%,14%,0.3);
    padding: 0.75rem;
}
.about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0.75rem;
}
.about-years-badge {
    position: absolute;
    bottom: 2rem; right: 2rem;
    background-color: hsla(0,0%,7%,0.9);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-elevated);
}
.about-years-number { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.about-years-label { font-size: 0.75rem; color: var(--color-muted-foreground); }

.about-bio { }
.about-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background-color: hsla(43,85%,55%,0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.about-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.about-title-label {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--color-primary);
    font-style: italic;
    margin-bottom: 0.5rem;
}
.about-role {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
}
.about-bio-text {
    color: var(--color-muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.about-bio-text strong { color: var(--color-foreground); }
.about-crafts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.about-craft-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    font-size: 0.875rem;
    transition: transform 0.2s;
}
.about-craft-item:hover { transform: scale(1.03); }
.about-craft-item svg { color: var(--color-primary); flex-shrink: 0; }
.about-quote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.25rem;
}
.about-quote-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}
.about-quote-attribution { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ===========================
   SERVICES
   =========================== */
.services-section { padding: 5rem 0; }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
    padding: 1.5rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.25s;
}
.service-card:hover { transform: translateY(-6px); }
.service-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; }
.service-desc { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ===========================
   SHOP
   =========================== */
.shop-section { padding: 5rem 0; }
.shop-filters { margin-bottom: 2rem; }
.shop-search-wrap {
    position: relative;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
}
.shop-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted-foreground);
    pointer-events: none;
}
.shop-search-input {
    width: 100%;
    height: 2.5rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0 2.5rem;
    font-size: 0.875rem;
    color: var(--color-foreground);
    transition: ring 0.2s;
    outline: none;
}
.shop-search-input:focus { box-shadow: 0 0 0 2px var(--color-ring); }
.shop-search-input::placeholder { color: var(--color-muted-foreground); }
.shop-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted-foreground);
}
.shop-search-clear:hover { color: var(--color-foreground); }
.shop-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.category-pill {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--color-secondary);
    color: var(--color-secondary-fg);
    border-radius: 0.5rem;
    border: none;
    transition: background-color 0.2s, transform 0.15s;
}
.category-pill:hover { background-color: var(--color-muted); }
.category-pill.active { background-color: var(--color-primary); color: var(--color-primary-fg); }

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px)  { .shop-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .shop-product-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.product-card-hidden { display: none !important; }

.shop-no-results {
    text-align: center;
    padding: 5rem 0;
}
.shop-no-results p { color: var(--color-muted-foreground); margin-bottom: 1rem; }

/* Product Cards */
.product-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s, transform 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-8px); }
.product-card-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.product-card-top {
    position: relative;
    flex-shrink: 0;
}
.product-card-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-card-info-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-height: 0;
}
.product-card-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    background-color: var(--color-secondary);
    overflow: hidden;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
/* Fill 3/4 frame: global img{height:auto} + WC width/height attrs otherwise leave letterboxing */
.product-card-img-wrap .product-card-img,
.product-card-img-wrap img.product-card-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.7s ease-out;
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-img.sold-out-img { opacity: 0.6; }
.product-cat-badge {
    position: absolute;
    top: 0.625rem; left: 0.625rem;
    padding: 0.25rem 0.625rem;
    background-color: hsla(0,0%,7%,0.85);
    backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.375rem;
    color: var(--color-foreground);
}
.sold-out-badge {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-foreground);
    color: var(--color-bg);
}
.new-badge {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}
/* Loop quick-add: matches Lovable (w-9 h-9, bg-background/90, icon only) — must stay outside a.add_to_cart_button WC block */
.product-quick-add {
    position: absolute;
    z-index: 2;
    bottom: 0.75rem;
    right: 0.75rem;
    box-sizing: border-box;
    width: 2.25rem;
    height: 2.25rem;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0;
    border-radius: 0.375rem;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    line-height: 1;
    font-size: 0 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    color: var(--color-foreground) !important;
    background-color: hsla(0, 0%, 7%, 0.9) !important;
    background-color: color-mix(in hsl, var(--color-bg) 90%, transparent) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.18), 0 2px 4px -2px rgb(0 0 0 / 0.12);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-quick-add svg {
    flex-shrink: 0;
    display: block;
}
.product-quick-add:hover {
    background-color: var(--color-primary) !important;
    color: var(--color-primary-fg) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 14px -2px hsl(43 85% 55% / 0.35);
}
.product-quick-add:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}
.product-quick-add.just-added {
    background-color: var(--color-primary) !important;
    color: var(--color-primary-fg) !important;
    transform: scale(1.1);
}
.product-card-info { padding: 0.75rem 0.25rem 0.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.product-card-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
    transition: opacity 0.2s;
}
.product-card:hover .product-card-name { opacity: 0.7; }
.product-card-price { font-size: 1.125rem; font-weight: 700; color: var(--color-primary); }
.product-card-sold-out { font-size: 0.75rem; color: var(--color-muted-foreground); font-style: italic; }

/* Coming soon card */
.coming-soon-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 20rem;
    border-style: dashed;
    text-decoration: none;
    color: inherit;
    cursor: default;
    pointer-events: none;
}
.coming-soon-icon { color: var(--color-primary); margin-bottom: 1rem; }
.coming-soon-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.coming-soon-text { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ===========================
   CUSTOM ORDERS CTA
   =========================== */
.cta-section {
    width: 100%;
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 60vh;
    width: 100%;
}
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1fr 1fr; } }
/* Lovable: bg-primary column = flex center + p-12 lg:p-20, content in one max-width block */
.cta-text-col {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
@media (min-width: 1024px) { .cta-text-col { padding: 5rem; } }
.cta-text-inner {
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.cta-eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsla(0,0%,5%,0.5);
    margin-bottom: 1.5rem;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-primary-fg);
}
.cta-body {
    color: hsla(0,0%,5%,0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.cta-image-col {
    position: relative;
    overflow: hidden;
    background-color: var(--color-secondary);
    min-height: 40vh;
}
.cta-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    position: absolute;
    inset: 0;
}
.cta-image-col:hover .cta-image { transform: scale(1.05); }

/* ===========================
   FAQ
   =========================== */
.faq-section { padding: 5rem 0; }
.faq-list { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.faq-group {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
}
.faq-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    transition: background-color 0.2s;
    text-align: left;
    background: none; border: none;
    color: var(--color-foreground);
    cursor: pointer;
}
.faq-group-toggle:hover { background-color: hsla(43,85%,55%,.1); }
.faq-icon { display: flex; align-items: center; }
.faq-group-toggle[aria-expanded="true"] .faq-icon--plus { display: none; }
.faq-group-toggle[aria-expanded="true"] .faq-icon--minus { display: flex !important; }
.faq-group-toggle[aria-expanded="true"] .faq-icon svg { color: var(--color-primary); }
.faq-icon--minus { display: none; }

/* display:flex here overrides the HTML hidden attribute unless we force hidden closed state */
.faq-group-items {
    padding: 0 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.faq-group-items[hidden] {
    display: none !important;
}
.faq-item { border: 1px solid var(--color-border); border-radius: 0.375rem; }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    background: none; border: none;
    color: var(--color-foreground);
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}
.faq-question:hover { background-color: hsla(43,85%,55%,.1); }
.faq-question[aria-expanded="true"] { color: var(--color-primary); }
.faq-question[aria-expanded="true"] .faq-icon--plus { display: none; }
.faq-question[aria-expanded="true"] .faq-icon--minus { display: flex !important; }
.faq-answer { padding: 0 1rem 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }
.faq-answer[hidden] {
    display: none !important;
}

/* ===========================
   CONTACT
   =========================== */
.contact-section { padding: 5rem 0; background-color: var(--color-card); }
.contact-inner { max-width: 42rem; }
.contact-info-bar {
    background-color: var(--color-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
.contact-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    flex-wrap: wrap;
}
.contact-email-link { transition: color 0.2s; }
.contact-email-link:hover { color: var(--color-foreground); }
.contact-success { text-align: center; padding: 3rem 0; }
.contact-success-icon {
    width: 4rem; height: 4rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-primary-fg);
}
.contact-success-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }
.contact-success-body { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-foreground);
    outline: none;
    transition: box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { box-shadow: 0 0 0 1px var(--color-ring); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted-foreground); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background-color: var(--color-bg); }
.form-textarea { resize: none; }
.form-submit-wrap { display: flex; justify-content: center; }
.form-submit-wrap .btn-primary { width: 100%; }
@media (min-width: 768px) { .form-submit-wrap .btn-primary { width: auto; min-width: 200px; } }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    border-top: 1px solid hsla(43,85%,55%,.2);
    background-color: var(--color-bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 4rem 0; } }
.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.6; }
.footer-heading { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.footer-link:hover { color: var(--color-foreground); }
.footer-connect-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-connect-list li { display: flex; align-items: center; gap: 0.5rem; }
.footer-connect-list svg { color: var(--color-muted-foreground); flex-shrink: 0; }
.footer-socials { display: flex; gap: 1rem; }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
@media (min-width: 1024px) { .footer-bottom { padding-bottom: 4rem; } }
.footer-copyright { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-credit { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-credit-link { text-decoration: underline; transition: color 0.2s; }
.footer-credit-link:hover { color: var(--color-foreground); }

/* ===========================
   CART DRAWER
   =========================== */
#theme-cart-overlay {
    position: fixed;
    inset: 0;
    background-color: hsla(45,20%,92%,.2);
    z-index: 200;
    display: none;
}
body.cart-open #theme-cart-overlay { display: block; }

#theme-cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 100%;
    max-width: 28rem;
    background-color: var(--color-bg);
    z-index: 201;
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-header-left { display: flex; align-items: center; gap: 0.75rem; }
.cart-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.cart-empty-btn {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-muted-foreground);
    background: transparent;
    border: none;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}
.cart-empty-btn:hover { color: var(--color-destructive); }
.cart-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0;
    color: var(--color-foreground);
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.cart-close-btn:hover {
    background-color: var(--color-secondary);
    opacity: 1;
}
.cart-close-btn svg {
    display: block;
    flex-shrink: 0;
    color: inherit;
}

.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 1.5rem; }
.cart-empty-icon { color: var(--color-muted-foreground); }
.cart-empty-text { color: var(--color-muted-foreground); }

.cart-item { display: flex; gap: 1rem; }
.cart-item-img-link { width: 5rem; height: 6rem; background-color: var(--color-secondary); border-radius: 0.25rem; overflow: hidden; flex-shrink: 0; }
.cart-item-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name-link { display: block; font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.2s; }
.cart-item-name-link:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.cart-item-meta { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.cart-item-qty-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s; color: var(--color-foreground); }
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-item-qty { font-size: 0.875rem; min-width: 1.5rem; text-align: center; }
.cart-item-remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.cart-item-remove:hover { color: var(--color-foreground); }

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-checkout-btn { width: 100%; }

/* ===========================
   SINGLE PRODUCT PAGE
   =========================== */
.single-product-main { padding-top: 5rem; }
@media (min-width: 1024px) { .single-product-main { padding-top: 6rem; } }
.back-to-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    transition: color 0.2s;
    padding: 1.5rem 0;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 5rem;
}
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Gallery */
.product-gallery { }
.product-main-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: var(--color-secondary);
}
.product-main-img-wrap .product-main-img,
.product-main-img-wrap img#product-main-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: opacity 0.2s;
}
.product-thumbnails { display: flex; gap: 0.5rem; overflow-x: auto; }
.product-thumb-btn {
    flex-shrink: 0;
    width: 4rem; height: 5rem;
    background-color: var(--color-secondary);
    overflow: hidden;
    border-radius: 0.25rem;
    border: 2px solid transparent;
    padding: 0;
    transition: border-color 0.2s;
    cursor: pointer;
}
.product-thumb-btn.is-active { border-color: var(--color-foreground); }
.product-thumb-btn:hover { border-color: var(--color-muted-foreground); }
.product-thumb-img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info { }
@media (min-width: 1024px) { .product-info { padding-top: 2.5rem; } }
.product-category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin: 0.5rem 0 1rem; }
.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.product-sold-out-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-muted);
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.product-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; white-space: pre-line; }

/* Attributes */
.product-attr-wrap { margin-bottom: 1.5rem; }
.product-attr-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.75rem; }
.product-color-swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.product-color-swatch {
    width: 2.5rem; height: 2.5rem;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}
.product-color-swatch:hover { transform: scale(1.05); }
.product-color-swatch.is-active { border-color: var(--color-foreground); transform: scale(1.1); }
.product-size-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-size-btn {
    min-width: 3rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-foreground);
    border-radius: 0.25rem;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    cursor: pointer;
}
.product-size-btn:hover { border-color: var(--color-foreground); }
.product-size-btn.is-active { border-color: var(--color-foreground); background-color: var(--color-foreground); color: var(--color-bg); }

/* Quantity + Add to Cart (Lovable: compact stepper + flex-1 CTA with live total) */
.theme-add-to-cart-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.theme-quantity-wrapper {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    height: 2.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    overflow: hidden;
}
.theme-qty-minus,
.theme-qty-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    flex-shrink: 0;
    padding: 0;
    height: 100%;
    transition: background-color 0.2s;
    color: var(--color-foreground);
    background: none;
    border: none;
}
.theme-qty-minus { border-right: 1px solid var(--color-border); }
.theme-qty-plus { border-left: 1px solid var(--color-border); }
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
    box-sizing: border-box;
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.75rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 0.125rem;
    height: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--color-foreground);
    font-size: 0.875rem;
    line-height: 1.2;
    outline: none;
    -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.theme-btn-primary {
    flex: 1;
    min-width: 0;
}
.theme-add-to-cart-area .single_add_to_cart_button.button,
.theme-add-to-cart-area button.single_add_to_cart_button,
.theme-add-to-cart-area a.single_add_to_cart_button {
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 2.75rem !important;
    height: auto !important;
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
}

/* Product details list */
.product-details-section { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 2rem; }
.product-details-heading { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.product-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.product-details-dot { width: 0.375rem; height: 0.375rem; background-color: var(--color-foreground); border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }

/* Related products */
.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; margin-bottom: 2.5rem; }
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 1024px) { .related-products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* Variable product */
.variations { border-collapse: collapse; width: 100%; }
.variations td { padding: 0.5rem 0; }
.variations td.label { width: 7rem; }
.variations td.label label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.theme-attr-select-hidden { display: none !important; }
.theme-variation-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-foreground);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.theme-variation-btn:hover { border-color: var(--color-foreground); }
.theme-variation-btn.is-active { border-color: var(--color-foreground); background-color: var(--color-foreground); color: var(--color-bg); }

/* ===========================
   WOOCOMMERCE ADD TO CART OVERRIDES (Sections 11.4.1, 11.4.2)
   =========================== */
.single_add_to_cart_button.button,
.add_to_cart_button.button:not(.product-quick-add),
a.single_add_to_cart_button,
a.add_to_cart_button:not(.product-quick-add) {
    background-color: var(--color-primary) !important;
    color: var(--color-button-text) !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;
    text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:not(.product-quick-add):hover {
    opacity: 0.85 !important;
    background-color: var(--color-primary) !important;
    color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:not(.product-quick-add):disabled,
.add_to_cart_button.button:not(.product-quick-add).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:not(.product-quick-add):disabled:hover,
.add_to_cart_button.button:not(.product-quick-add).disabled:hover {
    opacity: 0.4 !important;
    background-color: var(--color-primary) !important;
}
/* Hide "View cart" link injected after AJAX add-to-cart */
.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; }

/* ===========================
   WOOCOMMERCE ARCHIVE / SHOP PAGE
   =========================== */
.shop-archive-main { padding-top: 6rem; }
.shop-archive-section { padding: 3rem 0; }
.shop-archive-header { text-align: center; margin-bottom: 2rem; }
.shop-archive-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.shop-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px)  { .shop-archive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .shop-archive-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.shop-archive-no-products { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* ===========================
   WOOCOMMERCE STYLES OVERRIDE
   =========================== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: var(--color-card);
    border-left: 4px solid var(--color-primary);
    color: var(--color-foreground);
    list-style: none;
}
.woocommerce-error { border-left-color: var(--color-destructive); }
.woocommerce .quantity input { width: 100%; background: transparent; border: none; outline: none; }

/* ===========================
   CHECKOUT — Block checkout (WC Blocks) + theme containers
   Scope: body.woocommerce-checkout OR .entry-content .wc-block-checkout (bloque en cualquier página)
   =========================== */

/* No comprimir el checkout por contenedores del tema (#main-content, article, .container-wide, .entry-content) */
body.woocommerce-checkout #main-content.site-main,
body.woocommerce-checkout #main-content.site-main .page-content,
body.woocommerce-checkout #main-content.site-main article.page-content,
body.woocommerce-checkout .page-content-inner.container-wide,
body.woocommerce-checkout .page-content .container-wide {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}
body.woocommerce-checkout .entry-content {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

/* Título de página alineado con el checkout (misma caja de 1280px centrada) */
body.woocommerce-checkout .page-content-inner > .page-title,
body.woocommerce-checkout .page-content-inner.container-wide > .page-title,
.page-content-inner:has(.entry-content .wc-block-checkout) > .page-title {
    max-width: var(--checkout-content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* Raíz del bloque: ancho deseado y centrado */
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wp-block-woocommerce-checkout {
    max-width: var(--checkout-content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout {
    display: block;
    color: var(--color-foreground);
    font-family: var(--font-body);
    max-width: var(--checkout-content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* El grid real vive en el sidebar layout (no solo en .wc-block-checkout) */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--checkout-grid-gap);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: start;
}
@media (min-width: 782px) {
    body.woocommerce-checkout .wc-block-components-sidebar-layout,
    body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
    .entry-content .wc-block-components-sidebar-layout,
    .entry-content .wc-block-checkout-sidebar-layout {
        grid-template-columns: 1fr minmax(var(--checkout-sidebar-min), var(--checkout-sidebar-max));
    }
}

/* Avisos: ancho completo del grid y primero visualmente */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
    grid-column: 1 / -1;
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Misma caja útil que el checkout cuando los avisos van fuera del layout (poco habitual) */
body.woocommerce-checkout .entry-content > .wc-block-components-notices,
.entry-content > .wc-block-components-notices {
    max-width: var(--checkout-content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Formulario principal + sidebar: orden y flexibilidad */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-checkout__main,
.entry-content .wc-block-components-sidebar-layout > .wc-block-checkout__main,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-checkout__main {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-checkout__sidebar {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Resumen / totals: no comprimir */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Hijos genéricos del layout (por si cambia el marcado) */
body.woocommerce-checkout .wc-block-components-sidebar-layout > *:not(.wc-block-components-notices),
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *:not(.wc-block-components-notices),
.entry-content .wc-block-components-sidebar-layout > *:not(.wc-block-components-notices),
.entry-content .wc-block-checkout-sidebar-layout > *:not(.wc-block-components-notices) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select {
    width: 100% !important;
    max-width: none !important;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: var(--color-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    height: auto;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
    box-shadow: 0 0 0 1px var(--color-ring);
    outline: none;
}
/* Fila Return to cart + Place order: enlace en una línea; botón sin ocupar todo el ancho */
body.woocommerce-checkout .wc-block-checkout__actions_row,
body.woocommerce-checkout .wc-block-checkout__actions-row,
.entry-content .wc-block-checkout .wc-block-checkout__actions_row,
.entry-content .wc-block-checkout .wc-block-checkout__actions-row {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 600px) {
    body.woocommerce-checkout .wc-block-checkout__actions_row,
    body.woocommerce-checkout .wc-block-checkout__actions-row,
    .entry-content .wc-block-checkout .wc-block-checkout__actions_row,
    .entry-content .wc-block-checkout .wc-block-checkout__actions-row {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-return-to-cart-button {
    white-space: nowrap !important;
    flex-shrink: 0;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--color-muted-foreground);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
    background-color: var(--color-primary) !important;
    color: var(--color-primary-fg) !important;
    border: none !important;
    border-radius: var(--btn-radius) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 0.625rem 1.75rem !important;
    min-height: 2.75rem !important;
    width: auto !important;
    max-width: min(100%, 16rem);
    flex: 0 0 auto;
    transition: opacity 0.2s !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}
@media (min-width: 600px) {
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
    .entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
        margin-left: auto;
        max-width: min(100%, 18rem);
    }
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
    opacity: 0.85 !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-checkout__sidebar {
    background-color: var(--color-card);
    border-radius: var(--card-radius);
    padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-checkout .wc-block-components-notice-banner {
    grid-column: 1 / -1;
}
body.woocommerce-checkout .wc-block-components-title,
.entry-content .wc-block-checkout .wc-block-components-title {
    font-family: var(--font-display);
    color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-checkout label,
.entry-content .wc-block-checkout label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-foreground);
}

/* ===========================
   THANK YOU PAGE
   =========================== */
.theme-thankyou-page .entry-content { padding: 8rem 0 4rem; text-align: center; max-width: 40rem; margin: 0 auto; }
.woocommerce-order .woocommerce-thankyou-order-details { background: var(--color-card); border-radius: var(--card-radius); padding: 1.5rem; list-style: none; margin: 2rem 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.woocommerce-order .woocommerce-thankyou-order-details li strong { display: block; color: var(--color-muted-foreground); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

/* ===========================
   SINGLE PRODUCT PAGE: inner pages header
   =========================== */
.theme-no-hero .site-header {
    background-color: hsla(0, 0%, 7%, 0.95);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--color-border);
}

/* ===========================
   PAGE (non-front) base styles
   =========================== */
.page-content { padding-top: 8rem; padding-bottom: 4rem; }
.page-title { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); margin-bottom: 2rem; }
.entry-content { color: var(--color-muted-foreground); line-height: 1.7; }
.entry-content p { margin-bottom: 1rem; }
.entry-content h2, .entry-content h3 { color: var(--color-foreground); margin-bottom: 0.75rem; margin-top: 2rem; }

/* ===========================
   PRICE FILTER (Section 31.4)
   =========================== */
.price-range-wrapper { position: relative; display: flex; margin: 1rem 0; }
.range-segment { width: 50%; position: relative; }
.range-segment input[type="range"] { width: 100%; cursor: pointer; accent-color: var(--color-primary); background: transparent; }
.range-segment--min input { direction: rtl; }
.range-segment--max input { direction: ltr; }
.range-track-fill {
    position: absolute;
    height: 4px;
    background: var(--color-primary);
    top: 50%; transform: translateY(-50%);
    pointer-events: none;
}

/* ===========================
   RESPONSIVE MISC
   =========================== */
@media (max-width: 640px) {
    .hero-title { font-size: 2.25rem; }
    .about-crafts-grid { grid-template-columns: 1fr; }
    .cta-text-col { padding: 3rem 1.5rem; }
}
