/* ==========================================================================
   Shopfront — free e-commerce template for uiCookies
   Design: "Ember" boutique — cobalt × flame on bone, ink near-black.
   Fonts: Bricolage Grotesque (display) · DM Sans (body) · DM Mono (labels)
   ========================================================================== */

:root {
    --ink: #17181d;
    --ink-soft: #575862;
    --ink-faint: #8a8b93;
    --paper: #faf9f6;
    --sand: #ece6da;
    --sand-deep: #e2dccd;
    --cobalt: #2743e6;
    --cobalt-deep: #1b31b5;
    --flare: #ff5636;
    --line: #e3ded4;
    --white: #ffffff;

    --shadow-sm: 0 1px 2px rgba(23, 24, 29, .06), 0 4px 14px rgba(23, 24, 29, .05);
    --shadow-md: 0 10px 30px rgba(23, 24, 29, .10);
    --shadow-lg: 0 24px 60px rgba(23, 24, 29, .16);

    --radius: 14px;
    --radius-sm: 9px;
    --container: 1240px;

    --ff-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
    --ff-body: "DM Sans", system-ui, -apple-system, sans-serif;
    --ff-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cobalt);
    text-decoration: none;
    transition: color .18s var(--ease);
}

a:hover {
    color: var(--cobalt-deep);
}

h1, h2, h3, h4, h5 {
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 0 .5em;
}

p {
    margin: 0 0 1rem;
}

::selection {
    background: var(--cobalt);
    color: #fff;
}

.shell {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 40px);
}

/* ---------- accessibility ---------- */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
    border-radius: 4px;
}

.eyebrow {
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cobalt);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 14px;
}

.eyebrow.on-ink {
    color: #ffb9a6;
}

.section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.section-tight {
    padding: clamp(44px, 6vw, 72px) 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(34px, 5vw, 54px);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.06rem;
    margin-bottom: 0;
}

.lead {
    font-size: 1.16rem;
    color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn-e {
    --bg: var(--ink);
    --fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: .96rem;
    line-height: 1;
    padding: 15px 26px;
    border-radius: 100px;
    border: 1.5px solid var(--bg);
    background: var(--bg);
    color: var(--fg);
    cursor: pointer;
    transition: transform .16s var(--ease), background .2s var(--ease),
    box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
    text-align: center;
}

.btn-e:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--fg);
}

.btn-e:active {
    transform: translateY(0);
}

.btn-e svg {
    flex: none;
}

.btn-cobalt {
    --bg: var(--cobalt);
    --fg: #fff;
}

.btn-cobalt:hover {
    --bg: var(--cobalt-deep);
}

.btn-ghost {
    --bg: transparent;
    --fg: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    --bg: var(--ink);
    --fg: #fff;
}

.btn-ghost.on-ink {
    --fg: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.btn-ghost.on-ink:hover {
    --bg: #fff;
    --fg: var(--ink);
    border-color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 18px 34px;
    font-size: 1.02rem;
}

.btn-sm {
    padding: 11px 18px;
    font-size: .88rem;
}

.text-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
}

.text-link svg {
    transition: transform .18s var(--ease);
}

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

.text-link:hover svg {
    transform: translateX(4px);
}

/* ---------- announcement bar ---------- */
.announce {
    background: var(--ink);
    color: #fff;
    font-family: var(--ff-mono);
    font-size: .78rem;
    letter-spacing: .04em;
}

.announce .shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 40px;
    position: relative;
    padding-block: 8px;
}

.announce strong {
    color: #ffb9a6;
    font-weight: 500;
}

.announce-close {
    position: absolute;
    right: clamp(18px, 4vw, 40px);
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    border-radius: 6px;
}

.announce-close:hover {
    color: #fff;
}

.announce.is-hidden {
    display: none;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(250, 249, 246, .82);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(23, 24, 29, .06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 74px;
}

.brand {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.42rem;
    letter-spacing: -.03em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.brand:hover {
    color: var(--ink);
}

.brand .mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--cobalt);
    color: #fff;
    border-radius: 9px;
    transform: rotate(-6deg);
}

.brand .mark svg {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 14px;
}

.nav-drawer-hidden {
    display: flex;
}

.main-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .98rem;
    padding: 9px 14px;
    border-radius: 8px;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--cobalt);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--ease);
}

.main-nav a:hover {
    color: var(--cobalt);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.icon-btn {
    --sz: 44px;
    width: var(--sz);
    height: var(--sz);
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    transition: background .18s var(--ease), color .18s var(--ease);
}

.icon-btn:hover {
    background: var(--sand);
    color: var(--cobalt);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: var(--flare);
    color: #fff;
    border-radius: 100px;
    font-family: var(--ff-mono);
    font-size: .66rem;
    font-weight: 500;
    display: grid;
    place-items: center;
    line-height: 1;
    border: 2px solid var(--paper);
}

.cart-count.bump {
    animation: cartBump .4s var(--ease);
}

@keyframes cartBump {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

.nav-toggle {
    display: none;
}

/* ---------- header search ----------
   Collapsed, .header-search-form is a width:0 pill holding just the toggle's
   room; .site-header.search-open grows it to fill the space .main-nav just
   gave up (collapsed in the same state) — never the brand, which this never
   touches. On mobile the brand itself fades instead, per the same class. */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.site-header.search-open .header-search-toggle {
    display: none;
}

.site-header.search-open .nav-actions,
.site-header.search-open .header-search {
    flex: 1 1 auto;
    min-width: 0;
}

.site-header.search-open .main-nav {
    flex: 0 1 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .16s var(--ease), width .28s var(--ease);
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    opacity: 0;
    padding: 0;
    background: var(--sand);
    border-radius: 100px;
    transition: flex-basis .32s var(--ease), width .32s var(--ease), opacity .2s var(--ease), padding .32s var(--ease);
}

.site-header.search-open .header-search-form {
    flex: 1 1 auto;
    width: auto;
    opacity: 1;
    padding: 0 6px 0 14px;
}

.header-search-icon {
    flex: none;
    color: var(--ink-soft);
}

.header-search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    padding: 10px 4px;
    font-family: var(--ff-body);
    font-size: .92rem;
    color: var(--ink);
}

.header-search-form input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.header-search-close {
    --sz: 32px;
    flex: none;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 950;
}

.header-search-results[hidden] {
    display: none;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 70vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
}

.search-result-item:hover,
.search-result-item:focus-visible {
    background: var(--sand);
}

.search-result-item img {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--sand);
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-result-name {
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-family: var(--ff-mono);
    font-size: .8rem;
    color: var(--ink-soft);
}

.search-results-more {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--cobalt);
    border-top: 1px solid var(--line);
}

