/*
 * Silent Heroes — Single Product Page (preview)
 * Design 1:1 wg brandbook v3 / Lovable shop
 */

.sh-product-page {
  background: var(--sh-offwhite);
  padding: 40px 24px 80px;
  min-height: calc(100vh - 200px);
}
.sh-product-page-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.sh-pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

/* ===== GALLERY ===== */
.sh-pp-gallery {}
.sh-pp-gallery-main {
  background: #fff;
  border: 1px solid #E0DDD8;
  border-radius: 8px;
  padding: 40px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sh-pp-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sh-pp-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.sh-pp-thumb {
  width: 72px;
  height: 72px;
  background: #fff;
  border: 1px solid #E0DDD8;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .15s ease;
}
.sh-pp-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sh-pp-thumb:hover { border-color: #d0cec8; }
.sh-pp-thumb.is-active { border-color: var(--sh-red); border-width: 1.5px; }

/* ===== INFO ===== */
.sh-pp-info {
  display: flex;
  flex-direction: column;
}

.sh-pp-cats {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sh-red);
  margin-bottom: 12px;
}
.sh-pp-cats span + span::before {
  content: " · ";
  color: var(--sh-gray-400);
  margin: 0 4px;
}

.sh-pp-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--sh-black);
  margin: 0 0 12px;
}

.sh-pp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.sh-pp-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sh-muted);
}
.sh-pp-stars { display: inline-flex; gap: 2px; color: var(--sh-red); }
.sh-pp-stars svg { width: 14px; height: 14px; fill: currentColor; }
.sh-pp-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sh-success);
  font-weight: 500;
}
.sh-pp-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sh-success);
}

/* ===== PURCHASE TYPE (jednorazowo / subskrypcja) ===== */
.sh-pp-purchase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #F5F3EE;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.sh-pp-option {
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.sh-pp-option:hover { border-color: #d0cec8; }
.sh-pp-option.is-active {
  border-color: var(--sh-red);
  background: rgba(204, 27, 27, 0.04);
}
.sh-pp-option-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-black);
  margin-bottom: 4px;
}
.sh-pp-option-price {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sh-black);
  line-height: 1;
}
@media (max-width: 600px) {
  .sh-pp-option-price { font-size: 16px; white-space: nowrap; }
}
.sh-pp-option.is-active .sh-pp-option-price { color: var(--sh-red); }
.sh-pp-option-saving {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-success);
}

/* Purchase + frequency wrapper */
.sh-pp-purchase-wrap {
  background: #ffffff;
  border: 1px solid #E0DDD8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.sh-pp-purchase-wrap .sh-pp-purchase {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  gap: 8px;
}
/* Margin-bottom tylko gdy frequency picker jest widoczny (subskrypcja aktywna) */
.sh-pp-purchase-wrap:has(.sh-pp-frequency:not([hidden])) .sh-pp-purchase {
  margin-bottom: 16px;
}

