/* ─────────────────────────────────────────────────────────────
   Techwish — PDP (single product page) styles.
   Layout: breadcrumbs · hero (gallery + sticky summary) · hot-promo
   banner · spec/tabs · press reviews · bundle · related · sticky
   mobile bar.
   ───────────────────────────────────────────────────────────── */

.tw-pdp-main {
  padding: 16px 0 100px;
}
.tw-pdp { display: block; }
.tw-pdp > section { margin-block: 56px; }
.tw-pdp > section:first-of-type { margin-block-start: 24px; }
/* Salient parent forces `list-style: disc` on `<ul li>` and `decimal`
   on `<ol li>` inside `.container_wrap`, which makes gallery thumbs,
   spec lists, breadcrumbs and so on render with stray bullets / numbers.
   Wipe markers globally inside the PDP so our own visual treatment
   on each list is the source of truth. */
.tw-pdp ul,
.tw-pdp ol,
.tw-pdp-breadcrumbs ol,
.tw-pdp-gallery__thumbs,
.tw-pdp-tabs__nav,
.tw-pdp-reassurance,
.tw-pdp-press__grid,
.tw-pdp-related__grid {
  list-style: none !important;
  counter-reset: none !important;
}
.tw-pdp ul > li,
.tw-pdp ol > li {
  list-style: none !important;
  background: none !important;
}
.tw-pdp ul > li::before,
.tw-pdp ol > li::before,
.tw-pdp ul > li::marker,
.tw-pdp ol > li::marker {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
  color: transparent !important;
}