.search-results-more:hover {
    background: var(--sand);
}

.search-results-empty {
    margin: 0;
    padding: 16px;
    font-size: .88rem;
    color: var(--ink-soft);
    text-align: center;
}

/* ---------- mobile drawer ---------- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(23, 24, 29, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
    z-index: 1000;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    background: var(--paper);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .34s var(--ease);
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow-y: auto;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.drawer nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.drawer nav a {
    color: var(--ink);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
}

.drawer nav a:hover {
    color: var(--cobalt);
    padding-inline-start: 14px;
}

/* The account link + sign-out live only in the drawer now — nav-drawer-hidden
   takes both out of the header itself (see header.blade.php). */
.drawer .drawer-account {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.drawer-logout {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
}

.drawer-logout:hover {
    color: var(--cobalt);
    padding-inline-start: 14px;
}

.drawer-foot {
    margin-top: auto;
    padding-top: 22px;
}

/* ---------- hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(48px, 7vw, 92px) 0 clamp(60px, 8vw, 104px);
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 6.6vw, 5.1rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.hero-copy h1 .accent {
    color: var(--cobalt);
}

.hero-copy .lead {
    max-width: 30ch;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero-stats .num {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -.03em;
    display: block;
}

.hero-stats .lbl {
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.hero-media {
    position: relative;
}

.hero-media .frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}

.hero-media .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: -22px;
    bottom: 34px;
    background: var(--paper);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 260px;
}

.hero-badge .ring {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    background: var(--flare);
    color: #fff;
    display: grid;
    place-items: center;
}

.hero-badge b {
    font-family: var(--ff-display);
    display: block;
    font-size: 1.05rem;
}

.hero-badge span {
    font-size: .82rem;
    color: var(--ink-soft);
}

.hero-drop-tag {
    position: absolute;
    top: 24px;
    right: -14px;
    background: var(--ink);
    color: #fff;
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
}

/* ---------- marquee ---------- */
.marquee {
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: 15px 0;
    border-block: 1px solid rgba(255, 255, 255, .08);
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee span {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -.01em;
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    color: rgba(255, 255, 255, .92);
}

.marquee span::after {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--flare);
    border-radius: 50%;
    display: inline-block;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- categories ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: block;
    color: #fff;
    isolation: isolate;
}

.cat-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
    z-index: -2;
}

.cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 24, 29, 0) 30%, rgba(23, 24, 29, .82) 100%);
    z-index: -1;
}

.cat-card:hover img {
    transform: scale(1.07);
}

.cat-card:hover {
    color: #fff;
}

.cat-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
}

