/* Product content only — does not restyle site header/footer */

/* Full-bleed white canvas (override SWB cream page island) */
body.ptwv-product-body,
body.single-product {
  background: #fff !important;
  text-align: left !important;
  padding: 0 !important;
}

body.ptwv-product-body .ptwv-page,
body.single-product .ptwv-page {
  background: #fff !important;
  max-width: none !important;
  width: 100% !important;
  text-align: left !important;
}

body.ptwv-product-body main,
body.single-product main {
  background: #fff !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  text-align: left !important;
}

.pttb-wrap.ptwv-shell,
.pttb-wrap {
  --ptwv-primary: #2f5b5a;
  --ptwv-dark: #3a342e;
  --ptwv-soft: #f0fdfa;
  --ptwv-cream: #ffffff;
  --ptwv-ink: #3a342e;
  --ptwv-muted: #6b7280;
  --ptwv-line: #e5e7eb;
  --ptwv-gold: #d8ad35;
  --pttb-accent: #2f5b5a;
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 20px 0 40px !important;
  color: #3a342e;
  background: transparent !important;
  text-align: left !important;
}

.pttb-summary,
.pttb-summary.ptwv-product-summary {
  text-align: left !important;
}

.pttb-wrap *,
.pttb-wrap *::before,
.pttb-wrap *::after {
  box-sizing: border-box;
}

.pttb-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0;
}

.pttb-crumbs a {
  color: #6b7280;
  text-decoration: none;
}

.pttb-crumbs a:hover {
  color: var(--pttb-accent);
  text-decoration: underline;
}

.pttb-crumbs-sep {
  opacity: 0.45;
}

.pttb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.pttb-gallery {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 12px;
  align-items: start;
}

.pttb-main {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.pttb-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transition: opacity 0.16s ease;
}

.pttb-main img.is-swapping {
  opacity: 0;
}

.pttb-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}

.pttb-thumb {
  display: block;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.pttb-thumb.is-active,
.pttb-thumb:hover {
  border-color: #111827;
}

.pttb-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

/* —— Buy box: Tarberry-like type & spacing —— */
.pttb-wrap .pttb-summary.ptwv-product-summary,
.pttb-summary {
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #3a342e;
}

.pttb-wrap .pttb-summary.ptwv-product-summary h1,
.pttb-summary h1 {
  margin: 0 0 6px !important;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 27px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  text-transform: capitalize !important;
  color: #3a342e !important;
  font-weight: 600 !important;
}

.pttb-sku {
  margin: 0 0 10px !important;
  color: #8a8580 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
}

.pttb-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
}

.pttb-stars {
  color: #c9a227;
  letter-spacing: 1px;
  font-size: 14px;
}

.pttb-wrap .pttb-price.ptwv-price,
.pttb-price {
  margin: 0 0 6px !important;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  letter-spacing: 0 !important;
}

.pttb-price .woocommerce-Price-amount,
.pttb-price bdi {
  font-weight: 700 !important;
}

.pttb-ship-note {
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.pttb-ship-note strong {
  color: #3a342e;
  font-weight: 600;
}

.pttb-field {
  margin: 0 0 20px;
}

.pttb-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pttb-field-label {
  font-size: 14px;
  font-weight: 600;
  color: #3a342e;
}

.pttb-field-label [data-pttb-size-label],
.pttb-field-label [data-pttb-color-label] {
  font-weight: 400;
  color: #3a342e;
}

.pttb-size-chart-link {
  border: 0;
  background: transparent;
  color: #3a342e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.pttb-size-chart-link:hover {
  color: var(--pttb-accent);
}

.pttb-swatches,
.pttb-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pttb-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: var(--pttb-swatch, #9ca3af);
  box-shadow: inset 0 0 0 2px #fff;
  cursor: pointer;
  padding: 0;
}

.pttb-swatch.is-active {
  border-color: #111827;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #111827;
}

.pttb-size {
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  border: 1px solid #111827;
  background: #fff;
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0 10px;
}

.pttb-size.is-active {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.pttb-qty-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3a342e;
}

.pttb-cart {
  display: grid !important;
  gap: 12px !important;
  margin: 4px 0 12px !important;
}

.pttb-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
}

.pttb-qty-btn {
  width: 42px;
  height: 44px;
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 18px;
  cursor: pointer;
}

.pttb-qty .qty {
  width: 56px !important;
  min-height: 44px !important;
  border: 0 !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  text-align: center;
  background: #fff !important;
}