/* ===== BREADCRUMBS ===== */
.tw-pdp-breadcrumbs {
  margin: 8px auto 24px;
  font-family: var(--tw-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tw-mute, #6B7470);
}
.tw-pdp-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tw-pdp-breadcrumbs a {
  color: var(--tw-ink-2, #2A2F2C);
  text-decoration: none;
  transition: color .15s ease;
}
.tw-pdp-breadcrumbs a:hover { color: var(--tw-mint-600, #1FB37C); }
.tw-pdp-breadcrumbs__sep { color: var(--tw-mute-2, #98A09B); }
.tw-pdp-breadcrumbs [aria-current="page"] {
  color: var(--tw-ink, #0B0F0D);
  font-weight: 600;
}

/* ===== HERO ===== */
.tw-pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 0 !important;          /* hot-promo banner follows tight */
}
@media (max-width: 960px) {
  .tw-pdp-hero { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== GALLERY ===== */
.tw-pdp-gallery {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 640px) {
  .tw-pdp-gallery { grid-template-columns: 1fr; }
}
.tw-pdp-gallery__thumbs {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;            /* Salient sets ul padding-left: 40px */
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tw-mint-050, #F1FAF5) transparent;
}
.tw-pdp-gallery__thumbs > li {
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 640px) {
  .tw-pdp-gallery__thumbs {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 4px 2px;
  }
}
.tw-pdp-gallery__thumb {
  appearance: none;
  background: var(--tw-paper-2, #F4F7F5);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: block;
  transition: border-color var(--tw-dur-fast, .15s) ease,
              transform var(--tw-dur-fast, .15s) ease;
}
.tw-pdp-gallery__thumb:hover { transform: translateY(-1px); }
.tw-pdp-gallery__thumb.is-active {
  border-color: var(--tw-mint, #2DCE92);
}
.tw-pdp-gallery__thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;     /* Salient applies 50% on product images */
  object-fit: cover;
  display: block;
}
.tw-pdp-gallery__stage {
  position: relative;
  background: var(--tw-paper-2, #F4F7F5);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.tw-pdp-gallery__stage--empty {
  color: var(--tw-mute-2, #98A09B);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tw-pdp-gallery__main {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;     /* Salient applies 50% on product images */
  object-fit: contain;
  padding: 32px;
  transition: opacity .25s ease;
}
.tw-pdp-gallery__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tw-mint, #2DCE92);
  color: #062319;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ===== SUMMARY (right column) ===== */
.tw-pdp-summary {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 960px) { .tw-pdp-summary { position: static; } }
.tw-pdp-summary__brand {
  font-family: var(--tw-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-mint-600, #1FB37C);
  font-weight: 600;
}
.tw-pdp-summary__title {
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
}
.tw-pdp-summary__lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tw-ink-2, #2A2F2C);
}
.tw-pdp-summary__lede p { margin: 0 0 8px; }
.tw-pdp-summary__lede p:last-child { margin-bottom: 0; }

/* WC native bits inside summary */
.tw-pdp-summary .price {
  font-family: var(--tw-mono, monospace);
  font-size: 28px;
  font-weight: 700;
  color: var(--tw-ink, #0B0F0D);
  line-height: 1;
  margin: 4px 0;
}
.tw-pdp-summary .price del {
  font-weight: 400;
  font-size: 16px;
  color: var(--tw-mute, #6B7470);
  margin-right: 6px;
}
.tw-pdp-summary .price ins {
  text-decoration: none;
  color: var(--tw-mint-600, #1FB37C);
}
.tw-pdp-summary .price small {
  font-size: 11px;
  color: var(--tw-mute, #6B7470);
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tw-pdp-summary form.cart {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;             /* qty pill matches CTA height */
  padding-top: 4px;
  margin: 0 !important;
}
/* Wrap qty (− input +) in a single pill regardless of whether Salient
   injects minus/plus buttons outside the input. We rely on a flex
   container with a unified border-radius + hidden overflow so any
   stray elements still look unified. */
.tw-pdp-summary form.cart .quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1px solid var(--tw-line, #DDE3E0);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  height: 48px;                      /* match WC button computed height */
}
.tw-pdp-summary form.cart .quantity input[type="number"] {
  width: 56px !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-family: var(--tw-mono, monospace);
  font-weight: 700;
  font-size: 14px;
  outline: 0;
  background: transparent;
  -moz-appearance: textfield;
}
.tw-pdp-summary form.cart .quantity input[type="number"]::-webkit-outer-spin-button,
.tw-pdp-summary form.cart .quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Salient + WC native +/- buttons: theme-agnostic targeting via several
   possible class names (`.minus`, `.plus`, `.quantity-button`, ARIA labels). */
.tw-pdp-summary form.cart .quantity .minus,
.tw-pdp-summary form.cart .quantity .plus,
.tw-pdp-summary form.cart .quantity button,
.tw-pdp-summary form.cart .quantity .quantity-button {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  width: 36px !important;
  height: 100% !important;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--tw-ink-2, #2A2F2C);
  padding: 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  place-items: center;
  transition: background .12s ease, color .12s ease;
}
.tw-pdp-summary form.cart .quantity .minus:hover,
.tw-pdp-summary form.cart .quantity .plus:hover,
.tw-pdp-summary form.cart .quantity button:hover {
  background: var(--tw-mint-050, #F1FAF5) !important;
  color: var(--tw-mint-600, #1FB37C) !important;
}
.tw-pdp-summary form.cart button.single_add_to_cart_button,
.tw-pdp-summary .single_add_to_cart_button {
  background: var(--tw-mint, #2DCE92) !important;
  color: #062319 !important;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: 0 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  transition: background .15s ease, transform .15s ease !important;
}
.tw-pdp-summary form.cart button.single_add_to_cart_button:hover {
  background: var(--tw-mint-600, #1FB37C) !important;
  transform: translateY(-1px);
}
.tw-pdp-summary .product_meta {
  font-size: 12px;
  color: var(--tw-mute, #6B7470);
  margin-top: 8px;
}
.tw-pdp-summary .product_meta > span { display: block; margin-bottom: 4px; }
.tw-pdp-summary .product_meta a {
  color: var(--tw-ink-2, #2A2F2C);
  text-decoration: none;
}

/* Star rating block (WC native) */
.tw-pdp-summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tw-mute, #6B7470);
  margin: 0;
}
.tw-pdp-summary .star-rating { color: #F5B400; font-size: 14px; }

/* Reassurance strip */
.tw-pdp-reassurance {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--tw-paper-2, #F4F7F5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--tw-ink-2, #2A2F2C);
}
.tw-pdp-reassurance li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tw-pdp-reassurance__icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

/* ===== HOT PROMO BANNER on PDP ===== */
.tw-pdp-hotpromo {
  margin-block-start: 32px !important;
}
.tw-pdp-hotpromo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4faf6 0%, #e6f5ed 100%);
  border: 1px solid var(--tw-mint-050, #F1FAF5);
}
.tw-pdp-hotpromo__lede {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tw-ink-2, #2A2F2C);
  margin: 8px 0 0;
}
.tw-pdp-hotpromo__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tw-pdp-hotpromo__stock-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(11,15,13,.08);
  overflow: hidden;
}
.tw-pdp-hotpromo__stock-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tw-mint, #2DCE92), var(--tw-mint-600, #1FB37C));
  transition: width .3s ease;
}
.tw-pdp-hotpromo__stock-label,
.tw-pdp-hotpromo__countdown {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tw-mute, #6B7470);
}
.tw-pdp-hotpromo__countdown strong {
  font-size: 14px;
  color: var(--tw-ink, #0B0F0D);
  letter-spacing: 0.04em;
  display: block;
  margin-top: 2px;
}
@media (max-width: 720px) {
  .tw-pdp-hotpromo__inner { grid-template-columns: 1fr; }
}

/* ===== SPEC + TABS ===== */
.tw-pdp-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--tw-line-soft, #ECEFED);
  overflow-x: auto;
  scrollbar-width: none;
}
.tw-pdp-tabs__nav::-webkit-scrollbar { display: none; }
.tw-pdp-tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 18px;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--tw-mute, #6B7470);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: color .15s ease, border-color .15s ease;
}
.tw-pdp-tabs__tab:hover { color: var(--tw-ink, #0B0F0D); }
.tw-pdp-tabs__tab.is-active {
  color: var(--tw-ink, #0B0F0D);
  border-bottom-color: var(--tw-mint, #2DCE92);
}
.tw-pdp-tabs__panels { padding: 28px 0; }
.tw-pdp-tabs__panel { display: none; line-height: 1.6; }
.tw-pdp-tabs__panel.is-active { display: block; }

/* Spec table */
.tw-pdp-specs {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
}
.tw-pdp-specs th,
.tw-pdp-specs td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tw-line-soft, #ECEFED);
  vertical-align: top;
}
.tw-pdp-specs th {
  width: 40%;
  font-weight: 500;
  color: var(--tw-mute, #6B7470);
  font-size: 13px;
}
.tw-pdp-specs td {
  font-weight: 600;
  color: var(--tw-ink, #0B0F0D);
  font-size: 14px;
}
.tw-pdp-specs tr:last-child th,
.tw-pdp-specs tr:last-child td { border-bottom: 0; }

/* ===== PRESS REVIEWS — reuses .tw-home-review styles via .tw-pdp-press */
.tw-pdp-press__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) { .tw-pdp-press__grid { grid-template-columns: 1fr; } }
.tw-pdp-press__card {
  list-style: none;
  margin: 0; padding: 0;
}
.tw-pdp-press__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 20px 22px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--tw-ink, #0B0F0D);
  background: #ffffff;
  border: 1px solid var(--tw-line-soft, #ECEFED);
  transition: box-shadow .15s ease, transform .15s ease;
}
.tw-pdp-press__link:hover {
  box-shadow: var(--tw-shadow-hover, 0 12px 28px rgba(11,15,13,.08));
  transform: translateY(-2px);
}
.tw-pdp-press__card.is-dark .tw-pdp-press__link {
  background: #0B0F0D;
  color: #fff;
  border-color: rgba(255,255,255,.08);
}
.tw-pdp-press__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tw-pdp-press__logo { max-height: 26px; max-width: 120px; object-fit: contain; }
.tw-pdp-press__source {
  font-family: var(--tw-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-mute, #6B7470);
  font-weight: 600;
}
.tw-pdp-press__card.is-dark .tw-pdp-press__source { color: rgba(255,255,255,.55); }
.tw-pdp-press__tag {
  font-family: var(--tw-mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tw-mint-050, #F1FAF5);
  color: var(--tw-mint-600, #1FB37C);
}
.tw-pdp-press__card.is-internal .tw-pdp-press__tag {
  background: var(--tw-mint, #2DCE92);
  color: #062319;
}
.tw-pdp-press__card.is-dark:not(.is-internal) .tw-pdp-press__tag {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
}
.tw-pdp-press__quote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.005em;
}
.tw-pdp-press__card.is-dark .tw-pdp-press__quote { color: rgba(255,255,255,.92); }
.tw-pdp-press__rating {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tw-mint-600, #1FB37C);
  letter-spacing: 0.04em;
}
.tw-pdp-press__card.is-dark .tw-pdp-press__rating { color: var(--tw-mint, #2DCE92); }

/* ===== BUNDLE ===== */
.tw-pdp-bundle__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr) auto);
  align-items: stretch;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--tw-paper-2, #F4F7F5);
  border: 1px solid var(--tw-line-soft, #ECEFED);
}
.tw-pdp-bundle__item { min-width: 0; }
.tw-pdp-bundle__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--tw-line-soft, #ECEFED);
  transition: border-color .15s ease;
  height: 100%;
}
.tw-pdp-bundle__card:hover { border-color: var(--tw-mint, #2DCE92); }
.tw-pdp-bundle__media {
  background: var(--tw-paper-2, #F4F7F5);
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tw-pdp-bundle__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.tw-pdp-bundle__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tw-pdp-bundle__price {
  font-family: var(--tw-mono, monospace);
  font-weight: 600;
  font-size: 13px;
  color: var(--tw-ink, #0B0F0D);
  margin-top: auto;
}
.tw-pdp-bundle__plus {
  align-self: center;
  font-family: var(--tw-mono, monospace);
  font-size: 22px;
  font-weight: 300;
  color: var(--tw-mute-2, #98A09B);
}
.tw-pdp-bundle__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--tw-ink, #0B0F0D);
  color: #fff;
}
.tw-pdp-bundle__total .tw-eyebrow {
  color: rgba(255,255,255,.55);
  display: block;
  margin-bottom: 2px;
}
.tw-pdp-bundle__total strong {
  font-family: var(--tw-mono, monospace);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.tw-pdp-bundle__form { margin: 0; }

/* ===== RELATED ===== */
.tw-pdp-related__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .tw-pdp-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tw-pdp-related__grid { grid-template-columns: 1fr; } }

/* ===== STICKY MOBILE BAR ===== */
.tw-pdp-sticky {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 8800;
  background: #fff;
  border-top: 1px solid var(--tw-line-soft, #ECEFED);
  box-shadow: 0 -8px 28px rgba(11,15,13,.06);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  gap: 12px;
}
.tw-pdp-sticky.is-visible {
  display: flex;
}
.tw-pdp-sticky__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tw-pdp-sticky__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tw-ink-2, #2A2F2C);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-pdp-sticky__price {
  font-family: var(--tw-mono, monospace);
  font-weight: 700;
  color: var(--tw-ink, #0B0F0D);
  font-size: 14px;
}
.tw-pdp-sticky__price del {
  font-weight: 400;
  font-size: 12px;
  color: var(--tw-mute, #6B7470);
  margin-right: 6px;
}
.tw-pdp-sticky__cta {
  flex-shrink: 0;
  padding: 12px 18px !important;
  font-size: 13px !important;
}
/* Hide on desktop, show on small screens via JS class + media query */
@media (min-width: 901px) {
  .tw-pdp-sticky { display: none !important; }
}
/* When bottom-nav is present, raise sticky bar above it */
body.has-tw-bottom-nav .tw-pdp-sticky {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  padding-bottom: 10px;
}
