/*
Theme Name: Urban Abstracts Co Custom Theme
Description: Urban Abstracts Co storefront — painted glaze house edition. Original folk-geometric patterns and saturated glaze fields, all authored in-theme (CSS/inline SVG).
Author: Urban Abstracts Co
Version: 0.6.0
License: GNU GPLv2 or later
Text Domain: urban-abstracts-theme
*/

/* Self-hosted latin fonts: no third-party font requests are made. */
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400;
    font-stretch: 100%;
    font-display: swap;
    src: url("bricolage-grotesque-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 600;
    font-stretch: 100%;
    font-display: swap;
    src: url("bricolage-grotesque-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 700;
    font-stretch: 100%;
    font-display: swap;
    src: url("bricolage-grotesque-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 800;
    font-stretch: 100%;
    font-display: swap;
    src: url("bricolage-grotesque-800.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 400;
    font-stretch: 100%;
    font-display: swap;
    src: url("karla-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 500;
    font-stretch: 100%;
    font-display: swap;
    src: url("karla-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 700;
    font-stretch: 100%;
    font-display: swap;
    src: url("karla-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* UI/UX Pro Max Design System Tokens */
    --surface-bg: #FAF8F5;
    --surface-card: #F3EFEA;
    --surface-subtle: #ECE6DE;
    --surface-border: #E4DCD3;
    --surface-border-strong: #D5C9BC;
    --text-primary: #18181B;
    --text-secondary: #52525B;
    --text-muted: #71717A;
    --brand-primary: #134E4A;
    --brand-primary-hover: #0F3D3A;
    --brand-accent: #C2410C;
    --brand-accent-hover: #9A3412;
    --brand-accent-bright: #EA580C;

    /* Legacy Variable Aliases (100% Backwards Compatible) */
    --bisque: var(--surface-bg);
    --bisque-deep: var(--surface-card);
    --cream: var(--surface-card);
    --ink: var(--text-primary);
    --ink-soft: var(--text-secondary);
    --marigold: var(--brand-accent);
    --marigold-bright: var(--brand-accent-bright);
    --teal: var(--brand-primary);
    --teal-deep: var(--brand-primary-hover);
    --cobalt: #2743c8;
    --magenta: #c0165a;
    --leaf: #2e7d3c;
    --saffron: #ffd257;
    --ivory: #fff6e0;
    --line: #ead9bd;
    --heading: 'Fraunces', 'Playfair Display', 'Bricolage Grotesque', Georgia, serif;
    --body: 'Plus Jakarta Sans', 'Inter', 'Karla', system-ui, -apple-system, sans-serif;

    --folk-tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='880' height='220' viewBox='0 0 880 220'%3E%3Crect x='0' y='0' width='220' height='220' fill='%230e6f6b'/%3E%3Cg fill='%23fff6e0'%3E%3Cellipse cx='110' cy='56' rx='20' ry='54'/%3E%3Cellipse cx='110' cy='56' rx='20' ry='54' transform='rotate(45 110 110)'/%3E%3Cellipse cx='110' cy='56' rx='20' ry='54' transform='rotate(90 110 110)'/%3E%3Cellipse cx='110' cy='56' rx='20' ry='54' transform='rotate(135 110 110)'/%3E%3Cellipse cx='110' cy='56' rx='20' ry='54' transform='rotate(180 110 110)'/%3E%3Cellipse cx='110' cy='56' rx='20' ry='54' transform='rotate(225 110 110)'/%3E%3Cellipse cx='110' cy='56' rx='20' ry='54' transform='rotate(270 110 110)'/%3E%3Cellipse cx='110' cy='56' rx='20' ry='54' transform='rotate(315 110 110)'/%3E%3C/g%3E%3Ccircle cx='110' cy='110' r='21' fill='%23ffd257'/%3E%3Ccircle cx='110' cy='110' r='9' fill='%23c0165a'/%3E%3Ccircle cx='24' cy='24' r='7' fill='%23fff6e0' opacity='.7'/%3E%3Ccircle cx='196' cy='24' r='7' fill='%23fff6e0' opacity='.7'/%3E%3Ccircle cx='24' cy='196' r='7' fill='%23fff6e0' opacity='.7'/%3E%3Ccircle cx='196' cy='196' r='7' fill='%23fff6e0' opacity='.7'/%3E%3Crect x='220' y='0' width='220' height='220' fill='%23c0165a'/%3E%3Cg stroke='%23fff6e0' stroke-width='3' fill='none' opacity='.95'%3E%3Cpath d='M220,0L440,220M220,55L385,220M220,110L330,220M220,165L275,220M275,0L440,165M330,0L440,110M385,0L440,55M220,0L220,0M220,220L440,0M275,220L440,55M330,220L440,110M385,220L440,165'/%3E%3C/g%3E%3Cg fill='%23ffd257'%3E%3Ccircle cx='275' cy='55' r='7'/%3E%3Ccircle cx='385' cy='55' r='7'/%3E%3Ccircle cx='330' cy='110' r='7'/%3E%3Ccircle cx='220' cy='110' r='7'/%3E%3Ccircle cx='440' cy='110' r='7'/%3E%3Ccircle cx='275' cy='165' r='7'/%3E%3Ccircle cx='385' cy='165' r='7'/%3E%3Ccircle cx='330' cy='220' r='7'/%3E%3Ccircle cx='330' cy='0' r='7'/%3E%3C/g%3E%3Crect x='440' y='0' width='220' height='220' fill='%232743c8'/%3E%3Cg stroke='%23fff6e0' stroke-width='7' fill='none' stroke-linejoin='round'%3E%3Cpath d='M440,30L472,8L504,30L536,8L568,30L600,8L632,30L664,8'/%3E%3Cpath d='M440,90L472,68L504,90L536,68L568,90L600,68L632,90L664,68'/%3E%3Cpath d='M440,150L472,128L504,150L536,128L568,150L600,128L632,150L664,128'/%3E%3Cpath d='M440,210L472,188L504,210L536,188L568,210L600,188L632,210L664,188'/%3E%3C/g%3E%3Cg fill='%23ffd257'%3E%3Ccircle cx='472' cy='8' r='6'/%3E%3Ccircle cx='536' cy='8' r='6'/%3E%3Ccircle cx='600' cy='8' r='6'/%3E%3Ccircle cx='664' cy='8' r='6'/%3E%3Ccircle cx='472' cy='68' r='6'/%3E%3Ccircle cx='536' cy='68' r='6'/%3E%3Ccircle cx='600' cy='68' r='6'/%3E%3Ccircle cx='664' cy='68' r='6'/%3E%3Ccircle cx='472' cy='128' r='6'/%3E%3Ccircle cx='536' cy='128' r='6'/%3E%3Ccircle cx='600' cy='128' r='6'/%3E%3Ccircle cx='664' cy='128' r='6'/%3E%3Ccircle cx='472' cy='188' r='6'/%3E%3Ccircle cx='536' cy='188' r='6'/%3E%3Ccircle cx='600' cy='188' r='6'/%3E%3Ccircle cx='664' cy='188' r='6'/%3E%3C/g%3E%3Crect x='660' y='0' width='220' height='220' fill='%232e7d3c'/%3E%3Ccircle cx='770' cy='110' r='66' fill='none' stroke='%23fff6e0' stroke-width='7'/%3E%3Ccircle cx='770' cy='110' r='17' fill='%23ffd257'/%3E%3Cg fill='%23fff6e0' opacity='.85'%3E%3Ccircle cx='692' cy='32' r='7'/%3E%3Ccircle cx='848' cy='32' r='7'/%3E%3Ccircle cx='692' cy='188' r='7'/%3E%3Ccircle cx='848' cy='188' r='7'/%3E%3C/g%3E%3C/svg%3E");

    --folk-seam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cg fill='none' stroke='%23fff6e0' stroke-width='2.5'%3E%3Cpath d='M0,14L14,4L28,14L42,4L56,14L70,4L84,14L98,4L112,14'/%3E%3C/g%3E%3Ccircle cx='14' cy='22' r='3' fill='%23ffd257'/%3E%3Ccircle cx='56' cy='22' r='3' fill='%23ffd257'/%3E%3Ccircle cx='98' cy='22' r='3' fill='%23ffd257'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--teal) var(--bisque); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bisque); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 8px; border: 3px solid var(--bisque); }
::selection { background: var(--magenta); color: var(--ivory); }
input, textarea { caret-color: var(--teal); }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bisque);
    font-family: var(--body);
    line-height: 1.55;
    font-size: 1rem;
}
h1, h2, h3, h4 {
    font-family: var(--heading);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--teal-deep); text-underline-offset: .2em; }
a:visited { color: var(--magenta); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
}
.site-footer a:focus-visible, .promise-band a:focus-visible, .announcement-band a:focus-visible {
    outline-color: var(--saffron);
}
.price, .cart-count { font-variant-numeric: tabular-nums; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; width: auto; height: auto; overflow: visible; clip: auto;
    white-space: normal; background: var(--bisque); color: var(--ink); padding: .75rem 1.2rem;
    border-radius: 12px; box-shadow: 0 2px 0 rgba(51, 32, 46, .18), 0 10px 22px -10px rgba(51, 32, 46, .45); }

/* ---------- Announcement ribbon ---------- */
.announcement-band {
    background: var(--teal-deep);
    background-image: var(--folk-seam);
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 120px 14px;
    color: var(--ivory);
    padding: .55rem 1.5rem .95rem;
    text-align: center;
    font: 600 .92rem/1.4 var(--body);
    letter-spacing: .02em;
}
.announcement-band p { margin: 0; }

/* ---------- Sticky navbar: Two-tier e-commerce header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 0 rgba(51, 32, 46, .12), 0 12px 26px -18px rgba(51, 32, 46, .8); }
.sticky-navbar { position: sticky; top: 0; display: flex; flex-direction: column; width: 100%; background: var(--teal); }
.sticky-navbar a { color: var(--ivory); text-decoration: none; font-family: var(--heading); font-weight: 600; }
.sticky-navbar a:visited { color: var(--ivory); }
.sticky-navbar a:hover { text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 2px; text-decoration-color: var(--saffron); }
.sticky-navbar a:focus-visible { outline-color: var(--saffron); }

/* Tier 1: Primary Brand & Utilities Bar */
.header-main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: .85rem clamp(1rem, 3vw, 2.5rem);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
.site-name { font-size: 1.45rem; font-weight: 800 !important; white-space: nowrap; flex-shrink: 0; margin-right: .5rem; }

.product-search {
    display: flex;
    gap: .4rem;
    align-items: center;
    flex: 0 1 520px;
    min-width: 0;
    max-width: 520px;
    margin: 0 1.5rem;
}
#search-box {
    min-width: 0;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: .55rem .9rem;
    font: 500 .95rem var(--body);
    color: var(--ink);
    background: var(--ivory);
}
#search-box::placeholder { color: var(--ink-soft); opacity: 1; }
.product-search button {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 0; border-radius: 14px; padding: .6rem 1rem;
    background: var(--marigold); color: #FFFFFF;
    font: 700 .95rem var(--body); cursor: pointer;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .22), 0 8px 18px -10px rgba(51, 32, 46, .55);
    transition: background .18s ease-out, transform .18s ease-out, box-shadow .18s ease-out;
    flex-shrink: 0;
}
.product-search button:hover { background: var(--marigold-bright); transform: translateY(-1px); box-shadow: 0 3px 0 rgba(51, 32, 46, .22), 0 12px 22px -10px rgba(51, 32, 46, .55); }
.product-search button svg { display: block; }
.product-search button:focus-visible { outline-color: var(--ivory); }

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    margin-left: auto;
    flex-shrink: 0;
}
.sticky-navbar a.cart-drawer-trigger, .sticky-navbar a.cart-drawer-trigger:visited {
    display: inline-flex; align-items: center; gap: .5rem;
    border-radius: 14px; padding: .55rem 1rem;
    background: var(--marigold); color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .22), 0 8px 18px -10px rgba(51, 32, 46, .55);
    transition: background .18s ease-out, transform .18s ease-out;
    white-space: nowrap;
    flex-shrink: 0;
}
.sticky-navbar a.cart-drawer-trigger:hover { background: var(--marigold-bright); text-decoration: none; transform: translateY(-1px); }
.sticky-navbar a.account-trigger, .sticky-navbar a.account-trigger:visited {
    display: inline-flex; align-items: center; gap: .5rem;
    border-radius: 14px; padding: .55rem 1rem;
    background: var(--bisque); color: var(--ink);
    border: 1.5px solid var(--line);
    font-weight: 700;
    transition: border-color .18s ease-out, background .18s ease-out, transform .18s ease-out;
    white-space: nowrap;
    flex-shrink: 0;
}
.sticky-navbar a.account-trigger:hover { background: var(--bisque-deep); border-color: var(--ink-soft); text-decoration: none; transform: translateY(-1px); }
.sticky-navbar a.account-trigger .account-label,
.sticky-navbar a.cart-drawer-trigger .cart-label {
    display: inline;
}
.cart-count {
    display: inline-grid; place-items: center;
    min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem;
    border-radius: 50%; background: var(--ink); color: var(--ivory);
    font: 700 .78rem var(--body);
}

