/* Honest Junk — Cheese Barks product page. Loaded after hj-home.css and hj-cheese-barks.css. */

.pdp-accent { color: var(--rose); }
.pdp .breadcrumb__inner { flex-wrap: wrap; row-gap: 2px; }
.pdp .breadcrumb__inner > * { white-space: nowrap; }

/* ── Notices (added to cart, errors) ─────────────────────── */
.pdp-notices .woocommerce-notices-wrapper:empty { display: none; }
.pdp-notices .woocommerce-message,
.pdp-notices .woocommerce-info,
.pdp-notices .woocommerce-error { list-style: none; margin: var(--sp4) 0 0; padding: 14px 18px; border-radius: var(--r-md); font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--mint); border-left: 4px solid var(--green); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp3); }
.pdp-notices .woocommerce-info { background: var(--butter); border-left-color: var(--cb-gold); }
.pdp-notices .woocommerce-error { background: var(--blush); border-left-color: var(--rose); display: block; }
.pdp-notices .woocommerce-message a,
.pdp-notices .woocommerce-info a,
.pdp-notices .woocommerce-error a { font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; order: 2; }

/* ── Hero: gallery + buy box ─────────────────────────────── */
.pdp-hero { background: var(--paper); padding: var(--sp7) 0 var(--sp9); }
.pdp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.pdp-gallery { min-width: 0; }
.pdp-gallery__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--cloud); border: 2px solid var(--ink); box-shadow: var(--shadow-sticker-lg); }
.pdp-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.pdp-gallery__track::-webkit-scrollbar { display: none; }
.pdp-gallery__track:focus-visible { box-shadow: inset 0 0 0 3px var(--rose); }
.pdp-gallery__slide { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; }
.pdp-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-gallery__tag { position: absolute; top: var(--sp4); left: var(--sp4); z-index: 2; background: var(--butter); color: var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 700; text-transform: capitalize; padding: 6px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-sticker); pointer-events: none; }
.pdp-gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.pdp-gallery__arrow:hover { box-shadow: 3px 3px 0 var(--ink); }
.pdp-gallery__arrow:active { transform: translateY(-50%) scale(.95); }
.pdp-gallery__arrow--prev { left: var(--sp4); }
.pdp-gallery__arrow--next { right: var(--sp4); }
.pdp-gallery__arrow[disabled] { opacity: .35; cursor: default; }
.pdp-gallery__thumbs { display: flex; gap: var(--sp3); margin-top: var(--sp5); flex-wrap: wrap; }
.pdp-gallery__thumb { width: 78px; height: 78px; border-radius: var(--r-md); overflow: hidden; border: 2px solid var(--cloud); padding: 0; background: var(--cloud); cursor: pointer; transition: border-color .12s; }
.pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-gallery__thumb.is-active { border-color: var(--ink); }
.pdp-gallery__thumb:hover { border-color: var(--ink-muted); }

.pdp-info { min-width: 0; padding-top: var(--sp2); }
.pdp-badges { display: flex; flex-wrap: wrap; gap: var(--sp2); margin-bottom: var(--sp6); }
.pdp-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px; border-radius: var(--r-pill); background: var(--blush); color: var(--ink); font-family: var(--font-display); font-size: 13px; font-weight: 700; line-height: 1.1; }
.pdp-badge svg { color: var(--rose); flex-shrink: 0; }
.pdp-title { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 68px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; color: var(--ink); margin-bottom: var(--sp5); }
.pdp-subtext { font-family: var(--font-mono); font-size: 16px; font-weight: 700; line-height: 1.55; color: var(--rose); margin-bottom: var(--sp5); max-width: 520px; }
.pdp-desc { font-family: var(--font-body); font-size: 16px; line-height: 1.75; color: var(--ink-soft); max-width: 520px; margin-bottom: var(--sp6); }

.pdp-buy { border-top: 1.5px solid var(--cloud); padding-top: var(--sp5); max-width: 520px; }
.pdp-buy__top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp4); margin-bottom: var(--sp5); }
.pdp-price { font-family: var(--font-display); font-size: 38px; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.01em; }
.pdp-price del { font-size: 22px; color: var(--ink-muted); font-weight: 700; margin-right: 6px; }
.pdp-buy__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pdp-stock { color: var(--green); }
.pdp-stock--out { color: var(--ink-muted); }
.pdp-pack { color: var(--ink-muted); }

.pdp-cart { display: flex; flex-wrap: wrap; gap: var(--sp3); align-items: stretch; }
.pdp-qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--paper); height: 56px; flex-shrink: 0; }
.pdp-qty__btn { width: 44px; height: 100%; border: 0; background: none; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); cursor: pointer; border-radius: var(--r-md); }
.pdp-qty__btn:hover { background: var(--cloud); }
.pdp-qty__input { width: 44px; height: 100%; border: 0; background: none; text-align: center; font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.pdp-qty__input::-webkit-outer-spin-button,
.pdp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-qty__input:focus-visible, .pdp-qty__btn:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; }
.pdp-cart__btn { flex: 1 1 200px; justify-content: center; height: 56px; padding: 0 24px; font-size: 16px; }
.pdp-cart__btn.loading { opacity: .65; pointer-events: none; }
.pdp-cart a.added_to_cart { flex-basis: 100%; text-align: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.pdp-cart__status { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--green); margin-top: var(--sp2); min-height: 1em; }
.pdp-cart__status:empty { display: none; }
.pdp-cart__status a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

