:root {
  /* Brand colors and fonts taken from the Shopify theme (Horizon) on atinyworkshop.com */
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #2c3e50;        /* navy text */
  --deep: #102c21;       /* dark green text on coral */
  --muted: #5d6d7c;
  --line: #dfdfdf;
  --soft: #f2f2f2;
  --teal: #56bfa8;       /* nav bar and logo */
  --accent: #00c2a8;     /* primary buttons */
  --accent-ink: #102c21;
  --accent-dark: #008f7c;
  --coral: #fe7a71;      /* announcement bar, Shop now */
  --peach: #ffe1dc;
  --pink: #fe7a71;
  --err: #b3261e;
  --radius: 14px;
  --head: 'Francois One', 'Arial Narrow', sans-serif;
  --nav: 'Bayon', 'Francois One', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; text-wrap: balance; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

.announce { background: var(--coral); color: var(--deep); text-align: center; font-size: 13px; padding: 7px 16px; font-weight: 500; }
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 8px 16px; background: var(--bg); }
.top-spacer { width: 40px; }
.logo { justify-self: center; font-family: var(--head); font-size: 22px; color: var(--teal); text-decoration: none; text-transform: uppercase; }
.logo img { height: 44px; width: auto; }
.bag-btn { justify-self: end; }
.menu { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; background: var(--teal); padding: 10px 16px 8px; justify-content: safe center; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; font-family: var(--nav); font-size: 17px; letter-spacing: .02em; color: #fff; text-decoration: none; text-transform: uppercase; }
.menu a:hover { text-decoration: underline; }
.bag-btn { position: relative; border: 0; background: none; color: var(--ink); padding: 8px; margin: -8px; cursor: pointer; }
.bag-count { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

main { max-width: 1080px; margin: 0 auto; }
.hero { position: relative; background: var(--teal) var(--hero, none) center / cover no-repeat; text-align: center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 194, 168, .69); }
.hero-in { position: relative; padding: 56px 16px 52px; display: grid; justify-items: center; gap: 6px; }
.hero h1 { font-size: clamp(32px, 9vw, 56px); text-transform: uppercase; margin: 0; text-shadow: 0 1px 2px rgba(16, 44, 33, .25); }
.hero p { margin: 0 0 14px; font-family: var(--head); font-size: 18px; }
.hero .btn { width: auto; min-height: 46px; padding: 10px 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }

.coll { padding: 20px 16px 8px; }
.coll-head h2, .coll-head h1 { font-size: 26px; }
.coll-head h2 a { color: inherit; text-decoration: none; }
.coll-head p { margin: -4px 0 12px; color: var(--muted); font-size: 15px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.card a { text-decoration: none; color: var(--ink); display: block; }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card a:hover img { transform: scale(1.03); }
.card-title { display: block; font-family: var(--head); margin-top: 8px; font-size: 17px; line-height: 1.25; }
.card-price { color: var(--muted); font-size: 14px; }
.tag { position: absolute; left: 8px; top: 8px; background: var(--coral); color: var(--deep) !important; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 99px; }

/* Product page */
.pdp { display: grid; gap: 0; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 24px 16px; } }
.gallery { position: relative; min-width: 0; }
.pdp > * { min-width: 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--soft); }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; height: auto; }
@media (min-width: 860px) { .slides { border-radius: var(--radius); } }
.slides-wrap { position: relative; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; z-index: 2; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-nav[hidden] { display: none; }
.gal-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gal-count { position: absolute; top: 10px; right: 10px; background: rgba(44,62,80,.78); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 999px; z-index: 2; }
.thumbs { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 860px) { .thumbs { padding: 10px 0; flex-wrap: wrap; } }
.thumbs button { flex: none; width: 60px; height: 75px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--soft); cursor: pointer; opacity: .7; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.thumbs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.info { padding: 4px 16px 24px; }
.info h1 { font-size: clamp(28px, 7.5vw, 40px); margin-top: 4px; }
.price { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.opener p { margin: 0 0 14px; font-size: 17px; }
.buy { display: grid; gap: 14px; margin: 8px 0 20px; }
.opt { border: 0; padding: 0; margin: 0; }
.opt legend { font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.opt legend b { font-weight: 400; color: var(--muted); }
.opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; cursor: pointer; font-size: 15px; }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pill.out span { color: #9aa5ae; text-decoration: line-through; }
.pill.out input:checked + span { color: #c9d1d7; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 15px; }
.field i { font-weight: 400; color: var(--muted); }
.field small { color: var(--muted); font-size: 13px; }
input[type=text], input[type=number], select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.beaded { display: grid; gap: 14px; }
.qty-row { display: flex; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.qty button { border: 0; background: none; width: 44px; height: 44px; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; border: 0; text-align: center; padding: 0; border-radius: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock { margin: 0; color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 20px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: 700 17px var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-coral { background: var(--coral); color: var(--deep); }
.btn-coral:hover { background: #f2645a; color: var(--deep); }
.btn:disabled { background: #b9c4c3; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-small { font: 600 15px var(--body); padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--card); cursor: pointer; color: var(--ink); }
.err { color: var(--err); margin: 0; font-size: 15px; }
.err:empty { display: none; }
.mto, .ship-note { margin: 0; font-size: 14px; color: var(--muted); }
.desc p { margin: 0 0 12px; }
.acc { border-top: 1px solid var(--line); padding: 12px 0; }
.acc summary { font-weight: 700; cursor: pointer; }
.acc h3 { font-size: 16px; margin-top: 12px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.sticky-buy span { font-weight: 700; font-size: 18px; white-space: nowrap; }
.sticky-buy .btn { min-height: 48px; }
@media (min-width: 860px) { .sticky-buy { display: none !important; } }
.more { border-top: 1px solid var(--line); }

/* Bag sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(29, 42, 51, .45); z-index: 40; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2); animation: up .22s ease-out; }
@media (min-width: 720px) { .sheet { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; animation: none; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
.sheet-head h2 { font-size: 24px; margin: 0; }
.x { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.sheet-body { overflow-y: auto; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.bag-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bag-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; }
.bag-line img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.bag-line h3 { font: 600 15px/1.3 var(--body); margin: 0; }
.bag-line .note { color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
.bag-line .lp { font-weight: 700; }
.bag-line .qty button { width: 34px; height: 34px; font-size: 17px; }
.bag-line .qty span { min-width: 22px; text-align: center; }
.bag-line .rm { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 13px; cursor: pointer; padding: 0; margin-left: 10px; }
.bag-empty { margin: 8px 0 20px; }
.bag-checkout { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.free-nudge { margin: 0; background: var(--peach); padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.ship-opts { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ship-opts legend { font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.ship-opt { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 15px; }
.ship-opt:has(input:checked) { border-color: var(--ink); }
.ship-opt input { margin: 0 10px 0 0; accent-color: var(--accent); }
.ship-opt label { display: flex; align-items: center; cursor: pointer; flex: 1; }
.code summary { cursor: pointer; font-size: 15px; color: var(--accent-dark); }
.code-row { display: flex; gap: 8px; margin-top: 8px; }
.code-msg { font-size: 14px; margin: 6px 0 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font-weight: 800; font-size: 18px; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 14px; z-index: 50; }

.page { padding: 28px 16px 40px; max-width: 680px; }
.page h3 { margin-top: 1.2em; font-size: 18px; }
.page .btn { width: auto; }
.foot { background: var(--teal); color: var(--deep); margin-top: 32px; padding: 28px 16px calc(90px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 12px 0; }
.foot a { color: var(--deep); font-weight: 500; }
.foot-tag { font-family: var(--head); font-size: 18px; }
.foot-small { font-size: 12px; }
.btn-pay { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 6px 20px rgba(0, 143, 124, .3); }
.sheet-body { min-height: 0; flex: 1; }