/* Tier 2: Dedicated Category Sub-Navigation */
.category-nav-bar {
    background: var(--teal-deep);
    border-top: 1px solid rgba(255, 246, 224, .18);
    width: 100%;
}
.category-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    padding: .5rem clamp(1rem, 3vw, 2.5rem);
    max-width: 1400px;
    margin: 0 auto;
}
.category-nav-inner a {
    font-size: .95rem;
    letter-spacing: .01em;
    padding: .15rem 0;
    white-space: nowrap;
}

/* ---------- Hero: the painted tile wall ---------- */
.hero-mural {
    position: relative;
    min-height: 0;
    display: grid; place-items: center;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
    background: var(--teal);
}
.mural-layer {
    position: absolute; inset: -280px -600px -280px 0;
    background-image: var(--folk-tiles);
    background-repeat: repeat;
    background-size: 880px 220px;
    transform-origin: center 78%;
    animation:
        glaze-fill 1.1s cubic-bezier(.16, 1, .3, 1) both,
        mural-drift 120s linear 1.2s infinite;
    will-change: transform;
}
@keyframes glaze-fill {
    from { transform: scaleY(.06); opacity: .25; }
    to { transform: scaleY(1); opacity: 1; }
}
@keyframes mural-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-220px); }
}
.mural-layer::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 42%, rgba(51, 32, 46, .38) 0%, rgba(51, 32, 46, .12) 46%, rgba(51, 32, 46, 0) 72%);
    pointer-events: none;
}
.mural-window {
    position: relative;
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 1.25fr);
    column-gap: 2.5rem;
    row-gap: 1.8rem;
    align-items: center;
    background: var(--surface-bg);
    border: 8px solid var(--ivory);
    border-radius: 26px;
    box-shadow: 0 3px 0 rgba(51, 32, 46, .35), 0 34px 60px -28px rgba(20, 10, 18, .85);
    padding: 2.4rem 2.6rem;
    text-align: left;
}
.mural-window::before, .mural-window::after {
    content: "";
    display: none;
    height: 12px;
    margin: -.35rem auto .9rem;
    width: 78%;
    background: var(--folk-seam);
    background-size: 120px 14px;
    border-radius: 6px;
    opacity: .9;
}
.mural-window::after { margin: .9rem auto -.35rem; }
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.hero-content h1, .mural-window h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.02;
    margin: 0 0 1.1rem;
    color: var(--ink);
}
.hero-content p, .mural-window p {
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    color: var(--ink-soft);
    margin: 0;
    max-width: 40ch;
}
.hero-cta, .hero-cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.7rem;
    border-radius: 16px;
    background: var(--marigold);
    color: #FFFFFF;
    font: 700 1.05rem var(--heading);
    letter-spacing: .01em;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(51, 32, 46, .3), 0 14px 26px -12px rgba(51, 32, 46, .6);
    transition: background .18s ease-out, transform .18s ease-out, box-shadow .18s ease-out;
}
.hero-cta:hover {
    background: var(--marigold-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(51, 32, 46, .3), 0 20px 30px -12px rgba(51, 32, 46, .6);
}
.hero-cta:focus-visible { outline-color: var(--ivory); }

/* Dual CTAs (Requirement R1) */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.6rem;
}
.hero-cta-group .hero-cta {
    margin-top: 0;
}
.hero-cta-primary {
    background: var(--brand-accent);
    color: #FFFFFF !important;
    box-shadow: 0 3px 0 rgba(194, 65, 12, .4), 0 14px 26px -12px rgba(194, 65, 12, .6);
}
.hero-cta-primary:hover {
    background: var(--brand-accent-hover);
    color: #FFFFFF !important;
    box-shadow: 0 4px 0 rgba(194, 65, 12, .4), 0 20px 30px -12px rgba(194, 65, 12, .6);
}
.hero-cta-secondary {
    background: transparent;
    color: var(--brand-primary) !important;
    border: 2px solid var(--brand-primary);
    box-shadow: 0 2px 0 rgba(19, 78, 74, .15);
}
.hero-cta-secondary:hover {
    background: var(--brand-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 0 rgba(19, 78, 74, .25), 0 14px 22px -10px rgba(19, 78, 74, .4);
}

/* Featured product inside the hero window: merchandise above the fold */
.hero-feature {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    margin: 1.4rem auto .2rem;
    padding: .9rem 1.1rem .8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffdf6;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .1), 0 14px 26px -18px rgba(51, 32, 46, .5);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease-out;
}
.hero-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 3px 0 rgba(51, 32, 46, .14), 0 22px 34px -18px rgba(51, 32, 46, .55);
}
.hero-feature img {
    display: block;
    width: 148px;
    height: 148px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.hero-feature .hero-feature-title {
    font-family: var(--heading);
    font-weight: 700;
    color: var(--ink);
    font-size: .98rem;
}
.hero-feature .price {
    color: var(--teal-deep);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hero-feature:focus-visible { outline-color: var(--cobalt); }

/* Multi-Category Composite Hero Grid (Requirement R1) */
.hero-composite-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    width: 100%;
}
.hero-composite-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: .75rem .65rem .7rem;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: var(--surface-card);
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .08), 0 10px 20px -14px rgba(51, 32, 46, .4);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease-out;
}
.hero-composite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 0 rgba(51, 32, 46, .12), 0 18px 28px -14px rgba(51, 32, 46, .45);
}
.hero-composite-pillar {
    align-self: flex-start;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--brand-primary);
    background: rgba(19, 78, 74, .1);
    padding: .15rem .45rem;
    border-radius: 6px;
    margin-bottom: .35rem;
}
.hero-composite-thumb {
    width: 100%;
    display: flex;
    justify-content: center;
}
.hero-composite-thumb img,
.hero-composite-card img {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--surface-border);
    background: #FFFFFF;
}
.hero-composite-card .hero-feature-title {
    font-family: var(--heading);
    font-weight: 700;
    color: var(--text-primary);
    font-size: .84rem;
    margin-top: .35rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-composite-card .price {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: .88rem;
    margin-top: .15rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- Section rhythm ---------- */
.section-heading {
    margin: 2rem auto 1rem;
    max-width: 1200px; padding: 0 1.5rem;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800; line-height: 1.08;
}

/* ---------- Category medallions ---------- */
.category-deck {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2.2rem 2rem;
    max-width: 1200px; margin: 0 auto;
    padding: 1rem 1.5rem;
}
.category-medallion { min-width: 116px; text-align: center; font: 700 1rem var(--heading); }
.category-medallion a, .category-medallion a:visited {
    display: flex; flex-direction: column; align-items: center; gap: .8rem;
    color: var(--ink); text-decoration: none;
}
.category-medallion a:hover { text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 2px; }
.category-medallion .medallion-loop {
    width: 14px; height: 22px; border: 2.5px solid var(--ink);
    border-radius: 8px 8px 0 0; border-bottom: 0;
}
.category-medallion img, .category-art {
    display: block; width: 96px; height: 96px;
    border-radius: 50%;
    border: 5px solid var(--ivory);
    object-fit: cover;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .28), 0 12px 22px -12px rgba(51, 32, 46, .6);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease-out;
}
.category-medallion a:hover img, .category-medallion a:hover .category-art { transform: translateY(-4px) scale(1.04); box-shadow: 0 3px 0 rgba(51, 32, 46, .28), 0 18px 28px -12px rgba(51, 32, 46, .6); }
.category-art {
    background-image: var(--folk-seam), radial-gradient(circle at 50% 44%, var(--ivory) 0 13%, transparent 14%);
    background-size: 120px 28px, 96px 96px;
    background-position: center, center;
    background-color: var(--teal);
}
.category-medallion:nth-child(5n + 2) .category-art { background-color: var(--magenta); }
.category-medallion:nth-child(5n + 3) .category-art { background-color: var(--cobalt); }
.category-medallion:nth-child(5n + 4) .category-art { background-color: var(--marigold); }
.category-medallion:nth-child(5n) .category-art { background-color: var(--leaf); }

/* ---------- Product shelf: Rebalanced 8-Slot Showcase Grid (Requirement R1) ---------- */
.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem 1.4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.8rem 1.5rem 3.4rem;
}
@media (max-width: 1024px) {
    .product-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
    }
}
.product-card {
    position: relative;
    padding: 1rem 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fffdf6;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .1), 0 14px 26px -18px rgba(51, 32, 46, .5);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease-out;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 3px 0 rgba(51, 32, 46, .14), 0 22px 34px -18px rgba(51, 32, 46, .55);
}
.product-card a, .product-card a:visited { color: var(--ink); text-decoration: none; }
.product-card a:hover { text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 2px; text-decoration-color: var(--saffron); }
.product-card a:focus-visible { outline-color: var(--cobalt); }
.product-card img, .product-card .product-thumbnail {
    display: block; width: 100%; aspect-ratio: 1; height: auto;
    object-fit: cover; border-radius: 14px;
    border: 1px solid var(--line);
}
.product-card .product-title { margin: .9rem 0 .35rem; font-size: 1.12rem; font-weight: 700; }
.product-card .price {
    display: inline-block;
    padding: .18rem .7rem;
    border-radius: 10px;
    background: var(--bisque-deep);
    color: var(--teal-deep);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- Lifestyle to Studio Image Hover Flipper ---------- */
.product-thumbnail-flipper {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fffdf6;
    isolation: isolate;
}
.product-thumbnail-flipper .product-thumbnail-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: none !important;
    border-radius: inherit;
    margin: 0;
    display: block;
    will-change: opacity, transform;
}
.product-thumbnail-flipper .product-thumbnail-lifestyle {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
    transition: opacity .35s ease-out, transform .38s cubic-bezier(.16, 1, .3, 1);
}
.product-thumbnail-flipper .product-thumbnail-studio {
    opacity: 0;
    z-index: 2;
    transform: scale(1.025);
    transition: opacity .35s ease-out, transform .38s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

/* Hover & Focus state transitions */
.product-card:hover .product-thumbnail-flipper.has-hover-image .product-thumbnail-studio,
.product-card:focus-within .product-thumbnail-flipper.has-hover-image .product-thumbnail-studio,
.woocommerce ul.products li.product:hover .product-thumbnail-flipper.has-hover-image .product-thumbnail-studio,
.woocommerce ul.products li.product:focus-within .product-thumbnail-flipper.has-hover-image .product-thumbnail-studio,
.hero-feature:hover .product-thumbnail-flipper.has-hover-image .product-thumbnail-studio,
.hero-feature:focus-visible .product-thumbnail-flipper.has-hover-image .product-thumbnail-studio {
    opacity: 1;
    transform: scale(1);
}

.product-card:hover .product-thumbnail-flipper.has-hover-image .product-thumbnail-lifestyle,
.product-card:focus-within .product-thumbnail-flipper.has-hover-image .product-thumbnail-lifestyle,
.woocommerce ul.products li.product:hover .product-thumbnail-flipper.has-hover-image .product-thumbnail-lifestyle,
.woocommerce ul.products li.product:focus-within .product-thumbnail-flipper.has-hover-image .product-thumbnail-lifestyle,
.hero-feature:hover .product-thumbnail-flipper.has-hover-image .product-thumbnail-lifestyle,
.hero-feature:focus-visible .product-thumbnail-flipper.has-hover-image .product-thumbnail-lifestyle {
    opacity: 0;
    transform: scale(0.975);
}

.product-card .product-thumbnail-flipper {
    margin-bottom: 0;
}
.hero-feature .product-thumbnail-flipper {
    width: 148px;
    height: 148px;
    border-radius: 12px;
}
.woocommerce ul.products li.product .product-thumbnail-flipper {
    margin-bottom: .8rem;
}

/* ---------- Clean 1.75px SVG Zoom Trigger (UI/UX Pro Max & Requirement R6) ---------- */
.woocommerce-product-gallery {
    position: relative;
}
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-bg);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    box-shadow: 0 2px 8px rgba(24, 24, 27, .12);
    font-size: 0 !important;
    line-height: 0;
    text-indent: -9999px;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1), background .18s ease, color .18s ease, box-shadow .2s ease;
}
.woocommerce-product-gallery__trigger:hover {
    background: #FFFFFF;
    color: var(--brand-accent);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(24, 24, 27, .18);
}
.woocommerce-product-gallery__trigger:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}
.woocommerce-product-gallery__trigger::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    text-indent: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") no-repeat center / contain;
}
.woocommerce-product-gallery__trigger svg,
.woocommerce-product-gallery svg.zoom-icon,
[aria-label="Zoom product image"] svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.75px;
    fill: none;
    pointer-events: none;
}
.woocommerce-product-gallery__trigger[aria-label="Zoom product image"],
button[aria-label="Zoom product image"],
a[aria-label="Zoom product image"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Empty states, content, widgets ---------- */
.no-products {
    max-width: 620px; margin: 0 auto;
    padding: 2.6rem 2rem;
    text-align: center;
    font: 600 1.15rem var(--heading);
    color: var(--ink);
    background: var(--bisque-deep);
    border-radius: 20px;
    background-image: var(--folk-seam);
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: 120px 14px;
    padding-bottom: 2.2rem;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .1), 0 14px 26px -18px rgba(51, 32, 46, .5);
}
.no-products p { margin: 0; }
.search-results-page { min-height: 45vh; padding-bottom: 2rem; }
.main-content-area { max-width: 1200px; min-height: 45vh; margin: 2rem auto 4rem; padding: 0 1.5rem; }
.main-content-area .entry-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.08; margin-bottom: 1.2rem; }
.main-content-area .entry-content { min-width: 0; }
.main-content-area .entry-content p { max-width: 68ch; }

