/* ============================================================
   PRODUKT-PROFIL - zlúčené štýly (production)
   Obsah:
     1) Značka (štítok)
     2) Kúpny panel (cena + dostupnosť)
     3) Zľavový kód (detail + kategória)
     4) Pás v popise (navigačné tlačidlá)
     5) Banner hodnotenia obchodu (bočný panel)
     6) Karta "Opýtať sa" pod košíkom
     A) Doručenie (rozloženie riadku)
     B) Štítok zľavy pri cene -X %
     C) Ikony výhod (mriežka pod galériou)
   Vlož CELÉ do: Shoptet admin -> Vzhľad a obsah -> Custom CSS
   ============================================================ */

:root {
  /* zľava (kupón) */
  --he-disc-reduction-bg: #7cb342;
  --he-disc-reduction-color: #ffffff;
  --he-disc-code-bg: #231f20;
  --he-disc-code-color: #ffffff;
  --he-disc-price-color: #231f20;
  /* banner hodnotenia */
  --he-rating-radius: 16px;
  --he-rating-bg: #ffffff;
  --he-rating-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  --he-rating-border-color: #e7e7e0;
  --he-rating-title-color: #1f2a16;
  --he-rating-text-color: #7a7a72;
  --he-rating-number-color: #3f7d2e;
  --he-rating-stars-color: #f5a623;
  --he-rating-btn-bg: #3f7d2e;
  --he-rating-btn-bg-hover: #336626;
  --he-rating-btn-text-color: #ffffff;
  --he-rating-btn-radius: 10px;
  /* karta "Opýtať sa" */
  --he-help-accent: #3f7d2e;        /* JS prepíše na zelenú z tlačidla do košíka */
  --he-help-accent-dark: #336626;
  --he-help-bg: #f7f8f5;
  --he-help-border: #e6ebe1;
  --he-title-color: #1f2a16;
  --he-text-color: #5a5a52;
}