.cat-body .kicker {
    font-family: var(--ff-mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.cat-body h3 {
    color: #fff;
    font-size: 1.7rem;
    margin: 4px 0 0;
}

.cat-body .go {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .92rem;
}

.cat-card:hover .go svg {
    transform: translateX(5px);
}

.cat-body .go svg {
    transition: transform .2s var(--ease);
}

/* ---------- product grid ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.chip {
    font-family: var(--ff-mono);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 9px 17px;
    border-radius: 100px;
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .18s var(--ease);
}

.chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card-p {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.card-p:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-p.is-hidden {
    display: none;
}

.card-p-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--sand);
}

.card-p-media a {
    display: block;
    height: 100%;
}

.card-p-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.card-p:hover .card-p-media img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--ff-mono);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 100px;
    font-weight: 500;
    background: var(--ink);
    color: #fff;
}

.tag.sale {
    background: var(--flare);
}

.tag.new {
    background: var(--cobalt);
}

.wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .9);
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-6px);
    transition: all .2s var(--ease);
}

.card-p:hover .wishlist {
    opacity: 1;
    transform: translateY(0);
}

.wishlist:hover {
    color: var(--flare);
}

.wishlist.active {
    color: var(--flare);
    opacity: 1;
}

.wishlist.active svg {
    fill: var(--flare);
}

.card-p-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-p-cat {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 5px;
}

.card-p h3 {
    font-size: 1.12rem;
    margin: 0 0 4px;
}

.card-p h3 a {
    color: var(--ink);
}

.card-p h3 a:hover {
    color: var(--cobalt);
}

.card-p-rate {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.stars {
    display: inline-flex;
    color: var(--flare);
}

.stars svg {
    width: 14px;
    height: 14px;
}

.card-p-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price {
    font-family: var(--ff-mono);
    font-weight: 500;
    font-size: 1.12rem;
    color: var(--ink);
}

.price .was {
    color: var(--ink-faint);
    text-decoration: line-through;
    font-size: .86rem;
    margin-left: 6px;
}

.price.on-sale {
    color: var(--flare);
}

.add-btn {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    transition: background .18s var(--ease), transform .16s var(--ease);
}

.add-btn:hover {
    background: var(--cobalt);
    transform: translateY(-2px);
}

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

.grid-cta {
    text-align: center;
    margin-top: 46px;
}

/* ---------- promo banner ---------- */
.promo {
    background: var(--ink);
    color: #fff;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.promo-media {
    min-height: 100%;
}

.promo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 340px;
}

.promo-copy {
    padding: clamp(44px, 6vw, 84px);
    align-self: center;
}

.promo-copy h2 {
    color: #fff;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.promo-copy h2 em {
    color: var(--flare);
    font-style: normal;
}

.promo-copy p {
    color: rgba(255, 255, 255, .72);
    font-size: 1.08rem;
    max-width: 42ch;
}

.promo-code {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 28px;
    padding: 10px 10px 10px 18px;
    border: 1.5px dashed rgba(255, 255, 255, .35);
    border-radius: 12px;
    font-family: var(--ff-mono);
}

.promo-code span {
    color: rgba(255, 255, 255, .65);
    font-size: .8rem;
    letter-spacing: .1em;
}

.promo-code b {
    font-size: 1.15rem;
    letter-spacing: .06em;
    color: #fff;
}

.promo-code .copy-code {
    background: var(--flare);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: .8rem;
    cursor: pointer;
}

.promo-code .copy-code:hover {
    background: #e8462a;
}

.countdown {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.count-cell {
    background: rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    min-width: 66px;
}

.count-cell b {
    font-family: var(--ff-display);
    font-size: 1.7rem;
    display: block;
    line-height: 1;
}

.count-cell span {
    font-family: var(--ff-mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

/* ---------- benefits ---------- */
.benefits {
    background: var(--sand);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .2s var(--ease);
}

.benefit:hover {
    transform: translateY(-4px);
}

.benefit .ic {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--cobalt);
    color: #fff;
    border-radius: 13px;
    margin-bottom: 18px;
}

.benefit:nth-child(2) .ic {
    background: var(--flare);
}

.benefit:nth-child(3) .ic {
    background: var(--ink);
}

.benefit:nth-child(4) .ic {
    background: var(--cobalt-deep);
}

.benefit h3 {
    font-size: 1.14rem;
    margin-bottom: 6px;
}

.benefit p {
    color: var(--ink-soft);
    font-size: .92rem;
    margin: 0;
}

/* ---------- reviews ---------- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
}

.review .stars {
    margin-bottom: 14px;
}

.review .stars svg {
    width: 17px;
    height: 17px;
}

.review blockquote {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: 1.18rem;
    line-height: 1.4;
    letter-spacing: -.01em;
    margin: 0 0 22px;
}

.review-by {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.avatar {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--ff-display);
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.review-by b {
    display: block;
    font-family: var(--ff-body);
    font-size: .95rem;
}

.review-by span {
    font-size: .82rem;
    color: var(--ink-soft);
}

.verified {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ff-mono);
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cobalt);
}

/* ---------- newsletter ---------- */
.newsletter {
    background: var(--cobalt);
    color: #fff;
}

.news-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.newsletter h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.newsletter .lead {
    color: rgba(255, 255, 255, .82);
    margin-bottom: 0;
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-row {
    display: flex;
    gap: 10px;
}

.news-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    border-radius: 100px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-family: var(--ff-body);
    font-size: 1rem;
}

.news-form input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.news-form input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, .16);
}

.news-form input.invalid {
    border-color: #ffd0c6;
    background: rgba(255, 86, 54, .22);
}

.news-form .btn-e {
    --bg: var(--ink);
    --fg: #fff;
    flex: none;
}

.news-form .btn-e:hover {
    --bg: #000;
}

.news-note {
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
    margin: 0;
}

.news-msg {
    font-size: .92rem;
    font-weight: 600;
    min-height: 1.2em;
    margin: 0;
}

.news-msg.ok {
    color: #d5ffd9;
}

.news-msg.err {
    color: #ffd0c6;
}

/* ---------- footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .66);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: clamp(56px, 7vw, 84px) 0 44px;
}

.footer-brand .brand {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 34ch;
    font-size: .94rem;
}

.pay-row {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.pay-chip {
    height: 30px;
    padding: 0 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    border-radius: 6px;
    color: rgba(255, 255, 255, .85);
    font-family: var(--ff-mono);
    font-size: .64rem;
    letter-spacing: .05em;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--ff-mono);
    font-weight: 500;
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, .66);
    font-size: .95rem;
}

.footer-col a:hover {
    color: #fff;
    padding-inline-start: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .86rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .82);
}

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .8);
    transition: all .18s var(--ease);
}

.socials a:hover {
    background: var(--cobalt);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- toast ---------- */
.toast-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--ink);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem;
    font-weight: 500;
    transform: translateY(16px);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    max-width: 320px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast .tick {
    width: 26px;
    height: 26px;
    flex: none;
    background: #2fbf71;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.crumbs {
    font-family: var(--ff-mono);
    font-size: .76rem;
    letter-spacing: .04em;
    color: var(--ink-soft);
    padding: 22px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.crumbs a {
    color: var(--ink-soft);
}

.crumbs a:hover {
    color: var(--cobalt);
}

.crumbs .sep {
    color: var(--ink-faint);
}

.crumbs .cur {
    color: var(--ink);
}

.pd-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(30px, 5vw, 64px);
    padding-top: 18px;
    align-items: start;
}

.pd-gallery {
    position: sticky;
    top: 96px;
}

/* The stage holds the two things the gallery can show — the photo and, for a
   customizable variant, the live canvas — and fades on every swap. */
.pd-stage {
    position: relative;
    margin-bottom: 14px;
    transition: opacity .18s ease;
}

.pd-main {
    border-radius: 18px;
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 1 / 1;
}

.pd-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pd-thumb {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--sand);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-thumb:hover {
    transform: translateY(-2px);
}

.pd-thumb.active {
    border-color: var(--cobalt);
}

/* The live preview's own thumbnail: the template artwork under its label, so
   it reads as a choice next to the photographs rather than as one of them. */
.pd-thumb-live {
    position: relative;
    display: block;
}

.pd-thumb-live img {
    opacity: .55;
}

.pd-thumb-live span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 5px 4px;
    background: var(--ink);
    color: #fff;
    font-family: var(--ff-mono);
    font-size: .56rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pd-cat {
    font-family: var(--ff-mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cobalt);
}

.pd-info h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin: 10px 0 12px;
}

.pd-rate {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.pd-rate .stars svg {
    width: 18px;
    height: 18px;
}

.pd-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--ff-mono);
    margin-bottom: 22px;
}

.pd-price .now {
    font-size: 2rem;
    font-weight: 500;
    color: var(--flare);
}

.pd-price .was {
    font-size: 1.15rem;
    color: var(--ink-faint);
    text-decoration: line-through;
}

.pd-price .off {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: .8rem;
    background: var(--flare);
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
}

.pd-desc {
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 52ch;
    margin-bottom: 26px;
}

.opt-group {
    margin-bottom: 24px;
}

.opt-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.opt-label .t {
    font-family: var(--ff-mono);
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
}

.opt-label .picked {
    font-size: .86rem;
    color: var(--ink-soft);
}

.swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--line);
    cursor: pointer;
    position: relative;
    transition: transform .16s var(--ease);
    padding: 0;
}

.swatch::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 2px solid var(--paper);
}

.swatch:hover {
    transform: scale(1.08);
}

.swatch.active {
    border-color: var(--ink);
}

.sizes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 52px;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: transparent;
    font-family: var(--ff-mono);
    font-size: .92rem;
    color: var(--ink);
    cursor: pointer;
    transition: all .16s var(--ease);
}