.widget-area { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 2rem; }
.widget-area .widget {
    margin: 0 0 1.6rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdf6;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .08), 0 12px 22px -16px rgba(51, 32, 46, .45);
}
.widget-area .widget-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .6rem; }

/* ---------- Shop Catalog & Faceted Filters Layout ---------- */
.shop-catalog-layout {
    max-width: 1240px;
    margin: 1.5rem auto 4rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 960px) {
    .shop-catalog-layout.has-shop-filters {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        align-items: start;
        gap: 2.5rem;
    }
    .shop-catalog-layout #secondary {
        order: 1;
    }
    .shop-catalog-layout #primary {
        order: 2;
        min-width: 0;
    }
}
.shop-catalog-layout #primary { min-width: 0; }
.shop-filter-panel > summary {
    padding: .8rem 1rem;
    background: var(--teal);
    color: var(--ivory);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    min-height: 46px;
}
.shop-filter-panel[open] > summary { margin-bottom: 1rem; }
.shop-filter-panel > summary:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
@media (min-width: 960px) {
    .shop-filter-panel > summary { display: none; }
}

.shop-filters-sidebar {
    padding: 0;
    margin: 0;
    max-width: none;
}

.shop-filters-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shop-filters-sidebar .widget {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdf6;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .08), 0 10px 20px -16px rgba(51, 32, 46, .4);
}

