/* 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; }

/* WhatsApp VIP band */
.wa-band { border-top: 1px solid #1b211c; background: #080a09; }
.wa-band .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.wa-icon { width: 56px; height: 56px; border: 1px solid #829d12; color: #829d12; display: grid; place-items: center; border-radius: 50%; }
.wa-text h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; margin: 6px 0 8px; }
.wa-text p { color: #9a9e9b; margin: 0; max-width: 560px; line-height: 1.6; }
@media (max-width: 760px) { .wa-band .wrap { grid-template-columns: 1fr; gap: 16px; text-align: left; } }

.footer-bottom { flex-wrap: wrap; }
.footer-bottom .credit { flex-basis: 100%; margin-top: 12px; font-size: 9px; color: #8b8f8c; }
.footer-bottom .credit a { color: #9a9e9b; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom .credit a:hover { color: #829d12; }

/* Hero WhatsApp invite */
.hero-wa { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 16px; border: 1px solid #1b211c; background: rgba(11,13,12,.7); color: #c9ccca; font-size: 13px; line-height: 1.4; text-decoration: none; transition: border-color .2s, color .2s; max-width: 100%; }
.hero-wa b { color: #f5f5f5; font-weight: 500; }
.hero-wa:hover { border-color: #829d12; color: #f5f5f5; }
.hero-wa-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #829d12; box-shadow: 0 0 0 0 rgba(130,157,18,.6); animation: waPulse 2s infinite; }
.hero-wa-go { color: #829d12; flex: none; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(130,157,18,.6); } 70% { box-shadow: 0 0 0 8px rgba(130,157,18,0); } 100% { box-shadow: 0 0 0 0 rgba(130,157,18,0); } }
@media (prefers-reduced-motion: reduce) { .hero-wa-dot { animation: none; } }
@media (max-width: 640px) { .hero-wa { font-size: 12px; } }

/* ---------- Competitions ---------- */
.nav-comp { color: var(--accent) !important; }
.cp-hero { padding: 56px 0 34px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, rgba(130,157,18,.16), transparent 60%); }
.cp-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; font-weight: 700; margin: 10px 0 14px; }
.cp-hero p { color: var(--muted); max-width: 620px; margin: 0; font-size: 15px; }
.cp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.cp-steps div { background: var(--panel); padding: 18px 20px; font-size: 13px; color: var(--muted); }
.cp-steps b { display: block; color: var(--text); font-size: 12px; letter-spacing: .12em; margin-bottom: 4px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.cp-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.cp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cp-media { position: relative; aspect-ratio: 4 / 3; background: #0b0d0c; overflow: hidden; }
.cp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-state { position: absolute; left: 12px; top: 12px; font-size: 10px; letter-spacing: .14em; padding: 6px 9px; background: rgba(5,7,6,.85); border: 1px solid var(--line-2); color: var(--muted); }
.cp-state.cp-live { background: var(--accent); border-color: var(--accent); color: #fff; }
.cp-state.cp-soon { border-color: var(--accent); color: var(--accent); }
.cp-state.cp-inline { position: static; display: inline-block; margin-bottom: 12px; }
.cp-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cp-body h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.3; }
.cp-value { color: var(--accent); font-size: 12px; letter-spacing: .06em; }
.cp-bar { height: 6px; background: #151a16; overflow: hidden; }
.cp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #6e8610, var(--accent-hi)); }
.cp-bar-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.cp-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.cp-price { font-size: 20px; font-weight: 500; }
.cp-price small, .cp-per { font-size: 11px; color: var(--muted); font-weight: 400; }
.cp-left { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-winner-line { font-size: 13px; color: var(--muted); }
.cp-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); }
.cp-empty h3 { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.cp-empty p { color: var(--muted); margin: 0 0 20px; }
.cp-muted { color: var(--dim); }
.cp-closes { font-size: 13px; color: var(--muted); margin: 10px 0 18px; }
.cp-closes strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-enter { border: 1px solid var(--line); background: var(--panel); padding: 20px; margin: 18px 0; }
.cp-q { border: 0; padding: 0; margin: 0 0 16px; }
.cp-q legend { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.cp-q label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); margin-bottom: 8px; cursor: pointer; }
.cp-q label:has(input:checked) { border-color: var(--accent); background: rgba(130,157,18,.08); }
.cp-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.cp-qty > span { margin-right: 6px; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.cp-qty label { cursor: pointer; }
.cp-qty input { position: absolute; opacity: 0; }
.cp-qty label span { display: inline-block; min-width: 44px; text-align: center; padding: 9px 10px; border: 1px solid var(--line-2); color: var(--text); }
.cp-qty input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.cp-qty input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cp-total { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cp-total strong { color: var(--text); font-size: 18px; margin-left: 6px; }
.cp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cp-fields .field:first-child { grid-column: 1 / -1; }
.cp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 6px 0 10px; line-height: 1.5; }
.cp-check a { color: var(--accent); }
.cp-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.cp-note a { color: var(--accent); }
.cp-msg { font-size: 13px; color: var(--accent); min-height: 18px; margin-top: 8px; }
.cp-free { border: 1px solid var(--line); padding: 14px 18px; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.cp-free summary { cursor: pointer; color: var(--text); font-weight: 500; letter-spacing: .06em; }
.cp-free address { font-style: normal; color: var(--text); margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--accent); }
.cp-free a { color: var(--accent); }
.cp-winner { border: 1px solid var(--accent); padding: 16px 18px; margin: 14px 0 18px; background: rgba(130,157,18,.08); line-height: 1.6; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) { .cp-steps { grid-template-columns: 1fr; } .cp-fields { grid-template-columns: 1fr; } .cp-enter { padding: 16px; } }

.cp-done { border: 1px solid var(--accent); background: rgba(130,157,18,.08); padding: 16px 18px; margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.cp-done p { margin: 6px 0 0; color: var(--muted); }
.cp-done b { color: var(--text, #f5f5f5); letter-spacing: .04em; }
