/* ==========================================================================
   Aurelia — design system
   Mobile first. Every size below is tuned for a phone and scaled up at 48rem.
   ========================================================================== */

:root {
    /* Ink and paper */
    --ink: #16130f;
    --ink-soft: #4a4238;
    --muted: #8a8072;
    --ivory: #fbf8f3;
    --sand: #f4eee4;
    --sand-deep: #ebe2d4;
    --line: #e4dccf;
    --white: #fff;

    /* Metal */
    --gold: #a9852f;
    --gold-bright: #c9a227;
    --gold-wash: #f7f0df;

    /* Gemstone — a second, sparingly used accent so the palette isn't gold-on-cream alone;
       drawn from the emerald pieces already in the catalogue rather than invented from nothing. */
    --emerald: #2f5d47;
    --emerald-deep: #1f4433;
    --emerald-wash: #eaf1ec;

    /* Type */
    --display: "Cormorant Garamond", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
    --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Rhythm */
    --gutter: 1.25rem;
    --page: 100%;
    --radius: 2px;
    --radius-lg: 4px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --fast: .18s;
    --slow: .45s;

    /* Elevation — jewellery photography needs soft, warm shadow, never grey */
    --shadow-sm: 0 1px 2px rgba(38, 28, 12, .05), 0 2px 8px rgba(38, 28, 12, .04);
    --shadow-md: 0 2px 6px rgba(38, 28, 12, .06), 0 12px 28px rgba(38, 28, 12, .08);
    --shadow-lg: 0 8px 20px rgba(38, 28, 12, .1), 0 30px 60px rgba(38, 28, 12, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: var(--ivory);
    padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- layout */

.shell {
    width: 100%;
    max-width: var(--page);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.5rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(1.75rem, 5vw, 3rem); }
.section--sand { background: var(--sand); }

.section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(1.75rem, 5vw, 3rem);
}
.section-head p { color: var(--ink-soft); margin: 0; }

.eyebrow {
    display: block;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .9rem;
    font-weight: 600;
}

.rule {
    width: 3rem;
    height: 1px;
    background: var(--gold);
    border: 0;
    margin: 1.25rem auto;
}

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .85rem 1.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
                border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: #2b241b; }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #8f6f24; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }

.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--full { width: 100%; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .72rem; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

/* --------------------------------------------------------------- header */

.topbar {
    background: var(--ink);
    color: var(--sand);
    font-size: .75rem;
    letter-spacing: .06em;
}
.topbar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    min-height: 36px;
    text-align: center;
}
.topbar a:hover { color: var(--gold-bright); }
.topbar__sep { opacity: .35; }

/* On a narrow phone only the phone number earns the space. */
@media (max-width: 30rem) {
    .topbar__promo, .topbar__sep { display: none; }
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 248, 243, .92);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--fast) var(--ease);
}
.masthead.is-stuck { box-shadow: var(--shadow-sm); }

.masthead__inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: .5rem;
    min-height: 62px;
}

.brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.brand__name {
    font-family: var(--display);
    font-size: clamp(1.02rem, 4.4vw, 1.32rem);
    letter-spacing: .02em;
    white-space: nowrap;
}
.brand__sub {
    font-size: .55rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: .28rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 21px; height: 21px; }

.badge {
    position: absolute;
    top: 5px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--gold);
    color: #fff;
    border-radius: 9px;
    font-size: .62rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    font-family: var(--body);
}
.badge[hidden] { display: none; }

.mainnav { display: none; }

/* --------------------------------------------------------------- drawer */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(22, 19, 15, .45);
    opacity: 0;
    transition: opacity var(--slow) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: min(21rem, 86vw);
    background: var(--ivory);
    transform: translateX(-100%);
    transition: transform var(--slow) var(--ease);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--display); font-size: 1.15rem; }

.drawer__links { padding: .5rem 0 1.5rem; }
.drawer__links a {
    display: block;
    padding: .95rem 1.25rem;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    letter-spacing: .02em;
}
.drawer__links a:hover, .drawer__links a.is-active { background: var(--sand); color: var(--gold); }
.drawer__links .drawer__group {
    padding: 1.25rem 1.25rem .4rem;
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.drawer__foot { margin-top: auto; padding: 1.25rem; display: grid; gap: .6rem; }

/* --------------------------------------------------------------- hero */

.hero {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    min-height: min(78vh, 40rem);
    padding-block: 4rem;
    background:
        radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--sand) 55%, var(--sand-deep) 100%);
    overflow: hidden;
}
.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
    z-index: 0;
}
.hero__photo + .hero__art { opacity: .3; z-index: 1; }
.hero::after {
    /* A soft wash over the whole photo, not a boxed panel behind the text — a panel hides
       the photo it sits on top of; a gradient keeps the photo visible everywhere while still
       giving the dark headline text enough contrast to read. */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(251, 248, 243, .32) 0%, rgba(251, 248, 243, .58) 45%, var(--ivory) 100%);
}
.hero__art {
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    z-index: 1;
}
.hero__inner { position: relative; z-index: 2; max-width: 44rem; }
.hero h1 { margin-bottom: .35em; }
.hero__lede {
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    color: var(--ink-soft);
    max-width: 34rem;
    margin-inline: auto;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 2rem;
}