.shop-filters-sidebar .widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .75rem;
    letter-spacing: -0.01em;
}

.shop-filters-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-filters-sidebar ul li {
    display: block;
    padding: .45rem 0;
    border-bottom: 1px dashed rgba(51, 32, 46, .12);
    font-size: .95rem;
}
.shop-filters-sidebar ul.children { margin: .3rem 0 0 .8rem; }
.shop-filters-sidebar ul li .count { margin-left: .4rem; }

.shop-filters-sidebar ul li:last-child {
    border-bottom: none;
}

.shop-filters-sidebar ul li a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s ease;
}

.shop-filters-sidebar ul li a:hover {
    color: var(--teal-deep);
    text-decoration: underline;
}

.shop-filters-sidebar ul li .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .4rem;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--bisque-deep);
    color: var(--teal-deep);
}

/* WooCommerce Price Filter Widget */
.shop-filters-sidebar .widget_price_filter .price_slider_wrapper {
    padding-top: .4rem;
}

.shop-filters-sidebar .widget_price_filter .ui-slider {
    position: relative;
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    margin: 1rem 0;
}

.shop-filters-sidebar .widget_price_filter .ui-slider .ui-slider-range {
    position: absolute;
    height: 100%;
    background: var(--teal);
    border-radius: 3px;
}

.shop-filters-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    top: -5px;
    border-radius: 50%;
    background: var(--teal-deep);
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.shop-filters-sidebar .widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}

.shop-filters-sidebar .widget_price_filter .price_slider_amount .button {
    padding: .35rem .85rem;
    font-size: .82rem;
    border-radius: 8px;
}

/* Active filters widget */
.shop-filters-sidebar .widget_layered_nav_filters ul li a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--bisque-deep);
    padding: .25rem .6rem;
    border-radius: 8px;
    color: var(--crimson, #9e2a2b);
    font-size: .85rem;
}


/* ---------- Native WooCommerce surfaces ---------- */
.woocommerce:not(body):not(.widget) { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
body.woocommerce { margin: 0; padding: 0; max-width: none; }
body.single-product #primary { max-width: 1240px; margin: 1.5rem auto 3rem; padding: 0 1.5rem; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:visited { color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--teal-deep); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; line-height: 1.4; }
.shop-catalog-layout ul.products {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1.4rem;
}
.shop-catalog-layout ul.products::before, .shop-catalog-layout ul.products::after { display: none; }
.shop-catalog-layout ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce-page ul.products[class*='columns-'] li.product {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    clear: none !important;
}
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; border-radius: 14px; }

