/* =====================================================================
 * KS-PDP-POLISH-V2 — Whole-page product detail polish (2026-05-28)
 *
 * Audit feedback called out the spec table, price block, empty rating,
 * and breadcrumb as "trash". This file overhauls EVERY visual block on
 * the PDP without changing template structure — load order: AFTER
 * ks-pdp-cro-v1.css so we can override anything CRO v1 set.
 *
 * Sections:
 *   1. Breadcrumb
 *   2. Page-level layout + spacing
 *   3. Product image card
 *   4. Title + buybox column
 *   5. Spec table (ks-buybox-features) — full redesign
 *   6. Price block — anchor + main + savings + VAT label
 *   7. Empty rating widgets — hide
 *   8. Description / tabs
 *   9. FAQ accordion
 *  10. Related products / accessories
 * ===================================================================== */

body.page-product {
  --ks-pdp-bg-soft: #f8fafc;
  --ks-pdp-card-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
  --ks-pdp-card-shadow-lifted: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
}

/* ============================================================
 * 1. BREADCRUMB — tighter, lighter, smaller
 * ============================================================ */
body.page-product .breadcrumb,
body.page-product .ks-breadcrumb {
  margin: 8px 0 12px !important;
  padding: 6px 0 !important;
  font-size: 12.5px !important;
  background: transparent !important;
  border: 0 !important;
  line-height: 1.4 !important;
}
body.page-product .breadcrumb ol,
body.page-product .ks-breadcrumb ol {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.page-product .breadcrumb li,
body.page-product .ks-breadcrumb li {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  color: #94a3b8 !important;
  font-size: 12.5px !important;
}
body.page-product .breadcrumb li:not(:last-child)::after,
body.page-product .ks-breadcrumb li:not(:last-child)::after {
  content: '›' !important;
  color: #cbd5e1 !important;
  margin-left: 4px;
  font-size: 13px;
}
body.page-product .breadcrumb a,
body.page-product .ks-breadcrumb a {
  color: #64748b !important;
  text-decoration: none !important;
  transition: color 0.15s;
}
body.page-product .breadcrumb a:hover,
body.page-product .ks-breadcrumb a:hover {
  color: #f97316 !important;
}
body.page-product .breadcrumb-current,
body.page-product .ks-breadcrumb li[aria-current="page"] {
  color: #334155 !important;
  font-weight: 500 !important;
}

/* ============================================================
 * 2. PAGE LAYOUT — tighter grid, breathing room
 * ============================================================ */
body.page-product .product-container,
body.page-product .js-product-container {
  margin-top: 8px !important;
  margin-bottom: 32px !important;
  gap: 32px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  body.page-product .pdp-col-image { padding-right: 8px; }
  body.page-product .pdp-col-buybox { padding-left: 8px; }
}

/* ============================================================
 * 3. PRODUCT IMAGE CARD — rounded, soft shadow, subtle border
 * ============================================================ */
body.page-product .pdp-col-image .page-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--ks-pdp-card-shadow);
  transition: box-shadow 0.2s;
}
body.page-product .pdp-col-image .page-content:hover {
  box-shadow: var(--ks-pdp-card-shadow-lifted);
}
body.page-product .product-cover img,
body.page-product .product-cover .js-qv-product-cover {
  border-radius: 12px;
  background: #fff;
}
body.page-product .product-images {
  margin-top: 12px;
}
body.page-product .product-images li img,
body.page-product .product-thumbs img {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  transition: border-color 0.15s, transform 0.15s;
}
body.page-product .product-images li.selected img,
body.page-product .product-thumbs img.selected {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 2px rgba(249,115,22,0.15);
}

/* ============================================================
 * 4. TITLE + BUYBOX COLUMN
 * ============================================================ */
body.page-product .ks-product-title,
body.page-product h1.h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.02em !important;
}
@media (min-width: 992px) {
  body.page-product .ks-product-title,
  body.page-product h1.h1 { font-size: 28px !important; }
}

body.page-product .product-information {
  padding: 0;
}

/* Stock badge — tighten */
body.page-product .ks-availability-row { margin: 8px 0 12px; }
body.page-product .ks-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(22,163,74,0.08);
  color: #047857;
  border: 1px solid rgba(22,163,74,0.18);
}