.size-btn:hover:not(:disabled) {
    border-color: var(--ink);
}

.size-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.size-btn:disabled {
    color: var(--ink-faint);
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: .55;
}

.buy-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin: 8px 0 22px;
}

.stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    overflow: hidden;
    flex: none;
}

.stepper button {
    width: 46px;
    height: 54px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--ink);
    display: grid;
    place-items: center;
    transition: background .16s var(--ease);
}

.stepper button:hover {
    background: var(--sand);
}

.stepper button:disabled {
    color: var(--ink-faint);
    cursor: not-allowed;
}

.stepper .qty {
    width: 42px;
    text-align: center;
    font-family: var(--ff-mono);
    font-size: 1.05rem;
    font-weight: 500;
}

.buy-row .btn-e {
    flex: 1;
}

.pd-meta {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-meta .row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.pd-meta .row svg {
    color: var(--cobalt);
    flex: none;
}

.pd-meta .row b {
    color: var(--ink);
    font-weight: 600;
}

/* product tabs */
.pd-tabs {
    border-top: 1px solid var(--line);
}

.tab-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}

.tab-nav button {
    background: none;
    border: 0;
    padding: 16px 20px;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink-faint);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .18s var(--ease), border-color .18s var(--ease);
}

.tab-nav button:hover {
    color: var(--ink);
}

.tab-nav button.active {
    color: var(--ink);
    border-bottom-color: var(--cobalt);
}

.tab-panel {
    display: none;
    animation: fadeUp .35s var(--ease);
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 560px;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .96rem;
}

.spec-list li span:first-child {
    color: var(--ink-soft);
}

.spec-list li span:last-child {
    font-family: var(--ff-mono);
    color: var(--ink);
}

.two-col {
    columns: 2;
    column-gap: 44px;
    max-width: 760px;
}

@media (max-width: 640px) {
    .two-col {
        columns: 1;
    }
}

.rev-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--sand);
    border-radius: var(--radius);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rev-big {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1;
}

.rev-summary .stars svg {
    width: 18px;
    height: 18px;
}

.rev-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.rev-item .stars svg {
    width: 15px;
    height: 15px;
}

.rev-item .head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rev-item .head b {
    font-size: .96rem;
}

.rev-item .head .when {
    margin-left: auto;
    font-family: var(--ff-mono);
    font-size: .74rem;
    color: var(--ink-faint);
}

.rev-item p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.rev-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rev-photos img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--sand);
}

/* related */
.related {
    background: var(--sand);
}

/* ---------- scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal.d1 {
    transition-delay: .07s;
}

.reveal.d2 {
    transition-delay: .14s;
}

.reveal.d3 {
    transition-delay: .21s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   CATALOG (Lunar storefront additions)
   ========================================================================== */

/* ---- catalog menu: header dropdowns ---- */
.main-nav a.active {
    color: var(--cobalt);
}

.main-nav a.active::after {
    transform: scaleX(1);
}

.nav-group {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
    z-index: 950;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.main-nav .nav-dropdown a {
    font-size: .93rem;
    padding: 8px 12px;
}

.main-nav .nav-dropdown a::after {
    display: none;
}

.main-nav .nav-dropdown a:hover,
.main-nav .nav-dropdown a.active {
    background: var(--sand);
}

.main-nav .nav-dropdown a.depth-3 {
    padding-inline-start: 26px;
    font-size: .88rem;
    color: var(--ink-soft);
}

/* ---- catalog menu: drawer + footer ---- */
.drawer nav a.active {
    color: var(--cobalt);
}

.drawer nav a.depth-2 {
    font-size: 1.15rem;
    padding-inline-start: 22px;
}

.drawer nav a.depth-3 {
    font-size: 1rem;
    padding-inline-start: 36px;
    font-family: var(--ff-body);
}

.footer-col ul ul {
    margin-top: 10px;
    padding-inline-start: 12px;
    gap: 8px;
}

.footer-col ul ul a {
    font-size: .88rem;
}

.footer-col a.active {
    color: #fff;
}

/* ---- listing ---- */
.collection-page {
    padding-top: 0;
}

.collection-page .section-head h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.collection-desc {
    color: var(--ink-soft);
    font-size: 1.06rem;
}

.collection-desc p:last-child {
    margin-bottom: 0;
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--ink-soft);
    background: var(--sand);
    border-radius: var(--radius);
}

.card-p-media img.is-placeholder,
.pd-main img.is-placeholder {
    object-fit: contain;
}

.grid-cta .pagination {
    justify-content: center;
    --bs-pagination-color: var(--ink);
    --bs-pagination-hover-color: var(--cobalt);
    --bs-pagination-focus-color: var(--cobalt);
    --bs-pagination-active-bg: var(--cobalt);
    --bs-pagination-active-border-color: var(--cobalt);
    --bs-pagination-border-color: var(--line);
    --bs-pagination-bg: var(--paper);
}

.grid-cta nav > .d-sm-flex > div:first-child {
    display: none;
}

/* ---- catalog: the universal listing behind /products and every collection ---- */
.catalog.is-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .18s var(--ease);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.catalog-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.catalog-sidebar-head h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.catalog-clear-filters {
    border: none;
    background: none;
    color: var(--cobalt);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.catalog-clear-filters:disabled {
    color: var(--ink-soft);
    cursor: not-allowed;
    opacity: .6;
}

.catalog-filter-group {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
    border-top: 1px solid var(--line);
}

.catalog-filter-group:first-child {
    padding-top: 0;
    border-top: none;
}

.catalog-filter-group h3 {
    font-size: .88rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.catalog-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: var(--ink-soft);
    padding: 5px 0;
    cursor: pointer;
}

.catalog-filter-option:has(input:disabled) {
    cursor: not-allowed;
}

.catalog-filter-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--cobalt);
}

.catalog-filter-count {
    margin-left: auto;
    font-size: .82rem;
    color: var(--ink-soft);
}

.catalog-price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-price-range input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: .88rem;
    background: var(--white);
}

.catalog-price-range-hint {
    font-size: .8rem;
    color: var(--ink-soft);
    margin: 6px 0 0;
}

