/* Tidewater Goods — concept store by EpicTech. */
:root {
  --sand: #f4efe6;
  --paper: #fbf8f2;
  --shell: #ebe4d8;
  --ink: #10282e;
  --ink-2: #3b5258;
  --sea: #24575c;
  --sea-2: #1a4246;
  --glass: #9cc3b8;
  --clay: #b8643f;
  --line: rgba(16, 40, 46, .12);
  --line-2: rgba(16, 40, 46, .22);
  --radius: 18px;
  --etbar-h: 40px;
  --head-h: 68px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--etbar-h) + var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 16px/1.6 var(--sans); padding-top: var(--etbar-h); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: calc(var(--etbar-h) + 8px); }
[hidden] { display: none !important; }
html:not(.js) .needs-js { display: none !important; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sea); margin-bottom: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; vertical-align: middle; white-space: nowrap; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }

/* ---------- EpicTech concept bar ---------- */
.et-bar { position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--etbar-h); background: #050609; color: #f3f5f8; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 12.5px/1.3 var(--sans); }
.et-inner { height: 100%; width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.et-bar p { display: flex; align-items: center; gap: 8px; color: #c9ceda; }
.et-bar strong { color: #f3f5f8; font-weight: 600; }
.et-dot { width: 7px; height: 7px; border-radius: 50%; background: #8257ff; box-shadow: 0 0 0 3px rgba(130,87,255,.25); flex: none; }
.et-bar nav { display: flex; gap: 6px; align-items: center; flex: none; }
.et-bar a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: #c9ceda; white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; }
.et-bar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.et-bar a.et-cta { background: #8257ff; color: #fff; font-weight: 600; }
.et-bar a.et-cta:hover { background: #a98dff; color: #050609; }
.et-bar a:focus-visible { outline: 2px solid #a98dff; outline-offset: 2px; }
@media (max-width: 640px) {
  :root { --etbar-h: 62px; }
  .et-inner { flex-direction: column; justify-content: center; gap: 4px; }
  .et-bar p { font-size: 11.5px; }
  .et-bar a { padding: 3px 10px; font-size: 12px; min-height: 26px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: var(--etbar-h); z-index: 100; background: rgba(244, 239, 230, .86); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; flex: none; }
.wordmark { height: 32px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(16,40,46,.06); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.cart-btn:hover { border-color: var(--ink); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; display: inline-grid; place-items: center; }
.cart-btn.bump .cart-count { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu { position: relative; display: none; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 5px; cursor: pointer; background: var(--paper); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .25s var(--ease); }
.menu[open] summary span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: 52px; width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(16,40,46,.35); display: grid; }
.menu nav a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu nav a:hover { background: var(--shell); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(16,40,46,.04); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; padding: 8px 0; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(46px, 6.4vw, 92px); line-height: .98; letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--sea); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--sea); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 40px 80px -50px rgba(16,40,46,.55); }
.hero-tag { position: absolute; left: 22px; bottom: 22px; background: rgba(251,248,242,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 14px; font-size: 13px; display: flex; gap: 6px; align-items: center; box-shadow: 0 8px 20px -12px rgba(16,40,46,.4); }
.hero-tag span:first-child { font-weight: 600; }

.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip p { padding: 20px 24px; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.strip p + p { border-left: 1px solid var(--line); }
.strip strong { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section h2 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.015em; }

.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.collection { display: block; position: relative; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--shell); aspect-ratio: 3 / 4; isolation: isolate; }
.collection svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s var(--ease); }
.collection:hover svg { transform: scale(1.04); }
.collection-text { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(251,248,242,.94); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.collection-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.collection-title::after { content: " →"; font-family: var(--sans); font-size: 16px; display: inline-block; transition: transform .25s var(--ease); }
.collection:hover .collection-title::after { transform: translateX(4px); }
.collection-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Shop ---------- */
.shop { background: var(--paper); border-block: 1px solid var(--line); }
.shop-layout { display: grid; grid-template-columns: 236px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--etbar-h) + var(--head-h) + 20px); }
.filters summary { display: none; }
.filter-body { display: grid; gap: 26px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.filters legend { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; background: var(--paper); cursor: pointer; transition: background .15s, border-color .15s; flex: none; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tone { position: relative; cursor: pointer; }
.tone input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tone span { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; transition: border-color .15s, background .15s; }
.tone i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(16,40,46,.15); }
.tone input:checked + span { border-color: var(--ink); background: var(--shell); font-weight: 600; }
.tone input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310282e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; cursor: pointer; width: 100%; font-size: 15px; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.result-count { font-size: 14.5px; color: var(--ink-2); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.sort select { width: auto; min-width: 200px; }
.filter-count:empty { display: none; }
.filter-count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; padding: 0 6px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--shell); }
.card-media .art { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.card-media .a2 { opacity: 0; }
.card:hover .a2, .card:focus-within .a2 { opacity: 1; }
.card:hover .a1 { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 5px 10px; border-radius: 999px; }
.card-body { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.card h3 a:hover { background-size: 100% 1px; }
.card-meta { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dots li { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(16,40,46,.18); }
.card-end { display: grid; justify-items: end; gap: 8px; flex: none; }
.price { font-weight: 600; font-size: 16px; }
.quick-add { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.quick-add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quick-add.added { background: var(--sea); color: #fff; border-color: var(--sea); }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: 8px; justify-items: center; }

/* ---------- Editorial ---------- */
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.edit-art svg { width: 100%; height: auto; border-radius: 24px; aspect-ratio: 1; }
.edit-copy h2 { margin-bottom: 18px; }
.care { margin: 36px 0 0; display: grid; gap: 0; }
.care div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.care dt { font-weight: 600; }
.care dd { margin: 0; color: var(--ink-2); }

/* ---------- Policies ---------- */
#shipping { background: var(--shell); }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.policy { background: var(--paper); border-radius: var(--radius); padding: 28px; }
.policy h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.policy p { color: var(--ink-2); }
.faq { margin-top: 32px; border-top: 1px solid var(--line-2); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary, .accordions summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; min-height: 48px; }
.faq summary::-webkit-details-marker, .accordions summary::-webkit-details-marker { display: none; }
.faq summary::after, .accordions summary::after { content: "+"; font-size: 22px; font-weight: 400; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after, .accordions details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Newsletter + footer ---------- */
.newsletter { background: var(--ink); color: #eef2ef; padding: 88px 0; }
.nl-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.newsletter .eyebrow { color: var(--glass); }
.newsletter h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; margin-bottom: 14px; }
.newsletter .muted { color: #b6c6c5; }
.nl-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-size: 16px; }
.nl-row input::placeholder { color: #8fa5a6; }
.nl-row input:focus-visible { outline: 2px solid var(--glass); outline-offset: 2px; }
.newsletter .btn-primary { background: var(--glass); color: var(--ink); }
.newsletter .btn-primary:hover { background: #b8d6cd; }
.newsletter :focus-visible { outline-color: var(--glass); }
.concept-note { margin-top: 12px; font-size: 13px; color: #b6c6c5; border-radius: 8px; }
.concept-note.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: rgba(156,195,184,.35); } 100% { background: transparent; } }
.buy .concept-note { color: var(--ink-2); }
.site-footer { background: #0c2025; color: #c6d2d1; padding: 64px 0 48px; font-size: 14.5px; }
.site-footer .brand { color: #eef2ef; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #eef2ef; margin-bottom: 14px; }
.site-footer nav { display: grid; gap: 2px; align-content: start; }
.site-footer nav a { text-decoration: none; padding: 5px 0; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #a9b8b7; }
.site-footer address { font-style: normal; margin-top: 18px; line-height: 1.7; }
.site-footer .tag { color: #c6d2d1; border-color: rgba(255,255,255,.25); }
.site-footer :focus-visible { outline-color: var(--glass); }
.foot-note { margin-top: 14px; max-width: 32ch; }

/* ---------- Cart drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 400; background: rgba(12, 32, 37, .45); opacity: 0; transition: opacity .35s var(--ease); }
.drawer-scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 401; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(16,40,46,.4); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-size: 30px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.ship-meter { padding: 14px 24px; background: var(--shell); font-size: 13.5px; }
.meter { height: 5px; border-radius: 99px; background: rgba(16,40,46,.1); margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--sea); border-radius: inherit; transition: width .5s var(--ease); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; animation: lineIn .35s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.line .thumb-art { width: 84px; height: 84px; border-radius: 12px; }
.line h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.line h3 a { text-decoration: none; }
.line .variant { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.line .stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; margin-top: 10px; }
.line .stepper button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 17px; border-radius: 999px; }
.line .stepper button:hover { background: var(--shell); }
.line .stepper span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.line .line-price { font-weight: 600; text-align: right; }
.line .remove { margin-top: 8px; border: 0; background: none; font-size: 13px; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 6px 0; }
.cart-empty { text-align: center; padding: 48px 0; display: grid; gap: 16px; justify-items: center; color: var(--ink-2); }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.totals { margin: 0 0 8px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); }
.totals dd { margin: 0; }
.totals .total { color: var(--ink); font-weight: 700; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.drawer-foot .tiny { margin-bottom: 14px; }
.checkout-panel { position: absolute; inset: 0; background: var(--paper); padding: 40px 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; animation: panelIn .35s var(--ease); }
.checkout-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.checkout-panel h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.co-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--shell); display: grid; place-items: center; margin: 0 auto 4px; color: var(--sea); }
body.drawer-lock { overflow: hidden; }

/* ---------- Product page ---------- */
.pdp { padding-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--etbar-h) + var(--head-h) + 16px); }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--shell); }
.slide { position: absolute; inset: 0; margin: 0; transition: opacity .45s var(--ease); }
.slide .pdp-art { width: 100%; height: 100%; }
.js .slide[data-inactive] { opacity: 0; visibility: hidden; }
html:not(.js) .gallery-main { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none; }
html:not(.js) .slide { position: static; aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumb { border: 1.5px solid transparent; border-radius: 14px; background: none; padding: 0; cursor: pointer; overflow: hidden; display: grid; text-align: left; transition: border-color .2s; }
.thumb .thumb-art { width: 100%; aspect-ratio: 1; border-radius: 12px; }
.thumb-label { font-size: 12.5px; color: var(--ink-2); padding: 6px 2px 2px; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb[aria-pressed="true"] .thumb-label { color: var(--ink); font-weight: 600; }
.thumb:hover { border-color: var(--line-2); }
.buy h1 { font-family: var(--serif); font-size: clamp(38px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.015em; }
.buy-price { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; font-size: 22px; font-weight: 600; }
.buy-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.opt-label { font-size: 14.5px; margin-bottom: 10px; color: var(--ink-2); }
.opt-label strong { color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid transparent; transition: border-color .2s; }
.swatch span { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--sw) 55%, var(--sw2) 55%); box-shadow: inset 0 0 0 1px rgba(16,40,46,.15); }
.swatch[aria-checked="true"] { border-color: var(--ink); }
.swatch:hover { border-color: var(--line-2); }
.swatch:focus-visible { outline-offset: 2px; border-radius: 50%; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size { min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14.5px; font-weight: 500; transition: border-color .2s, background .2s; }
.size small { color: var(--ink-2); font-size: 12.5px; }
.size[aria-checked="true"] { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.buy-row { display: flex; gap: 12px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 4px; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; border-radius: 999px; }
.qty input { width: 36px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.btn-grow { flex: 1; min-height: 52px; }
.ship-line { margin-top: -8px; }
.accordions { margin-top: 32px; border-top: 1px solid var(--line-2); }
.accordions details { border-bottom: 1px solid var(--line-2); }
.accordions details > :not(summary) { padding-bottom: 18px; color: var(--ink-2); }
.ticks { display: grid; gap: 6px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--glass); }
.related { padding-top: 88px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .collections { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .nav-end { margin-left: auto; }
  .hero-grid, .edit-grid, .nl-inner, .pdp-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; border: 1px solid var(--line-2); border-radius: 16px; background: var(--paper); }
  .filters summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; font-weight: 600; cursor: pointer; list-style: none; }
  .filters summary::-webkit-details-marker { display: none; }
  .filter-body { padding: 4px 18px 20px; }
  .policy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --head-h: 60px; }
  .wrap { width: calc(100% - 32px); }
  .wordmark { height: 28px; }
  .cart-btn > span:not(.cart-count) { }
  .hero { padding: 24px 0 40px; }
  .hero h1 { font-size: 48px; }
  .lede { font-size: 16.5px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-tag { left: 12px; bottom: 12px; font-size: 12px; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip p { padding: 12px 8px; }
  .strip p + p { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .collections { gap: 12px; }
  .collection { aspect-ratio: 4 / 5; }
  .collection-text { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .collection-title { font-size: 21px; }
  .collection-sub { display: none; }
  .grid, .grid-4 { gap: 24px 12px; }
  .card-body { flex-direction: column; gap: 6px; }
  .card-end { width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .card h3 { font-size: 15px; }
  .card-meta { font-size: 12.5px; }
  .sort { width: 100%; }
  .sort select { flex: 1; min-width: 0; }
  .care div { grid-template-columns: 1fr; gap: 4px; }
  .nl-row { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .thumbs { gap: 6px; }
  .thumb-label { font-size: 11px; }
  .buy-row { flex-wrap: wrap; }
  .drawer-head, .drawer-body, .drawer-foot, .ship-meter { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .collection:hover svg, .card:hover .a1 { transform: none; }
}