/* Legal strip already styled; tighten margins */
body.page-product .ks-legal-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: var(--ks-pdp-bg-soft);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
body.page-product .ks-ls-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  text-decoration: none;
  line-height: 1.4;
}
body.page-product .ks-ls-item strong { color: #0f172a; font-weight: 600; }

/* ============================================================
 * 5. SPEC TABLE (ks-buybox-features) — FULL REDESIGN
 * Current: bare <li> rows with "Label:" + value, dense.
 * New: 2-column grid of cards, label = caps small-cap, value = bold.
 * ============================================================ */
body.page-product .ks-buybox-features {
  list-style: none !important;
  margin: 12px 0 14px !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--ks-pdp-bg-soft);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px !important;
}
body.page-product .ks-buybox-features li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 0;
}
body.page-product .ks-buybox-features li::before { display: none !important; content: none !important; }
body.page-product .ks-bf-label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
  line-height: 1.2 !important;
  display: block;
}
body.page-product .ks-bf-label::after { content: ''; }
body.page-product .ks-bf-value {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  letter-spacing: -0.005em;
  display: block;
  word-break: break-word;
}
@media (max-width: 575px) {
  body.page-product .ks-buybox-features { grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px !important; }
  body.page-product .ks-buybox-features li { padding: 6px 8px; }
  body.page-product .ks-bf-value { font-size: 13px !important; }
}

body.page-product .ks-buybox-divider {
  border-top: 1px solid #e2e8f0;
  margin: 14px 0;
}

/* ============================================================
 * 6. PRICE BLOCK — anchor + main + savings + VAT label
 * ============================================================ */
body.page-product .product-prices,
body.page-product .js-product-prices {
  position: relative;
  margin: 8px 0 6px !important;
  padding: 0;
}

/* Retail anchor slot ("Cena producenta 1099 zł Oszczędzasz 47%") */
body.page-product .ks-retail-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 13px;
  flex-wrap: wrap;
  line-height: 1.3;
}
body.page-product .ks-retail-slot:empty { display: none; }
body.page-product .ks-retail-slot .ks-retail-label,
body.page-product .ks-retail-slot > span:first-child {
  color: #94a3b8 !important;
  font-size: 12px;
  font-weight: 500;
}
body.page-product .ks-retail-slot del,
body.page-product .ks-retail-slot .ks-retail-strike {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  text-decoration-color: rgba(148,163,184,0.7) !important;
}
body.page-product .ks-retail-slot .ks-retail-save,
body.page-product .ks-retail-slot .save-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7 !important;
  color: #166534 !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Regular crossed-out price (PS native .regular-price) */
body.page-product .product-discount .regular-price,
body.page-product .product-prices del,
body.page-product .product-prices .regular-price {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  text-decoration-color: rgba(148,163,184,0.7) !important;
  margin-right: 8px;
}

/* Main current price — anchor of the page */
body.page-product .product-price.h5,
body.page-product .product-price {
  font-family: inherit !important;
  margin: 6px 0 4px !important;
  line-height: 1 !important;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
body.page-product .current-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
body.page-product .current-price-value,
body.page-product .current-price > span:first-child {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}
@media (max-width: 575px) {
  body.page-product .current-price-value,
  body.page-product .current-price > span:first-child { font-size: 32px !important; }
}
/* Discount percentage badge next to price */
body.page-product .discount,
body.page-product .discount-percentage,
body.page-product .discount-amount {
  display: inline-flex !important;
  align-items: center;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* "Cena zawiera podatek VAT" / tax-shipping label */
body.page-product .tax-shipping-delivery-label {
  margin: 6px 0 0 !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
body.page-product .tax-shipping-delivery-label::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
  font-size: 13px;
}
body.page-product .tax-shipping-delivery-label > * {
  display: inline-block;
}

/* Unit price */
body.page-product .product-unit-price {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin: 2px 0 0 !important;
}

/* ============================================================
 * 7. KILL the empty "Ocena: ☆☆☆☆☆ (0)" widgets EVERYWHERE
 * ============================================================ */
/* productcomments-native (PS) — comments_note widget */
body.page-product .product-prices .comments_note:has(.star-on:not(:nth-child(-n+1))),
body.page-product .comments_note:empty,
body.page-product .comments_note:not(:has(.nb-comments)) {
  /* fallback */
}
/* Broad heuristic: hide any comments-note row that surfaces ☆☆☆☆☆ (0) */
body.page-product .product-prices .comments_note,
body.page-product .comments_note,
body.page-product .product-comments-additional-info,
body.page-product .product-information .product-comments-list {
  display: none !important;
}
/* Re-show ONLY if there are comments — surface in below-fold review tab,
 * not in the buybox. The empty 0-rating widget is misleading. */
body.page-product .ets_rv_stats_review:not(:has(.ets_rv_nb_comments)),
body.page-product .ets_rv_average_grade[data-grade="0.0"] {
  display: none !important;
}
/* Hide the standalone "Ocena: ☆☆☆☆☆ (0)" line that appears in some templates */
body.page-product .product-prices > .comments_note,
body.page-product .product-information > .comments_note,
body.page-product .js-product-prices ~ .comments_note {
  display: none !important;
}

/* ============================================================
 * 8. DESCRIPTION + TABS
 * ============================================================ */
body.page-product .pdp-tabs-wrapper {
  margin: 32px 0 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--ks-pdp-card-shadow);
}
body.page-product .nav-tabs {
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 20px !important;
  gap: 8px;
  flex-wrap: wrap;
}
body.page-product .nav-tabs .nav-item { margin-bottom: -1px; }
body.page-product .nav-tabs .nav-link {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  padding: 10px 14px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: -0.005em;
  background: transparent !important;
  border-radius: 0 !important;
  transition: color 0.15s, border-color 0.15s;
}
body.page-product .nav-tabs .nav-link:hover {
  color: #0f172a !important;
  border-bottom-color: #cbd5e1 !important;
}
body.page-product .nav-tabs .nav-link.active {
  color: #f97316 !important;
  border-bottom-color: #f97316 !important;
  background: transparent !important;
}
body.page-product .tab-content {
  font-size: 14.5px !important;
  color: #334155 !important;
  line-height: 1.65 !important;
}
body.page-product .tab-content h2,
body.page-product .tab-content h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.015em;
}
body.page-product .tab-content h2 { font-size: 20px !important; }
body.page-product .tab-content h3 { font-size: 16px !important; }
body.page-product .tab-content p { margin-bottom: 12px; }
body.page-product .tab-content ul,
body.page-product .tab-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
body.page-product .tab-content li { margin-bottom: 5px; }