/* --------------------------------------------------------------- hero carousel (campaigns) */

.hero-carousel {
    position: relative;
    min-height: min(78vh, 40rem);
    overflow: hidden;
}
.hero-carousel__track {
    display: flex;
    height: min(78vh, 40rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hero-carousel__track::-webkit-scrollbar { display: none; }
.hero-carousel__slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: 4rem;
}
.hero-carousel__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-carousel__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 19, 15, .15) 0%, rgba(22, 19, 15, .55) 100%);
    z-index: 1;
}
.hero-carousel__inner { position: relative; z-index: 2; max-width: 44rem; padding-inline: 1.25rem; }
.hero-carousel__inner .eyebrow,
.hero-carousel__inner h1,
.hero-carousel__inner p { color: #fff; }
.hero-carousel__inner .eyebrow { opacity: .85; }
.hero-carousel__lede { font-size: clamp(1rem, 2.6vw, 1.15rem); max-width: 34rem; margin-inline: auto; opacity: .92; }
.hero-carousel__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }

.hero-carousel__dots {
    position: absolute;
    bottom: 1rem;
    inset-inline: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: .4rem;
}
.hero-carousel__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}
.hero-carousel__dot.is-active { background: #fff; width: 20px; border-radius: 3px; }

/* --------------------------------------------------------------- quick category nav */

.quicknav {
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}
.quicknav::-webkit-scrollbar { display: none; }
.quicknav__inner {
    display: flex;
    gap: 1.75rem;
    padding-block: 1.25rem;
    width: max-content;
    min-width: 100%;
    justify-content: center;
}
.quicknav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
    width: 4.75rem;
    text-align: center;
    font-size: .72rem;
    color: var(--ink-soft);
}
.quicknav__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    background: var(--sand);
    border: 1px solid var(--line);
}
.quicknav__item:hover img { border-color: var(--gold); }
.quicknav__item:hover { color: var(--ink); }

/* --------------------------------------------------------------- promo row */

.promo-row { background: var(--gold-wash); }
.promo-row__inner {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    padding-block: 3rem;
}
.promo-card {
    display: block;
    padding: 1.75rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo-card svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 1rem; }
.promo-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.promo-card p { color: var(--ink-soft); font-size: .85rem; margin: 0; }

/* --------------------------------------------------------------- trust strip */

.trust {
    border-block: 1px solid var(--line);
    background: var(--white);
}
.trust__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    padding-block: 1.5rem;
}
.trust__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    letter-spacing: .02em;
    color: var(--ink-soft);
}
.trust__item svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--emerald); }

@media (min-width: 48rem) {
    .trust__inner { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------- shop by metal */

.metal-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
}
.metal-row__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    text-align: center;
    width: 8.5rem;
}
.metal-row__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    background: var(--sand);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.metal-row__item:hover img { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--gold); transform: translateY(-2px); }
.metal-row__item span { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }

/* --------------------------------------------------------------- shop by budget */

.budget-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.budget-card {
    display: block;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.budget-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.budget-card__range { font-family: var(--display); font-size: 1.9rem; color: var(--ink); display: block; margin-bottom: .4rem; }
.budget-card__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------- atelier band */

.atelier {
    position: relative;
    background: var(--ink);
    color: var(--ivory);
    overflow: hidden;
    text-align: center;
    padding-block: 5rem;
}
.atelier__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
    z-index: 0;
}
.atelier__photo + .atelier__art { z-index: 1; }
.atelier::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(22, 19, 15, .55) 0%, rgba(22, 19, 15, .88) 100%);
}
.atelier__art {
    position: absolute;
    inset: 0;
    opacity: .35;
    pointer-events: none;
}
.atelier__inner { position: relative; z-index: 2; max-width: 40rem; margin-inline: auto; }
.atelier .eyebrow { color: var(--gold-bright); }
.atelier h2 { color: var(--ivory); }
.atelier p { color: rgba(251, 248, 243, .78); }
.atelier__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(251, 248, 243, .18);
}
.atelier__stat strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--gold-bright); }
.atelier__stat span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(251, 248, 243, .7); }

/* --------------------------------------------------------------- product card */

