/* Example Golf Shop: a made-up shop used to show Ace's widget on a shop's own pages. It is not a real shop and sells nothing.
   The pages are written by scripts/make-example-shop.mjs. This file, shop.js and favicon.svg are written by hand. */
:root {
  --navy: #111827; --chalk: #f4f5f7; --paper: #fff; --sand: #c9d3e3; --flag: #c0392b;
  --brand: #0d4a8f; --brand-2: #0a3a73; --muted: #5b6472; --line: #dfe3ea;
  --head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; font: 1rem/1.55 var(--sans); color: var(--navy); background: var(--chalk); }
svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--paper); }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

/* The note at the top: what this is */
.note { background: var(--navy); color: #dfe5e1; font-size: .8125rem; }
.note-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1.25rem; padding-block: .55rem; }
.note p { margin: 0; }
.note a { color: #fff; text-underline-offset: .2em; }
.note :focus-visible { outline-color: #fff; }

/* Header */
.head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.375rem/1 var(--head); letter-spacing: -.015em; color: var(--brand); }
.pin { width: 1.75rem; height: 1.75rem; color: var(--brand); }
.nav { display: flex; gap: .25rem 1.5rem; max-width: 100%; overflow-x: auto; padding-block: .25rem; font-size: .9375rem; }
.nav a { white-space: nowrap; text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--sand); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); }
@media (max-width: 47.99rem) { .nav { flex-basis: 100%; } }

/* Home page: a plain promotional banner in the shop's blue */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 100%); }
.hero::after { content: ""; position: absolute; top: 50%; right: -7rem; width: min(34rem, 70vw); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06) 58%, rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: clamp(2.75rem, 7vw, 5.25rem); }
.hero h1 { max-width: 18ch; margin: 0 0 1.75rem; font: 800 clamp(2.1rem, 5vw, 3.6rem)/1.06 var(--head); letter-spacing: -.025em; }
.hero :focus-visible { outline-color: #fff; }
.btn { display: inline-block; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 2px; font: 600 1rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.btn-light { background: #fff; color: var(--brand); }
.btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-dark { width: 100%; background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); }
.btn-dark:disabled { background: #a9b3c2; cursor: not-allowed; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
.band { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.sec-head h2 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2rem)/1.15 var(--head); }
.sec-head a { font-size: .9375rem; text-underline-offset: .2em; }
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 47.99rem) { .tile:last-child { grid-column: 1 / -1; } }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile:last-child { grid-column: span 2; } }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 2.25rem; min-height: 8.5rem; padding: 1rem 1.1rem; border-radius: 2px; background: var(--tint); text-decoration: none; }
.tname { font: 700 1.5rem/1.1 var(--head); }
.tcount { color: var(--muted); font-size: .875rem; }
.tile:hover .tname { text-decoration: underline; text-underline-offset: .2em; }

/* Product cards. The sheet has no photos, so a plate carries the model name. */
.t-drivers { --tint: #e2e9f3; } .t-fairway { --tint: #e8ecf4; } .t-hybrids { --tint: #ebeef5; } .t-irons { --tint: #dfe5ee; } .t-wedges { --tint: #e5e9f0; } .t-putters { --tint: #e1e7ef; } .t-extras { --tint: #e9ecf1; }
.grid { display: grid; gap: 1.75rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; color: inherit; text-decoration: none; }
.plate { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 2px; background: var(--tint); }
.plate::before { content: ""; position: absolute; top: -14%; right: -12%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(17, 24, 39, .06); }
.mname { position: absolute; right: 1rem; bottom: .9rem; left: 1rem; font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.05 var(--head); letter-spacing: -.005em; }
.plate-long .mname { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.mname small { display: block; margin-top: .4rem; color: var(--muted); font: 400 .8125rem/1.2 var(--sans); }
.tag { position: absolute; top: .7rem; left: .7rem; z-index: 1; padding: .2rem .5rem; border-radius: 2px; background: var(--flag); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3; }
.tag-out { background: var(--paper); color: var(--muted); }
.cinfo { display: block; padding-top: .7rem; }
.maker { display: block; color: var(--muted); font-size: .8125rem; }
.ctitle { display: block; margin-block: .1rem .35rem; font-weight: 500; line-height: 1.3; }
.card:hover .ctitle { text-decoration: underline; text-underline-offset: .2em; }
.price { font-weight: 600; }
.price.sale { color: var(--flag); }
.was { margin-left: .35rem; color: var(--muted); font-size: .9375rem; }

/* Collection pages */
.crumbs { padding-block: 1.1rem .5rem; font-size: .875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { text-underline-offset: .2em; }
.chead { display: flex; align-items: baseline; gap: 1rem; margin: .5rem 0 1.25rem; }
.chead h1 { margin: 0; font: 700 clamp(2rem, 4.5vw, 3rem)/1.1 var(--head); letter-spacing: -.01em; }
.count { margin: 0; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; padding-block: .9rem; border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--navy); font: inherit; font-size: .875rem; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.sort { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--muted); }
.sort select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--navy); font: inherit; font-size: .9375rem; }

/* Product pages */
.pdp { display: grid; gap: 2rem; padding-top: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .pdp { gap: 3rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.plate-xl { aspect-ratio: 6 / 5; }
.plate-xl .mname { right: 1.5rem; bottom: 1.4rem; left: 1.5rem; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.plate-xl.plate-long .mname { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.plate-xl .mname small { font-size: 1rem; }
.plate-xl .tag { top: 1rem; left: 1rem; }
.buy .maker { font-size: .9375rem; }
.buy h1 { margin: .15rem 0 .75rem; font: 700 clamp(1.75rem, 3.6vw, 2.4rem)/1.12 var(--head); letter-spacing: -.01em; }
.pricebig { margin: 0 0 .25rem; font-size: 1.5rem; }
.pricebig .was { font-size: 1.0625rem; }
.save { margin-left: .5rem; color: var(--flag); font-size: .9375rem; font-weight: 600; }
.stock { position: relative; margin: 0 0 1.5rem; padding-left: 1.1rem; font-size: .9375rem; }
.stock::before { content: ""; position: absolute; top: .5em; left: 0; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); }
.stock.out::before { background: #98a2b3; }
.hand { margin: 0 0 1.25rem; padding: 0; border: 0; }
.hand legend { margin-bottom: .4rem; padding: 0; color: var(--muted); font-size: .875rem; }
.hand label { position: relative; display: inline-block; margin-right: .5rem; }
.hand input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.hand span { display: block; min-width: 8rem; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); text-align: center; }
.hand input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.hand input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.choice { margin-bottom: .75rem; }
.choice label { margin: 0 .5rem .5rem 0; }
.choice span { min-width: 0; padding: .5rem .9rem; font-size: .9375rem; }
.bag-note { min-height: 1.5rem; margin: .75rem 0 0; color: var(--muted); font-size: .9375rem; }
.facts { margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.more { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* Footer. The bottom space keeps the widget's button clear of the last line. */
.foot { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-block: 2.5rem 6.5rem; background: var(--navy); color: #c3cad6; font-size: .9375rem; }
.foot-in { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 47.99rem) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
.foot p { max-width: 34rem; margin: 0 0 .75rem; }
.foot a { color: #fff; text-underline-offset: .2em; }
.foot :focus-visible { outline-color: #fff; }
.foot-name { color: #fff; font: 700 1.375rem/1.2 var(--head); }
.foot ul { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
