/* ==========================================================================
   product.css — Single product page layout.
   Tokens live in global.css. Gallery CSS lives in global.css (loads last).
   ========================================================================== */

/* ── TWO-COLUMN WRAP ── */
.tp2-wrap {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: start;
  max-width: var(--max, 1200px);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── RIGHT COLUMN ── */
.tp2-config { display: block; min-width: 0; }

/* ── Hide the WC add-ons checkbox UI — kept for JS price calculation only ── */
.tp2-addons-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ── BUY FOOTER — plain flow, no sticky ── */
.tp2-buy-footer {
  border-top: 1px solid var(--tp-border, #e8e4de);
  padding: 20px 0 4px;
  margin-top: 8px;
}
.tp2-buy-footer__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tp2-buy-footer__total { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 32px; font-weight: 400; color: var(--tp-text, #111); line-height: 1; }
.tp2-buy-footer__note { font-size: 12px; color: var(--tp-muted, #777); }
.tp2-buy-footer__actions { display: flex; gap: 12px; align-items: stretch; }

/* ── BREADCRUMB ── */
.tp2-breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tp-muted, #777); margin-bottom: 16px; }
.tp2-breadcrumb a { color: var(--tp-muted, #777); text-decoration: none; }
.tp2-breadcrumb a:hover { color: var(--tp-green, #2d5a3d); }
.tp2-breadcrumb svg { fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }

/* ── TITLE / SHORT DESC ── */
.tp2-title { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: clamp(24px, 2.8vw, 38px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; color: var(--tp-text, #111); }
.tp2-short-desc { font-size: 15px; line-height: 1.65; color: #555; margin: 0 0 16px; }

/* ── PRICE ROW ── */
.tp2-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.tp2-price { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 34px; font-weight: 400; color: var(--tp-text, #111); transition: opacity .2s; }
.tp2-delivery-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--tp-green-lt, #eef5f0); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--tp-green, #2d5a3d); }
.tp2-delivery-badge svg { fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.tp2-price-note { font-size: 12px; color: #aaa; margin: 0 0 12px; min-height: 18px; }

/* ── ATTRIBUTE SECTIONS ── */
.tp2-section { border-top: 1px solid var(--tp-border, #e8e4de); padding: 18px 0; }
.tp2-section-label { display: flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-muted, #777); margin: 0 0 14px; }
.tp2-selected-val { font-size: 12px; font-weight: 500; color: var(--tp-green, #2d5a3d); letter-spacing: 0; text-transform: none; margin-left: 8px; }
.tp2-selected-val:not(:empty)::before { content: '— '; }

/* ── TEXT PILLS ── */
.tp2-option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tp2-pill { border: 1.5px solid var(--tp-border, #e8e4de); border-radius: var(--tp-radius-sm, 10px); background: #fff; padding: 9px 18px; font-size: 14px; font-family: 'Urbanist', Arial, sans-serif; cursor: pointer; color: var(--tp-text, #111); transition: border-color .15s, background .15s; }
.tp2-pill:hover { border-color: var(--tp-green, #2d5a3d); background: var(--tp-green-lt, #eef5f0); }
.tp2-pill.is-active { border-color: var(--tp-green, #2d5a3d); background: var(--tp-green, #2d5a3d); color: #fff; font-weight: 600; }

/* ── SWATCH PILLS ── */
.tp2-option-pills.has-swatches { gap: 14px; }
.tp2-pill--swatch { display: flex !important; flex-direction: column; align-items: center; gap: 6px; padding: 0 !important; border: none !important; background: transparent !important; }
.tp2-pill--swatch:hover { background: transparent !important; }
.tp2-swatch-circle { width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--tp-border, #e8e4de); transition: border-color .15s, box-shadow .15s, transform .15s; flex-shrink: 0; display: block; overflow: hidden; }
.tp2-swatch-circle--img { background-size: cover; background-position: center; }
.tp2-swatch-circle--text { background: var(--tp-beige, #f7f4ef); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--tp-muted, #777); text-transform: uppercase; }
.tp2-pill--swatch:hover .tp2-swatch-circle { border-color: var(--tp-green, #2d5a3d); transform: scale(1.06); }
.tp2-pill--swatch.is-active .tp2-swatch-circle { border-color: var(--tp-green, #2d5a3d); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tp-green, #2d5a3d); transform: scale(1.04); }
.tp2-pill__label { font-size: 11px; color: var(--tp-muted, #777); text-align: center; white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; font-family: 'Urbanist', Arial, sans-serif; transition: color .15s; }
.tp2-pill--swatch:hover .tp2-pill__label, .tp2-pill--swatch.is-active .tp2-pill__label { color: var(--tp-green, #2d5a3d); }
.tp2-pill--swatch.is-active .tp2-pill__label { font-weight: 600; }

/* ── INCLUDED GRID ── */
.tp2-included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.tp2-included-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #333; }
.tp2-included-item svg { flex-shrink: 0; fill: none; stroke: var(--tp-green, #2d5a3d); stroke-width: 1.8; margin-top: 1px; }

/* ── QTY ── */
.tp2-qty-row { display: flex; align-items: stretch; border: 1.5px solid var(--tp-border, #e8e4de); border-radius: var(--tp-radius-sm, 10px); overflow: hidden; flex-shrink: 0; }
.tp2-qty-btn { width: 44px; background: #fff; border: none; font-size: 20px; cursor: pointer; color: var(--tp-text, #111); transition: background .15s; }
.tp2-qty-btn:hover { background: var(--tp-beige, #f7f4ef); }
.tp2-qty-input { width: 52px; border: none; border-left: 1px solid var(--tp-border, #e8e4de); border-right: 1px solid var(--tp-border, #e8e4de); text-align: center; font-size: 16px; font-family: 'Urbanist', Arial, sans-serif; -moz-appearance: textfield; }
.tp2-qty-input::-webkit-inner-spin-button, .tp2-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── ADD TO CART ── */
.tp2-add-btn { flex: 1; min-height: 50px; background: var(--tp-text, #111); color: #fff; border: none; border-radius: var(--tp-radius-sm, 10px); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; font-family: 'Urbanist', Arial, sans-serif; cursor: pointer; letter-spacing: .03em; transition: background .15s, transform .1s; }
.tp2-add-btn:hover:not(:disabled) { background: var(--tp-green, #2d5a3d); transform: translateY(-1px); }
.tp2-add-btn:disabled { background: #bbb; cursor: not-allowed; }
.tp2-add-btn svg { fill: none; stroke: #fff; stroke-width: 1.8; flex-shrink: 0; }

/* ── TRUST ── */
.tp2-trust { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0 0; }
.tp2-trust span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #777; }
.tp2-trust svg { fill: none; stroke: var(--tp-green, #2d5a3d); stroke-width: 1.8; flex-shrink: 0; }
.tp2-trust--compact { padding-top: 12px; gap: 10px; }

/* ══════════════════════════════════════════════════════
   ACCORDIONS — below trust strip, inside .tp2-config
   ══════════════════════════════════════════════════════ */
.tp2-accordions { margin-top: 6px; border-top: 1px solid var(--tp-border, #e8e4de); }
.tp2-acc { border-bottom: 1px solid var(--tp-border, #e8e4de); }
.tp2-acc summary { list-style: none; }
.tp2-acc summary::-webkit-details-marker { display: none; }
.tp2-acc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; user-select: none; color: var(--tp-text, #111); transition: color .15s; }
.tp2-acc__head:hover { color: var(--tp-green, #2d5a3d); }
.tp2-acc__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: inherit; }
.tp2-acc__title svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tp2-acc__chevron { flex-shrink: 0; fill: none; stroke: var(--tp-muted, #777); stroke-width: 2; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.tp2-acc[open] > .tp2-acc__head .tp2-acc__chevron { transform: rotate(180deg); stroke: var(--tp-green, #2d5a3d); }
.tp2-acc[open] > .tp2-acc__head { color: var(--tp-green, #2d5a3d); }
.tp2-acc__body { padding: 0 0 18px; font-size: 14px; line-height: 1.7; color: #444; }
.tp2-acc__body ul { margin: 0; padding-left: 18px; }
.tp2-acc__body li { margin-bottom: 5px; }
.tp2-acc__body strong, .tp2-acc__body b { color: #222; }
.tp2-acc__body p { margin: 0 0 8px; }
.tp2-acc__body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tp2-acc__body table th, .tp2-acc__body table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--tp-border, #e8e4de); }
.tp2-acc__body table th { font-weight: 600; color: #555; width: 40%; }
.tp2-acc__body--docs { display: flex; flex-direction: column; gap: 8px; }
.tp2-acc__doc { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--tp-beige, #f7f4ef); border: 1px solid var(--tp-border, #e8e4de); border-radius: var(--tp-radius-sm, 10px); text-decoration: none; font-size: 13px; font-weight: 500; color: var(--tp-text, #111); transition: border-color .15s, color .15s; }
.tp2-acc__doc:hover { border-color: var(--tp-green, #2d5a3d); color: var(--tp-green, #2d5a3d); }
.tp2-acc__doc svg { fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.tp2-acc__dl { margin-left: auto; opacity: .5; }
.tp2-acc__body--video iframe, .tp2-acc__body--video video { width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: none; display: block; }

/* ── FLOATING STICKY BAR ── */
.tp2-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--tp-border, #e8e4de); box-shadow: 0 -4px 32px rgba(0,0,0,.10); z-index: 150; transform: translateY(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.tp2-sticky-bar.is-visible { transform: translateY(0); }
.tp2-sticky-bar__inner { max-width: var(--max, 1200px); margin: 0 auto; padding: 12px 24px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; }
.tp2-sticky-bar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tp2-sticky-bar__img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.tp2-sticky-bar__name { font-size: 14px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.tp2-sticky-bar__sel { font-size: 12px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp2-sticky-bar__pricing { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tp2-sticky-bar__extras-txt { font-size: 11px; color: #aaa; white-space: nowrap; }
.tp2-sticky-bar__total { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 24px; font-weight: 400; color: #111; white-space: nowrap; }
.tp2-sticky-bar__btn { background: #111; color: #fff; border: none; border-radius: 12px; padding: 0 28px; height: 48px; font-size: 14px; font-weight: 600; font-family: 'Urbanist', Arial, sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.tp2-sticky-bar__btn:hover:not(:disabled) { background: var(--tp-green, #2d5a3d); transform: translateY(-1px); }
.tp2-sticky-bar__btn:disabled { background: #bbb; cursor: not-allowed; }

/* ── RELATED ── */
.tp2-related { max-width: var(--max, 1200px); margin: 0 auto; padding: 0 24px 80px; }
.tp2-related h2 { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: clamp(22px, 2.5vw, 34px); font-weight: 400; margin: 0 0 28px; }
.tp2-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tp2-related-card { text-decoration: none; color: inherit; background: var(--tp-beige, #f7f4ef); border-radius: var(--tp-radius, 16px); overflow: hidden; transition: transform .2s; }
.tp2-related-card:hover { transform: translateY(-3px); }
.tp2-related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.tp2-related-info { padding: 12px 14px; }
.tp2-related-name { display: block; font-size: 14px; font-weight: 500; color: #111; margin-bottom: 4px; }
.tp2-related-price { font-size: 16px; color: var(--tp-text, #111); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .tp2-wrap { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .tp2-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tp2-sticky-bar__inner { grid-template-columns: 1fr auto; gap: 12px; padding: 10px 16px; }
  .tp2-sticky-bar__pricing { display: none; }
  .tp2-buy-footer__actions { flex-direction: column; }
  .tp2-add-btn { width: 100%; }
}
@media (max-width: 640px) {
  .tp2-wrap { padding: 20px 16px 0; }
  .tp2-included-grid { grid-template-columns: 1fr; }
  .tp2-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tp2-swatch-circle { width: 44px; height: 44px; }
}