/* ===== FREQUENCY PICKER (15/30/60/90 dni) ===== */
.sh-pp-frequency[hidden] { display: none; }
.sh-pp-frequency-label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-muted);
  margin-bottom: 8px;
}
.sh-pp-frequency-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 600px) {
  .sh-pp-frequency-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sh-pp-frequency-option { text-align: center; }
}
.sh-pp-frequency-option {
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid #E0DDD8;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sh-ink);
  cursor: pointer;
  transition: all .15s ease;
}
.sh-pp-frequency-option:hover {
  border-color: var(--sh-ink);
}
.sh-pp-frequency-option.is-active {
  background: var(--sh-red);
  color: #fff;
  border-color: var(--sh-red);
}
.sh-pp-frequency-info {
  font-size: 12px;
  color: var(--sh-muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ===== PRICE BIG ===== */
.sh-pp-price {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--sh-black);
  margin-bottom: 8px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
/* Omnibus: "Najniższa cena z 30 dni: X zł" */
.iworks-omnibus {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}
.iworks-omnibus .iworks-omnibus-price-value,
.iworks-omnibus strong { color: var(--sh-black); }
.sh-pp-price #sh-pp-current-price + span {
  font-size: 14px;
  font-weight: 400;
}
/* Przekreślona oryginalna cena (gdy aktywna subskrypcja) */
.sh-pp-price-original {
  font-size: 16px;
  font-weight: 500;
  color: var(--sh-muted);
  text-decoration: line-through;
  margin-left: 0;
}
.sh-pp-price-discount {
  font-size: 14px;
  font-weight: 600;
  color: var(--sh-success);
  margin-left: 0;
}
.sh-pp-price-original[hidden],
.sh-pp-price-discount[hidden] { display: none; }

/* Promocja (sale): przekreślona cena regularna + badge "Promocja".
   .sh-pp-price-regular jest bezpośrednim rodzeństwem po #sh-pp-current-price,
   więc dziedziczy font-size 14px / weight 400 z reguły wyżej — dokładamy tylko line-through. */
.sh-pp-price-regular {
  color: var(--sh-muted);
  text-decoration: line-through;
}
.sh-pp-badge-sale {
  align-self: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #CC1B1B;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== KOTWICA CENOWA ZESTAWU (suma składników + oszczędność) ===== */
.sh-pp-badge-save {
  align-self: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--sh-success, #1D9E75);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sh-pp-anchor-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--sh-muted);
}
.sh-pp-ship-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--sh-muted);
}
.sh-pp-ship-hint svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
/* Konkrety ebooka nad CTA (format, dostęp, aktualizacje) */
.sh-pp-ebook-facts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--sh-muted);
}
.sh-pp-ebook-facts svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
/* Podsumowanie smaków zestawu nad CTA (picker jest pod przyciskiem) */
.sh-pp-bundle-summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--sh-muted);
  line-height: 1.5;
}
.sh-pp-bundle-summary-label {
  font-weight: 600;
  color: var(--sh-black);
}
#sh-bundle-summary-change {
  margin-left: 6px;
  color: var(--sh-red, #CC1B1B);
  text-decoration: underline;
  white-space: nowrap;
}

/* ===== VARIANTS (smak / gramatura) ===== */
.sh-pp-variant {
  margin-bottom: 16px;
}
.sh-pp-variant-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-black);
  margin-bottom: 8px;
}
.sh-pp-variant-label strong { font-weight: 600; }
.sh-pp-variant-label .sh-pp-variant-value {
  color: var(--sh-muted);
  font-weight: 400;
  margin-left: 4px;
}
.sh-pp-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sh-pp-variant-option {
  padding: 8px 16px;
  border: 1px solid #E0DDD8;
  border-radius: 4px;
  background: #fff;
  color: var(--sh-black);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.sh-pp-variant-option:hover { border-color: #d0cec8; }
.sh-pp-variant-option.is-active {
  border-color: var(--sh-red);
  color: var(--sh-red);
  border-width: 1.5px;
  padding: 7.5px 15.5px;
}
/* Niedostępny wariant — wyszarzony + przekreślony, nieklikalny */
.sh-pp-variant-option.is-unavailable {
  opacity: 0.45;
  color: var(--sh-muted, #6B6B6B);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0,0,0,0.04) 6px,
    rgba(0,0,0,0.04) 12px
  );
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0,0,0,0.4);
}
.sh-pp-variant-option.is-unavailable:hover {
  border-color: var(--sh-border, #e0ddd8);
  color: var(--sh-muted, #6B6B6B);
}

/* ===== ACTIONS (quantity + cta) ===== */
.sh-pp-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 24px;
  margin-bottom: 16px;
}
.sh-pp-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E0DDD8;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.sh-pp-quantity-btn {
  width: 36px;
  height: 100%;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--sh-black);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
}
.sh-pp-quantity-btn:hover { background: #F5F3EE; }
.sh-pp-quantity-input {
  width: 44px;
  height: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--sh-black);
  appearance: textfield;
  -moz-appearance: textfield;
}
.sh-pp-quantity-input::-webkit-outer-spin-button,
.sh-pp-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
button.sh-pp-cta,
.sh-pp-cta {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: var(--sh-red) !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 14px 24px !important;
  cursor: pointer;
  transition: background .15s ease;
  min-height: 0 !important;
  line-height: 1 !important;
}
button.sh-pp-cta:hover,
.sh-pp-cta:hover { background: var(--sh-red-dark) !important; }
button.sh-pp-cta:disabled,
.sh-pp-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.sh-pp-cta svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  background: transparent !important;
  flex-shrink: 0;
}
.sh-pp-cta-label { display: inline-block; }

/* ===== TRUST BADGES (under CTA) ===== */
.sh-pp-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #E0DDD8;
  margin-top: 8px;
}
.sh-pp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sh-muted);
}
.sh-pp-trust-item svg {
  width: 14px; height: 14px;
  stroke: var(--sh-muted);
  stroke-width: 2;
  fill: none;
}