.pttb-wrap .pttb-summary.ptwv-product-summary form.cart .button.pttb-add,
.pttb-add {
  width: 100%;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--pttb-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

.pttb-add:hover {
  background: #254a49 !important;
}

.pttb-buy-now {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111827 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #111827 !important;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  text-decoration: none !important;
}

.pttb-buy-now:hover {
  background: #f9fafb !important;
}

.pttb-eta {
  margin: 18px 0 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.pttb-eta strong {
  font-weight: 700;
  color: #111827;
}

/* Product tabs — Tarberry-matched (#productTabs / pill tablinks). Avoid .pttb-tabs (SWB strips it). */
.ptwv-product-page #productTabs,
.ptwv-product-page .ptsku-product-tabs {
  display: block !important;
  margin: 36px 0 8px;
  border-top: 0;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.ptsku-product-tabs .ptsku-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.ptsku-product-tabs .ptsku-tab {
  border: 1px solid var(--bdr, #b8b3a7);
  background: var(--tbg, #e7e3dc);
  color: var(--cl, #3a342e);
  padding: 10px 25px;
  margin: 0 5px;
  font-family: inherit;
  font-size: var(--tfs, 15px);
  font-weight: var(--tfw, 500);
  letter-spacing: 0.02em;
  line-height: 1.35;
  cursor: pointer;
  border-radius: var(--bbrd, 25px);
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ptsku-product-tabs .ptsku-tablist .ptsku-tab:first-child {
  margin-left: 0;
}

.ptsku-product-tabs .ptsku-tab.is-active,
.ptsku-product-tabs .ptsku-tab[aria-selected="true"] {
  background: var(--tbga, #2f5d62);
  color: var(--cla, #ffffff);
  border-color: var(--bdra, #2f5d62);
}

.ptsku-product-tabs .ptsku-tabpanel {
  padding: 0;
  color: #5a5a5a;
  line-height: 1.3;
  font-size: 16px;
}

.ptsku-product-tabs .ptsku-tabpanel[hidden] {
  display: none !important;
}

.ptsku-product-tabs .pttb-details p,
.ptsku-product-tabs .pttb-policies p {
  margin: 0 0 16px;
  color: #5a5a5a;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
}

.ptsku-product-tabs .pttb-details strong,
.ptsku-product-tabs .pttb-policies strong {
  color: #5a5a5a;
  font-weight: 700;
}

.ptsku-product-tabs .pttb-details ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.ptsku-product-tabs .pttb-details li {
  margin: 0 0 6px;
  color: #5a5a5a;
  font-size: 16px;
  line-height: 1.3;
}

.ptsku-product-tabs .pttb-policies a {
  color: #2f5d62 !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none !important;
}

.ptsku-product-tabs .pttb-policies a:hover {
  text-decoration: underline !important;
}

.pttb-reviews {
  margin: 20px 0 40px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.pttb-reviews h2 {
  margin: 0 0 16px;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #3a342e;
}

.pttb-review-list {
  display: grid;
  gap: 16px;
}

.pttb-review {
  border: 1px solid #e5e7eb;
  padding: 16px;
  background: #fff;
  border-radius: 4px;
}

.pttb-review p {
  margin: 8px 0;
}

.pttb-review footer {
  color: #6b7280;
  font-size: 13px;
}

.pttb-muted {
  color: #6b7280;
}

.pttb-write-review {
  color: var(--pttb-accent);
  font-weight: 600;
  text-decoration: underline;
}

.pttb-modal[hidden] {
  display: none !important;
}

.pttb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.pttb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.pttb-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: #edf2e9;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.pttb-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.pttb-modal-dialog h3 {
  margin: 0 0 14px;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #2f3630;
}

.pttb-size-table,
.ptwv-size-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}

.pttb-size-table th,
.pttb-size-table td,
.ptwv-size-table th,
.ptwv-size-table td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: center;
  color: #2f3630;
}

.pttb-size-table th,
.ptwv-size-table th {
  font-weight: 700;
}

.pttb-modal-body .pttb-size-table,
.pttb-modal-body .ptwv-size-table {
  background: #fff;
}

/* Hide leftover Style UI if old markup leaks */
.ptwv-style-choice {
  display: none !important;
}

@media (max-width: 980px) {
  .pttb-wrap.ptwv-shell,
  .pttb-wrap {
    width: min(1180px, calc(100% - 32px)) !important;
    padding: 16px 0 32px !important;
  }

  .pttb-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pttb-gallery {
    grid-template-columns: 1fr;
  }

  .pttb-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  .pttb-thumb {
    flex: 0 0 72px;
  }

  .pttb-wrap .pttb-summary.ptwv-product-summary h1,
  .pttb-summary h1 {
    font-size: 24px !important;
  }
}