.grid {
    display: grid;
    gap: 1rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.grid--one { grid-template-columns: 1fr; }

.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--slow) var(--ease), transform var(--slow) var(--ease),
                border-color var(--slow) var(--ease);
}
@media (hover: hover) {
    .card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--sand-deep); }
    .card:hover .card__img { transform: scale(1.05); }
}

.card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--sand);
    overflow: hidden;
}
.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

.card__flags {
    position: absolute;
    top: .55rem;
    left: .55rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    align-items: flex-start;
}
.flag {
    /* Product art is pale by design, so the badge carries its own contrast. */
    background: rgba(22, 19, 15, .82);
    color: var(--sand);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .3rem .5rem;
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
}
.flag--gold { background: var(--gold); color: #fff; }
.flag--emerald { background: var(--emerald); color: #fff; }

.card__save {
    position: absolute;
    top: .4rem;
    right: .4rem;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(251, 248, 243, .93);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.card__save svg { width: 17px; height: 17px; }
.card__save.is-saved { background: var(--gold); color: #fff; }

/* Sits directly under .card__save — same treatment, one icon lower, so the two never collide. */
.card__wishlist { top: 3.25rem; }
.card__wishlist svg { width: 16px; height: 16px; }
.card__wishlist.is-saved { background: var(--gold); color: #fff; }

.card__body {
    padding: .85rem .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}
.card__cat {
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.card__name {
    font-family: var(--display);
    font-size: 1.02rem;
    line-height: 1.25;
    margin: 0;
}
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__meta { font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: .3rem; }
.card__price { font-size: .84rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- category tiles */

.tile {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 3 / 4;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__label {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(22, 19, 15, .72), transparent);
    color: #fff;
}
.tile__label h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.tile__label span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

.tile--wide { aspect-ratio: 16 / 10; }

/* --------------------------------------------------------------- filters */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-block: .85rem;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 62px;
    background: var(--ivory);
    z-index: 40;
}
.toolbar__count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.toolbar__actions { display: flex; gap: .5rem; align-items: center; min-width: 0; }
.toolbar__actions form { min-width: 0; margin: 0; }

/* Labels stay on one line; the sort control gives up width instead. */
.toolbar__actions .btn { white-space: nowrap; }
.toolbar__sort {
    width: auto;
    max-width: 100%;
    min-height: 40px;
    padding: .35rem 1.9rem .35rem .7rem;
    font-size: .8rem;
    text-overflow: ellipsis;
}

/* The result count is the first thing to go when space runs out. */
@media (max-width: 26rem) {
    .toolbar__count { display: none; }
    .toolbar { justify-content: flex-end; }
}

.select, .input, .textarea {
    width: 100%;
    min-height: 48px;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.select:focus, .input:focus, .textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(169, 133, 47, .13);
}
.textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }

.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .4rem;
    font-weight: 600;
}
.field__hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.field-error, .validation-message { display: block; color: #a3231f; font-size: .8rem; margin-top: .35rem; }

.switch { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 18px; }
.switch span { font-size: .88rem; color: var(--ink-soft); }
.input.input-validation-error, .select.input-validation-error, .textarea.input-validation-error {
    border-color: #a3231f;
}

.filter-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
}
.filter-panel.is-open { visibility: visible; pointer-events: auto; }
.filter-panel__scrim {
    position: absolute; inset: 0;
    background: rgba(22, 19, 15, .45);
    opacity: 0; transition: opacity var(--slow) var(--ease);
}
.filter-panel.is-open .filter-panel__scrim { opacity: 1; }
.filter-panel__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    max-height: 88vh;
    background: var(--ivory);
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
    transition: transform var(--slow) var(--ease);
    display: flex;
    flex-direction: column;
}
.filter-panel.is-open .filter-panel__body { transform: none; }
.filter-panel__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.filter-panel__scroll { overflow-y: auto; padding: 1.25rem; flex: 1; overscroll-behavior: contain; }
.filter-panel__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 38px;
    padding: .35rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: .8rem;
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; padding-block: .85rem; }
.active-filters .chip { background: var(--gold-wash); border-color: var(--sand-deep); }

/* --------------------------------------------------------------- gallery */

.pdp { display: grid; gap: 1.5rem; }

.gallery { position: relative; }
.gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--sand);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
}
.gallery__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: 100%;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery__dots {
    position: absolute;
    bottom: .75rem;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: .4rem;
}
.gallery__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(22, 19, 15, .28);
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}
.gallery__dot.is-active { background: var(--gold); width: 18px; border-radius: 3px; }