/* ---------- Related & Upsell Products Grid ---------- */
.related.products,
.upsells.products {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    clear: both;
}
.related.products > h2,
.upsells.products > h2 {
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 1.5rem;
}
.related.products ul.products,
.upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem 1.4rem;
}
.related.products ul.products::before,
.related.products ul.products::after,
.upsells.products ul.products::before,
.upsells.products ul.products::after {
    display: none !important;
}
.woocommerce .woocommerce-ordering select, .woocommerce .quantity .qty {
    min-height: 46px; border: 1px solid var(--line); border-radius: 10px;
    background: #fffdf6; color: var(--ink); font: inherit; padding: .5rem .7rem;
}
.woocommerce .woocommerce-ordering select { max-width: 100%; }
.woocommerce .quantity .qty { width: 4.5rem; }
.woocommerce div.product p.price { color: var(--teal-deep); font-size: 1.5rem; }
.purchase-summary { color: var(--ink-soft); max-width: 48ch; }
.purchase-specifications { padding-left: 1.2rem; margin: .75rem 0 1.25rem; color: var(--ink); }
.purchase-specifications li { margin: .3rem 0; }
.purchase-policy { font-size: .92rem; color: var(--ink-soft); max-width: 48ch; }
.purchase-policy a, .purchase-policy a:visited { color: var(--teal-deep); }
.woocommerce:has(.product) { min-height: 45vh; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.wc-block-components-button.wc-block-cart__submit-button,
.wp-block-woocommerce-checkout-actions__buttons .wc-block-components-button {
    background: var(--teal); color: var(--ivory);
    font-family: var(--body); font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .22), 0 8px 18px -10px rgba(51, 32, 46, .5);
    transition: background .18s ease-out;
}
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover,
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout-actions__buttons .wc-block-components-button:hover {
    background: var(--teal-deep); color: var(--ivory);
}
/* Keep the primary purchase action legible in every WooCommerce block state. */
.wc-block-components-button:not(.is-link) span { color: var(--ivory); }
.woocommerce .price { color: var(--cobalt); font-weight: 700; }
/* Comfortable tap targets for the primary purchase action on touch screens. */
@media (max-width: 760px) {
    .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
    .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt,
    .woocommerce .single_add_to_cart_button,
    .wc-block-components-button:not(.is-link) {
        min-height: 46px;
    }
}

/* ---------- Catalog Product Loop: Add to Cart & View Cart CTA ---------- */
.woocommerce ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.woocommerce ul.products li.product .button.added {
    display: none !important;
}
.woocommerce ul.products li.product a.added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1em;
    padding: .618em 1.25em;
    background: var(--marigold);
    color: #FFFFFF;
    font-family: var(--body);
    font-weight: 700;
    font-size: 100%;
    line-height: 1;
    border-radius: 14px;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .22), 0 8px 18px -10px rgba(51, 32, 46, .5);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease-out, transform .18s ease-out;
}
.woocommerce ul.products li.product a.added_to_cart:hover {
    background: var(--marigold-bright);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
}
.woocommerce ul.products li.product a.added_to_cart:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
}
.woocommerce ul.products li.product a.added_to_cart::before {
    content: "✓";
    font-weight: 900;
}
.woocommerce ul.products li.product a.added_to_cart::after {
    content: "→";
    font-weight: 700;
}

/* ---------- Account sign-in & customer registration ---------- */
/* The My account page renders through the generic page fallback. Keep the
   customer-facing login and register forms on-brand, legible and responsive
   for both account-page states (login only, or login + register columns). */
body.woocommerce-account .entry-content .woocommerce { max-width: 620px; }
body.woocommerce-account #customer_login { display: grid; gap: 2.2rem 2.75rem; }
/* Clearfix pseudo-elements from WooCommerce col2-set become anonymous grid items;
   suppress them so Login and Register map directly to their proper grid columns. */
body.woocommerce-account #customer_login::before,
body.woocommerce-account #customer_login::after {
    content: none;
    display: none;
}
body.woocommerce-account .u-column1.col-1,
body.woocommerce-account .u-column2.col-2 { float: none; width: auto; padding: 0; margin: 0; }
@media (min-width: 780px) {
    body.woocommerce-account .entry-content .woocommerce { max-width: 1040px; }
    body.woocommerce-account #customer_login {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        max-width: 1040px;
        margin-inline: auto;
    }
    body.woocommerce-account .u-column1.col-1,
    body.woocommerce-account .u-column2.col-2 {
        display: flex;
        flex-direction: column;
    }
    body.woocommerce-account form.login,
    body.woocommerce-account form.register {
        flex: 1;
    }
}
body.woocommerce-account .entry-content .woocommerce h2 {
    font-size: 1.4rem; font-weight: 800; color: var(--ink);
    margin: 0 0 1rem;
}
body.woocommerce-account form.login, body.woocommerce-account form.register {
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--bisque);
    padding: 1.4rem 1.4rem 1.6rem;
    margin: 0;
}
body.woocommerce-account .woocommerce-form-row { margin: 0 0 1rem; }
body.woocommerce-account .woocommerce-form-row label {
    display: block;
    font: 700 .95rem var(--body);
    color: var(--ink);
    margin-bottom: .4rem;
}
body.woocommerce-account .woocommerce-form-row .input-text {
    width: 100%; min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffdf6;
    color: var(--ink);
    font: inherit;
    padding: .5rem .75rem;
}
body.woocommerce-account .woocommerce-form-row .input-text:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}
body.woocommerce-account .required { color: var(--magenta); }
body.woocommerce-account .woocommerce-form__label-for-checkbox {
    display: inline-flex; align-items: center; gap: .45rem;
}
body.woocommerce-account .woocommerce-form__input-checkbox {
    accent-color: var(--teal);
    width: 1.05rem; height: 1.05rem;
}
body.woocommerce-account .lost_password { margin: 1rem 0 0; }
body.woocommerce-account .lost_password a, body.woocommerce-account .lost_password a:visited {
    color: var(--teal-deep); font-weight: 700;
}
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
    border: 1.5px solid var(--line);
    border-left: 6px solid var(--teal);
    border-radius: 12px;
    background: #fffdf6;
    color: var(--ink);
    padding: 1rem 1.2rem;
}