/* ===== TABS (Opis / Składniki / Dawkowanie / Opinie) ===== */
.sh-pp-tabs {
  margin-top: 64px;
  border-bottom: 1px solid var(--sh-border, #E0DDD8);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sh-pp-tabs::-webkit-scrollbar { display: none; }
.sh-pp-tab {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sh-muted, #6B6B6B);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
}

/* (mobile media query dla .sh-pp-tab dalej w pliku — łączny z pozostałymi mobile rules) */
.sh-pp-tab:hover {
  color: var(--sh-black, #111);
  background: rgba(0,0,0,.03);
}
.sh-pp-tab.is-active {
  color: var(--sh-black, #111);
  border-bottom-color: var(--sh-red, #C8102E);
  background: none;
}
.sh-pp-tab:focus-visible {
  outline: 2px solid var(--sh-red, #C8102E);
  outline-offset: -2px;
}

/* ========== BREADCRUMB (Sklep > Kategoria > Nazwa produktu) ========== */
.sh-pp-breadcrumb {
  margin: 0 0 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sh-muted, #666);
}
.sh-pp-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.sh-pp-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0; /* neutralizuje globalne li + li { margin-top } z base.css (pierwsze li uciekało wyżej) */
}
.sh-pp-breadcrumb li + li::before {
  content: "›";
  color: var(--sh-gray-400, #B5B0A5);
  font-weight: 400;
  display: inline-block;
}
.sh-pp-breadcrumb a {
  color: var(--sh-muted, #666);
  text-decoration: none;
  transition: color .15s ease;
}
.sh-pp-breadcrumb a:hover { color: var(--sh-red, #CC1B1B); }
.sh-pp-breadcrumb li[aria-current="page"] span {
  color: var(--sh-black, #111);
  font-weight: 600;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 600px) {
  .sh-pp-breadcrumb { font-size: 12.5px; margin-bottom: 14px; }
  /* Na wąskich ekranach ukryj nazwę produktu (jest pod H1) — zostaje ścieżka kategorii. */
  .sh-pp-breadcrumb li[aria-current="page"] { display: none; }
}

.sh-pp-tab-panels { padding: 40px 0 16px; }
.sh-pp-tab-panel { display: none; max-width: 100%; }
.sh-pp-tab-panel.is-active { display: block; }
.sh-pp-tab-panel > * { max-width: 100%; }

/* ========== TABELE w panelach (Skład, Dawkowanie) — overflow safety ========== */
/* Wrapper "exname-*" jest często generowany przez Gutenberg / ExNihilo bloki.
   WC default wraps w nic — szerokie tabele wyciekały na mobile. */
.sh-pp-tab-panel [class*="exname"],
.sh-pp-tab-panel figure.wp-block-table,
.sh-pp-tab-panel .sh-pp-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.sh-pp-tab-panel [class*="exname"] table,
.sh-pp-tab-panel figure.wp-block-table table {
  margin: 0;
  min-width: 100%;
}
/* Na mobile tabela poza wrapperem (czyli bezpośrednio w panelu) też ma się scrollować. */
@media (max-width: 768px) {
  .sh-pp-tab-panel table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .sh-pp-tab-panel table tbody,
  .sh-pp-tab-panel table thead { display: table; width: max-content; min-width: 100%; }
  /* Hint: cienka linia po prawej sygnalizuje że można scrollować */
  .sh-pp-tab-panel [class*="exname"] {
    background:
      linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
      linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.08), rgba(0,0,0,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.08), rgba(0,0,0,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 24px 100%, 24px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}

/* Typografia wewnątrz paneli — niezależna od śmieciowych klas (np. Tailwindowych) */
.sh-pp-tab-panel,
.sh-pp-tab-panel * {
  font-family: inherit !important;
}
.sh-pp-tab-panel { max-width: 820px; color: var(--sh-ink, #1a1a1a); }
/* Typografia jak na polsof.pl / silentheroes.pro — Poppins, czerwony separator pod H2 */
.sh-pp-tab-panel h1,
.sh-pp-tab-panel h2,
.sh-pp-tab-panel h3,
.sh-pp-tab-panel h4 {
  font-family: 'Poppins', sans-serif !important;
  color: var(--sh-black, #111) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}
.sh-pp-tab-panel h1 {
  font-size: 36px !important;
  font-weight: 800 !important;
  margin: 0 0 22px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--sh-red, #C8102E) !important;
}
.sh-pp-tab-panel h2 {
  font-size: 28px !important;
  font-weight: 800 !important;
  margin: 36px 0 18px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--sh-red, #C8102E) !important;
}
.sh-pp-tab-panel h2:first-child { margin-top: 0 !important; }
.sh-pp-tab-panel h3 {
  font-size: 21px !important;
  font-weight: 700 !important;
  margin: 28px 0 12px !important;
  letter-spacing: -0.01em !important;
}
.sh-pp-tab-panel h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 22px 0 10px !important;
  letter-spacing: -0.005em !important;
}
.sh-pp-tab-panel p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 0 20px !important;
  color: #333 !important;
}
/* Lead paragraph — pierwszy paragraf w panelu (jak .sh-lead na polsof) */
.sh-pp-tab-panel > p:first-child,
.sh-pp-tab-panel > h1 + p,
.sh-pp-tab-panel > h2 + p:first-of-type {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: var(--sh-black, #111) !important;
}
.sh-pp-tab-panel strong, .sh-pp-tab-panel b {
  font-weight: 700 !important;
  color: inherit !important;
}
.sh-pp-tab-panel em, .sh-pp-tab-panel i { font-style: italic !important; }
.sh-pp-tab-panel ul,
.sh-pp-tab-panel ol {
  margin: 0 0 20px !important;
  padding-left: 22px !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #333 !important;
}
.sh-pp-tab-panel ul li { list-style: disc !important; margin-bottom: 8px !important; }
.sh-pp-tab-panel ol li { list-style: decimal !important; margin-bottom: 8px !important; }
.sh-pp-tab-panel a {
  color: inherit !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(0,0,0,.25) !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.sh-pp-tab-panel a:hover {
  color: var(--sh-red, #C8102E) !important;
  text-decoration-color: var(--sh-red, #C8102E) !important;
}
/* "Puste" linki bez href (relikty z paste'a) — bez podkreślenia */
.sh-pp-tab-panel a:not([href]),
.sh-pp-tab-panel a[href=""],
.sh-pp-tab-panel a[href="#"] {
  color: inherit !important;
  text-decoration: none !important;
  cursor: text;
}
.sh-pp-tab-panel hr {
  border: 0;
  border-top: 1px solid var(--sh-border, #E0DDD8);
  margin: 28px 0;
}
.sh-pp-tab-panel blockquote {
  margin: 20px 0 !important;
  padding: 14px 18px !important;
  border-left: 3px solid var(--sh-red, #C8102E) !important;
  background: rgba(0,0,0,.03) !important;
  font-style: italic;
  color: var(--sh-ink, #1a1a1a) !important;
}
.sh-pp-tab-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
}
.sh-pp-tab-panel th,
.sh-pp-tab-panel td {
  padding: 10px 14px;
  border: 1px solid var(--sh-border, #E0DDD8);
  text-align: left;
}
.sh-pp-tab-panel th {
  background: rgba(0,0,0,.04);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.sh-pp-tab-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* WC: tabela atrybutów (Składniki) */
.sh-pp-tab-panel .shop_attributes,
.sh-pp-tab-panel table.woocommerce-product-attributes {
  border: 1px solid var(--sh-border, #E0DDD8);
}
.sh-pp-tab-panel .shop_attributes th { width: 30%; min-width: 140px; }

/* WC: opinie */
.sh-pp-tab-panel #reviews { font-size: 15px; }
.sh-pp-tab-panel #reviews .comment-form-rating label,
.sh-pp-tab-panel #reviews .comment-reply-title { font-weight: 600; }
.sh-pp-tab-panel #reviews .commentlist { list-style: none; padding: 0; }
.sh-pp-tab-panel #reviews .commentlist li {
  padding: 16px;
  border: 1px solid var(--sh-border, #E0DDD8);
  border-radius: 6px;
  margin-bottom: 12px;
  list-style: none !important;
}
.sh-pp-tab-panel #reviews textarea,
.sh-pp-tab-panel #reviews input[type="text"],
.sh-pp-tab-panel #reviews input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--sh-border, #E0DDD8);
  border-radius: 4px;
  font: inherit;
  margin-top: 4px;
}
.sh-pp-tab-panel #reviews input[type="submit"],
.sh-pp-tab-panel #reviews .submit {
  background: var(--sh-red, #C8102E);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s;
}
.sh-pp-tab-panel #reviews input[type="submit"]:hover { background: #a40d24; }

@media (max-width: 600px) {
  /* 4 tabs (Opis/Skład/Dawkowanie/Dodaj opinię) muszą zmieścić się w 1 linii.
     Sumarycznie ~390px > 327px viewport, więc tnijemy padding + font + spacing. */
  .sh-pp-tabs { margin-top: 40px; flex-wrap: nowrap; justify-content: space-between; }
  .sh-pp-tab { padding: 12px 6px; font-size: 11px; letter-spacing: 0.03em; flex: 0 1 auto; }
  .sh-pp-tab-panels { padding: 28px 0 8px; }
  .sh-pp-tab-panel h2 { font-size: 19px !important; }
  .sh-pp-tab-panel p, .sh-pp-tab-panel ul, .sh-pp-tab-panel ol { font-size: 14px !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sh-pp-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== POLECAMY TEŻ (related products under single) ===== */
.sh-pp-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--sh-border);
}
.sh-pp-related-head {
  margin-bottom: 24px;
}
.sh-pp-related-head .sh-kicker {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sh-red);
  margin: 0 0 8px;
}
.sh-pp-related-head h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sh-black);
  margin: 0;
}
.sh-pp-related .sh-archive-products {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .sh-pp-related .sh-archive-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sh-pp-related .sh-archive-products { grid-template-columns: 1fr; }
}

/* ===========================================================
   BUNDLE PICKER — zestawy z wariantami per child
   =========================================================== */
.sh-bundle-picker {
  margin: 24px 0;
  padding: 20px;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
}
.sh-bundle-picker-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sh-black, #111);
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.sh-bundle-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-bundle-picker-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--sh-border, #e0ddd8);
  border-radius: 6px;
}
.sh-bundle-picker-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid #f0eee9;
}
.sh-bundle-picker-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sh-bundle-picker-body {
  flex: 1;
  min-width: 0;
}
.sh-bundle-picker-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--sh-black, #111);
  line-height: 1.3;
  margin-bottom: 6px;
}
.sh-bundle-picker-meta {
  font-size: 12px;
  color: #666;
}
.sh-bundle-picker-variant {
  margin-top: 4px;
}
.sh-bundle-variant-select {
  width: 100%;
  max-width: 280px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--sh-border, #e0ddd8);
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: var(--sh-black, #111);
  cursor: pointer;
}
.sh-bundle-variant-select:focus {
  outline: 2px solid var(--sh-red, #C8102E);
  outline-offset: -2px;
}
@media (max-width: 600px) {
  .sh-bundle-picker { padding: 14px; }
  .sh-bundle-picker-item { gap: 10px; padding: 8px 10px; }
  .sh-bundle-picker-thumb { width: 44px; height: 44px; padding: 3px; }
  .sh-bundle-picker-name { font-size: 13px; }
  .sh-bundle-variant-select { font-size: 12px; padding: 5px 24px 5px 8px; max-width: none; }
}

/* ===== WOOCOMMERCE STAR RATING (opinie) ===== */
/* Font ikonkowy WC: "s"=pusta gwiazdka, "S"=pełna. Motyw dequeue'uje style WC,
   więc ładujemy tylko @font-face + reguły .star-rating. */
@font-face {
  font-family: 'star';
  src: url('/wp-content/plugins/woocommerce/assets/fonts/star.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.4em;
  line-height: 1.4;
  font-size: 16px;
  width: 5.8em;
  font-family: 'star' !important;
  font-weight: 400;
  letter-spacing: 0;
}
.star-rating::before {
  content: "\73\73\73\73\73";
  font-family: 'star' !important;
  color: #d8d4ce;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}
.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
  font-family: 'star' !important;
}
.star-rating span::before {
  content: "\53\53\53\53\53";
  font-family: 'star' !important;
  top: 0;
  left: 0;
  position: absolute;
  color: var(--sh-red);
}
/* Wybór oceny w formularzu opinii (gwiazdki klikalne) */
p.stars {
  position: relative;
  font-size: 18px;
  margin: 0 0 8px;
}
p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
}
p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: 'star';
  content: "\73";
  color: #d8d4ce;
  text-indent: 0;
}
p.stars a:hover ~ a::before { content: "\73"; }
p.stars:hover a::before { content: "\53"; color: var(--sh-red); }
p.stars:hover a:hover ~ a::before { content: "\73"; color: #d8d4ce; }
p.stars a.active::before { content: "\53"; color: var(--sh-red); }
p.stars a.active ~ a::before { content: "\73"; }
