/* Sepals Jewelry — site styles (Variant B, "Elegant") */
:root {
  --ivory: #f8f4ea;
  --paper: #fffcf6;
  --ink: #24421b;
  --forest: #1f3a18;
  --brand: #2c571f;
  --cream: #fffbce;
  --line: #d9c9a3;
  --gold: #b9975b;
  --gold-light: #dcc48e;
  --tint: #ece5d0;
  --danger: #8c2f1b;
  --display: 'Cormorant Garamond', 'Libertinus Serif', Georgia, serif;
  --body: 'Libertinus Serif', Georgia, 'Times New Roman', serif;
  --logo: 'DM Serif Display', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: #132910; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.caps { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 300; line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.display em { font-weight: 300; }
.d-xl { font-size: clamp(58px, 8vw, 104px); line-height: 0.97; }
.d-lg { font-size: clamp(50px, 6.4vw, 84px); }
.d-md { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.d-sm { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.05; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.7; max-width: 27em; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.eyebrow { display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--gold); flex: none; }
.eyebrow.plain::before { display: none; }
.rule { width: 48px; height: 1px; background: var(--gold); border: 0; margin: 0; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 38px; border: 1px solid transparent; border-radius: 0; background: var(--forest); color: var(--cream); text-decoration: none; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; text-align: center; transition: background 0.2s, color 0.2s; }
.btn:hover { background: #132910; color: var(--cream); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); min-height: 52px; }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--forest); }
.btn-cream:hover { background: #fff; color: var(--forest); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.link-caps { display: inline-block; padding: 14px 0; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; text-underline-offset: 8px; background: none; border: 0; text-decoration: underline; }

/* Header */
.announce { text-align: center; padding: 9px 16px; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; line-height: 20px; border-bottom: 1px solid var(--line); }
.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.nav { display: flex; flex: 1 1 0; gap: 36px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 14px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
.nav-right { justify-content: flex-end; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--brand); }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { font-family: var(--logo); font-size: 22px; letter-spacing: 0.04em; line-height: 1; }
.icon-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--ink); position: relative; }
.bag-dot { position: absolute; top: 4px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--forest); color: var(--cream); font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.mobile-nav a { text-decoration: none; padding: 15px 0; border-bottom: 1px solid var(--line); }

/* Sections */
.section { padding-top: 112px; padding-bottom: 112px; }
.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--forest); color: var(--cream); }
.band-dark a:hover { color: #fff; }
.band-dark .eyebrow { color: var(--gold-light); }
.band-dark .eyebrow::before { background: var(--gold-light); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px; align-items: center; }
.frame { border: 1px solid var(--gold); padding: 14px; }
.frame img { width: 100%; object-fit: cover; }
.page-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 56px; padding-bottom: 48px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.crumbs a { text-decoration: none; padding: 14px 0; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 6px; }
.crumbs span { padding: 14px 0; }

/* Home */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero .frame img { height: 650px; }
.hero-copy { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.quote { max-width: 900px; margin: 0 auto; padding: 96px 40px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.quote img { width: 64px; height: 64px; }
.quote p { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; text-wrap: balance; }
.motto { display: flex; align-items: center; gap: 20px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.motto::before, .motto::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-bottom: 64px; }
.section-head.row { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; text-align: left; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 22px; text-decoration: none; }
.tile img { width: 100%; height: 470px; object-fit: cover; }
.tile-name { font-family: var(--display); font-style: italic; font-size: 36px; line-height: 1.1; }
.tile .caps { text-decoration: underline; text-underline-offset: 7px; }
.feature { padding-top: 96px; padding-bottom: 96px; }
.feature .frame img { height: 560px; }
.price-lg { font-family: var(--display); font-size: 32px; line-height: 1.2; }
.gift { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; align-items: center; padding-top: 104px; padding-bottom: 104px; }
.gift img { width: 100%; height: 420px; object-fit: cover; }
.gift-copy { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.card { display: flex; flex-direction: column; gap: 20px; }
.card-img { display: block; background: var(--tint); overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s ease; }
.card-img:hover img { transform: scale(1.03); }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card-type { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.card-name { font-family: var(--display); font-size: 28px; line-height: 1.2; }
.card-name a { text-decoration: none; }
.card-price { font-family: var(--display); font-size: 24px; white-space: nowrap; }

/* Shop */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 40px; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; }
.tabs a { text-decoration: none; padding: 16px 0; }
.tabs a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; }
.sort select { height: 48px; border: 0; background: transparent; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; padding: 0 4px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 48px 0 24px; }

/* Product page */
.product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery .frame img { height: 620px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--tint); height: 110px; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.buy { display: flex; align-items: stretch; gap: 16px; width: 100%; }
.buy .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.stepper button { width: 48px; height: 50px; border: 0; background: transparent; font-size: 22px; padding: 0; }
.stepper output { width: 36px; text-align: center; }
.note { font-size: 16px; font-style: italic; }
.accordion { width: 100%; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; cursor: pointer; list-style: none; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--display); font-size: 26px; letter-spacing: 0; }
.accordion details[open] summary::after { content: "–"; }
.accordion .panel { padding: 0 0 22px; font-size: 17px; }
.accordion ul { margin: 0; padding-left: 20px; }

/* Bag and checkout */
.bag { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.line-item { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { border-top: 1px solid var(--line); }
.line-item img { width: 150px; height: 180px; object-fit: cover; flex: none; }
.line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.line-top, .line-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.line-bottom { align-items: center; }
.line-name { font-family: var(--display); font-size: 30px; line-height: 1.15; }
.line-name a { text-decoration: none; }
.line-price { font-family: var(--display); font-size: 26px; white-space: nowrap; }
.summary { background: var(--paper); border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.summary h2 { font-family: var(--display); font-size: 34px; line-height: 1.1; padding-bottom: 6px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; }
.sum-row span:last-child, #delivery-fee { white-space: nowrap; }
.sum-total { border-top: 1px solid var(--line); padding-top: 18px; font-family: var(--display); font-size: 28px; }
.sum-item { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-item img { width: 72px; height: 88px; object-fit: cover; flex: none; }
.sum-item .grow { flex: 1; min-width: 0; }
.sum-item .name { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.small { font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 48px; }
.fieldset { display: flex; flex-direction: column; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset h2, .fieldset legend { font-family: var(--display); font-size: 34px; line-height: 1.1; padding: 0; margin-bottom: 18px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); padding: 0 16px; font-size: 17px; }
.field textarea { padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .err { color: var(--danger); font-size: 15px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.option { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--paper); padding: 20px; }
.option.selected { border-color: var(--ink); justify-content: flex-start; }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); flex: none; }
.option strong { font-weight: 400; display: block; }
.alert { border: 1px solid var(--danger); color: var(--danger); background: var(--paper); padding: 16px 20px; font-size: 16px; }
.hp { position: absolute; left: -9999px; }

/* Story and info pages */
.promise { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 48px; padding-top: 48px; padding-bottom: 48px; font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; }
.promise i { width: 40px; height: 1px; background: var(--gold); }
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 520px; background: var(--tint); }
.photo-slot img { width: 110px; height: 110px; opacity: 0.3; }
.prose { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.prose h2 { font-family: var(--display); font-size: 36px; line-height: 1.15; padding-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; }
.pending { border: 1px dashed var(--gold); background: var(--paper); padding: 18px 20px; font-size: 16px; }

/* Footer */
.site-footer { background: var(--forest); color: var(--cream); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; padding-top: 80px; padding-bottom: 36px; }
.footer-inner > img { width: 180px; height: 168px; object-fit: contain; }
.footer-line { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(25px, 2.4vw, 30px); line-height: 1.3; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 40px; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; }
.footer-nav a { text-decoration: none; padding: 14px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 8px; }
.footer-base { width: 100%; border-top: 1px solid rgba(220, 196, 142, 0.5); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--forest); color: var(--cream); padding: 16px 24px; display: flex; align-items: center; gap: 20px; font-size: 16px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 12px 32px rgba(31, 58, 24, 0.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--cream); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-underline-offset: 6px; white-space: nowrap; }

/* Tablet */
@media (max-width: 1000px) {
  .split, .hero, .product { gap: 48px; }
  .nav { gap: 22px; }
  .tiles, .grid { gap: 40px 24px; }
  .bag { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bag.summary-first .summary { order: -1; }
  .gift { gap: 28px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .announce { font-size: 11px; padding: 8px 16px; }
  .header-inner { padding: 12px; }
  .nav { display: none; }
  .icon-btn { display: flex; }
  .brand { gap: 4px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 17px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .eyebrow::before { width: 36px; }
  .btn { min-height: 54px; padding: 0 28px; }
  .hero, .split, .product { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-top: 24px; padding-bottom: 64px; }
  .hero .frame, .feature .frame, .gallery .frame { padding: 10px; }
  .hero .frame img, .gallery .frame img { height: 400px; }
  .feature .frame img { height: 380px; }
  .hero-copy { gap: 22px; }
  .hero-copy .btn, .feature .btn { width: 100%; }
  .quote { padding: 64px 28px; gap: 26px; }
  .motto { font-size: 11px; letter-spacing: 0.22em; gap: 12px; }
  .motto::before, .motto::after { width: 20px; }
  .section-head { padding-bottom: 36px; }
  .section-head.row { padding-bottom: 20px; margin-bottom: 32px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .tile:first-child { grid-column: 1 / -1; }
  .tile { gap: 14px; }
  .tile img { height: 230px; }
  .tile:first-child img { height: 320px; }
  .tile-name { font-size: 28px; }
  .tile .caps { display: none; }
  .feature { padding-top: 64px; padding-bottom: 64px; }
  .feature .split > :first-child { order: 2; }
  .gift { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 64px; padding-bottom: 64px; }
  .gift-copy { grid-column: 1 / -1; order: -1; padding-bottom: 14px; }
  .gift img { height: 220px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .card { gap: 12px; }
  .card-meta { flex-direction: column; gap: 2px; }
  .card-type { font-size: 10px; }
  .card-name { font-size: 22px; }
  .card-price { font-size: 19px; }
  .card .btn { min-height: 44px; padding: 0 8px; font-size: 11px; letter-spacing: 0.2em; }
  .page-head { padding-top: 32px; padding-bottom: 28px; gap: 10px; }
  .filters { margin-bottom: 28px; }
  .tabs { gap: 0 20px; font-size: 11px; letter-spacing: 0.2em; }
  .thumbs { gap: 10px; }
  .thumbs button { height: 72px; }
  .product-info { gap: 20px; }
  .line-item { gap: 16px; padding: 20px 0; }
  .line-item img { width: 96px; height: 120px; }
  .line-name { font-size: 22px; }
  .line-price { font-size: 20px; }
  .summary { padding: 24px; }
  .sum-total { font-size: 24px; }
  .summary h2, .fieldset legend { font-size: 28px; }
  .form { gap: 36px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .promise { gap: 8px 20px; padding-top: 36px; padding-bottom: 36px; }
  .promise i { width: 24px; }
  .photo-slot { height: 320px; }
  .footer-inner { gap: 28px; padding-top: 64px; padding-bottom: 28px; }
  .footer-inner > img { width: 150px; height: 140px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; letter-spacing: 0.24em; }
  .footer-base { flex-direction: column; align-items: center; gap: 4px; }
  .toast { left: 16px; right: 16px; transform: translateY(20px); justify-content: space-between; }
  .toast.show { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Motion and polish ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

body { animation: fade 0.45s ease both; }
[id] { scroll-margin-top: 120px; }

/* Hero entrance */
.hero .frame { animation: fade 1s ease both; }
.hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.1s; }
.hero-copy > :nth-child(2) { animation-delay: 0.2s; }
.hero-copy > :nth-child(3) { animation-delay: 0.32s; }
.hero-copy > :nth-child(4) { animation-delay: 0.44s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }

/* Sticky header */
.site-header { position: sticky; top: 0; transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(31, 58, 24, 0.08); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: none; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu slide */
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .mobile-nav { display: flex; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; padding-top: 0; padding-bottom: 0; border-top-color: transparent; transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, visibility 0s linear 0.4s; }
  .mobile-nav.open { max-height: 560px; opacity: 1; visibility: visible; padding-top: 8px; padding-bottom: 20px; border-top-color: var(--line); transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease; }
}
.mobile-nav[hidden] { display: none; }

/* Buttons, cards, images */
.btn { transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease; }
.btn:hover { box-shadow: 0 8px 22px rgba(31, 58, 24, 0.18); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.is-added { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.link-caps { transition: text-underline-offset 0.2s ease; }
.link-caps:hover { text-underline-offset: 11px; }
.tile { overflow: hidden; }
.tile img { transition: transform 0.7s ease; }
.tile:hover img { transform: scale(1.03); }
.tile .caps { transition: text-underline-offset 0.2s ease; }
.tile:hover .caps { text-underline-offset: 10px; }
.card-img img, .tile img, .gift img, .frame img { opacity: 0; transition: opacity 0.6s ease, transform 0.7s ease; }
.card-img img.loaded, .tile img.loaded, .gift img.loaded, .frame img.loaded { opacity: 1; }
.card-img { background: linear-gradient(100deg, var(--tint) 30%, #f4efdf 50%, var(--tint) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.card-img:has(img.loaded) { animation: none; background: var(--tint); }
.gallery .frame img { transition: opacity 0.3s ease; }
.gallery .frame img.swapping { opacity: 0; }
.thumbs button { transition: border-color 0.2s ease, transform 0.2s ease; }
.thumbs button:hover { transform: translateY(-2px); }
.bag-dot.bump { animation: bump 0.45s ease; }
.accordion details[open] .panel { animation: rise 0.35s ease both; }
.stepper button { transition: background 0.2s ease; }
.stepper button:hover { background: var(--tint); }
.stepper button[disabled] { opacity: 0.35; cursor: default; background: transparent; }
.field input, .field select, .field textarea { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(185, 151, 91, 0.25); }
.line-item { transition: opacity 0.3s ease, transform 0.3s ease; }
.line-item.removing { opacity: 0; transform: translateX(16px); }
.sort select { cursor: pointer; }

/* Skeletons while the catalogue loads */
.skeleton { display: flex; flex-direction: column; gap: 20px; }
.skeleton > div { background: linear-gradient(100deg, var(--tint) 30%, #f4efdf 50%, var(--tint) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skeleton .sk-img { aspect-ratio: 3 / 4; }
.skeleton .sk-line { height: 18px; width: 60%; }
.skeleton .sk-act { height: 12px; width: 32%; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .card-img img, .tile img, .gift img, .frame img { opacity: 1; }
  .mobile-nav.open { max-height: none; }
}

/* ---------- Homepage hero carousel ---------- */
.hc { --hc-dur: 6s; min-width: 0; }
.hc-track { position: relative; height: clamp(360px, calc(100vh - 340px), 640px); overflow: hidden; background: var(--tint); touch-action: pan-y; }
.hc .hc-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hc .hc-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 0.9s ease; }
.hc .hc-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: opacity 0.6s ease, transform 7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.hc .hc-slide.is-active img { transform: none; }
.hc-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.hc-bar[hidden], .hc-dots[hidden] { display: none; }
.hc-caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; min-width: 0; transition: opacity 0.35s ease; }
.hc-caption.changing { opacity: 0; }
.hc-count { font-size: 12px; letter-spacing: 0.26em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hc-name { font-family: var(--display); font-size: 26px; line-height: 1.15; text-decoration: none; }
.hc-name:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hc-price { font-family: var(--display); font-size: 20px; color: var(--ink); opacity: 0.75; white-space: nowrap; }
.hc-nav { display: flex; gap: 8px; flex: none; }
.hc-arrow { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.hc-arrow:hover { border-color: var(--ink); background: var(--paper); }
.hc-dots { display: flex; gap: 10px; margin-top: 16px; }
.hc-dot { flex: 1; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hc-dot::before, .hc-dot::after { content: ""; position: absolute; left: 0; top: 50%; height: 1px; }
.hc-dot::before { right: 0; background: var(--line); }
.hc-dot::after { width: 0; background: var(--gold); height: 2px; margin-top: -0.5px; }
.hc-dot.done::after { width: 100%; }
.hc-dot[aria-current="true"]::after { animation: hc-fill var(--hc-dur) linear forwards; }
.hc.is-paused .hc-dot[aria-current="true"]::after, .hc.is-static .hc-dot[aria-current="true"]::after { animation-play-state: paused; }
.hc.is-static .hc-dot[aria-current="true"]::after { animation: none; width: 100%; }
@keyframes hc-fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 760px) {
  .hc-track { height: 420px; }
  .hc-bar { margin-top: 16px; gap: 12px; }
  .hc-caption { flex-direction: column; gap: 4px; }
  .hc-name { font-size: 22px; }
  .hc-price { font-size: 18px; }
  .hc-arrow { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc .hc-slide img { transform: none; }
}

/* ---------- Polish: quieter product cards ---------- */
.card { gap: 16px; }
.card-img { position: relative; }
.card-img img.alt, .card-img img.alt.loaded { position: absolute; inset: 0; height: 100%; opacity: 0; }
@media (hover: hover) {
  .card-img:hover img.alt.loaded { opacity: 1; }
}
.card-add { align-self: flex-start; margin-top: auto; padding: 6px 0 5px; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--ink); font-family: var(--body); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, padding 0.2s ease; }
.card-add:hover { color: var(--brand); padding-bottom: 8px; }
.card-add.is-added { color: var(--gold); border-color: var(--gold); }

/* ---------- Polish: swipe rows on phones (no lone card) ---------- */
@media (max-width: 760px) {
  .grid.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px; margin-left: -24px; margin-right: -24px; padding: 0 24px 8px; scrollbar-width: none; }
  .grid.rail::-webkit-scrollbar { display: none; }
  .grid.rail > * { flex: 0 0 72%; scroll-snap-align: start; }
  .grid.rail > .reveal { opacity: 1; transform: none; }
}

/* ---------- Polish: the motto stays on one line on phones ---------- */
@media (max-width: 760px) {
  .motto { font-size: 10.5px; letter-spacing: 0.18em; white-space: nowrap; }
  .motto::before, .motto::after { display: none; }
}

/* ---------- Polish: soft cross-fade between pages ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: ease; }
@supports (view-transition-name: none) { body { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- WhatsApp button on the order confirmation ---------- */
.wa-cta { max-width: 560px; margin: 28px auto 0; text-align: center; }
.wa-cta .small { margin-bottom: 14px; }