.pdp-soldout { display: flex; align-items: center; gap: var(--sp4); flex-wrap: wrap; }
.pdp-soldout__btn { background: var(--cloud); color: var(--ink-muted); border-color: var(--cloud); cursor: not-allowed; height: 56px; padding: 0 28px; }
.pdp-soldout__btn:hover { transform: none; }
.pdp-soldout__link { font-family: var(--font-display); font-size: 14px; font-weight: 800; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }

.pdp-assure { display: flex; flex-wrap: wrap; gap: var(--sp3) var(--sp6); margin-top: var(--sp5); }
.pdp-assure li { display: inline-flex; align-items: center; gap: var(--sp2); font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); }
.pdp-assure svg { color: var(--ink); flex-shrink: 0; }
.pdp-assure a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Product information (tabs) ──────────────────────────── */
.pdp-tabs { display: flex; flex-wrap: wrap; gap: var(--sp3); margin-bottom: var(--sp6); }
.pdp-tab { font-family: var(--font-display); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; padding: 13px 26px; border-radius: var(--r-pill); border: 2px solid var(--paper); background: var(--paper); color: var(--ink); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.pdp-tab:hover { border-color: var(--ink); }
.pdp-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pdp-tab:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.pdp-panel[hidden] { display: none; }

.pdp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp5); margin-bottom: var(--sp5); }
.pdp-stat { background: var(--paper); border-radius: var(--r-xl); padding: var(--sp7) var(--sp5); text-align: center; }
.pdp-stat__num { font-family: var(--font-display); font-size: clamp(42px, 4.6vw, 58px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.pdp-stat__label { font-family: var(--font-display); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: var(--sp3) 0 var(--sp2); }
.pdp-stat__text { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 260px; margin: 0 auto; }

.pdp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp5); }
.pdp-feature { background: var(--paper); border-radius: var(--r-xl); padding: var(--sp6) var(--sp5); text-align: center; }
.pdp-feature__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--blush); color: var(--rose); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp4); }
.pdp-feature__title { font-family: var(--font-display); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.25; color: var(--ink); margin-bottom: var(--sp2); }
.pdp-feature__text { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.pdp-label { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: var(--sp5); align-items: start; }
.pdp-label__main { background: var(--paper); border-radius: var(--r-xl); padding: var(--sp7); }
.pdp-label__title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05; color: var(--ink); margin-bottom: var(--sp2); }
.pdp-label__sub { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); margin-bottom: var(--sp6); }
.pdp-inside { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp4); }
.pdp-inside__card { border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: var(--sp5); }
.pdp-inside__title { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: var(--sp2); }
.pdp-inside__text { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.pdp-statement { margin-top: var(--sp6); padding-top: var(--sp5); border-top: 1.5px solid var(--cloud); font-family: var(--font-body); font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.pdp-statement strong { color: var(--ink); }
.pdp-statement p + p { margin-top: var(--sp2); }

/* Nutrition Facts panel, styled after the printed label */
.nf-panel { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-md); padding: var(--sp4) var(--sp5) var(--sp5); color: var(--ink); }
.nf-panel__title { font-family: var(--font-display); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.01em; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.nf-panel__serving { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; padding: 8px 0; border-bottom: 8px solid var(--ink); }
.nf-panel__row { display: flex; justify-content: space-between; gap: var(--sp3); font-family: var(--font-mono); font-size: 13px; padding: 5px 0; border-bottom: 1px solid #D9D6CF; }
.nf-panel__row span:last-child { text-align: right; }
.nf-panel__row--cal { font-family: var(--font-display); font-size: 22px; font-weight: 900; padding: 6px 0; border-bottom: 4px solid var(--ink); }
.nf-panel__row--b { font-weight: 700; }
.nf-panel__row--i { padding-left: var(--sp4); font-size: 12px; color: var(--ink-soft); }
.nf-panel__row:nth-last-child(5) { border-bottom: 4px solid var(--ink); }
.nf-panel__note { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; color: var(--ink-muted); margin-top: var(--sp3); }

/* ── Recommended: other flavours ─────────────────────────── */
.rec-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp4); }
.rec-card { background: var(--paper); border: 1.5px solid var(--cloud); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.rec-card:hover { box-shadow: var(--shadow-sticker); transform: translateY(-3px); }
.rec-card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--cloud); overflow: hidden; }
.rec-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-card__tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--butter); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: capitalize; padding: 4px 10px; border-radius: var(--r-pill); box-shadow: 2px 2px 0 var(--ink); }
.rec-card__body { padding: var(--sp4) var(--sp4) var(--sp3); flex: 1; }
.rec-card__name { font-family: var(--font-display); font-size: 15px; font-weight: 900; text-transform: uppercase; line-height: 1.05; color: var(--ink); margin-bottom: var(--sp2); }
.rec-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rec-card__sub { font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1.45; color: var(--rose); margin-bottom: var(--sp2); }
.rec-card__cal { font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.rec-card__foot { border-top: 1px solid var(--cloud); padding: var(--sp3) var(--sp4) var(--sp4); display: flex; flex-direction: column; align-items: stretch; gap: var(--sp3); }
.rec-card__foot .btn, .rec-card__out { justify-content: center; text-align: center; }
.rec-card__price { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--ink); }
.rec-card__out { background: var(--cloud); border-color: var(--cloud); color: var(--ink-muted); cursor: default; }
.rec-card__out:hover { transform: none; }
.rec-card--soldout .rec-card__img img { filter: grayscale(.35); opacity: .85; }
.rec-card__foot a.added_to_cart,
.also-card__row a.added_to_cart { flex-basis: 100%; text-align: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.also-card__row { flex-wrap: wrap; }
.also-card__row a.added_to_cart { text-align: center; }
.also-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Sticky buy bar ──────────────────────────────────────── */
.pdp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--paper); border-top: 1.5px solid var(--cloud); box-shadow: 0 -6px 24px rgba(26,26,26,0.08); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.pdp-sticky.is-visible { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.pdp-sticky__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp4); padding-top: var(--sp3); padding-bottom: var(--sp3); }
.pdp-sticky__info { min-width: 0; }
.pdp-sticky__title { font-family: var(--font-display); font-size: 18px; font-weight: 900; text-transform: uppercase; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky__meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.pdp-cart--sticky { flex-wrap: nowrap; flex-shrink: 0; }
.pdp-cart--sticky .pdp-qty, .pdp-cart--sticky .pdp-cart__btn { height: 48px; }
.pdp-cart--sticky .pdp-cart__btn { flex: 0 0 auto; padding: 0 24px; font-size: 14px; }
.pdp-cart--sticky a.added_to_cart { display: none; }
.hj-product .footer { padding-bottom: calc(var(--sp6) + 76px); }
/* Keep Google's reCAPTCHA badge (from the site's contact forms) clear of the sticky Add to Cart */
.hj-product .grecaptcha-badge { bottom: 92px !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .rec-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 31%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: -4px -4px 0; scrollbar-width: thin; }
  .rec-card { scroll-snap-align: start; }
  .rec-card:hover { transform: none; }
}
@media (max-width: 900px) {
  .pdp-hero { padding-top: var(--sp5); }
  .pdp-hero__grid { grid-template-columns: 1fr; gap: var(--sp7); }
  .pdp-gallery { max-width: 560px; width: 100%; margin: 0 auto; }
  .pdp-buy, .pdp-desc, .pdp-subtext { max-width: none; }
  .pdp-label { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pdp-gallery__frame { box-shadow: var(--shadow-sticker); }
  .pdp-gallery__arrow { width: 38px; height: 38px; }
  .pdp-gallery__thumbs { margin-top: var(--sp4); }
  .pdp-gallery__thumb { width: 64px; height: 64px; }
  .pdp-badges { margin-bottom: var(--sp5); }
  .pdp-badge { font-size: 12px; padding: 6px 12px 6px 9px; }
  .pdp-subtext { font-size: 14px; }
  .pdp-desc { font-size: 15px; }
  .pdp-price { font-size: 32px; }
  .pdp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp2); }
  .pdp-tab { padding: 11px 10px; font-size: 12px; line-height: 1.2; }
  .pdp-stats { grid-template-columns: 1fr; gap: var(--sp3); }
  .pdp-stat { padding: var(--sp5); display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp4); text-align: left; align-items: center; }
  .pdp-stat__num { font-size: 40px; grid-row: span 2; min-width: 112px; }
  .pdp-stat__label { margin: 0 0 4px; font-size: 13px; }
  .pdp-stat__text { margin: 0; font-size: 13px; }
  .pdp-features { grid-template-columns: 1fr 1fr; gap: var(--sp3); }
  .pdp-feature { padding: var(--sp5) var(--sp3); }
  .pdp-feature__icon { width: 52px; height: 52px; }
  .pdp-feature__title { font-size: 13px; }
  .pdp-feature__text { font-size: 13px; }
  .pdp-label__main { padding: var(--sp5); }
  .pdp-inside { grid-template-columns: 1fr; gap: var(--sp3); }
  .rec-grid { grid-auto-columns: 64%; }
  .pdp-sticky__title { font-size: 15px; }
  .pdp-cart--sticky .pdp-qty { display: none; }
  .pdp-cart--sticky .pdp-cart__btn { padding: 0 18px; }
}
@media (max-width: 380px) {
  .pdp-features { grid-template-columns: 1fr; }
  .pdp-cart--sticky .pdp-cart__btn svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-gallery__track { scroll-behavior: auto; }
  .pdp-sticky, .pdp-sticky.is-visible { transition: none; }
}