.catalog-main {
    min-width: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.catalog-count {
    color: var(--ink-soft);
    font-size: .92rem;
    margin: 0;
}

.catalog-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-toolbar-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.catalog-toolbar-label {
    flex: none;
    font-size: .85rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

/* SearchFilter's panel: full width above the toolbar, not a sidebar column —
   see catalog.blade.php, which pulls it out of $filterPanels on purpose. */
.catalog-search-row {
    margin-bottom: 24px;
}

.catalog-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    transition: border-color .18s var(--ease);
}

.catalog-search-field:focus-within {
    border-color: var(--cobalt);
}

.catalog-search-field svg {
    flex: none;
}

.catalog-search-field input {
    flex: 1 1 auto;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    font-size: .95rem;
    color: var(--ink);
}

/* ---- product page ---- */
.pd-tax {
    margin: -14px 0 22px;
    font-size: .82rem;
    color: var(--ink-faint);
}

.pd-meta #pdStock.out {
    color: var(--flare);
}

.btn-e:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.pd-description {
    color: var(--ink-soft);
    max-width: 72ch;
}

/* ---- admin-written pages ----
   The body is whatever markup was typed into the admin, so the rules are on the
   plain tags it is likely to use rather than on classes it has no way to know. */
.custom-page-body {
    color: var(--ink-soft);
    max-width: 78ch;
}

.custom-page-body > :first-child {
    margin-top: 0;
}

.custom-page-body h2,
.custom-page-body h3,
.custom-page-body h4 {
    color: var(--ink);
    margin: 32px 0 12px;
}

.custom-page-body p,
.custom-page-body ul,
.custom-page-body ol {
    margin: 0 0 16px;
    line-height: 1.75;
}

.custom-page-body ul,
.custom-page-body ol {
    padding-inline-start: 22px;
}

.custom-page-body li {
    margin-bottom: 6px;
}

.custom-page-body a {
    color: var(--cobalt);
    text-decoration: underline;
}

.custom-page-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.custom-page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}

.custom-page-body th,
.custom-page-body td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: start;
}

.custom-page-body th {
    color: var(--ink);
    font-weight: 600;
}

/* ---- template configurator ----
   The canvas leads the gallery for a customizable variant, and the controls
   are one block under the description. Both are plain markup the
   lunar-product-templates module binds to by data-pt-*. */
.cfg-stage {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--sand);
}

/* No letterboxing: the module maps pointer coordinates through the element's
   own box, so the canvas has to fill it exactly whatever its pixel size is. */
.cfg-stage canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none; /* the module pans layers with pointer drags */
}