/* ===== 1) ZNAČKA ===== */
a[data-testid="productCardBrandName"] {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 6px 14px;
  background: #f1f6ee; border: 1px solid #cfe0c4; border-radius: 999px;
  color: #5a5a52; text-decoration: none;
  font-size: 13px; font-weight: 600; line-height: 1;
  transition: background-color .2s ease, border-color .2s ease;
}
a[data-testid="productCardBrandName"]:hover { background: #e6efe0; border-color: #a9c79a; }
a[data-testid="productCardBrandName"] > span { font-weight: 800; color: #3f7d2e; font-size: 14px; }


/* ===== 2) KÚPNY PANEL ===== */
.p-info-grid {
  background: #f4f6f2; border: 1px solid #e6ebe1; border-radius: 16px;
  padding: 20px 22px; margin-bottom: 18px;
}


/* ===== 3) ZĽAVOVÝ KÓD (detail + kategória) ===== */
#he-disc-detail { margin: 0 0 14px; max-width: 460px; }
.he-disc__bar { display: inline-flex; border-radius: 8px; overflow: hidden; font-weight: 800; font-size: 13px; }
.he-disc__reduction { background: var(--he-disc-reduction-bg); color: var(--he-disc-reduction-color); padding: 8px 14px; white-space: nowrap; }
.he-disc__code { background: var(--he-disc-code-bg); color: var(--he-disc-code-color); padding: 8px 14px; white-space: nowrap; }
.he-disc__priceline { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.he-disc__price { font-size: 24px; font-weight: 800; color: var(--he-disc-price-color); }
.he-disc__with { font-size: 13px; color: #5a5a52; }
.he-disc__copy { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #9a9a92; cursor: pointer; }
.he-disc__copy svg { width: 16px; height: 16px; fill: currentColor; }
.he-disc__copy:hover { color: #231f20; }
.he-disc__copy.is-copied::after { content: "Skopírované"; position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: #1f2a16; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.he-disc__timer { margin-top: 8px; font-size: 13px; color: #5a5a52; }
.he-disc__timer b { color: #231f20; font-weight: 800; }
.he-disc-tile__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; font-weight: 800; font-size: 11px; line-height: 1; z-index: 2; }
.he-disc-tile__reduction { background: var(--he-disc-reduction-bg); color: var(--he-disc-reduction-color); padding: 6px 8px; flex: 1; text-align: center; white-space: nowrap; }
.he-disc-tile__code { background: var(--he-disc-code-bg); color: var(--he-disc-code-color); padding: 6px 8px; flex: 1; text-align: center; white-space: nowrap; }
.he-disc-tile__price { margin-top: 4px; font-weight: 800; color: var(--he-disc-price-color); font-size: 15px; }
.he-disc-tile__price span { font-weight: 600; color: #5a5a52; font-size: 12px; }


/* ===== 4) PÁS V POPISE (navigačné tlačidlá) ===== */
.he-pnav { display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; margin: 30px 0 42px; padding: 10px; background: #f7f8f5; border: 1px solid #ececec; border-radius: 18px; cursor: grab; scrollbar-width: thin; scrollbar-color: #cfd3c8 transparent; }
.he-pnav::-webkit-scrollbar { height: 6px; }
.he-pnav::-webkit-scrollbar-thumb { background: #cfd3c8; border-radius: 3px; }
.he-pnav::-webkit-scrollbar-track { background: transparent; }
.he-pnav.is-drag { cursor: grabbing; }
.he-pnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border: 1px solid #e3e6dd; border-radius: 12px; background: #fff; color: #3a3a34; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; user-select: none; transition: all .15s ease; }
.he-pnav a:hover { border-color: #3f7d2e; }
.he-pnav a.is-active { background: #3f7d2e; color: #fff; border-color: #3f7d2e; }
.he-pnav__arr { font-size: 13px; opacity: .55; }
.he-pnav a.is-active .he-pnav__arr { opacity: .9; }
#description h2, #tab-content h2 { scroll-margin-top: 90px; }


/* ===== 5) BANNER HODNOTENIA OBCHODU ===== */
#he-rating-banner { margin: 0 0 18px; }
.he-rating { display: block; padding: 24px 22px; text-align: center; background: transparent; }
.he-rating.is-custombg { background: var(--he-rating-bg); box-shadow: var(--he-rating-shadow); border: 1px solid var(--he-rating-border-color); }
.he-rating.is-rounded { border-radius: var(--he-rating-radius); }
.he-rating__link { display: block; text-decoration: none; }
.he-rating__title { display: block; font-weight: 800; color: var(--he-rating-title-color); font-size: 20px; line-height: 1.2; margin-bottom: 12px; }
.he-rating__row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.he-rating__value { order: 1; font-size: 46px; font-weight: 800; line-height: 1; color: var(--he-rating-number-color); }
.he-rating__stars { order: 2; position: relative; display: inline-block; white-space: nowrap; font-size: 22px; line-height: 1; }
.he-rating__stars::before { content: "\2605\2605\2605\2605\2605"; color: #e2e2d6; }
.he-rating__stars-fill { position: absolute; top: 0; left: 0; width: var(--he-rating-percent, 0); overflow: hidden; white-space: nowrap; }
.he-rating__stars-fill::before { content: "\2605\2605\2605\2605\2605"; color: var(--he-rating-stars-color); }
.he-rating__count { order: 3; color: var(--he-rating-text-color); font-size: 14px; }
.he-rating__norating { display: block; color: var(--he-rating-text-color); font-size: 14px; margin-bottom: 18px; }
.he-rating__btn { display: block; width: 100%; box-sizing: border-box; padding: 14px 18px; text-align: center; background: var(--he-rating-btn-bg); color: var(--he-rating-btn-text-color); border-radius: var(--he-rating-btn-radius); text-decoration: none; font-size: 16px; font-weight: 700; transition: background-color .2s ease; }
.he-rating__btn:hover { background: var(--he-rating-btn-bg-hover); color: var(--he-rating-btn-text-color); }
.sidepanel-rating { display: none !important; }


/* ===== 6) KARTA "OPÝTAŤ SA" POD KOŠÍKOM ===== */
#he-pc { margin: 16px 0; }
.he-help { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; box-sizing: border-box; padding: 14px 16px; background: var(--he-help-bg); border: 1px solid var(--he-help-border); border-radius: 14px; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.he-help:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.he-help:focus { outline: 2px solid var(--he-help-accent); outline-offset: 2px; }
.he-help__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--he-help-accent); display: flex; align-items: center; justify-content: center; }
.he-help__icon svg { width: 24px; height: 24px; fill: #fff; }
.he-help__body { display: flex; flex-direction: column; gap: 2px; flex: 0 1 auto; min-width: 0; }
.he-help__title { font-weight: 800; color: var(--he-title-color); font-size: 16px; line-height: 1.2; }
.he-help__subtitle { font-size: 13px; color: var(--he-text-color); }
.he-help__btn { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 13px 22px; background: var(--he-help-accent); color: #fff; border-radius: 999px; font-size: 16px; font-weight: 800; white-space: nowrap; transition: background-color .2s ease; }
.he-help__btn-ico { width: 18px; height: 18px; fill: #fff; flex: 0 0 auto; }
.he-help:hover .he-help__btn { background: var(--he-help-accent-dark); }
@media (max-width: 480px) {
  .he-help__btn { padding: 11px 16px; font-size: 15px; gap: 6px; }
  .he-help__btn-ico { width: 16px; height: 16px; }
  .he-help__title { font-size: 15px; }
}


/* ===== A) DORUČENIE - rozloženie riadku (tvoje) ===== */
.delivery-line { flex-wrap: wrap !important; flex-direction: column !important; align-items: flex-start !important; }
.delivery-line .shipping-options { display: block !important; margin-top: 4px; }


/* ===== B) ŠTÍTOK ZĽAVY PRI CENE -X % (tvoje) ===== */
.price-tag-off {
  display: inline-block;
  background: #F7D1D3; color: #BC4952;
  font: 700 14px/1 "Poppins", "Open Sans", sans-serif;
  padding: 6px 10px; border-radius: 6px; margin-left: 8px;
  vertical-align: middle; white-space: nowrap;
}


/* ===== C) IKONY VÝHOD - mriežka 2 v rade (mobil aj PC), pod galériou ===== */
.benefitBanner.position--benefitProduct {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 30px 22px;
  max-width: 460px;
  margin: 38px auto 0;
  align-items: start;
}
.benefitBanner.position--benefitProduct .benefitBanner__item { display: block !important; float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 6px !important; text-align: center !important; box-sizing: border-box; }
.benefitBanner.position--benefitProduct .benefitBanner__item * { text-align: center !important; }
.benefitBanner.position--benefitProduct .benefitBanner__picture { margin: 0 0 8px !important; }
.benefitBanner.position--benefitProduct .benefitBanner__img { display: inline-block !important; width: 44px !important; height: 44px !important; }
.benefitBanner.position--benefitProduct .benefitBanner__content { display: block !important; width: 100% !important; }
.benefitBanner.position--benefitProduct .benefitBanner__title { display: block !important; margin-bottom: 4px; }