/* ============================================================
 * 9. FAQ ACCORDION
 * ============================================================ */
body.page-product .ks-faq,
body.page-product .ks-faq-section {
  margin: 24px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--ks-pdp-card-shadow);
}
body.page-product .ks-faq h2,
body.page-product .ks-faq-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.015em;
}
body.page-product .ks-faq-item,
body.page-product details.ks-faq-item,
body.page-product .ks-faq details {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}
body.page-product .ks-faq-item:last-child,
body.page-product details.ks-faq-item:last-child { border-bottom: 0; }
body.page-product .ks-faq-q,
body.page-product details.ks-faq-item summary,
body.page-product .ks-faq details summary {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  list-style: none;
}
body.page-product details.ks-faq-item summary::-webkit-details-marker { display: none; }
body.page-product details.ks-faq-item summary::after {
  content: '+';
  color: #94a3b8;
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.15s;
}
body.page-product details.ks-faq-item[open] summary::after {
  content: '−';
  color: #f97316;
}
body.page-product .ks-faq-a,
body.page-product details.ks-faq-item > *:not(summary) {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 8px 0 4px;
}

/* ============================================================
 * 10. RELATED PRODUCTS / ACCESSORIES
 * ============================================================ */
body.page-product .product-accessories {
  margin: 32px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--ks-pdp-card-shadow);
}
body.page-product .product-accessories > .h5 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

/* Section "Najważniejsze informacje" header */
body.page-product h2:where(:not(.h1)):not(.ks-product-title):not(.h5) {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.015em !important;
  margin-top: 28px !important;
  margin-bottom: 14px !important;
}

/* ============================================================
 * 7b. Empty rating widget — correct selector found 2026-05-28
 * The widget class is `.comments-note` (hyphen), nested inside
 * `.ets-rv-btn-read-user`. Both my earlier rules used underscore
 * (`.comments_note`) which never matched.
 * ============================================================ */
body.page-product .comments-note,
body.page-product .ets-rv-btn-read-user,
body.page-product .ets-rv-comments-nb {
  display: none !important;
}
/* Keep showing this widget only when it actually has comments — surfaces
 * as data-count > 0 in some configs */
body.page-product .ets-rv-btn-read-user[data-count]:not([data-count="0"]) {
  display: inline-flex !important;
}
/* =====================================================================
 * KS-PDP-POLISH-V3 — Final polish iteration (2026-05-28)
 *
 * Targets remaining rough edges from the spec/price/rating area after
 * v2 + edge cases the v2 selectors couldn't catch.
 * ===================================================================== */

