:root {
    --cream: #f5f1ec;
    --paper: #fbf8f4;
    --ink: #1a1a1a;
    --muted: #6d675f;
    --line: #e4ddd4;
    --wine: #56112a;
    --header: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Outfit, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .tile span {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0;
}

.announce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #111;
    color: #fff;
    min-height: 40px;
    padding: 0 18px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.announce__track { flex: 1; text-align: center; }
.announce__item { display: none; margin: 0; }
.announce__item.is-active { display: block; }
.announce__arrow {
    background: none;
    border: 0;
    color: #fff;
    padding: 8px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 241, 236, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.header__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 74px;
    padding: 12px 28px 0;
}
.header__logo {
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    font-family: "Great Vibes", cursive;
    font-size: 48px;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}
.header__tools { display: flex; align-items: center; gap: 4px; }
.icon-btn.header__menu {
    display: none;
    position: absolute;
    left: 12px;
    top: 16px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    position: relative;
}
.bag-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}
.nav ul {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 6px 20px 14px;
}
.nav a {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.nav > ul > li > a { padding: 8px 0; display: inline-block; }
.has-sub { position: relative; }
.has-sub ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 230px;
    background: var(--paper);
    padding: 10px 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    flex-direction: column;
    gap: 0;
    z-index: 5;
}
.has-sub:hover ul, .has-sub:focus-within ul { display: flex; }
.has-sub li a { display: block; padding: 10px 18px; letter-spacing: .12em; }
.has-sub li a:hover { background: #f3eee8; }

.search-panel { background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px 20px; }
.search-panel[hidden] { display: none; }
.search-panel__form, .search-inline { display: flex; gap: 8px; max-width: 760px; margin: 0 auto; }
.search-panel input, .search-inline input, .stack input, .stack textarea, .stack select, .sort select, .bag-list input {
    width: 100%;
    border: 1px solid #d8d0c6;
    background: #fff;
    padding: 12px 14px;
}
.search-panel button, .text-btn {
    background: none;
    border: 0;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
}

.flash {
    margin: 16px auto 0;
    max-width: 1100px;
    padding: 12px 16px;
    background: #efe7dc;
    text-align: center;
}
.flash--error { background: #f3dfe4; }

.hero__slide { display: none; }
.hero__slide.is-active { display: block; }
.hero img { width: 100%; height: auto; }
.hero__slide .hero__desktop { display: block; }
.hero__slide .hero__mobile { display: none; }

.band, .tiles, .featured, .celebs, .story, .page-head, .grid, .product, .prose, .checkout, .summary--wide, .cart-page {
    width: min(1440px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}
.band { margin-top: 54px; }
.band__head, .tiles .band__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}
.band__head h2, .page-head h1, .prose h1, .product h1, .featured__copy h3, .quick h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
}
.band__head a, .crumbs, .eyebrow, .sizes legend, .qty span, .footer__title, .card__meta p, .price {
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 12px;
}
.band__head a { margin-right: auto; color: var(--muted); }
.band__arrows { margin-left: auto; display: flex; gap: 8px; }
.band__arrows button, .size, .qty__box button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ink);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.scroller, .tiles__row, .celebs__row {
    display: grid;
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.scroller::-webkit-scrollbar, .tiles__row::-webkit-scrollbar, .celebs__row::-webkit-scrollbar { display: none; }
.scroller { grid-auto-columns: calc((100% - 48px) / 4); }
.tiles { margin-top: 48px; }
.tiles__row { grid-auto-columns: calc((100% - 48px) / 4); }
.tile { position: relative; scroll-snap-align: start; display: block; }
.tile img, .card__media img, .gallery__main img, .celebs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    background: #e7e0d7;
}
.card__media img, .gallery__main img { object-fit: contain; }
.gallery__main img { background: #efe8df; }
.tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    color: #fff;
    font-size: 34px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.card { position: relative; scroll-snap-align: start; text-align: center; }
.card__frame { position: relative; }
.card__media { display: block; position: relative; overflow: hidden; background: #e7e0d7; }
.card__media img:not([src]) { visibility: hidden; }
.card__hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
}
.card__hover:not([src]) { visibility: hidden; }
.card:hover .card__hover { opacity: 1; }
.card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: #fff;
    padding: 4px 8px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.card__badge--offer { background: var(--wine); color: #fff; }
.price--sale {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    align-items: baseline;
}
.product__info .price--sale, .quick .price--sale, .featured__copy .price--sale { justify-content: flex-start; }
.price__was { color: var(--muted); text-decoration: line-through; letter-spacing: 0; text-transform: none; }
.price__off, .price__note { color: var(--wine); }
.card__quick {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    border: 1px solid var(--ink);
    background: rgba(255, 255, 255, .92);
    padding: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0;
    transition: opacity .2s ease;
}
.card:hover .card__quick { opacity: 1; }
.card__meta { padding: 12px 8px 0; }
.card__meta a { display: block; font-size: 14px; }
.card__meta p { margin: 6px 0 0; color: var(--muted); }

.featured { margin-top: 64px; }
.featured__grid, .product__grid, .story, .checkout, .quick {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}
.gallery__main { background: #efe8df; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { width: 72px; padding: 0; border: 1px solid transparent; background: none; flex: none; }
.gallery__thumbs button.is-active { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block; background: #efe8df; }
.eyebrow { color: var(--muted); margin-bottom: 8px; }
.price { font-size: 14px; margin: 12px 0 18px; }
.lede { color: #3c3834; }
.custom-name { display: grid; gap: 6px; margin: 0 0 18px; }
.custom-name input {
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
}
.custom-name input:focus { outline: none; border-color: var(--ink); }
.custom-name__hint { color: var(--muted); font-size: 12px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.colors { border: 0; margin: 0 0 18px; padding: 0; }
.colors legend { padding: 0; margin-bottom: 10px; }
.colors__list { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--swatch, #d8cfc4);
    box-shadow: inset 0 0 0 3px #fff;
    overflow: hidden;
    flex: none;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.swatch--photo { box-shadow: none; padding: 3px; background: #fff; }
.swatch.is-active { border: 2px solid var(--ink); }
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sizes { border: 0; margin: 0 0 16px; padding: 0; }
.sizes legend { padding: 0; margin-bottom: 8px; }
.sizes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.size.is-active { background: var(--ink); color: #fff; }
.sizes__hint, .buy__note { color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qty__box { display: flex; border: 1px solid var(--ink); }
.qty__box button { border: 0; width: 36px; height: 40px; }
.qty__box input { width: 48px; border: 0; text-align: center; background: transparent; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--wine);
    color: #fff;
    border: 1px solid var(--wine);
    min-height: 48px;
    padding: 12px 18px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 12px;
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.buy .btn + .btn { margin-top: 10px; }
.facts { display: grid; gap: 6px; margin-top: 22px; }
.facts div { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.facts dt { width: 36px; color: var(--ink); }

.celebs { margin-top: 64px; }
.celebs__row { grid-auto-columns: 220px; }
.story { margin: 72px auto; }
.story img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.story h2 { font-size: 48px; margin-top: 0; }
.story p { font-size: 17px; }

.trust { background: #efeae3; margin-top: 40px; }
.trust__grid {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 36px 0;
    text-align: center;
}
.trust h3 { margin: 0 0 6px; font-size: 22px; }
.trust p { margin: 0; color: var(--muted); font-size: 14px; }
.footer { padding: 48px 0 28px; }
.footer__grid {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer__title { margin: 0 0 12px; }
.footer p, .footer a { color: #3f3a35; font-size: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__form { display: grid; gap: 8px; margin-top: 12px; }
.footer__form input { border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; }
.footer__form button { justify-self: start; width: auto; padding: 0 18px; }
.footer__copy { text-align: center; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; margin-top: 36px; }

.page-head { padding: 36px 0 10px; }
.page-head h1 { font-size: 56px; }
.page-head p { max-width: 640px; color: #3f3a35; }
.crumbs { color: var(--muted); margin-bottom: 10px; }
.subsections { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.subsections a { padding: 7px 14px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; }
.subsections a:hover { border-color: currentColor; }
.sort { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 8px; }
.sort select { width: auto; }
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 16px;
    padding-bottom: 64px;
}
.product { padding: 28px 0 10px; }
.empty { text-align: center; padding: 40px; }

.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer[hidden], .modal[hidden] { display: none; }
.drawer__backdrop, .modal__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 12, .4); }
.drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
}
.drawer--cart .drawer__panel { right: 0; }
.drawer--nav .drawer__panel { left: 0; width: min(320px, 88%); padding-bottom: 24px; }
.drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 8px 20px;
    border-bottom: 1px solid var(--line);
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 13px;
}
.drawer--nav a { display: block; padding: 14px 22px; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; border-bottom: 1px solid var(--line); }
.drawer--nav a.sub { padding-left: 36px; text-transform: none; letter-spacing: .04em; font-size: 15px; }
.drawer__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 22px; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; text-align: left; cursor: pointer; }
.drawer__toggle svg { transition: transform .2s ease; }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
#cart-status { display: block; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.bag-list { list-style: none; margin: 0; padding: 8px 18px 18px; overflow: auto; }
.bag-list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-list img { width: 92px; aspect-ratio: 3 / 4; object-fit: cover; }
.bag-list p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.bag-list label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bag-list input { width: 64px; padding: 6px; }
.bag-empty { padding: 32px 20px; text-align: center; }
.bag-foot { margin-top: auto; padding: 16px 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.bag-foot p { display: flex; justify-content: space-between; margin: 0 0 8px; }
#cart-drawer-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
#cart-drawer-body .bag-list { flex: 1; }

.modal { position: fixed; inset: 0; z-index: 50; }
.modal__panel {
    position: relative;
    width: min(920px, calc(100% - 32px));
    max-height: calc(100% - 48px);
    overflow: auto;
    margin: 24px auto;
    background: var(--paper);
    padding: 20px;
}
.quick { align-items: start; }
.quick__close { position: absolute; top: 8px; right: 8px; }

.prose, .summary--wide { padding: 36px 0 72px; max-width: 760px; }
.prose h1 { font-size: 56px; }
.stack { display: grid; gap: 14px; margin-top: 20px; }
.stack label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.stack textarea { min-height: 110px; resize: vertical; }
.stack select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.pay-note { margin: -4px 0 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pay-methods { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pay-methods legend { padding: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.stack .pay-choice { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 15px; border: 1px solid #d8d0c6; background: #fff; padding: 12px 14px; }
.pay-choice input { width: auto; }
.checkout { align-items: start; padding-bottom: 72px; }
.summary { background: var(--paper); padding: 22px; }
.summary p { display: flex; justify-content: space-between; gap: 12px; }
.summary p[hidden], .pay-note[hidden], .pay-methods[hidden], .cod-nudge[hidden] { display: none; }
.cod-nudge {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    background: #f4f8f1;
    border: 1px solid #b9d4b0;
    border-left: 4px solid #2f7a4a;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}
.cod-nudge p { margin: 0; }
.cod-nudge__title { font-size: 18px; color: #1f5a35; }
.cod-nudge__list { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: #3c3834; }
.stack .cod-nudge__switch { justify-self: start; background: #2f7a4a; border-color: #2f7a4a; }
.cod-nudge__small { color: var(--muted); font-size: 12px; }
.summary__total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; }
.summary .btn { margin-top: 12px; width: auto; }

@media (max-width: 1100px) {
    .scroller, .tiles__row { grid-auto-columns: calc((100% - 16px) / 3); }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid, .trust__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .icon-btn.header__menu { display: inline-flex; }
    .nav { display: none; }
    .header__bar { padding: 8px 12px 8px; min-height: 68px; }
    .header__logo { font-size: 38px; top: 10px; }
    .band, .tiles, .featured, .celebs, .story, .page-head, .grid, .product, .prose, .checkout, .summary--wide, .cart-page,
    .trust__grid, .footer__grid { width: min(100% - 28px, 1440px); }
    .scroller, .tiles__row { grid-auto-columns: 68%; }
    .grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
    .featured__grid, .product__grid, .story, .checkout, .quick { grid-template-columns: 1fr; }
    .card__quick { opacity: 1; }
    .band__head h2, .page-head h1, .prose h1 { font-size: 34px; }
    .hero__slide .hero__desktop { display: none; }
    .hero__slide .hero__mobile { display: block; }
    .trust__grid, .footer__grid { grid-template-columns: 1fr; text-align: left; }
    .trust { text-align: left; }
}
