/* NC Polyp Farms storefront styles, ported from the approved mockups. */
:root {
  --ground: #0B0F3A;
  --surface: #151B5C;
  --surface-2: #1C2370;
  --line: #2A3280;
  --line-2: #3A4396;
  --text: #F1EFF2;
  --muted: #D6DAF0;
  --muted-2: #B9C0E6;
  --deep: #0D4671;
  --teal: #69A6A6;
  --aqua: #AED8D7;
  --lavender: #9B79C8;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Figtree', 'Segoe UI', sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--aqua); }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
button, input, select { font: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: var(--ground); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--aqua); border-color: var(--aqua); color: var(--ground); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: transparent; border-color: var(--aqua); color: var(--text); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--muted-2); }

/* Top notice and header */
.notice { background: var(--deep); padding: 10px 24px; text-align: center; font-size: 15px; font-weight: 500; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 56px; height: auto; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 600; font-size: 16px; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--teal); border-radius: 999px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 220px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(1.2) brightness(1.08) contrast(1.04); }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,58,0.7) 0%, rgba(11,15,58,0) 16%), linear-gradient(90deg, rgba(11,15,58,0.82) 0%, rgba(11,15,58,0.55) 34%, rgba(11,15,58,0.12) 60%, rgba(11,15,58,0) 100%); }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.hero-copy { flex: 1 1 460px; min-width: 0; max-width: 640px; }
.hero h1 { font-weight: 800; font-size: clamp(48px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 24px; text-shadow: 0 2px 24px rgba(11,15,58,0.85); }
.hero-sub { max-width: 34em; font-size: 20px; margin-bottom: 32px; text-shadow: 0 1px 14px rgba(11,15,58,0.95); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn-outline { border-color: var(--lavender); }
.hero-badge { flex: 0 1 400px; display: flex; justify-content: center; }
.badge-disc { position: relative; width: 100%; max-width: 400px; }
.badge-disc::before { content: ""; position: absolute; left: 50%; top: 50%; width: 88%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ground); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.badge-disc img { position: relative; width: 100%; height: auto; }
.ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 240px; display: block; }

/* Sections */
.section { padding-top: 56px; padding-bottom: 24px; }
.section-title { font-weight: 800; font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head .section-title { margin-bottom: 8px; }
.section-head > a { font-weight: 700; padding: 10px 0; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; }
.pill:hover { border-color: var(--teal); color: var(--text); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tier { background: var(--surface); border-radius: 20px; border-top: 6px solid var(--teal); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tier.collector { border-top-color: var(--lavender); }
.tier.classic { border-top-color: var(--aqua); }
.tier h3 { font-weight: 700; font-size: 28px; }
.tier a { margin-top: auto; padding-top: 8px; font-weight: 700; }

/* Frag cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card-photo { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; color: var(--muted-2); font-size: 14px; font-weight: 600; }
.photo-soon img { width: 45%; max-width: 130px; height: auto; opacity: 0.35; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { color: var(--ground); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--teal); }
.badge.collector { background: var(--lavender); }
.badge.classic { background: var(--aqua); }
.chip { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 6px; border: 1.5px solid var(--muted-2); color: var(--muted-2); }
.chip.wysiwyg { border-color: var(--text); color: var(--text); }
.chip.lineage { border-radius: 999px; border-color: var(--aqua); color: var(--aqua); }
.card-coral { color: var(--muted-2); font-size: 13px; font-weight: 700; margin-top: 2px; }
.card h3 { font-weight: 700; font-size: 20px; line-height: 1.2; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-weight: 800; font-size: 24px; }
.sold-tag { color: var(--muted-2); font-weight: 700; font-size: 15px; }

/* Shipping band, story, shows, signup */
.ship-band { background: var(--deep); padding: 64px 0; margin-top: 48px; }
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px 40px; }
.ship-grid h3 { font-weight: 700; font-size: 24px; margin-bottom: 8px; }
.ship-grid p { color: #E3ECF3; }
.story { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 80px; padding-bottom: 80px; }
.story-photo { flex: 1 1 360px; min-width: 0; }
.story-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.story-copy { flex: 1 1 420px; min-width: 0; }
.story-copy p { color: var(--muted); margin-top: 16px; }
.show-box { border: 2px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-bottom: 80px; }
.show-box h2 { font-weight: 800; font-size: 34px; line-height: 1.15; margin-bottom: 8px; }
.show-detail { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.show-name { font-family: var(--display); font-weight: 700; font-size: 22px; }
.signup { background: var(--surface); padding: 64px 24px; text-align: center; }
.signup h2 { font-weight: 800; font-size: 38px; line-height: 1.15; margin-bottom: 10px; }
.signup form { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; margin-top: 28px; }
.field { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1 1 300px; max-width: 420px; text-align: left; }
.field label { font-weight: 600; font-size: 15px; }
.field input { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--ground); color: var(--text); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { width: 120px; height: auto; }
.foot-nav { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; font-size: 15px; }
.foot-nav div { display: flex; flex-direction: column; gap: 10px; }
.foot-nav p { font-weight: 700; }
.foot-legal { flex: 1 1 100%; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 14px; }

/* Shop page */
.page-title { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 10px; }
.page-intro { max-width: 40em; font-size: 19px; color: var(--muted); margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filter-rows { display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fbtn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line-2); background: transparent; color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; }
.fbtn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ground); }
.filter-row.coral .fbtn { min-height: 50px; font-size: 16px; font-weight: 800; background: var(--surface); }
.filter-row.coral .fbtn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--ground); }
.filter-row.type .fbtn { border-radius: 12px; min-height: 40px; font-size: 14px; }
.sort { display: flex; flex-direction: column; gap: 6px; }
.sort label { font-weight: 600; font-size: 15px; }
.sort select { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--ground); color: var(--text); font-weight: 600; }
.count { color: var(--muted-2); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.state-msg { padding: 48px 24px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 20px; }
.state-msg .btn { margin-top: 16px; }

/* Frag page */
.crumbs ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted-2); font-size: 15px; }
.crumbs li[aria-current="page"] { color: var(--text); font-weight: 600; }
.frag-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.gallery { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); border-radius: 24px; overflow: hidden; }
.gallery-main img.photo { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.thumb { padding: 0; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.thumb[aria-pressed="true"] { border-color: var(--teal); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-note { color: var(--muted-2); font-size: 15px; }
.info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.info h1 { font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.025em; }
.info .big-price { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.one-of-a-kind, .stock-left { color: var(--aqua); font-weight: 700; }
.opt-label { font-weight: 700; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size { min-height: 52px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--line-2); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
.size[aria-checked="true"] { border-color: var(--aqua); background: #16365A; }
.size[disabled] { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }
.qty-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.stepper button { width: 52px; min-height: 52px; border: none; background: transparent; color: var(--text); font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper button[disabled] { opacity: 0.4; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-weight: 800; font-size: 19px; }
.add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.add-row .btn { flex: 1 1 260px; min-height: 56px; font-size: 18px; font-weight: 800; }
.ship-box { border: 2px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.more-strain a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--line-2); color: var(--text); text-decoration: none; font-weight: 700; margin-top: 10px; }
.more-strain a:hover { border-color: var(--teal); }
.desc p + p { margin-top: 12px; }
.desc { color: var(--muted); }
.care { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.care div { background: var(--surface); border-radius: 16px; padding: 18px 20px; }
.care dt { color: var(--muted-2); font-size: 14px; font-weight: 700; }
.care dd { margin: 4px 0 0; font-weight: 700; font-size: 19px; }
.block { margin-top: 72px; }
.block h2 { font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }

/* Cart */
.cart-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.cart-lines { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border-radius: 18px; padding: 14px; }
.line-photo { position: relative; width: 96px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.line-photo img { width: 100%; height: 100%; object-fit: cover; }
.line-photo .photo-soon img { width: 60%; }
.line-photo .photo-soon span { display: none; }
.line h3 { font-size: 19px; font-weight: 700; }
.line h3 a { color: var(--text); text-decoration: none; }
.line-meta { color: var(--muted-2); font-size: 14px; font-weight: 600; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line .stepper button { width: 44px; min-height: 44px; font-size: 20px; }
.remove { background: none; border: none; color: var(--aqua); font-weight: 700; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.summary { flex: 1 1 320px; background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { border-top: 1px solid var(--line-2); padding-top: 14px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.free-note { color: var(--aqua); font-weight: 600; font-size: 15px; }
fieldset { border: 2px solid var(--line-2); border-radius: 14px; padding: 12px 16px 14px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--teal); }
.small { font-size: 14px; color: var(--muted-2); }
.alert { margin-bottom: 14px; border: 2px solid #E8A0A0; background: rgba(232,160,160,0.12); color: #F6D5D5; border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.notice-ok { border: 2px solid var(--aqua); background: rgba(174,216,215,0.1); border-radius: 14px; padding: 12px 16px; font-weight: 600; }

@media (max-width: 560px) {
  .hero { padding-top: 40px; padding-bottom: 180px; }
  .ridge { height: 170px; }
  .section-title { font-size: 34px; }
  .line { grid-template-columns: 72px 1fr; }
  .line-photo { width: 72px; }
  .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
.grid > .state-msg, .grid > .count { grid-column: 1 / -1; }

/* Cart shipping address form */
.ship-form { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.ship-form h2 { font-weight: 800; font-size: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 16px; }
.ff { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ff.wide { grid-column: 1 / -1; }
.ff[hidden] { display: none; }
.ff label { font-weight: 600; font-size: 15px; }
.ff input, .ff select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--ground); color: var(--text); }
.ff input:focus, .ff select:focus { border-color: var(--teal); }
#totals { display: flex; flex-direction: column; gap: 14px; }