.cfg-sides {
    position: absolute;
    inset: auto 0 12px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cfg-side-btn {
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    cursor: pointer;
    transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.cfg-side-btn:hover {
    border-color: var(--ink);
}

.cfg-side-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* One block, whatever the template has: the layers are rows inside it. */
.cfg-panel {
    display: grid;
    gap: 4px;
    margin-top: 26px;
    padding: 18px 20px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    max-width: 72ch;
}

.cfg-panel-head {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
}

.cfg-panel-title {
    font-family: var(--ff-mono);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cfg-side {
    display: grid;
}

.cfg-group {
    display: grid;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.cfg-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cfg-group-title {
    font-family: var(--ff-mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
}

.cfg-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cfg-swatch {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 100px;
    border: 2px solid var(--line);
    background: var(--swatch, var(--sand));
    cursor: pointer;
    transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.cfg-swatch:hover {
    transform: translateY(-2px);
}

.cfg-swatch.active {
    border-color: var(--ink);
    box-shadow: 0 0 0 2px var(--white) inset;
}

.cfg-swatch-custom {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: conic-gradient(#ff5636, #ffd84d, #3ecf8e, #2743e6, #b45cf2, #ff5636);
}

.cfg-swatch-custom input[type="color"] {
    width: 200%;
    height: 200%;
    border: 0;
    padding: 0;
    background: none;
    opacity: 0;
    cursor: pointer;
}

.cfg-images {
    align-items: center;
}

.cfg-preset {
    width: 56px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--sand);
    cursor: pointer;
    transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.cfg-preset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cfg-preset:hover {
    transform: translateY(-2px);
}

.cfg-preset.active {
    border-color: var(--cobalt);
}

.cfg-file {
    font-size: .86rem;
    padding: 9px 16px;
    border: 1.5px dashed var(--line);
    border-radius: 100px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .18s var(--ease), color .18s var(--ease);
}

.cfg-file:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.cfg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.cfg-field {
    display: grid;
    gap: 6px;
    flex: 1 1 140px;
}

/* A ported form field brings its own label and spacing: it only needs a width. */
.cfg-input-field {
    flex: 1 1 180px;
}

.cfg-field > span {
    font-family: var(--ff-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cfg-input,
.cfg-select {
    width: 100%;
    font-family: var(--ff-body);
    font-size: .94rem;
    color: var(--ink);
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.cfg-input:focus,
.cfg-select:focus {
    outline: none;
    border-color: var(--cobalt);
}

.cfg-range {
    width: 100%;
    accent-color: var(--cobalt);
    cursor: pointer;
}

.cfg-range:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.cfg-link {
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color .18s var(--ease);
}

.cfg-link:hover {
    color: var(--cobalt);
}

.cfg-hint {
    margin: 0;
    font-size: .8rem;
    color: var(--ink-faint);
}

.cfg-empty {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-faint);
}

.cfg-actions {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* ==========================================================================
   CART
   ========================================================================== */
/* A real utility: the input partials point aria-describedby at a node that
   must be read but not seen. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.cart-page {
    padding-top: 0;
}

.cart-page .section-head h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(24px, 3.4vw, 46px);
    align-items: start;
}

/* ---- the lines ---- */
.cart-items {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 20px clamp(16px, 2vw, 24px);
    border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-thumb {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--sand);
    flex: none;
}

.cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-line-name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1.2;
    color: var(--ink);
}

.cart-line-name:hover {
    color: var(--cobalt);
}

.cart-line-meta {
    margin: 0;
    font-size: .86rem;
    color: var(--ink-soft);
    /* A long engraving is a line of its own, not a reason for the row to grow. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-line-each {
    margin: 0;
    font-family: var(--ff-mono);
    font-size: .82rem;
    color: var(--ink-faint);
}

.cart-line-warn {
    margin: 0;
    font-size: .86rem;
    font-weight: 500;
    color: var(--flare);
}

.cart-line-total {
    margin: 0;
    font-family: var(--ff-mono);
    font-size: 1.05rem;
    font-weight: 500;
    min-width: 92px;
    text-align: right;
}

.cart-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 100px;
    background: var(--sand);
    font-family: var(--ff-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
}

/* Each quantity step is its own form, so the stepper holds forms, not buttons. */
.cart-stepper {
    height: 44px;
}

.cart-stepper form {
    display: contents;
}

.cart-stepper button {
    width: 38px;
    height: 42px;
}

.cart-stepper .qty {
    width: 34px;
    font-size: .95rem;
}

.cart-remove {
    width: 40px;
    height: 40px;
    color: var(--ink-faint);
}

.cart-remove:hover {
    color: var(--flare);
    background: var(--sand);
}

/* ---- nothing in it yet ---- */
.cart-empty {
    padding: clamp(48px, 7vw, 86px) 24px;
    text-align: center;
    background: var(--sand);
    border-radius: var(--radius);
}

.cart-empty h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.cart-empty p {
    color: var(--ink-soft);
    margin-bottom: 24px;
}

/* ---- the summary ---- */
.cart-aside {
    position: sticky;
    top: 96px;
}

.summary-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(20px, 2.4vw, 28px);
}

.summary-title {
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.promo-form {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.promo-field {
    flex: 1;
    min-width: 0;
}

.promo-apply {
    height: 54px;
    flex: none;
    padding-inline: 20px;
}

.summary-lines {
    margin: 0;
    padding: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.summary-line dt {
    color: var(--ink-soft);
    font-size: .94rem;
}

.summary-line dd {
    margin: 0;
    font-family: var(--ff-mono);
    font-size: .98rem;
}

.summary-save {
    color: #0f9960;
}

.summary-total {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.summary-total dt {
    color: var(--ink);
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-total dd {
    font-size: 1.3rem;
    font-weight: 500;
}

.summary-cta {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
}

.summary-cta[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.summary-note {
    margin: 10px 0 0;
    font-size: .82rem;
    color: var(--ink-faint);
    text-align: center;
}

.summary-secure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    line-height: 1.45;
    color: var(--ink-faint);
}

.summary-secure svg {
    flex: none;
    margin-top: 2px;
}

/* An error has to look unlike a confirmation, not only read unlike one. */
.toast-error {
    background: var(--flare);
}

.toast-error .tick {
    background: rgba(0, 0, 0, .28);
}

@media (max-width: 1080px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-aside {
        position: static;
    }
}

@media (max-width: 680px) {
    /* Two rows: what it is on top, what it costs and how many underneath. */
    .cart-line {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 12px 14px;
    }

    .cart-thumb {
        width: 72px;
        height: 72px;
        grid-row: 1 / span 2;
    }

    .cart-line-body {
        grid-column: 2;
        grid-row: 1;
    }

    /* Narrow enough that an ellipsis would eat the whole engraving. */
    .cart-line-meta {
        white-space: normal;
    }

    .cart-line > form:last-child {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

    .cart-stepper {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .cart-line-total {
        grid-column: 3;
        grid-row: 2;
        min-width: 0;
    }
}

/* ==========================================================================
   AUTH — sign in, sign up
   ========================================================================== */
.auth-page {
    padding-top: clamp(40px, 6vw, 72px);
}

.auth-card {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 4vw, 44px);
}

.auth-card .section-head {
    max-width: none;
    margin-bottom: clamp(22px, 3vw, 30px);
}

.auth-card .section-head h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.auth-card .section-head p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* First name beside last name, until there is no room for two. */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Whatever the validator had to say about nothing in particular. */
.auth-error {
    border: 1px solid var(--flare);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    background: rgba(255, 86, 54, .07);
    color: var(--ink);
    font-weight: 500;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .94rem;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--cobalt);
    cursor: pointer;
    margin: 0;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-forgot {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.auth-forgot:hover {
    color: var(--cobalt);
}

.auth-legal {
    font-size: .78rem;
    line-height: 1.5;
    color: var(--ink-faint);
    margin: 0;
}

.auth-legal a {
    color: var(--ink-soft);
    text-decoration: underline;
}

.auth-legal a:hover {
    color: var(--cobalt);
}

/* ---- the other way in ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 18px;
    color: var(--ink-faint);
    font-family: var(--ff-mono);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-google {
    --bg: var(--white);
    --fg: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    --bg: var(--paper);
    --fg: var(--ink);
    border-color: var(--sand-deep);
}

.auth-alt {
    margin: 22px 0 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: .95rem;
}

.auth-alt a {
    font-weight: 600;
}

/* ---- who is signed in, in the header ---- */
.nav-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.nav-account-block {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 6px;
}

.nav-account-name {
    margin-left: 5px;
    font-weight: 600;
    font-size: .92rem;
    max-width: 10ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-account-out {
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    border-radius: 100px;
    padding: 7px 14px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

.nav-account-out:hover {
    color: var(--ink);
    border-color: var(--ink);
}

a.nav-account-name {
    color: var(--ink);
}

a.nav-account-name:hover {
    color: var(--cobalt);
}

@media (max-width: 680px) {
    .auth-row {
        grid-template-columns: 1fr;
    }

    .nav-account-name {
        display: none;
    }
}

/* ==========================================================================
   ACCOUNT — dashboard, addresses, order history
   ========================================================================== */
.account-page {
    padding-top: 0;
}

.account-page .section-head h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.account-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(24px, 3.4vw, 46px);
    align-items: start;
}

/* ---- who is signed in, and the tabs ---- */
.account-side {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.account-card-who {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.account-card-name {
    font-family: var(--ff-display);
    font-size: 1.06rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.account-card-email {
    font-size: .86rem;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.account-avatar {
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sand);
}

.account-avatar-small {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sand);
}

.account-avatar-initials {
    display: grid;
    place-items: center;
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cobalt-deep);
    background: var(--sand);
}

/* The product tabs stood on end: same buttons, the marker moves to the side. */
.tab-nav-side {
    flex-direction: column;
    gap: 2px;
    border-bottom: 0;
    margin-bottom: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 10px;
    overflow: hidden;
}

.tab-nav-side button {
    text-align: start;
    font-size: 1.02rem;
    padding: 12px 14px;
    border-bottom: 0;
    border-inline-start: 3px solid transparent;
    border-radius: var(--radius-sm);
    margin-bottom: 0;
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.tab-nav-side button.active {
    border-inline-start-color: var(--cobalt);
    background: var(--paper);
}

/* ---- the panels ---- */
.account-main {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 26px);
}

.account-main .tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 26px);
}

.account-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(20px, 2.6vw, 30px);
}

.account-block-head {
    margin-bottom: 22px;
}

.account-block-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    margin-bottom: 6px;
}

.account-block-head p {
    color: var(--ink-soft);
    margin: 0;
    font-size: .95rem;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: start;
}

.account-form .btn-e {
    align-self: start;
}

.account-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.account-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.account-form > *:not(.btn-e):not(.account-checks):not(.account-avatar-field) {
    width: 100%;
}

.account-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.account-avatar-field {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-avatar-pick {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
}

/* The label is the button; the input stays where a keyboard can still find it. */
.account-file {
    font-size: .84rem;
    color: var(--ink-soft);
    max-width: 100%;
    visibility: hidden;
    position: absolute;
}

.account-hint {
    font-size: .8rem;
    color: var(--ink-faint);
}

.account-field-error {
    font-size: .84rem;
    color: var(--flare);
    font-weight: 500;
}

.account-empty {
    color: var(--ink-soft);
    margin: 0 0 18px;
}

/* ---- saved addresses ---- */
.address-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.address-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    padding: 18px;
}

.address-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.address-badge {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cobalt-deep);
    background: rgba(39, 67, 230, .09);
    border-radius: 100px;
    padding: 4px 10px;
}

.address-who {
    margin: 0 0 6px;
    font-weight: 600;
}

.address-company {
    display: block;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: .9rem;
}

.address-body {
    font-style: normal;
    color: var(--ink-soft);
    font-size: .93rem;
    line-height: 1.55;
}

.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

/* A button that reads as a link: it posts a form, so it cannot be an anchor. */
.link-btn {
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--ff-body);
    font-size: .86rem;
    font-weight: 600;
    color: var(--cobalt);
    cursor: pointer;
    text-decoration: underline;
}

.link-btn:hover {
    color: var(--cobalt-deep);
}

.link-btn-danger {
    color: var(--ink-faint);
}

.link-btn-danger:hover {
    color: var(--flare);
}

.address-edit, .address-new {
    margin-top: 14px;
}

.address-new {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.address-edit > summary, .address-new > summary {
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    color: var(--ink-soft);
}

.address-edit > summary:hover, .address-new > summary:hover {
    color: var(--ink);
}

.address-edit .address-form, .address-new .address-form {
    margin-top: 16px;
}

/* ---- order history ---- */
.order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    padding: 16px 18px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.order-card:hover {
    border-color: var(--sand-deep);
    box-shadow: var(--shadow-sm);
}

/* One link over the whole card, so the hit area is the card and the markup
   stays a single sensible link rather than five. */
.order-card-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.order-card-link:focus-visible {
    outline-offset: -3px;
}

.order-card-thumbs {
    display: flex;
    gap: 6px;
}

.order-card-thumbs img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--sand);
}

.order-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-card-ref {
    font-family: var(--ff-display);
    font-size: 1.04rem;
}

.order-card-meta {
    font-size: .86rem;
    color: var(--ink-soft);
}

.order-card-side {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 6px;
}

.order-card-total {
    font-family: var(--ff-mono);
    font-size: 1.02rem;
}

.business-status {
    border-radius: var(--radius-sm);
    font-size: .92rem;
    text-align: center;
}

.business-status-pending {
    background: var(--sand);
    color: var(--ink-soft);
}

.business-status-approved {
    background: color-mix(in srgb, var(--cobalt) 12%, transparent);
    color: var(--cobalt-deep);
}

.business-status-rejected {
    background: color-mix(in srgb, var(--flare) 12%, transparent);
    color: var(--flare);
}

.order-status {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--sand);
    border-radius: 100px;
    padding: 4px 10px;
}

/* ==========================================================================
   ONE ORDER
   ========================================================================== */
.order-page {
    padding-top: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink-soft);
}

.back-link:hover {
    color: var(--cobalt);
}

.order-head-status {
    margin: 0;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(24px, 3.4vw, 46px);
    align-items: start;
}

.order-main, .order-aside {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 26px);
}

.order-aside {
    position: sticky;
    top: 96px;
}

.order-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 2.4vw, 26px);
}

.order-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.order-line:first-child {
    padding-top: 0;
}

.order-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.order-line-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--sand);
}

.order-line-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-line-name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}

a.order-line-name:hover {
    color: var(--cobalt);
}

.order-line-meta {
    font-size: .86rem;
    color: var(--ink-soft);
}

.order-line-total {
    font-family: var(--ff-mono);
    font-size: 1.02rem;
}

.order-address {
    font-style: normal;
    color: var(--ink-soft);
    font-size: .93rem;
    line-height: 1.6;
}

.order-address strong {
    color: var(--ink);
}

.order-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0 0;
    font-size: .92rem;
    color: var(--ink-soft);
}

.order-meta-line strong {
    color: var(--ink);
    font-weight: 600;
    text-align: end;
}

.order-sum-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
    font-size: .94rem;
    color: var(--ink-soft);
}

.order-sum-line strong {
    font-family: var(--ff-mono);
    font-weight: 500;
    color: var(--ink);
}

.order-sum-tax {
    font-size: .86rem;
    color: var(--ink-faint);
}

.order-sum-total {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.order-sum-total span {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.order-sum-total strong {
    font-size: 1.26rem;
}

.order-line-review-cta {
    align-self: start;
    font-size: .84rem;
    font-weight: 600;
    color: var(--cobalt);
}

.order-line-review-cta:hover {
    text-decoration: underline;
}

/* ---- review form ---- */
.shell-review {
    max-width: 840px;
}

.review-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.review-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--sand);
}

.review-product-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-product-name {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}

.review-form {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

/* A standard CSS-only star rating: the inputs are in reverse document order so a
   plain ~ sibling selector lights up every star from the one hovered/checked to
   the first, once flex-direction: row-reverse puts them back in reading order. */
.star-rating {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.star-rating legend {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0;
}

.star-rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.star-rating-stars label {
    font-size: 2rem;
    line-height: 1;
    color: var(--line);
    cursor: pointer;
    transition: color .15s ease;
}

.star-rating-stars input:checked ~ label,
.star-rating-stars input:focus-visible ~ label,
.star-rating-stars label:hover,
.star-rating-stars label:hover ~ label {
    color: var(--cobalt);
}

.review-customization-preview {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--sand);
}

@media (max-width: 1080px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-side {
        position: static;
    }

    .tab-nav-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-nav-side button {
        border-inline-start: 0;
        border-bottom: 3px solid transparent;
    }

    .tab-nav-side button.active {
        border-inline-start-color: transparent;
        border-bottom-color: var(--cobalt);
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-aside {
        position: static;
    }
}

@media (max-width: 680px) {
    .account-row, .account-row-3, .order-cols {
        grid-template-columns: 1fr;
    }

    .account-avatar-field {
        align-items: start;
    }

    /* Thumbnails, reference and total stack rather than squeeze. */
    .order-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 14px;
    }

    .order-card-thumbs {
        grid-column: 1 / -1;
    }

    .order-card-side {
        align-items: start;
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .order-line {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .order-line-thumb {
        width: 56px;
        height: 56px;
    }

    .order-line-total {
        grid-column: 2;
    }
}

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.checkout-page {
    padding-top: 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(24px, 3.4vw, 46px);
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 26px);
}

.checkout-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 26px);
}

.checkout-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.checkout-jump a:hover {
    color: var(--cobalt);
}

.address-card-selected {
    border-color: var(--cobalt);
    box-shadow: 0 0 0 1px var(--cobalt) inset;
}

.address-card .address-badge {
    margin-top: 10px;
    display: inline-block;
}

.address-card form {
    margin-top: 12px;
}

.shipping-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-option-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
}

