/* Hat page info column (owner-approved 2026-10-13): calm and in buying order —
   name + price → one Hat Club line (+ its conditions) → colours → in stock + arrival → buy →
   shipping/trust in one quiet line → Hot Deal as one slim row → tidy dropdowns.
   Loaded only on /hats/<slug> (product_pages.py), after assets/site.css. */

.pp .pp-info { gap: 12px; }
.pp .pp-info .eyebrow { font-size: 12px; letter-spacing: 0.1em; }
.pp .pp-title { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.08; }
.pp .pp-price-now { font-size: 1.5rem; }

/* Hat Club: no box, no badge row — a pill, the member price, a link; the conditions underneath */
.pp .pp-member { display: grid; gap: 3px; padding: 0; border: 0; background: none; margin-top: -4px; }
.pp .pp-member-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 14.5px; }
.pp .pp-member-badge { padding: 3px 8px 3px 7px; font-size: 10.5px; letter-spacing: 0.08em; }
.pp .pp-member-price { font-size: 14.5px; }
.pp .pp-member-price strong { font: 700 15px/1.2 var(--font-body); letter-spacing: 0; }
.pp .pp-member-how { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.pp .pp-member-how:hover { text-decoration-color: currentColor; }
.pp .pp-member-fine { font-size: 12.5px; line-height: 1.45; }
.pp .pp-member.is-member { background: none; }
.pp .pp-member.is-member .pp-member-price strong { color: #17663b; }

/* colours: a tidy row of photo swatches */
.pp .pp-color { font-size: 14px; color: var(--muted); }
.pp .pp-color strong { color: var(--ink); }
.pp .pp-info .pp-colors { margin: -2px 0 0; gap: 6px; }
.pp .pp-info .pp-colors h2 { font-size: 12.5px; font-weight: 600; }
.pp .pp-info .pp-swatch { width: 64px; }
.pp .pp-info .pp-swatch img { width: 60px; height: 60px; border-width: 1px; }
.pp .pp-info .pp-swatches { scrollbar-width: none; }
.pp .pp-info .pp-swatches::-webkit-scrollbar { display: none; }
.pp .pp-info .pp-swatch-label {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-align: center;
  font-size: 11.5px; font-weight: 500; line-height: 1.25; color: var(--muted);
}
.pp .pp-info .pp-swatch-label .pp-dot { display: none; } /* the colour dot: the photo already shows it */

/* in stock + arrival, together, right above the buttons */
.pp .pp-avail { display: grid; gap: 2px; }
.pp .pp-avail .pp-stock { font-size: 14.5px; }
.pp .pp-avail .dp-box { margin: 0; font-size: 14px; }

.pp .pp-buy { padding: 14px 0 12px; gap: 12px; }

/* shipping + trust: one quiet line of small checks */
.pp .pp-ship-line { margin: 0; font-size: 13px; color: var(--muted); }
.pp .pp-ship-line a { font-weight: 600; }
.pp .pp-trust { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.pp .pp-trust li { gap: 5px; align-items: center; }
.pp .pp-trust li::before { font-size: 12px; }
.pp .pp-trust a { color: inherit; }

/* Hot Deal: one slim row (the conditions text stays as written) */
.pp .pp-hotdeal { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 2px 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
.pp .pp-hotdeal-badge { grid-column: 1 / -1; font-size: 11px; }
.pp .pp-hotdeal p { font-size: 13.5px; line-height: 1.45; }
.pp .pp-hotdeal .hd-add { grid-column: 2; grid-row: 2; justify-self: end; width: auto; min-height: 38px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; }
.pp .pp-hotdeal .hd-status:empty { display: none; }
.pp .pp-hotdeal .hd-status { grid-column: 1 / -1; }
@media (max-width: 400px) {
  .pp .pp-hotdeal { grid-template-columns: minmax(0, 1fr); }
  .pp .pp-hotdeal .hd-add { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* the rest folds away: Description (open), Size guide, Details, Shipping and returns */
.pp .pp-more { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.pp .pp-more .pp-details { border-bottom: 1px solid var(--line); padding: 0; }
.pp .pp-more .pp-details > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0; list-style: none;
  font-size: 15px; font-weight: 700;
}
.pp .pp-more .pp-details > summary::-webkit-details-marker { display: none; }
.pp .pp-more .pp-details > summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease;
}
.pp .pp-more .pp-details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.pp .pp-more .pp-details > :not(summary) { margin-bottom: 14px; }
.pp .pp-more .pp-desc { gap: 10px; font-size: 15px; line-height: 1.6; }
.pp .pp-more .pp-details .pp-fit-guide { margin-top: 0; }
.pp .pp-sku { margin-top: 2px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .pp .pp-more .pp-details > summary::after { transition: none; } }

/* ---- Sheet mode: this page inside the shop's quick sheet (/hats/<slug>?sheet=1 in a frame; product-page.js
   adds html.in-sheet). Only the buying part shows: photos, name, price, Hat Club line + conditions,
   colours, availability + arrival, Add to cart, Apple Pay / Google Pay, the shipping line, and the
   dropdowns (Description, Size guide, Details, Shipping & returns). Reviews, pairs and suggestions are
   on the full page ("See full details" under the sheet). */
html.in-sheet, html.in-sheet body { background: var(--surface); }
html.in-sheet body { padding: 0 !important; min-height: 0; }
/* the sheet takes a pull-down at the top (product-page.js hands it over): no rubber band in here */
html.in-sheet, html.in-sheet body { overscroll-behavior-y: none; }
html.in-sheet .announce-bar, html.in-sheet .site-header, html.in-sheet .tabbar, html.in-sheet .site-footer,
html.in-sheet .pp-crumbs, html.in-sheet .pp-thumbs, html.in-sheet .pp-trust, html.in-sheet .pp-hotdeal,
html.in-sheet .pp-sku, html.in-sheet .pp-reviews, html.in-sheet .pairs, html.in-sheet .pp-related,
html.in-sheet .chc-chat-launch, html.in-sheet .chc-chat, html.in-sheet .gw-tab, html.in-sheet .get-app, html.in-sheet .install-card,
html.in-sheet .dk-cart-toast, html.in-sheet .skip-link, html.in-sheet .pp-cart-link { display: none !important; }
html.in-sheet main.pp { padding: 0 !important; margin: 0; }
html.in-sheet .pp .wrap { padding: 0 18px 10px; }
html.in-sheet .pp .pp-buy-row { flex-wrap: nowrap; }
html.in-sheet .pp .pp-buy-row .pp-qty { flex: none; }
html.in-sheet .pp .pp-buy-row .pp-add { flex: 1 1 auto; min-width: 0; }
html.in-sheet .pp .pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; }
html.in-sheet .pp .pp-gallery { position: static; }
html.in-sheet .pp .pp-photo { max-height: 48vh; margin: 0 auto; width: min(100%, 48vh); box-shadow: none; border: 1px solid var(--line); }
html.in-sheet .pp .pp-title { font-size: 1.35rem; }
html.in-sheet .pp .pp-price-now { font-size: 1.3rem; }
html.in-sheet .pp .pp-buy { border-bottom: 0; padding-bottom: 4px; }

/* Quick sheet: a wallet that won't run framed → "Open the full page" (assets/buy-now.js offerFullPage) */
.pp-express-full { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.pp-express-full[hidden] { display: none; }
.pp-express-full a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Friend's referral saved in this browser (script.js showReferralOnHatPage) */
.pp-referral-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #f4f1ea); color: var(--ink); font-size: 14px; line-height: 1.4; }

/* The hat's own short clip under the photos (product_pages.clip_html + assets/video.js). */
.pp-clip { margin-top: 14px; border-radius: var(--radius-lg, 18px); }
