/* GolfBallers UK – shop: product page, bag drawer, card actions. Uses the tokens from style-*.css. */

/* Cards */
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--accent-hi); }
.product-card .add-bag { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-size: 11px; color: var(--accent); }
.product-card .add-bag:hover { text-decoration: underline; }
.product-card .add-bag:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* Header bag count */
.header-actions [data-bag-count][hidden] { display: none; }

/* Product page */
.product-page { padding: 32px 0 72px; }
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-main { background: var(--panel); border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.pd-thumbs button { padding: 0; border: 1px solid var(--line); background: var(--panel); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.pd-thumbs button[aria-current="true"], .pd-thumbs button:hover { border-color: var(--accent); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { position: sticky; top: 24px; }
.pd-info .tag { display: inline-block; background: var(--accent); color: #0b0d0c; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 3px 7px; margin-bottom: 14px; }
.pd-title { font-size: 26px; font-weight: 400; line-height: 1.25; letter-spacing: 0; text-transform: none; margin: 0 0 14px; }
.pd-price { font-size: 30px; font-weight: 400; margin-bottom: 22px; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 24px; }
.pd-facts > div { background: var(--panel); padding: 10px 14px; }
.pd-facts dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pd-facts dd { margin: 3px 0 0; font-size: 14px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pd-actions .btn { flex: 1 1 200px; }
.pd-actions .btn:disabled { opacity: .6; cursor: default; }
.pd-notes { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.pd-notes li::before { content: "✓"; color: var(--accent); margin-right: 10px; }
.pd-more h2 { font-size: 12px; letter-spacing: .14em; font-weight: 500; margin: 28px 0 12px; }
.pd-more p { color: var(--muted); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.pd-spec { margin: 0; border-top: 1px solid var(--line); }
.pd-spec > div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pd-spec dt { color: var(--dim); }
.pd-spec dd { margin: 0; }
.pd-ref { color: var(--dim); font-size: 11px; margin-top: 24px; }
.pd-missing { max-width: 560px; padding: 48px 0; }
.pd-loading { color: var(--muted); padding: 80px 0; }

/* Bag drawer */
.bag-drawer[hidden] { display: none; }
.bag-drawer { position: fixed; inset: 0; z-index: 1000; }
.bag-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 13px; letter-spacing: .16em; font-weight: 500; margin: 0; }
.bag-x { background: none; border: 0; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.bag-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.bag-empty { color: var(--muted); padding: 24px 0; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 72px; height: 72px; object-fit: cover; background: var(--panel); }
.bag-name { color: var(--text); font-size: 13px; line-height: 1.4; text-decoration: none; }
.bag-name:hover { color: var(--accent-hi); }
.bag-line .spec { font-size: 11px; color: var(--dim); margin-top: 4px; }
.bag-line .price { font-size: 14px; margin-top: 6px; }
.bag-remove { background: none; border: 0; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; padding: 2px; }
.bag-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.bag-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--muted); }
.bag-total { color: var(--text); font-size: 16px; padding: 10px 0 16px; }
.bag-checkout { width: 100%; }
.bag-note { color: var(--dim); font-size: 11px; line-height: 1.5; margin: 8px 0; }
.bag-checkout[aria-busy="true"], [data-buy-now][aria-busy="true"] { opacity: .6; pointer-events: none; }
html.bag-open { overflow: hidden; }

@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .pd-info { position: static; }
  .pd-title { font-size: 22px; }
  .pd-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin: 0 0 16px; z-index: 5; }
}

/* Forms */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note a { color: var(--accent); }

/* Legal pages */
.legal-page { padding: 48px 0 80px; }
.legal-page .wrap > * { max-width: 760px; }
.legal-page h1 { font-size: 34px; font-weight: 400; letter-spacing: .02em; margin: 0 0 8px; }
.legal-page .updated { color: var(--dim); font-size: 12px; margin-bottom: 32px; }
.legal-page h2 { font-size: 13px; letter-spacing: .14em; font-weight: 500; margin: 36px 0 12px; text-transform: uppercase; }
.legal-page p, .legal-page li { color: #c9ccc9; font-size: 15px; line-height: 1.75; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page li { margin-bottom: 6px; }
.legal-page li::marker { color: var(--accent); }
.legal-page a { color: var(--accent); }
.legal-page table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); color: #c9ccc9; vertical-align: top; }

/* HQ address */
.footer-hq { font-style: normal; margin-top: 18px; font-size: 11px; line-height: 1.7; color: #9a9e9b; }
.footer-hq strong { display: block; color: #829d12; font-size: 10px; letter-spacing: 2px; font-weight: 500; margin-bottom: 4px; }
.footer-hq a { color: #e5e6e5; }
.hq-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hq-card { border: 1px solid #1b211c; background: #0b0d0c; padding: 32px; }
.hq-card address { font-style: normal; font-size: 18px; line-height: 1.5; color: #f5f5f5; margin-bottom: 18px; }
.hq-card ul { list-style: none; padding: 0; margin: 0 0 24px; color: #9a9e9b; font-size: 14px; line-height: 2; }
.hq-card li::before { content: "— "; color: #829d12; }
@media (max-width: 760px) { .hq-grid { grid-template-columns: 1fr; gap: 24px; } .hq-card { padding: 24px; } }
.hq-visit h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 400; margin: 10px 0 16px; }

.topbar a.seller { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s; }
.topbar a.seller:hover { opacity: .75; }