.shipping-option-label:has(input:checked) {
    border-color: var(--cobalt);
    box-shadow: 0 0 0 1px var(--cobalt) inset;
}

.shipping-option-name {
    font-weight: 600;
}

.shipping-option-desc {
    grid-column: 2;
    font-size: .86rem;
    color: var(--ink-soft);
}

.shipping-option-price {
    font-family: var(--ff-mono);
}

.checkout-payment {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-pay {
    width: 100%;
}

.account-error {
    color: var(--flare);
    font-size: .88rem;
    margin: 0;
}

@media (max-width: 1080px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-aside {
        position: static;
    }
}

/* ==========================================================================
   RECAPTCHA BADGE — ours, in place of Google's
   ========================================================================== */

/* Google's own badge goes away; hiding it is only allowed because the notice
   below, with both links, takes its place on every page. */
.grecaptcha-badge {
    visibility: hidden;
}

.captcha-badge {
    position: fixed;
    right: 0;
    bottom: 15px;
    z-index: 60;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px 0 6px;
    background: #d5daf6;
    border-radius: 18px 0 0 18px;
    cursor: pointer;
    /* Only the icon sticks out until it is wanted. */
    transform: translateX(calc(100% - 44px));
    transition: transform .3s ease-in;
}

.captcha-badge:hover,
.captcha-badge:focus-within,
.captcha-badge.is-open {
    transform: translateX(0);
}

.captcha-badge-mark {
    width: 36px;
    flex: none;
    display: block;
}

.captcha-badge-mark svg {
    width: 100%;
    height: auto;
    display: block;
}

.captcha-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    white-space: nowrap;
    color: var(--cobalt-deep);
    font-size: .8rem;
}