/* ---------- A. Rating widget — broader CSS kill switch ---------- */
/* ets_reviews surfaces the "Ocena: ☆☆☆☆☆ (0)" in three places — kill all */
body.page-product a.ets-rv-btn-read-user,
body.page-product .ets-rv-btn-read-user,
body.page-product .comments-note,
body.page-product .ets-rv-comments-nb,
body.page-product .ets_rv_grade_stars:not(:has(.ets_rv_star_on)),
body.page-product .product-information [class*="ets-rv-btn-read"],
body.page-product .product-information .star-content:not(:has(.star-on)),
body.page-product .product-information .stars-rating:empty,
body.page-product .pdp-col-buybox .ets-rv-grade-stars[data-grade="0.0"],
body.page-product .pdp-col-buybox .ets-rv-grade-stars[data-grade="0"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- B. "Cena producenta" line spacing tighten ---------- */
body.page-product .ks-retail-slot,
body.page-product .ks-retail-slot * {
  font-variant-numeric: tabular-nums;
}
body.page-product .product-prices > * + * { margin-top: 4px; }

/* ---------- C. Sticky bottom CTA polish (mobile) ---------- */
@media (max-width: 767px) {
  body.page-product .ks-sticky-bar,
  body.page-product #ks-sticky-cta,
  body.page-product .ks-pdp-sticky-cta {
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
    border-top: 1px solid #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 14px !important;
  }
  body.page-product .ks-sticky-bar-btn,
  body.page-product .ks-pdp-sticky-cta .btn-primary {
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
    font-weight: 700 !important;
    letter-spacing: -0.005em !important;
  }
}

/* ---------- D. CTA button (Do koszyka) — make it impossible to miss ---------- */
body.page-product .product-actions .btn-primary,
body.page-product button.add-to-cart,
body.page-product .add-to-cart {
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 14px 22px !important;
  border-radius: 10px !important;
  letter-spacing: -0.005em !important;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35) !important;
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%) !important;
  border: 0 !important;
  transition: transform 0.12s, box-shadow 0.15s !important;
  text-transform: none !important;
  min-height: 52px !important;
}
body.page-product .product-actions .btn-primary:hover,
body.page-product button.add-to-cart:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45) !important;
}
body.page-product .product-actions .btn-primary:active,
body.page-product button.add-to-cart:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3) !important;
}

/* ---------- E. Quantity stepper polish ---------- */
body.page-product .product-quantity {
  margin: 10px 0 14px;
}
body.page-product .product-quantity input,
body.page-product input.input-group input[name="qty"],
body.page-product #quantity_wanted {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-align: center;
  height: 42px !important;
  font-variant-numeric: tabular-nums;
}
body.page-product .bootstrap-touchspin .bootstrap-touchspin-up,
body.page-product .bootstrap-touchspin .bootstrap-touchspin-down,
body.page-product .input-group-btn-vertical button {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 700 !important;
  transition: background 0.15s !important;
}
body.page-product .bootstrap-touchspin .bootstrap-touchspin-up:hover,
body.page-product .bootstrap-touchspin .bootstrap-touchspin-down:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ---------- F. Description tabs content — readability tweaks ---------- */
body.page-product .product-description img,
body.page-product .tab-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
body.page-product .product-description table,
body.page-product .tab-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
body.page-product .product-description th,
body.page-product .product-description td,
body.page-product .tab-content th,
body.page-product .tab-content td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
body.page-product .product-description th,
body.page-product .tab-content th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}
body.page-product .product-description blockquote,
body.page-product .tab-content blockquote {
  border-left: 3px solid #f97316;
  background: #fff7ed;
  padding: 12px 16px;
  margin: 14px 0;
  font-style: normal;
  color: #7c2d12;
  border-radius: 0 8px 8px 0;
}

/* ---------- G. Reassurance hook block ---------- */
body.page-product .ks-trust-badges,
body.page-product .reassurance,
body.page-product .reassurance-item {
  font-size: 13px !important;
  color: #475569 !important;
}
body.page-product [class*="reassurance"] img,
body.page-product .ks-trust-badges img {
  width: 32px !important;
  height: 32px !important;
  filter: grayscale(20%);
}

/* ---------- H. ks-buybox-features mobile single-column on very narrow ---------- */
@media (max-width: 360px) {
  body.page-product .ks-buybox-features {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- I. Promo banner tighten over title ---------- */
body.page-product .ks-product-title + p,
body.page-product .ks-product-title + .promo-banner {
  margin-top: 4px;
}

/* ---------- J. Below-fold sections need vertical breathing room ---------- */
body.page-product #ets-reviews,
body.page-product .product-reviews-section {
  margin-top: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--ks-pdp-card-shadow);
}

/* ---------- K. Misc — kill weird leftover horizontal lines ---------- */
body.page-product hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 16px 0;
}
body.page-product .pdp-tabs-wrapper hr { display: none; }

/* ---------- L. Make sure the cart-action submit row never wraps weird ---------- */
body.page-product .product-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
@media (max-width: 575px) {
  body.page-product .product-add-to-cart { flex-direction: column; align-items: stretch; }
  body.page-product .product-actions .btn-primary { width: 100% !important; }
}