/* ---------- Promise band ---------- */
.promise-band {
    background: var(--ink);
    background-image: var(--folk-seam);
    background-repeat: repeat-x;
    background-position: left top, left bottom;
    background-size: 120px 14px;
    color: var(--ivory);
    text-align: center;
    padding: 3.6rem 1.5rem 3.2rem;
}
.promise-band .promise-line {
    margin: 0 auto .4rem;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 800; line-height: 1.12;
    color: var(--saffron);
    max-width: 24ch;
}
.promise-band p { margin: 0 auto 1.4rem; color: rgba(255, 246, 224, .82); max-width: 46ch; }
.promise-band a, .promise-band a:visited {
    display: inline-block;
    padding: .85rem 1.5rem;
    border-radius: 16px;
    background: var(--marigold); color: #FFFFFF;
    font: 700 1.02rem var(--heading);
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 14px 26px -12px rgba(0, 0, 0, .7);
    transition: background .18s ease-out, transform .18s ease-out;
}
.promise-band a:hover { background: var(--marigold-bright); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: var(--ivory);
    padding: 3rem 1.5rem 1.2rem;
    border-top: 10px solid var(--teal-deep);
}
.footer-widgets { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-widget-column { flex: 1 1 230px; }
.footer-widget-column h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .7rem; color: var(--saffron); }
.footer-widget-column ul { padding-left: 1.2rem; margin: .4rem 0; }
.site-footer a, .site-footer a:visited { color: var(--ivory); text-decoration: underline; text-underline-offset: .2em; }
.site-footer a:hover { color: var(--saffron); }
.footer-metadata {
    max-width: 1200px; margin: 2rem auto 0;
    border-top: 1px solid rgba(255, 246, 224, .28);
    padding-top: 1rem;
}
.footer-metadata p { margin: .2rem 0; font-size: .92rem; color: rgba(255, 246, 224, .78); }
.footer-metadata .footer-signature { font-family: var(--heading); font-weight: 600; color: var(--ivory); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-mural { min-height: 0; padding: 3.4rem 1.25rem; }
    .mural-layer { background-size: 620px 155px; inset: -200px -420px -200px 0; }
    @keyframes mural-drift { from { transform: translateY(0); } to { transform: translateY(-155px); } }
}
@media (max-width: 880px) {
    .header-main-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .75rem 1rem;
        padding: .75rem clamp(1rem, 3vw, 1.5rem) .65rem;
    }
    .site-name {
        font-size: clamp(1rem, 4.2vw, 1.25rem);
        grid-column: 1;
        grid-row: 1;
        margin-right: 0;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-actions {
        grid-column: 2;
        grid-row: 1;
        margin-left: auto;
        justify-self: end;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .6rem;
        flex-shrink: 0;
    }
    .product-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    #search-box { flex: 1; min-width: 0; width: 100%; }
    .category-nav-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-nav-bar::-webkit-scrollbar { display: none; }
    .category-nav-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 1.2rem;
        padding: .45rem clamp(1rem, 3vw, 1.5rem);
    }
}
@media (max-width: 760px) {
    /* Put the first product card within the first mobile screen: compact the
       hero window and category deck so merchandise appears sooner. */
    .hero-mural { padding: 1rem; }
    .mural-window { display: flex; flex-direction: column; padding: 1.4rem 1rem; text-align: center; }
    .mural-window h1 { font-size: 2.1rem; margin-bottom: .7rem; }
    .mural-window p { font-size: 1rem; }
    .mural-window > .hero-feature { display: none; }
    .hero-content { align-items: center; text-align: center; width: 100%; }
    .hero-cta-group { justify-content: center; gap: .75rem; margin-top: 1.2rem; width: 100%; }
    .hero-cta-group .hero-cta { margin-top: 0; width: 100%; max-width: 280px; text-align: center; }
    .hero-composite-grid { margin-top: 1.4rem; gap: .6rem; }
    .hero-composite-thumb img, .hero-composite-card img { width: 84px; height: 84px; }
    .hero-composite-card { padding: .55rem .5rem .55rem; }
    .hero-composite-card .hero-feature-title { font-size: .78rem; }
    .hero-composite-card .price { font-size: .82rem; }
    .hero-feature img, .hero-feature .product-thumbnail-flipper { width: 118px; height: 118px; }
    .hero-cta { margin-top: 1.1rem; padding: .85rem 1.4rem; }
    .section-heading { margin: 1.3rem auto .7rem; padding: 0 1rem; font-size: 1.5rem; }
    .category-deck { justify-content: center; gap: 1.2rem; padding: .3rem 1rem .5rem; }
    .category-medallion { min-width: 0; }
    .category-medallion a { flex-direction: row; gap: .5rem; }
    .category-medallion .medallion-loop { display: none; }
    .category-medallion img, .category-medallion .category-medallion-image, .category-art { width: 48px; height: 48px; border-width: 3px; }
    .shop-catalog-layout ul.products,
    .related.products ul.products,
    .upsells.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .85rem; }
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.added_to_cart {
        width: 100% !important;
        box-sizing: border-box;
        justify-content: center;
        white-space: nowrap;
        font-size: .88rem;
        padding: .55rem .75rem !important;
        min-height: 44px;
    }
    .product-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 1rem 1rem 2rem; }
    .product-card { padding: .65rem; }
    .product-card .product-title { font-size: .95rem; }
    .shop-catalog-layout { margin-top: 1rem; padding: 0 1rem; gap: 1.25rem; }
    .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; }
    .woocommerce .woocommerce-ordering, .woocommerce .woocommerce-ordering select { width: 100%; }
    .promise-band { padding: 2.8rem 1.25rem 2.6rem; }
}
@media (max-width: 640px) {
    .header-main-bar {
        gap: .5rem .65rem;
        padding: .65rem clamp(.75rem, 3vw, 1.25rem) .55rem;
    }
    .site-name {
        font-size: clamp(.98rem, 4.2vw, 1.18rem);
    }
    .header-actions {
        gap: .4rem;
    }
    .header-actions .account-label,
    .header-actions .cart-label,
    .sticky-navbar a.account-trigger .account-label,
    .sticky-navbar a.cart-drawer-trigger .cart-label {
        display: none;
    }
    .sticky-navbar a.cart-drawer-trigger,
    .sticky-navbar a.account-trigger {
        padding: .5rem .65rem;
        gap: .35rem;
        min-height: 40px;
        border-radius: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}
@media (max-width: 360px) {
    .header-main-bar { gap: .45rem .35rem; padding: .55rem .5rem .5rem; }
    .site-name { font-size: .95rem; }
    .sticky-navbar a.cart-drawer-trigger, .sticky-navbar a.account-trigger { padding: .45rem .5rem; gap: .25rem; }
}
/* Put the purchase facts before the gallery on phones without duplicating the
   product heading or price in the document. Keep WooCommerce's native form. */
@media (max-width: 760px) {
    body.single-product .announcement-band,
    body.single-product .product-search { display: none; }
    body.single-product .header-main-bar { padding: .45rem 1rem; }
    body.single-product .category-nav-inner { padding-top: .3rem; padding-bottom: .3rem; }
    body.single-product #primary { margin-top: .7rem; padding: 0 1rem; }
    body.single-product .woocommerce-breadcrumb { margin-bottom: .7rem; font-size: .8rem; line-height: 1.35; }

    body.single-product div.product {
        display: flex;
        flex-direction: column;
    }
    body.single-product div.product > .summary { display: contents; }
    body.single-product div.product > .summary > .product_title,
    body.single-product div.product > .summary > .price { order: 0; }
    body.single-product div.product > .summary > .product_title {
        font-size: clamp(1.45rem, 5vw, 1.75rem);
        line-height: 1.15;
        margin: 0 0 .2rem;
    }
    body.single-product div.product > .summary > .price {
        font-size: 1.35rem;
        margin: 0 0 .7rem;
    }
    body.single-product div.product > .images {
        order: 1;
        float: none;
        width: 100%;
        margin: 0 0 1rem;
    }
    body.single-product div.product > .summary > :not(.product_title):not(.price) {
        order: 2;
        width: 100%;
    }
    body.single-product div.product > .woocommerce-tabs,
    body.single-product div.product > .related,
    body.single-product div.product > .upsells { order: 3; }
    body.single-product .woocommerce-product-gallery .flex-control-thumbs {
        display: flex;
        flex-wrap: nowrap;
        gap: .45rem;
        overflow-x: auto;
        margin-top: .45rem;
        padding-bottom: .35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
        flex: 0 0 62px;
        width: 62px !important;
        float: none;
        clear: none !important;
        margin: 0 !important;
    }
    body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 8px;
    }
    body.single-product { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
    body.single-product .ua-mobile-buybar {
        position: fixed;
        inset: auto 0 0;
        z-index: 90;
        padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom));
        background: var(--bisque);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(51, 32, 46, .12);
    }
    body.single-product .ua-mobile-buybar.is-hidden { display: none; }
    body.single-product .ua-mobile-buybar-button {
        display: block;
        width: min(100%, 480px);
        min-height: 48px;
        margin: 0 auto;
        border: 0;
        border-radius: 12px;
        background: var(--teal);
        color: var(--ivory);
        font: 700 1rem var(--body);
        cursor: pointer;
    }
    body.single-product .ua-mobile-buybar-button:hover { background: var(--teal-deep); }
}
@media (min-width: 761px) {
    .ua-mobile-buybar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mural-layer { animation: none; transform: none; }
    .category-medallion img, .category-medallion .category-art,
    .product-card, .hero-cta, .hero-feature, .product-search button,
    .sticky-navbar a.cart-drawer-trigger, .sticky-navbar a.account-trigger,
    .product-thumbnail-flipper .product-thumbnail-image { transition: none !important; transform: none !important; }
}

/* ---------- Consent banner ---------- */
/* First-party consent UI (consent.js). The two dialogs reuse the theme
   palette variables; the three banner choices are rendered identically so
   "Accept all" carries no more visual weight than "Reject nonessential". */