.captcha-badge-text strong {
    font-weight: 700;
}

.captcha-badge-links {
    font-weight: 300;
}

.captcha-badge-links a {
    color: var(--cobalt-deep);
    font-weight: 600;
}

.captcha-badge-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .nav-drawer-hidden {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    /* The logo and name fade away instead of the header's own nav (already gone
       here) to free up room for the bar — the mobile header keeps only the logo,
       name, search, cart and the drawer toggle; search-open drops the logo/name too. */
    .site-header.search-open .brand {
        opacity: 0;
        visibility: hidden;
        width: 0;
        margin: 0;
        overflow: hidden;
        transition: opacity .18s var(--ease), width .28s var(--ease), visibility .28s;
    }

    .site-header.search-open .nav-wrap {
        gap: 0;
    }

    .hero-grid {
        padding-inline: clamp(18px, 4vw, 40px) !important;
        grid-template-columns: 1fr;
    }

    .hero-media {
        max-width: 460px;
        margin-inline: auto;
        width: 100%;
    }

    .hero-copy {
        text-align: left;
    }

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

    .promo-media img {
        min-height: 260px;
    }

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

    .cat-card {
        aspect-ratio: 16 / 10;
    }

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

    .news-inner {
        grid-template-columns: 1fr;
    }

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

    .pd-gallery {
        position: static;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px 30px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-row {
        flex-direction: column;
    }

    .news-form .btn-e {
        width: 100%;
    }

    .buy-row {
        flex-wrap: wrap;
    }

    .buy-row .btn-e {
        width: 100%;
        flex: 1 0 100%;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-toolbar-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-toolbar-field-per-page,
    .catalog-toolbar-field-sort {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    .card-p-media {
        aspect-ratio: 4 / 3;
    }

    .hero-badge {
        left: 8px;
    }
}

/* ---------- language switcher ---------- */
/* Header: a flag that opens a list, on hover, on focus and on click (initLangMenu). The same
   switcher is a plain list in the mobile drawer, where this one is hidden (.nav-drawer-hidden). */
.lang-switch {
    position: relative;
}

.lang-btn {
    gap: 3px;
    grid-auto-flow: column;
}

.lang-btn::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    transition: transform .18s var(--ease);
}

.lang-switch:hover .lang-btn::after,
.lang-switch.open .lang-btn::after {
    transform: translateY(1px) rotate(-135deg);
}

.lang-btn img,
.lang-menu img,
.drawer-lang img {
    width: 22px;
    height: 22px;
    flex: none;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.lang-code {
    font-family: var(--ff-mono);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 0.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
    z-index: 950;
}

/* Keeps the pointer inside the switcher on its way down to the list. */
.lang-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu,
.lang-switch.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .93rem;
}

.lang-menu a:hover,
.lang-menu a.active {
    background: var(--sand);
}

.lang-menu a.active {
    color: var(--cobalt);
    font-weight: 600;
}

.drawer-lang {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.drawer-lang h4 {
    margin: 0 0 6px;
    font-family: var(--ff-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.drawer-lang a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.05rem;
}

.drawer-lang a:hover,
.drawer-lang a.active {
    color: var(--cobalt);
}

.drawer-lang a.active {
    font-weight: 600;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }
}
