:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --stone: #ece5dc;
  --stone-2: #e2d9cd;
  --ink: #2c2824;
  --ink-2: #5d554d;
  --muted: #8a8077;
  --accent: #9c6b55;
  --accent-ink: #ffffff;
  --accent-soft: #f1e4dc;
  --line: #e4dcd2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(44, 40, 36, .05), 0 8px 28px rgba(44, 40, 36, .07);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
em { font-style: italic; color: var(--accent); }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn[hidden] { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--surface); cursor: pointer; box-shadow: var(--shadow);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Announcement */
.announce { background: var(--ink); color: #f3ece4; text-align: center; font-size: .82rem; padding: 8px 16px; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(247, 243, 238, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; }
.nav { display: none; gap: 28px; font-size: .92rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.list-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem;
}
.list-btn__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .75rem;
}
.list-btn__count[hidden] { display: none; }
.list-btn.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.1); } }
.menu-btn { width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.6px; background: var(--ink); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

@media (max-width: 899px) {
  .list-btn__label { display: none; }
  .list-btn { padding: 0 12px; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 40px 0 56px; }
.hero__inner { position: relative; z-index: 1; }
.hero__glow {
  position: absolute; z-index: 0; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  pointer-events: none; will-change: transform; transform: translate3d(28vw, 260px, 0);
}
.hero__glow span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 166, 98, .55) 0%, rgba(232, 150, 96, .26) 30%, rgba(230, 160, 110, 0) 66%);
  animation: flicker 3.2s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1); opacity: .9; }
  18% { transform: scale(1.04); opacity: 1; }
  34% { transform: scale(.97); opacity: .82; }
  52% { transform: scale(1.03); opacity: .96; }
  71% { transform: scale(.98); opacity: .86; }
}
.hero__img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--ink-2); }
.hero__badges li::before { content: "✓"; color: var(--accent); margin-right: 6px; font-weight: 700; }
.hero h1 { margin-bottom: 18px; }
.hero__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.hero__img { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.hero__img--a, .hero__img--b { aspect-ratio: 1; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero__inner { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .hero__media { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
  .hero__img--main { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 3 / 4; }
}

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 72px; }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cat {
  position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 1; background: var(--stone); text-align: left;
}
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 26, 22, .6), transparent 55%); }
.cat span { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; color: #fff; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.cat:hover img { transform: scale(1.05); }

/* Section heads */
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 8px; }
.section-head--center { text-align: center; }

/* Filters */
.collection { padding-bottom: 88px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 24px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filters { flex-wrap: wrap; margin: 0 0 28px; padding: 0; } }
.chip {
  flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--stone);
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.card__media img + img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media img:first-child { transform: scale(1.04); }
  .card:hover .card__media img + img { opacity: 1; }
}
.card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card__count { position: absolute; bottom: 10px; right: 10px; z-index: 1; background: rgba(30, 26, 22, .55); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.card__body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; margin: 0; }
.card__title button { all: unset; cursor: pointer; }
.card__title button:focus-visible { outline: 2px solid var(--accent); }
.card__short { font-size: .88rem; color: var(--ink-2); margin: 0; display: none; }
@media (min-width: 768px) { .card__short { display: block; } }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; font-size: .95rem; }
.price--ask { font-weight: 500; font-size: .85rem; color: var(--accent); }
.add-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background .2s, color .2s;
}
.add-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.add-btn.added { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--muted); }

/* Occasion */
.occasion { background: var(--stone); padding: 72px 0; }
.occasion__inner { display: grid; gap: 36px; align-items: center; }
.occasion__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.occasion__text h2 { margin-bottom: 16px; }
.occasion__text p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (min-width: 900px) {
  .occasion { padding: 104px 0; }
  .occasion__inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* Steps */
.steps { padding: 88px 0; }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps__list li { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.steps__list h3 { margin-bottom: 8px; }
.steps__list p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding-bottom: 88px; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.value svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 12px; }
.value h3 { font-size: 1.3rem; margin-bottom: 6px; }
.value p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* FAQ */
.faq { padding: 0 0 88px; }
.faq__inner { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq__inner { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* Contact */
.contact { background: var(--ink); color: #f3ece4; padding: 80px 0; text-align: center; }
.contact h2 { color: #fff; margin-bottom: 12px; }
.contact p { color: #cfc4b8; margin: 0 0 28px; }
.contact__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.footer__brand { font-family: var(--serif); font-size: 1.5rem; }
.footer p { margin: 4px 0 0; }

/* Modal */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgba(30, 26, 22, .5); animation: fade .2s; }
.modal__panel {
  position: absolute; inset: auto 0 0 0; max-height: 94vh; overflow-y: auto; background: var(--bg);
  border-radius: 22px 22px 0 0; animation: up .28s ease-out;
}
@media (min-width: 900px) {
  .modal__panel { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(1080px, 92vw); max-height: 90vh; border-radius: 24px; animation: pop .22s ease-out; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -48%); opacity: 0; } }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr); }
.pd__gallery, .pd__info { min-width: 0; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.pd__gallery { padding: 12px; }
.pd__main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--stone); touch-action: pan-y; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.pd__nav--prev { left: 10px; }
.pd__nav--next { right: 10px; }
.pd__nav[hidden] { display: none; }
.pd__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pd__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--stone); opacity: .7; }
.pd__thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .pd__info { padding: 48px 40px 36px 20px; } }
.pd__info h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.pd__info p { margin: 0; color: var(--ink-2); }
.pd__price { font-size: 1.15rem; font-weight: 700; color: var(--ink) !important; }
.pd__details { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem; }
.pd__details li { margin-bottom: 4px; }
.pd__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pd__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd__ig { font-size: .88rem; color: var(--muted); text-decoration: none; }
.pd__ig:hover { color: var(--ink); }

.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

/* Drawer */
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg);
  display: flex; flex-direction: column; animation: slide .25s ease-out;
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.8rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--surface); }
.drawer__foot[hidden] { display: none; }
.li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.li img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.li__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.15; margin: 0 0 6px; }
.li__note { width: 100%; font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 6px; background: var(--surface); }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 44px; border: 0; text-align: center; font: inherit; font-size: 15px; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.li__remove { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; }
.li__remove:hover { color: var(--ink); }
.drawer__empty { text-align: center; padding: 56px 12px; color: var(--muted); }
.drawer__empty .btn { margin-top: 16px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .9rem; transition: opacity .25s, transform .25s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
