@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --green: #0b5149;
  --teal: #20796f;
  --gold: #9b742d;
  --cream: #fbfaf6;
  --ink: #10231f;
  --muted: #4c5e59;
  --line: #c9d3cc;
  --mint: #eef4ef;
  --tile: #f0f2ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; }
img { max-width: 100%; }

/* ---------- Top bar & header ---------- */
.topline { background: var(--green); color: #fff; text-align: center; padding: 9px; font-size: 9px; letter-spacing: .2em; }
header { min-height: 76px; padding: 0 7%; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e4e1d8; }
.brand { color: var(--green); text-decoration: none; letter-spacing: .13em; font-size: 15px; white-space: nowrap; }
.brand b { font-weight: 700; }
.brand span { color: var(--gold); padding-left: 7px; }
nav { display: flex; gap: 30px; }
nav a, .shop, footer a { font-size: 11px; color: var(--ink); text-decoration: none; }
.shop { color: var(--green); }

/* ---------- Hero ---------- */
.hero { min-height: 510px; padding: 60px 10%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4%; position: relative;
  background: linear-gradient(110deg, var(--cream) 0%, var(--cream) 49%, var(--mint) 49%, var(--mint) 100%); }
.kicker { color: var(--gold); font-weight: 600; font-size: 9px; letter-spacing: .2em; }
.hero h1 { font: 500 clamp(54px, 6.7vw, 82px)/.98 'Playfair Display', Georgia, serif; letter-spacing: -.05em; margin: 22px 0; }
.hero h1 em, h2 em { color: var(--green); font-weight: 500; }
.copy > p:not(.kicker) { max-width: 350px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.cta { display: inline-flex; gap: 35px; margin-top: 20px; padding: 15px 18px; background: var(--green); color: #fff; text-decoration: none; font-size: 9px; letter-spacing: .1em; }
.seal { position: absolute; right: 5%; top: 45px; width: 61px; height: 61px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--gold); font: 9px/1.3 'Playfair Display', serif; }
.hero-note { min-height: 335px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 46px; background: var(--mint); border: 1px solid var(--line); border-radius: 16px; }
.hero-note .gold-rule { width: 58px; border-top: 2px solid var(--gold); margin: 20px 0; }
.hero-note h2 { font: 500 clamp(25px, 3vw, 38px)/1.35 'Playfair Display', Georgia, serif; color: #172a27; }
.hero-note h2 em { color: var(--green); }
.hero-note > a { margin-top: 20px; color: var(--green); text-decoration: none; font-size: 10px; letter-spacing: .13em; }
.hero-note > a span { color: var(--gold); margin-left: 16px; }

/* ---------- Collection ---------- */
.catalog { padding: 75px 8%; }
.section-head { display: flex; align-items: end; justify-content: space-between; }
.section-head h2, .about h2 { font: 500 clamp(37px, 4vw, 52px)/1.1 'Playfair Display', Georgia, serif; margin: 12px 0 0; }
.section-head > p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.controls { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd9cf; padding: 22px 0 12px; margin: 16px 0 20px; }
.controls input { background: transparent; border: 0; border-bottom: 1px solid #b7c4bc; padding: 8px 0; width: 220px; font: 11px 'DM Sans', sans-serif; }
.controls button { border: 0; background: none; padding: 9px 11px; color: var(--muted); font: 10px 'DM Sans', sans-serif; cursor: pointer; }
.controls button.selected { color: var(--green); border-bottom: 1px solid var(--gold); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 16px; }
.no-results { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 30px 0; }

/* ---------- Product cards ---------- */
.card { position: relative; display: block; color: inherit; text-decoration: none; padding: 0 0 14px; border-radius: 14px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.card:hover, .card:focus-within { transform: scale(1.025); z-index: 2; box-shadow: 0 14px 30px #103d3430; }
.card-link, .card-link:visited, .card-link:hover, .card-link:active { display: block; color: #172a27; text-decoration: none; }
.card-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* The card images are pre-framed at 4:3, so the tile uses the same ratio and nothing is cropped or stretched. */
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--tile); border-radius: 12px; overflow: hidden; isolation: isolate; }
.card-photo > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.number { position: absolute; top: 10px; left: 10px; z-index: 2; background: #fbfaf6dd; padding: 4px; color: var(--green); font-size: 8px; letter-spacing: .12em; }
.card h3 { font: 500 17px 'Playfair Display', Georgia, serif; margin: 13px 0 5px; padding: 0 12px; color: var(--green); }
.card-link:hover h3, .card-link:focus-visible h3 { color: var(--gold); }
.meta { display: flex; justify-content: space-between; gap: 10px; padding: 0 12px; color: var(--muted); font-size: 9px; }
.card-actions { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0; font-size: 10px; }
.card-actions a, .card-actions a:visited { color: var(--green); text-decoration: none; }
.card-actions a:hover { color: var(--gold); }
.wish-button { border: 1px solid var(--gold); border-radius: 20px; background: #fffdf6; color: var(--green); padding: 9px 13px; cursor: pointer; font: 10px 'DM Sans', sans-serif; }
.wish-button.saved { background: var(--green); color: #fff; }
.detail-wish { margin: 8px 0 18px; display: block; }
#empty-wishlist { color: var(--muted); }

/* ---------- Detail page ---------- */
.detail { max-width: 1100px; margin: 45px auto; padding: 0 32px 60px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: start; }
.gallery-main { height: 490px; position: relative; background: var(--tile); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.gallery-main > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 1px solid #b8944d; background: #fffdf2; color: var(--green); width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.prev { left: 12px; }
.next { right: 12px; }
.photo-count { position: absolute; bottom: 12px; right: 12px; background: #fffdf2dd; padding: 7px 10px; color: var(--green); font-size: 10px; }
.thumbs { display: flex; gap: 8px; overflow: auto; padding: 10px 0; }
.thumbs button { flex: 0 0 72px; height: 62px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 2px; background: var(--tile); cursor: pointer; }
.thumbs button.on { border-color: #b8944d; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy { padding-top: 32px; }
.detail-copy h1 { font: 500 44px 'Playfair Display', Georgia, serif; margin: 12px 0; }
.detail-color, .detail-copy > p:not(.kicker) { font-size: 13px; line-height: 1.8; color: var(--muted); }
.detail-price { font-weight: 700; color: var(--green) !important; font-size: 18px !important; }
.detail-copy > p.detail-story { font: italic 500 17px/1.65 'Playfair Display', Georgia, serif; color: var(--ink); margin: 18px 0 14px; }
.detail-copy > p.detail-meaning { font-size: 12px; line-height: 1.7; padding-left: 12px; border-left: 2px solid var(--gold); margin: 0 0 18px; }
.detail-meaning b { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; margin-right: 4px; }
.sku { letter-spacing: .13em; font-size: 10px !important; margin: 27px 0; }

/* ---------- Contact, about, footer ---------- */
.contact { text-align: center; padding: 48px 8%; background: var(--cream); border-top: 1px solid var(--line); }
.contact h2 { font: 500 34px 'Playfair Display', Georgia, serif; margin: 10px; }
.contact > p:not(.kicker) { color: var(--muted); font-size: 12px; }
.contact-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.contact-links a { color: var(--green); font-size: 12px; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.about { text-align: center; padding: 72px 15%; background: var(--mint); }
.about .kicker { margin: 0; }
.about > p:last-child { font-size: 11px; line-height: 1.8; color: var(--muted); max-width: 480px; margin: 20px auto; }
footer { padding: 25px 7%; display: flex; justify-content: space-between; gap: 12px; color: var(--green); font-size: 9px; letter-spacing: .1em; }

/* ---------- Wishlist tabs & checkout ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid #ddd9cf; margin: 18px 0 26px; }
.tabs button { border: 0; background: none; padding: 12px 18px; font: 600 11px 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--gold); }
.tab-count { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 10px; background: var(--mint); color: var(--green); font-size: 10px; text-align: center; }
.cta-button { border: 0; cursor: pointer; font-family: inherit; }
.cta-button:disabled { opacity: .6; cursor: wait; }
.cta-outline { background: transparent; color: var(--green); border: 1px solid var(--green); margin-left: 10px; }
#go-checkout { margin-top: 28px; }
.checkout-empty { color: var(--muted); font-size: 13px; padding: 20px 0; }
.checkout-empty a { color: var(--green); }
.checkout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.checkout h3, .checkout-done h3 { font: 500 24px 'Playfair Display', Georgia, serif; margin: 0 0 16px; }
.checkout-form h3:not(:first-child) { margin-top: 30px; }
.field { margin-bottom: 14px; flex: 1; }
.field-row { display: flex; gap: 14px; }
.field label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field small { text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 13px 'DM Sans', sans-serif; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pay-options { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.pay { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 13px; }
.pay:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.pay span { display: grid; gap: 3px; }
.pay small { color: var(--muted); font-size: 11px; }
.checkout-error { background: #fdf0ee; border: 1px solid #e4b4ab; color: #7a2418; padding: 12px 14px; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.checkout-error a { color: #7a2418; font-weight: 600; }
.checkout-fine { color: var(--muted); font-size: 11px; line-height: 1.7; }
.checkout-summary { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.co-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #ece9e0; }
.co-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--tile); }
.co-info { display: grid; gap: 3px; font-size: 13px; }
.co-info small { color: var(--muted); font-size: 11px; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1px solid var(--line); border-radius: 20px; width: max-content; }
.qty button { width: 28px; height: 28px; border: 0; background: none; font-size: 16px; color: var(--green); cursor: pointer; }
.qty span { min-width: 20px; text-align: center; font-size: 12px; }
.co-line { text-align: right; display: grid; gap: 6px; font-size: 13px; }
.co-remove { border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; padding: 0; }
.totals { margin: 16px 0 0; font-size: 13px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 700; color: var(--green); }
.totals .grand dt { color: var(--green); }
.checkout-done { max-width: 560px; margin: 10px auto 0; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 38px 30px; }
.checkout-done p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.done-ref b { color: var(--green); letter-spacing: .08em; }
.done-list { list-style: none; margin: 20px 0; padding: 0; text-align: left; font-size: 13px; }
.done-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ece9e0; }
.done-list .grand { font-weight: 700; color: var(--green); border-bottom: 0; }
.checkout-done .cta { margin: 6px 4px 0; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .checkout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
}
@media (max-width: 700px) {
  header { padding: 0 5%; min-height: 64px; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 48px 7%; background: linear-gradient(180deg, var(--cream) 0 45%, var(--mint) 45%); }
  .seal { right: 7%; top: 25px; width: 52px; height: 52px; }
  .hero-note { min-height: 220px; padding: 28px; }
  .hero-note h2 { font-size: 25px; }
  .catalog { padding: 55px 5%; }
  .section-head { align-items: start; gap: 16px; }
  .section-head > p { max-width: 145px; }
  .controls { align-items: start; gap: 10px; flex-direction: column; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 23px 10px; }
  .card h3 { font-size: 15px; }
  .meta { flex-direction: column; gap: 3px; }
  .card-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card:hover { transform: scale(1.01); }
  .detail { margin: 22px auto; padding: 0 5% 45px; gap: 15px; }
  .gallery-main { height: 340px; }
  .detail-copy { padding-top: 10px; }
  .detail-copy h1 { font-size: 36px; }
  .about { padding: 55px 8%; }
  .field-row { flex-direction: column; gap: 0; }
  .co-item { grid-template-columns: 72px 1fr; }
  .co-item img { width: 72px; height: 54px; }
  .co-line { grid-column: 2; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .cta-outline { margin-left: 0; }
}

.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }

/* ---------- Wishlist saved pop-up ---------- */
.wish-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1000; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; background: #fffdf6; color: var(--ink); border: 1px solid var(--gold); border-radius: 14px; box-shadow: 0 12px 32px rgba(11,81,73,.18); font: 13px 'DM Sans', sans-serif; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.wish-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.wish-toast-heart { color: var(--gold); font-size: 14px; }
.wish-toast-text { font-size: 13px; color: var(--muted); }
.wish-toast-name { font: 500 17px 'Playfair Display', Georgia, serif; color: var(--green); margin-right: 2px; }
.wish-toast-btn { flex: none; display: inline-flex; gap: 14px; padding: 12px 16px; background: var(--green); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s ease; }
.wish-toast-btn:hover, .wish-toast-btn:focus-visible { background: var(--teal); outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) { .wish-toast { bottom: 16px; width: calc(100vw - 24px); justify-content: space-between; gap: 10px; padding-left: 14px; } .wish-toast-text { font-size: 12px; } .wish-toast-name { font-size: 15px; } .wish-toast-btn { gap: 8px; padding: 11px 12px; } }
