html { scroll-behavior: smooth; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.site-nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.bag-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy); background: var(--white); cursor: pointer; display: grid; place-items: center; }
.bag-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linejoin: round; }
.bag-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--hibiscus); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }

/* Hero: the client's anniversary emblem carries the page */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.lede { font-size: 17px; color: var(--muted); max-width: 470px; margin: 0 0 28px; }
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; mix-blend-mode: multiply; }

/* Products */
.shop-section { padding: 72px 0 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -22px rgba(14, 31, 71, 0.45); }
.card-art { position: relative; aspect-ratio: 1; background: var(--white); }
.card-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card.is-soldout .card-art img { opacity: .45; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--gold-soft); color: var(--navy-deep); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.tag-soldout { background: var(--danger-soft); color: var(--danger); }
.card-body { display: block; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.card-name { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--navy-deep); margin-bottom: 8px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 600; font-size: 16px; }
.card-cta { font-size: 13px; color: var(--navy); font-weight: 600; }

/* Pickup steps: a real sequence, so it's numbered */
.pickup { padding: 40px 0 72px; }
.pickup h2 { font-size: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 20px 0 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; font-size: 15px; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--aqua-soft); color: var(--navy); font-weight: 600; margin-bottom: 12px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 28px; padding-bottom: 28px; }
.footer-inner p { margin: 0; }

/* Product dialog */
.product-dialog { width: min(880px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; overflow: auto; }
.product-dialog::backdrop { background: rgba(14, 31, 71, .45); }
.dialog-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--white); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.pd-layout { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd-gallery { background: var(--white); padding: 20px; border-right: 1px solid var(--line); }
.pd-gallery > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.pd-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--white); cursor: pointer; overflow: hidden; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info { padding: 32px 28px 28px; }
.pd-info h2 { font-size: 28px; padding-right: 30px; }
.pd-price { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.pd-desc { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.pd-options { border: 0; padding: 0; margin: 0 0 12px; }
.pd-options legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 48px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.chip:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.pd-stock { min-height: 22px; font-size: 13px; color: var(--hibiscus); font-weight: 600; margin: 0 0 16px; }
.pd-actions { display: flex; gap: 12px; }
.pd-actions .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }

/* Bag drawer */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(14, 31, 71, .4); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(420px, 100vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.drawer.open { transform: none; visibility: visible; transition: transform .25s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 22px; }
.drawer-head .dialog-close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--white); }
.bag-lines { list-style: none; margin: 0; padding: 0; }
.bag-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 64px; height: 64px; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.bag-line-name { font-weight: 600; font-size: 14px; }
.bag-line-sub { font-size: 13px; color: var(--muted); }
.bag-line .qty { margin-top: 8px; width: max-content; }
.bag-line .qty button { width: 30px; height: 30px; font-size: 15px; }
.bag-line-right { text-align: right; font-weight: 600; font-size: 14px; }
.bag-line-right .link-btn { display: block; margin-top: 8px; font-size: 12px; color: var(--danger); font-weight: 400; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total-row strong { font-family: var(--display); font-size: 22px; color: var(--navy-deep); }
.checkout h3 { margin-top: 16px; font-size: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding-top: 48px; }
.reference { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 30px; font-weight: 700; letter-spacing: .06em; color: var(--navy-deep); background: var(--gold-soft); border-radius: 8px; padding: 14px; margin: 12px 0 20px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 360px; margin: 0 auto; }
  .site-nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { border-right: 0; border-bottom: 1px solid var(--line); }
}