.ua-consent-banner, .ua-consent-panel {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1rem;
    pointer-events: none;
}
.ua-consent-banner[hidden], .ua-consent-panel[hidden] { display: none; }
.ua-consent-dialog {
    pointer-events: auto;
    width: min(560px, 100%);
    background: var(--bisque);
    color: var(--ink);
    border: 2px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 3px 0 rgba(51, 32, 46, .28), 0 24px 48px -18px rgba(20, 10, 18, .7);
    padding: 1.4rem 1.4rem 1.5rem;
}
.ua-consent-dialog:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.ua-consent-banner h2, .ua-consent-panel h2 {
    margin: 0 0 .5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
}
.ua-consent-banner p, .ua-consent-panel p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: .95rem;
}
.ua-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .4rem;
}
/* Equal-prominence choices: identical box, typography and weight. */
.ua-consent-button {
    flex: 1 1 150px;
    min-height: 46px;
    padding: .6rem 1rem;
    border: 0;
    border-radius: 14px;
    background: var(--teal-deep);
    color: var(--ivory);
    font: 700 .95rem var(--body);
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(51, 32, 46, .22);
    transition: background .18s ease-out, transform .18s ease-out;
}
.ua-consent-button:hover { background: var(--teal); transform: translateY(-1px); }
.ua-consent-button:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
}
.ua-consent-option {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem .85rem;
    margin: 0 0 .6rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bisque-deep);
    color: var(--ink);
    font: 600 .95rem var(--body);
    cursor: pointer;
}
.ua-consent-option input {
    accent-color: var(--teal);
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .15rem;
    flex-shrink: 0;
}
.ua-consent-option:focus-within {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
}
/* Mobile bottom-sheet layout: the dialogs dock flush to the screen edge. */
@media (max-width: 640px) {
    .ua-consent-banner, .ua-consent-panel { padding: .6rem; }
    .ua-consent-dialog {
        width: 100%;
        border-radius: 18px 18px 12px 12px;
        padding: 1.2rem 1rem 1.3rem;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .ua-consent-dialog {
        animation: ua-consent-rise .3s cubic-bezier(.16, 1, .3, 1);
    }
    @keyframes ua-consent-rise {
        from { transform: translateY(14px); opacity: 0; }
        to { transform: none; opacity: 1; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .ua-consent-dialog, .ua-consent-button { animation: none; transition: none; }
}

/* ---------- PDP Buy-Box Trust Reassurance Bar (Requirement R3) ---------- */
.ua-trust-guarantee-bar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0 1.75rem;
    padding: 1.15rem 1.25rem;
    background: var(--surface-bg, #FAF8F5);
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(51, 32, 46, 0.04);
}

.ua-trust-pillar {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.ua-trust-icon {
    font-size: 1.25rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.ua-trust-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text-secondary, #52525B);
}

.ua-trust-content strong {
    font-weight: 700;
    color: var(--text-primary, #18181B);
}

.ua-trust-content a {
    color: var(--brand-primary, #134E4A);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ua-trust-content a:hover {
    color: var(--brand-accent, #C2410C);
}

/* ---------- Customer Quality Promise Block (Requirement R3) ---------- */
.ua-quality-promise-block {
    margin: 2rem 0;
    padding: 1.75rem;
    background: var(--surface-bg, #FAF8F5);
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 16px;
}

.ua-promise-header h3 {
    font-family: var(--font-display, "Playfair Display", serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #18181B);
    margin: 0 0 0.5rem;
}

.ua-promise-lead {
    font-size: 0.95rem;
    color: var(--text-secondary, #52525B);
    line-height: 1.45;
    margin: 0 0 1.25rem;
}

.ua-promise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .ua-promise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.ua-promise-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: #FFFFFF;
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 10px;
}

.ua-promise-item .ua-promise-icon {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.ua-promise-item h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary, #18181B);
    margin: 0;
}

.ua-promise-item p {
    font-size: 0.86rem;
    color: var(--text-secondary, #52525B);
    line-height: 1.4;
    margin: 0;
}

/* ---------- Pillow 48×48px Size Button Swatches (Requirement R4) ---------- */
.pillow-size-swatches,
.ua-size-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* >= 8px gap */
    margin: 0.75rem 0 1.25rem;
}

.pillow-size-swatches button,
.pillow-size-swatches .ua-swatch-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem 0.85rem;
    border: 2px solid var(--surface-border, #E4DCD3);
    border-radius: 8px;
    background: var(--surface-bg, #FAF8F5);
    color: var(--text-primary, #18181B);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pillow-size-swatches button:hover,
.pillow-size-swatches .ua-swatch-button:hover {
    border-color: var(--brand-primary, #134E4A);
    background: #FFFFFF;
}

.pillow-size-swatches button.is-selected,
.pillow-size-swatches button[aria-checked="true"],
.pillow-size-swatches .ua-swatch-button.is-selected {
    border-color: var(--brand-primary, #134E4A);
    background: #FFFFFF;
    color: var(--brand-primary, #134E4A);
    box-shadow: 0 0 0 1.5px var(--brand-primary, #134E4A), 0 2px 6px rgba(19, 78, 74, 0.15);
}

.pillow-size-swatches button .swatch-price {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary, #52525B);
    margin-top: 2px;
}

.pillow-size-swatches button.is-selected .swatch-price {
    color: var(--brand-accent, #C2410C);
    font-weight: 700;
}

/* Pillow insert upsell */
.pillow-insert-upsell-wrapper {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--surface-border, #E4DCD3);
    border-radius: 8px;
    background: var(--surface-card, #F3EFEA);
}

.pillow-insert-upsell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary, #18181B);
    cursor: pointer;
}

.pillow-insert-upsell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary, #134E4A);
    cursor: pointer;
}

/* ---------- Shop by Pattern Mega-Menu (Requirement R5 / F5.1) ---------- */
.category-nav-bar .pattern-mega-menu-item {
    position: relative;
}

.pattern-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 640px;
    background: var(--surface-bg, #FAF8F5);
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
}

.pattern-mega-menu-item:hover .pattern-mega-menu,
.pattern-mega-menu-item:focus-within .pattern-mega-menu,
.pattern-mega-menu.is-open {
    display: block;
}

.pattern-mega-menu .mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.2fr;
    gap: 1.5rem;
}

.pattern-mega-menu .mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pattern-mega-menu .mega-column-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary, #134E4A);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface-border, #E4DCD3);
    padding-bottom: 0.25rem;
}

.pattern-mega-menu .pattern-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary, #18181B);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: color 0.15s ease;
}

.pattern-mega-menu .pattern-item:hover {
    color: var(--brand-accent, #C2410C);
}

.pattern-mega-menu .pattern-swatch-badge {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pattern-mega-menu .mega-menu-featured {
    padding: 1rem;
    background: var(--surface-card, #F3EFEA);
    border-radius: 6px;
    border-left: 3px solid var(--brand-primary, #134E4A);
}

.pattern-mega-menu .mega-featured-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary, #134E4A);
    margin-bottom: 0.25rem;
}

.pattern-mega-menu .mega-featured-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #52525B);
    margin: 0 0 0.75rem 0;
    line-height: 1.35;
}

.pattern-mega-menu .mega-featured-btn {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-primary, #134E4A);
    text-decoration: none;
}

/* ---------- PDP Complete the Matching Set Two-Tab Module (Requirement R5 / F5.3) ---------- */
.complete-matching-set-module {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface-card, #F3EFEA);
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 12px;
    box-sizing: border-box;
}

.complete-matching-set-module .matching-set-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--surface-border, #E4DCD3);
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
}

.complete-matching-set-module .matching-set-tabs button[role="tab"] {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary, #52525B);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: -0.25rem;
}

.complete-matching-set-module .matching-set-tabs button[role="tab"]:hover {
    color: var(--brand-primary, #134E4A);
}

.complete-matching-set-module .matching-set-tabs button[role="tab"][aria-selected="true"],
.complete-matching-set-module .matching-set-tabs button[role="tab"].active {
    color: var(--brand-primary, #134E4A);
    border-bottom-color: var(--brand-primary, #134E4A);
}

.complete-matching-set-module .bundle-incentive-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: var(--brand-accent, #C2410C);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.complete-matching-set-module .matching-pieces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.complete-matching-set-module .matching-piece-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--surface-bg, #FAF8F5);
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.complete-matching-set-module .matching-piece-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.complete-matching-set-module .matching-piece-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.complete-matching-set-module .matching-piece-info {
    padding: 0.5rem 0.65rem;
}

.complete-matching-set-module .matching-piece-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary, #18181B);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.complete-matching-set-module .matching-piece-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-accent, #C2410C);
    margin-top: 0.25rem;
}

.complete-matching-set-module .swatch-thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 0.5rem 0;
}

.complete-matching-set-module .pattern-swatch-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid var(--surface-border, #E4DCD3);
    background: var(--surface-bg, #FAF8F5);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.complete-matching-set-module .pattern-swatch-circle:hover {
    border-color: var(--brand-primary, #134E4A);
    transform: scale(1.08);
    box-shadow: 0 3px 8px rgba(19, 78, 74, 0.2);
}

.complete-matching-set-module .pattern-swatch-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* =============================================================================
 * Milestone R3: Cart Rules & Free Shipping Progress Bar Design System (F3.1, F3.2)
 * ============================================================================= */

/* ---------- Free Shipping Progress Bar (.ua-shipping-progress-bar) ---------- */
.ua-shipping-progress-bar,
.cart-free-shipping-meter {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--surface-card, #F3EFEA);
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(24, 24, 27, 0.04);
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ua-shipping-progress-bar.is-unlocked,
.cart-free-shipping-meter.is-unlocked {
    background: rgba(19, 78, 74, 0.06);
    border-color: rgba(19, 78, 74, 0.28);
}

.ua-shipping-progress-bar .ua-shipping-progress-message,
.cart-free-shipping-meter .shipping-meter-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-family: var(--body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #18181B);
}

.ua-shipping-progress-bar .ua-shipping-progress-text,
.cart-free-shipping-meter .shipping-meter-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ua-shipping-progress-bar.is-unlocked .ua-shipping-progress-label,
.cart-free-shipping-meter.is-unlocked .shipping-meter-text,
.ua-shipping-progress-bar.is-unlocked .ua-shipping-progress-text {
    color: var(--brand-primary, #134E4A);
    font-weight: 700;
}

.ua-shipping-progress-bar .ua-shipping-progress-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: var(--surface-subtle, #ECE6DE);
    color: var(--text-secondary, #52525B);
}

.ua-shipping-progress-bar.is-unlocked .ua-shipping-progress-badge,
.cart-free-shipping-meter.is-unlocked .ua-shipping-progress-badge {
    background: var(--brand-primary, #134E4A);
    color: #FFFFFF;
}

.ua-shipping-progress-bar .ua-shipping-progress-track,
.cart-free-shipping-meter .shipping-meter-track {
    width: 100%;
    height: 9px;
    background: var(--surface-border, #E4DCD3);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.ua-shipping-progress-bar .ua-shipping-progress-meter,
.cart-free-shipping-meter .shipping-meter-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-accent, #C2410C), var(--brand-accent-bright, #EA580C));
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ua-shipping-progress-bar.is-unlocked .ua-shipping-progress-meter,
.cart-free-shipping-meter.is-unlocked .shipping-meter-bar {
    background: linear-gradient(90deg, var(--brand-primary, #134E4A), #1D706B);
    box-shadow: 0 0 10px rgba(19, 78, 74, 0.35);
}

/* ---------- WooCommerce Cart Totals & Discount Fee Line-Item ---------- */
.cart_totals table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--surface-card, #F3EFEA);
    border: 1px solid var(--surface-border, #E4DCD3);
    border-radius: 10px;
    overflow: hidden;
}

.cart_totals table.shop_table tr th,
.cart_totals table.shop_table tr td {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--surface-border, #E4DCD3);
    font-family: var(--body);
    font-size: 0.95rem;
}

.cart_totals table.shop_table tr:first-child th,
.cart_totals table.shop_table tr:first-child td {
    border-top: none;
}

/* Discount Fee Row (Matching Pattern Bundle 10% Discount) */
.cart_totals table.shop_table tr.fee {
    background: rgba(46, 125, 60, 0.05);
}

.cart_totals table.shop_table tr.fee th {
    color: var(--leaf, #2e7d3c);
    font-weight: 600;
}

.cart_totals table.shop_table tr.fee td {
    text-align: right;
}

.cart_totals table.shop_table tr.fee td .woocommerce-Price-amount,
.cart_totals table.shop_table tr.fee td .amount {
    color: var(--leaf, #2e7d3c);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: rgba(46, 125, 60, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(46, 125, 60, 0.2);
}

/* Order Total Emphasis */
.cart_totals table.shop_table tr.order-total th,
.cart_totals table.shop_table tr.order-total td {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #18181B);
    border-top: 2px solid var(--surface-border-strong, #D5C9BC);
}

/* ---------- Homepage Product Card Actions & Quick View Affordance (Requirement R2 / F2.7) ---------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card .product-card-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.product-card .product-card-quick-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand-primary, #134E4A);
    background: var(--surface-bg, #FAF8F5);
    border: 1px solid var(--line, #E4DCD3);
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-card:hover .product-card-quick-view,
.product-card:focus-within .product-card-quick-view {
    background: var(--brand-primary, #134E4A);
    color: #FFFFFF;
    border-color: var(--brand-primary, #134E4A);
    box-shadow: 0 3px 8px rgba(19, 78, 74, 0.2);
    transform: translateY(-1px);
}

.product-card .product-card-quick-view:active {
    transform: translateY(0);
}

/* ---------- Pattern Showcase Grid & Active Filter Bar (Requirement R2 / F2.2) ---------- */
.ua-pattern-showcase-section {
    padding: 1.5rem 0 3rem;
    max-width: 1240px;
    margin: 0 auto;
}

.ua-pattern-showcase-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.ua-pattern-kicker {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent, #C2410C);
    margin-bottom: 0.4rem;
}

.ua-pattern-showcase-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text-primary, #18181B);
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.ua-pattern-showcase-desc {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-secondary, #52525B);
    margin: 0;
}

.ua-pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.ua-pattern-card {
    background: var(--surface-card, #F3EFEA);
    border: 1px solid var(--line, #E4DCD3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ua-pattern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(24, 24, 27, 0.08);
    border-color: var(--brand-primary, #134E4A);
}

.ua-pattern-card-swatch-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ua-pattern-card-swatch-header .ua-pattern-swatch-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ua-pattern-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ua-pattern-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-accent, #C2410C);
    margin-bottom: 0.35rem;
}

.ua-pattern-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #18181B);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.ua-pattern-desc {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary, #52525B);
    margin: 0 0 1.2rem;
    flex-grow: 1;
}

.ua-pattern-btn {
    align-self: flex-start;
    font-size: 0.875rem !important;
    font-weight: 600;
    padding: 0.5rem 1.1rem !important;
    border-radius: 9999px !important;
    background: var(--brand-primary, #134E4A) !important;
    color: #FFFFFF !important;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ua-pattern-btn:hover {
    background: #0f3d3a !important;
    transform: translateX(2px);
}

.ua-active-pattern-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    background: var(--surface-card, #F3EFEA);
    border: 1px solid var(--line, #E4DCD3);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    margin: 1rem 0 1.5rem;
}

.ua-filter-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.ua-filter-label {
    font-weight: 600;
    color: var(--text-secondary, #52525B);
}

.ua-filter-meta .ua-pattern-swatch-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
}

.ua-filter-tag {
    font-weight: 700;
    color: var(--text-primary, #18181B);
}

.ua-filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ua-clear-filter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-accent, #C2410C);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ua-clear-filter:hover {
    background: rgba(194, 65, 12, 0.08);
}

.ua-browse-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary, #134E4A);
    text-decoration: underline;
}