.gallery__zoom {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: rgba(251, 248, 243, .93);
    border: 0; border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.gallery__zoom svg { width: 18px; height: 18px; }

.thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .2rem;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
    flex: 0 0 4.25rem;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
    cursor: pointer;
    padding: 0;
    transition: border-color var(--fast) var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); border-width: 2px; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(16, 13, 10, .96);
    display: none;
    flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lightbox__bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1rem;
    color: var(--sand);
    font-size: .8rem;
}
.lightbox__close { background: none; border: 0; color: var(--sand); cursor: pointer; padding: .5rem; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__stage {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    align-items: center;
    scrollbar-width: none;
}
.lightbox__stage::-webkit-scrollbar { display: none; }
.lightbox__stage figure {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 0 1rem;
}
.lightbox__stage img { max-height: 78vh; width: auto; object-fit: contain; }

/* --------------------------------------------------------------- pdp detail */

.pdp__head h1 { margin-bottom: .25rem; }
.pdp__sku { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pdp__lede { font-size: 1.05rem; color: var(--ink-soft); }
.pdp__price {
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--ink);
    margin: .5rem 0 .25rem;
}
.pdp__price small { font-family: var(--body); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-top: .2rem; }

.spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1.5rem 0;
}
.spec > div { background: var(--white); padding: .85rem .9rem; }
.spec dt { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.spec dd { margin: 0; font-size: .92rem; }

.sizes { display: flex; flex-wrap: wrap; gap: .4rem; }
.size-opt {
    min-width: 3rem;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    padding: .4rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    font-size: .85rem;
    transition: all var(--fast) var(--ease);
}
.size-opt input { position: absolute; opacity: 0; }
.size-opt:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.size-opt--disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.size-opt--disabled:has(input:checked) { border-color: var(--line); background: var(--white); color: var(--ink); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.05rem 0;
    cursor: pointer;
    list-style: none;
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.2rem; color: var(--gold); font-weight: 400; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion__body { padding-bottom: 1.1rem; color: var(--ink-soft); }

/* Sticky action bar on phones */
.pdp__actions { display: grid; gap: .6rem; }
.actionbar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: rgba(251, 248, 243, .95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .6rem;
    align-items: center;
    margin-inline: calc(var(--gutter) * -1);
}

/* --------------------------------------------------------------- inquiry list */

.inq-item {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: .9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.inq-item__media { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.inq-item__media img { width: 100%; height: 100%; object-fit: cover; }
.inq-item__name { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .15rem; }
.inq-item__sku { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.inq-item__qty { margin-top: .55rem; }
/* The sheet right-aligns its steppers; here the stepper belongs with the text. */
.inq-item__qty .reqrow__qty { justify-content: flex-start; }
.inq-item__qtylabel {
    display: block;
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}
.inq-item__remove {
    background: none; border: 0; padding: .35rem 0;
    color: var(--muted); font-size: .78rem; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.inq-item__remove:hover { color: #a3231f; }

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.panel--sand { background: var(--sand); border-color: var(--sand-deep); }

.empty {
    text-align: center;
    padding: clamp(2.5rem, 12vw, 5rem) 1rem;
}
.empty svg { width: 48px; height: 48px; color: var(--sand-deep); margin: 0 auto 1rem; }
.empty p { color: var(--muted); max-width: 24rem; margin-inline: auto; }

/* --------------------------------------------------------------- requirement sheet */

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

.reqfilters {
    display: grid;
    gap: .6rem 1rem;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}
.reqfilters .field { margin: 0; }
.reqfilters__go { display: flex; gap: .5rem; }

.reqsheet {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}
.reqsheet__head { display: none; }
.reqsheet__note {
    font-size: .85rem;
    color: var(--ink-soft);
    background: var(--gold-wash);
    border: 1px solid var(--sand-deep);
    border-radius: var(--radius-lg);
    padding: .7rem .9rem;
    margin: 1rem 0 0;
}

.reqrow {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    grid-template-areas:
        "media main"
        "media price"
        "qty   qty";
    gap: .25rem .85rem;
    padding: .85rem;
    border-bottom: 1px solid var(--line);
    transition: background var(--fast) var(--ease);
}
.reqrow:last-child { border-bottom: 0; }
.reqrow.is-chosen { background: var(--gold-wash); }

.reqrow__media {
    grid-area: media;
    align-self: start;
    position: relative;
    /* Squarer than the card grid on purpose — list mode favours reading many rows over
       showing a tall photograph; the quick view is where the piece is judged up close. */
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
    border: 1px solid var(--line);
    padding: 0;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}
.reqrow__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--slow) var(--ease);
}
.reqrow__media:hover img { transform: scale(1.06); }

.reqrow__zoom {
    position: absolute;
    right: .25rem;
    bottom: .25rem;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: rgba(251, 248, 243, .94);
    border-radius: 50%;
    color: var(--ink);
    opacity: 0;
    transition: opacity var(--fast) var(--ease);
}
.reqrow__zoom svg { width: 14px; height: 14px; }
.reqrow__media:hover .reqrow__zoom, .reqrow__media:focus-visible .reqrow__zoom { opacity: 1; }
@media (hover: none) { .reqrow__zoom { opacity: 1; } }

.reqrow__main { grid-area: main; min-width: 0; }
.reqrow__name { font-family: var(--display); font-size: 1.02rem; line-height: 1.25; margin: 0; }
.reqrow__sku {
    font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-top: .15rem;
}
.reqrow__meta { font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }

.reqrow__price {
    grid-area: price;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    align-self: center;
}

.reqrow__qty {
    grid-area: qty;
    display: flex;
    align-items: center;
    margin-top: .5rem;
}

/* The stepper is a unit with its own intrinsic width, so it can never be squeezed
   into a fixed column and spill over the price beside it. */
.qtybox {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
}

.qty-step {
    width: 44px; height: 44px;
    flex: 0 0 44px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.qty-step:hover { border-color: var(--gold); background: var(--gold-wash); }

.qty-input {
    width: 5rem;
    min-height: 44px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
    padding: .5rem .35rem;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.reqbar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin: 1.25rem calc(var(--gutter) * -1) 0;
    padding: .8rem var(--gutter) calc(.8rem + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.reqbar__count { font-size: .88rem; color: var(--ink-soft); }
.reqbar__count strong { font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.reqbar__actions { display: flex; gap: .5rem; }

/* ----------------------------------------------- view switch */

.reqtoolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.reqtoolbar__count { font-size: .82rem; color: var(--muted); }

/* Three options do not fit across a phone as inline buttons, so the switch becomes a
   full-width segmented control there and only shrinks back to its natural size later. */
.viewswitch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}
.viewswitch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .55rem .4rem;
    min-height: 42px;
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink-soft);
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.viewswitch__btn svg { width: 15px; height: 15px; }
.viewswitch__btn + .viewswitch__btn { border-left: 1px solid var(--line); }
.viewswitch__btn:hover { background: var(--sand); }
.viewswitch__btn.is-active { background: var(--ink); color: var(--ivory); }

@media (min-width: 30rem) {
    .viewswitch { width: auto; display: inline-grid; grid-auto-flow: column; grid-template-columns: none; }
    .viewswitch__btn { padding: .55rem .85rem; font-size: .7rem; letter-spacing: .12em; }
}

/* ----------------------------------------------- gallery tiles */

.reqgrid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reqtile {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--fast) var(--ease), box-shadow var(--slow) var(--ease);
}
.reqtile.is-chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
@media (hover: hover) { .reqtile:hover { box-shadow: var(--shadow-md); } }

.reqtile__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: var(--sand);
    border: 0;
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.reqtile__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s var(--ease);
}
.reqtile__media:hover img { transform: scale(1.05); }

.reqtile__zoom {
    position: absolute;
    right: .5rem; bottom: .5rem;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: rgba(251, 248, 243, .94);
    border-radius: 50%;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.reqtile__zoom svg { width: 17px; height: 17px; }
.reqtile__media:hover .reqtile__zoom,
.reqtile__media:focus-visible .reqtile__zoom { opacity: 1; transform: none; }
@media (hover: none) { .reqtile__zoom { opacity: 1; transform: none; } }

.reqtile__badge {
    position: absolute;
    top: .5rem; left: .5rem;
    min-width: 26px; height: 26px;
    padding: 0 .4rem;
    display: grid; place-items: center;
    background: var(--gold);
    color: #fff;
    border-radius: 13px;
    font-size: .78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.reqtile__body {
    padding: .8rem .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
}
.reqtile__name { font-family: var(--display); font-size: 1rem; line-height: 1.25; margin: 0; }
.reqtile__sku {
    font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.reqtile__meta { font-size: .78rem; color: var(--ink-soft); }

/* A tile is narrower than the stepper's natural width, so the two stack and the
   stepper spans the tile — the increment button can never be clipped off the edge. */
.reqtile__foot {
    margin-top: auto;
    padding-top: .75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
}
.reqtile__price { font-size: .92rem; font-variant-numeric: tabular-nums; }
.reqtile__onrequest { font-size: .8rem; color: var(--muted); }

.reqtile__foot .qtybox { display: flex; width: 100%; }
.reqtile__foot .qty-input { flex: 1 1 auto; width: auto; min-width: 0; }

/* ----------------------------------------------- showcase: one piece per row */

.showcase { display: grid; gap: 2rem; }

.showpiece {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--fast) var(--ease), box-shadow var(--slow) var(--ease);
}
.showpiece.is-chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* No fixed ratio here — the inline aspect-ratio comes from the photograph itself, so a
   chain laid out wide renders wide and a portrait shot renders tall. Nothing is cropped. */
.showpiece__media {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: var(--sand);
    cursor: zoom-in;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.showpiece__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1s var(--ease);
}
.showpiece__media:hover img { transform: scale(1.03); }

.showpiece__zoom {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    background: rgba(251, 248, 243, .94);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.showpiece__zoom svg { width: 15px; height: 15px; }
.showpiece__media:hover .showpiece__zoom,
.showpiece__media:focus-visible .showpiece__zoom { opacity: 1; transform: none; }
@media (hover: none) { .showpiece__zoom { opacity: 1; transform: none; } }

.showpiece__badge {
    position: absolute;
    top: .75rem; left: .75rem;
    min-width: 30px; height: 30px;
    padding: 0 .5rem;
    display: grid; place-items: center;
    background: var(--gold);
    color: #fff;
    border-radius: 15px;
    font-size: .85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.showpiece__body { padding: 1.1rem 1.1rem 1.25rem; display: grid; gap: 1rem; }
.showpiece__name { font-family: var(--display); font-size: 1.35rem; margin: .15rem 0 .15rem; }
.showpiece__sku {
    font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.showpiece__desc { margin: .6rem 0 .35rem; color: var(--ink-soft); font-size: .92rem; }
.showpiece__meta { font-size: .82rem; color: var(--muted); }

.showpiece__buy { display: grid; gap: .6rem; }
.showpiece__price {
    font-family: var(--display);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}
.showpiece__buy .qtybox { display: flex; width: 100%; }
.showpiece__buy .qty-input { flex: 1 1 auto; width: auto; min-width: 0; }

/* ----------------------------------------------- quick view */

.quickview {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.quickview[hidden] { display: none; }

.quickview__scrim {
    position: absolute;
    inset: 0;
    background: rgba(22, 19, 15, .6);
    opacity: 0;
    transition: opacity var(--slow) var(--ease);
}
.quickview.is-open .quickview__scrim { opacity: 1; }

.quickview__panel {
    position: relative;
    width: min(64rem, 100%);
    max-height: 94vh;
    background: var(--ivory);
    border-radius: 14px 14px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(100%);
    transition: transform var(--slow) var(--ease);
}
.quickview.is-open .quickview__panel { transform: none; }

.quickview__close {
    position: absolute;
    top: .6rem; right: .6rem;
    z-index: 2;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: rgba(251, 248, 243, .94);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
}
.quickview__close svg { width: 19px; height: 19px; }

.quickview__frame {
    position: relative;
    aspect-ratio: 1;
    background: var(--sand);
    overflow: hidden;
    cursor: zoom-in;
}
.quickview__frame.is-zoomed { cursor: zoom-out; }
.quickview__frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}
.quickview__frame.is-zoomed img { transform: scale(2.2); }

.quickview__thumbs {
    display: flex;
    gap: .4rem;
    padding: .6rem .9rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.quickview__thumbs::-webkit-scrollbar { display: none; }
.quickview__thumbs button {
    flex: 0 0 3.5rem;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
    padding: 0;
    cursor: pointer;
}
.quickview__thumbs button.is-active { border-color: var(--gold); border-width: 2px; }
.quickview__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.quickview__hint {
    margin: .5rem 0 0;
    padding-inline: .9rem;
    font-size: .72rem;
    color: var(--muted);
    text-align: center;
}

.quickview__info { padding: 1rem .9rem calc(1.5rem + env(safe-area-inset-bottom)); }
.quickview__name { font-family: var(--display); font-size: 1.4rem; margin: .2rem 0 .2rem; }
.quickview__sku {
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.quickview__desc { margin: .75rem 0 0; color: var(--ink-soft); font-size: .92rem; }

.quickview__spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1rem 0 0;
}
.quickview__spec > div { background: var(--white); padding: .7rem .8rem; }
.quickview__spec dt {
    font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .2rem;
}
.quickview__spec dd { margin: 0; font-size: .88rem; }

.quickview__price {
    font-family: var(--display);
    font-size: 1.5rem;
    margin: 1rem 0 0;
    font-variant-numeric: tabular-nums;
}

.quickview__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}
.qtybox--lg .qty-step { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.25rem; }
.qtybox--lg .qty-input { width: 5.5rem; min-height: 48px; font-size: 1.05rem; }

.quickview__nav {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.quickview__navbtn {
    background: none;
    border: 0;
    padding: .5rem 0;
    color: var(--ink-soft);
    font-size: .8rem;
    cursor: pointer;
}
.quickview__navbtn:hover { color: var(--gold); }
.quickview__navbtn[disabled] { opacity: .35; cursor: default; }

/* --------------------------------------------------------------- contact */

.contact-grid { display: grid; gap: .75rem; }
.contact-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.contact-card__icon {
    flex: 0 0 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--gold-wash);
    border-radius: 50%;
    color: var(--gold);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-size: .98rem; }

/* --------------------------------------------------------------- prose */

.prose { max-width: 52rem; margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .5rem; }

/* --------------------------------------------------------------- pagination */

.pager { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 42px; min-height: 42px;
    display: inline-grid; place-items: center;
    padding: 0 .6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .85rem;
    background: var(--white);
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.pager .is-disabled { opacity: .4; pointer-events: none; }

/* --------------------------------------------------------------- footer */

.footer {
    background: var(--ink);
    color: #cdc4b4;
    padding-block: 3rem 2rem;
    margin-top: 3rem;
}
.footer h4 {
    color: var(--sand);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-family: var(--body);
    font-weight: 600;
    margin-bottom: .9rem;
}
.footer__grid { display: grid; gap: 2rem; }
.footer a:hover { color: var(--gold-bright); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; font-size: .9rem; }
.footer__brand .brand__name { color: var(--sand); font-size: 1.5rem; }
.footer__legal {
    border-top: 1px solid rgba(251, 248, 243, .12);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    justify-content: space-between;
    font-size: .78rem;
    color: #8d8577;
}

/* --------------------------------------------------------------- toast */

.toast-host {
    position: fixed;
    left: 50%;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 150;
    display: grid;
    gap: .5rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}
.toast {
    background: var(--ink);
    color: var(--ivory);
    padding: .85rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: toast-in .32s var(--ease);
}
.toast--error { background: #7c1d1a; }
.toast svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--gold-bright); }
.toast--error svg { color: #ffb9b6; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.alert {
    padding: .85rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.alert--ok { background: #f1f6ef; border-color: #cfe0c8; color: #2f5227; }
.alert--error { background: #fbf0ef; border-color: #ecd0ce; color: #7c1d1a; }

/* --------------------------------------------------------------- reveal */

/* Scoped to .js-reveal, which site.js adds only once it has an observer running.
   Without JS — or if the observer never fires — content is simply visible. */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet and up
   ========================================================================== */

@media (min-width: 48rem) {
    :root { --gutter: 2rem; }

    .grid { gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }

    .pdp { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }
    .gallery { position: sticky; top: 5.5rem; }
    .actionbar {
        position: static;
        background: none;
        border: 0;
        padding: 0;
        margin: 1.5rem 0 0;
        backdrop-filter: none;
    }

    .spec { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
    .inq-item { grid-template-columns: 7rem 1fr; align-items: center; }
    .inq-layout { grid-template-columns: 1.15fr .85fr; align-items: start; }
    .inq-layout > div:last-child { position: sticky; top: 6rem; }

    .reqfilters { grid-template-columns: 2fr 1fr 1fr 1fr auto; }

    .reqgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

    /* Details sit beside the price and stepper once there is room, but the photograph
       still spans the full width above them — that is the point of this layout. */
    .showcase { gap: 2.5rem; }
    .showpiece__body {
        grid-template-columns: minmax(0, 1fr) 15rem;
        align-items: center;
        padding: 1.35rem 1.5rem 1.5rem;
        gap: 2rem;
    }
    .showpiece__buy { justify-items: end; text-align: right; }
    .showpiece__buy .qtybox { width: auto; }
    .showpiece__buy .qty-input { flex: 0 0 auto; width: 5rem; }
    .showpiece__name { font-size: 1.6rem; }

    /* The sheet becomes a true table once there is room for the columns.
       The quantity track is sized from the stepper's own width (max-content) so it can
       never be squeezed into the price column beside it. */
    .reqsheet__head {
        display: grid;
        grid-template-columns: 8.75rem minmax(0, 1fr) minmax(7rem, auto) max-content;
        gap: 1.25rem;
        padding: .7rem 1rem;
        background: #fdfbf7;
        border-bottom: 1px solid var(--line);
        font-size: .64rem;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--muted);
        font-weight: 600;
    }
    .reqsheet__num { text-align: right; }

    .reqrow {
        grid-template-columns: 8.75rem minmax(0, 1fr) minmax(7rem, auto) max-content;
        grid-template-areas: "media main price qty";
        align-items: center;
        gap: 1.25rem;
        padding: 1rem;
    }
    .reqrow__media { align-self: center; }
    .reqrow__name { font-size: 1.1rem; }
    .reqrow__price { text-align: right; white-space: nowrap; }
    .reqrow__qty { margin-top: 0; justify-content: flex-end; }

    .quickview { align-items: center; }
    .quickview__panel {
        border-radius: var(--radius-lg);
        display: grid;
        grid-template-columns: 1.05fr .95fr;
        transform: translateY(24px) scale(.98);
        opacity: 0;
        transition: transform var(--slow) var(--ease), opacity var(--slow) var(--ease);
    }
    .quickview.is-open .quickview__panel { transform: none; opacity: 1; }
    .quickview__stage { padding: 1rem 0 1rem 1rem; }
    .quickview__frame { border-radius: var(--radius-lg); }
    .quickview__thumbs { padding-inline: 0; }
    .quickview__info { padding: 1.75rem 1.75rem 1.75rem 1.5rem; align-self: center; }
}

@media (min-width: 62rem) {
    .masthead__inner { grid-template-columns: 1fr auto 1fr; min-height: 78px; }
    .masthead__left { justify-self: start; }
    .masthead__right { justify-self: end; display: flex; align-items: center; }

    .menu-toggle { display: none; }

    .mainnav {
        display: flex;
        gap: 1.75rem;
        align-items: center;
    }
    .mainnav a {
        font-size: .76rem;
        letter-spacing: .16em;
        text-transform: uppercase;
        font-weight: 600;
        position: relative;
        padding-block: .4rem;
        color: var(--ink-soft);
        transition: color var(--fast) var(--ease);
    }
    .mainnav a::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 1px;
        background: var(--gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--slow) var(--ease);
    }
    .mainnav a:hover, .mainnav a.is-active { color: var(--ink); }
    .mainnav a:hover::after, .mainnav a.is-active::after { transform: none; }

    /* -------------------------------------------------------- mega menu */

    .mainnav__mega { position: static; }
    .mainnav__mega > a { display: inline-flex; align-items: center; gap: .3rem; }
    .mainnav__mega > a svg { width: 12px; height: 12px; transition: transform var(--fast) var(--ease); }
    .mainnav__mega:hover > a svg,
    .mainnav__mega.is-open > a svg { transform: rotate(180deg); }

    .megamenu {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
        z-index: 60;
    }
    .mainnav__mega:hover .megamenu,
    .mainnav__mega:focus-within .megamenu,
    .mainnav__mega.is-open .megamenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .megamenu__inner {
        display: grid;
        grid-template-columns: minmax(11rem, 14rem) 1.4fr 1fr 1fr;
        gap: 0;
        padding-block: 0;
        max-height: 32rem;
    }
    .megamenu__label {
        display: block;
        font-size: .68rem;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--muted);
        font-weight: 600;
        margin-bottom: 1rem;
    }

    /* Left: every category, one per row — hovering or focusing a row swaps the visible
       right-hand panel via data-megamenu's JS, so all 13+ categories fit without a grid
       of icons running out of room. */
    .megamenu__catlist {
        display: flex;
        flex-direction: column;
        padding-block: 1.5rem;
        background: var(--sand);
        overflow-y: auto;
    }
    .megamenu__catitem {
        padding: .6rem 1.5rem;
        font-size: .84rem;
        color: var(--ink-soft);
        border-left: 2px solid transparent;
        white-space: nowrap;
    }
    .megamenu__catitem:hover,
    .megamenu__catitem:focus-visible,
    .megamenu__catitem.is-active {
        color: var(--ink);
        background: var(--white);
        border-left-color: var(--gold);
        font-weight: 600;
    }

    .megamenu__panels { position: relative; padding: 1.5rem 2rem; }
    .megamenu__panel { display: none; }
    .megamenu__panel.is-active { display: block; }

    .megamenu__col { border-left: 1px solid var(--line); padding: 1.5rem 2rem; }
    .megamenu__links { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
    .megamenu__links a { font-size: .88rem; color: var(--ink-soft); }
    .megamenu__links a:hover { color: var(--gold); }
    .megamenu__viewall { font-size: .78rem; text-decoration: underline; color: var(--emerald); }

    .megamenu__trending { display: grid; gap: 1rem; align-content: start; }
    .megamenu__pick { display: flex; gap: .75rem; align-items: center; }
    .megamenu__pick img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); background: var(--sand); flex: 0 0 auto; }
    .megamenu__pick span { display: flex; flex-direction: column; gap: .15rem; font-size: .82rem; }
    .megamenu__pick strong { font-weight: 500; color: var(--ink); }
    .megamenu__pick em { font-style: normal; color: var(--gold); font-size: .78rem; }

    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .toolbar { top: 78px; }

    .catalog { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; align-items: start; }
    .catalog__aside { position: sticky; top: 6.5rem; }
    .filter-toggle { display: none; }

    /* The sheet becomes a plain sidebar on desktop */
    .filter-panel--inline { position: static; visibility: visible; pointer-events: auto; }
    .filter-panel--inline .filter-panel__scrim { display: none; }
    .filter-panel--inline .filter-panel__body {
        position: static;
        transform: none;
        max-height: none;
        background: none;
        border-radius: 0;
    }
    .filter-panel--inline .filter-panel__head { display: none; }
    .filter-panel--inline .filter-panel__scroll { padding: 0; overflow: visible; }
    .filter-panel--inline .filter-panel__foot { padding: 1rem 0 0; grid-template-columns: 1fr; }
}
