/* =====================================================================
   peneloppe.sk – všetky vlastné štýly na jednom mieste
   FTP: /user/documents/peneloppe-sk.css
   Pri každej zmene zvýšte ?v= v odkaze v Záhlaví.

   1. Celý web (pôvodne <style> v Záhlaví)
   2. Lepiaca lišta „Do košíka“ (pôvodne pene-sticky-cartsk.css)
   3. Recenzie z Heureky (pôvodne pene-reviews-modern2.css)
   4. Produktová stránka – rozloženie a mobil
   5. Krátky popis – ikonky výhod, doprava (pôvodne <style> v krátkom popise)
   6. Dlhý popis – kapitoly, video (pôvodne <style> v dlhom popise)
   7. Výber balenia (iba Z lásky sa zrodilo…)
   8. Pár slov od autorky (iba Z lásky sa zrodilo…)
   ===================================================================== */

:root {
  --pene-brown: #8b5e3c;       /* nadpisy */
  --pene-gold: #d4a373;        /* doplnky v popise */
  --pene-rose: #e2a89a;        /* výber balenia */
  --pene-rose-dark: #a8624f;   /* štítok – kontrast 4,6 : 1 s bielou */
  --pene-pink: #e9a8c6;        /* ikonky v hlavičke */
  --pene-cream: #fdfaf7;       /* svetlé pozadie sekcií */
  --pene-line: #f0e6db;
  --pene-green: #a1c900;       /* tlačidlo do košíka */
  --pene-green-dark: #84b517;
  --pene-star: #ffb400;
  --pene-text: #333;
  --pene-text-soft: #5a5a5a;
}

/* ---------------------------------------------------------------------
   1. CELÝ WEB
   --------------------------------------------------------------------- */

/* kategória „Líčenie od MUA“ skrytá v hlavnom menu (v rozbaľovacom ostáva) */
li.menu-item-815,
li.menu-item-785 { display: none !important; }

/* skryté: Shoptet hodnotenia v pätičke, EAN/záruka, tlačidlá sociálnych sietí */
.latest-contribution-wrapper,
.extended-description,
.social-buttons-wrapper { display: none !important; }

/* hviezdičky pri hodnoteniach */
.stars .star.star-on::before,
.stars .star.star-half::before { color: #f0b820; }

.navigation-buttons .dropdown > button { border-color: rgb(0 0 0 / 30%); color: #242424; }

/* farba odkazov (aj v košíku) */
.link-like, a { color: #000; }

/* pätička */
#footer, .footer-rows .rate-wrapper { background-color: #fff; }

/* košík – skrytý box „Pomôžeme vám?“ a filtre */
.cart-content.checkout-box-wrapper,
.checkout-box,
#filters-wrapper { display: none; }

/* ružové ikonky v hlavičke */
i.icon-search, i.icon-login, span.icon-cart { color: var(--pene-pink); }
i.icon-search:hover, i.icon-login:hover, span.icon-cart:hover { color: #f1cce1; }


/* ---------------------------------------------------------------------
   2. LEPIACA LIŠTA „DO KOŠÍKA“ (produktové stránky)
   --------------------------------------------------------------------- */
#pene-sticky-cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  height: 75px; padding: 0 15px; box-sizing: border-box;
  background: #fff; border-top: 1px solid #f2ece6;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
}
/* Lišta sa iba zobrazí/skryje. Žiadny transform – iOS Safari a prehliadače
   vo Facebooku/Instagrame by ju pri scrollovaní posúvali po obrazovke. */
#pene-sticky-cart:not(.is-visible) { display: none; }
#pene-sticky-cart.is-visible { animation: pene-sticky-in .25s ease-out; }
@keyframes pene-sticky-in { from { opacity: 0; } to { opacity: 1; } }
#pene-sticky-cart .sticky-cart-inner {
  max-width: 1140px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
}
#pene-sticky-cart .sticky-product-info { display: flex; flex-direction: column; overflow: hidden; text-align: left; }
#sticky-title {
  max-width: 450px; font-size: 14px; font-weight: 700; color: var(--pene-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#sticky-price-val { margin-top: 2px; font-size: 16px; font-weight: 700; color: var(--pene-text); }
#pene-sticky-cart .sticky-add-btn {
  padding: 12px 35px; border: 0; border-radius: 30px; cursor: pointer;
  background: var(--pene-green); color: #fff;
  font-size: 15px; font-weight: 800; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(161, 201, 0, .2);
  transition: background-color .2s ease;
}
#pene-sticky-cart .sticky-add-btn:hover { background: var(--pene-green-dark); }
#pene-sticky-cart .sticky-add-btn:focus-visible { outline: 3px solid var(--pene-text); outline-offset: 2px; }

@media (max-width: 767px) {
  #pene-sticky-cart { height: auto; padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px)); }
  #pene-sticky-cart .sticky-product-info { display: none; }
  #pene-sticky-cart .sticky-cart-inner { justify-content: center; }
  #pene-sticky-cart .sticky-add-btn { width: 100%; min-height: 48px; }
}


/* ---------------------------------------------------------------------
   3. RECENZIE Z HEUREKY (úvod, kategórie, produkty)
   --------------------------------------------------------------------- */
#peneModernReviews {
  clear: both; width: 100%; box-sizing: border-box;
  padding: 56px 20px; background: var(--pene-cream);
  font-family: 'Open Sans', sans-serif;
}
#peneModernReviews .p-reviews-container { max-width: 1200px; margin: 0 auto; }
#peneModernReviews .p-reviews-header { margin-bottom: 32px; text-align: center; }
#peneModernReviews .p-reviews-header h2 {
  margin: 0 0 10px; font-size: 26px; line-height: 1.2; color: var(--pene-brown);
  text-transform: uppercase; letter-spacing: 1px;
}
#peneModernReviews .p-reviews-brand-logo { display: flex; justify-content: center; margin: 0 0 6px; }
#peneModernReviews .p-reviews-brand-logo img { display: block; width: auto; height: 52px; max-width: 100%; opacity: .9; }
#peneModernReviews .p-reviews-rating-line { display: flex; align-items: center; justify-content: center; gap: 12px; }
#peneModernReviews .p-rating-stars { color: var(--pene-star); font-size: 24px; line-height: 1; }
#peneModernReviews .p-rating-percent { color: var(--pene-text); font-size: 16px; font-weight: 700; }

#peneModernReviews .p-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#peneModernReviews .p-review-item {
  display: flex; flex-direction: column;
  padding: 26px; border-radius: 15px; background: #fff; border: 1px solid var(--pene-line);
  box-shadow: 0 10px 30px rgba(139, 94, 60, .05);
}
#peneModernReviews .p-review-stars { margin-bottom: 12px; color: var(--pene-star); font-size: 16px; }
#peneModernReviews .p-review-text {
  flex-grow: 1; margin: 0 0 16px;
  font-size: 15px; font-style: italic; line-height: 1.65; color: var(--pene-text);
}
#peneModernReviews .p-review-meta {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap;
  margin-top: auto; padding-top: 12px; border-top: 1px solid #f6f1ec;
}
#peneModernReviews .p-review-author { font-size: 13px; font-weight: 700; color: var(--pene-brown); white-space: nowrap; }
#peneModernReviews .p-verified-badge {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 20px;
  background: #e8f5e9; color: #2e7d32; font-size: 10px; font-weight: 700; white-space: nowrap; text-transform: uppercase;
}
#peneModernReviews .p-reviews-footer { margin-top: 28px; text-align: center; }
#peneModernReviews .p-reviews-footer a { color: #6b6b6b; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 991px) {
  #peneModernReviews .p-reviews-grid {
    display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }
  #peneModernReviews .p-review-item { flex: 0 0 auto; width: 78%; max-width: 320px; scroll-snap-align: center; }
}
@media (max-width: 767px) {
  #peneModernReviews { padding: 32px 16px 28px; }
  #peneModernReviews .p-reviews-header { margin-bottom: 18px; }
  #peneModernReviews .p-reviews-header h2 { margin-bottom: 6px; font-size: 20px; }
  #peneModernReviews .p-reviews-brand-logo { margin-bottom: 2px; }
  #peneModernReviews .p-reviews-brand-logo img { height: 44px; }
  #peneModernReviews .p-review-item { padding: 20px 18px; }
  #peneModernReviews .p-review-text { margin-bottom: 12px; font-size: 14.5px; line-height: 1.55; }
  #peneModernReviews .p-reviews-footer { margin-top: 16px; }
}
@media (max-width: 360px) {
  #peneModernReviews .p-review-meta { gap: 4px; }
  #peneModernReviews .p-review-author,
  #peneModernReviews .p-verified-badge { font-size: 9px; }
}


/* ---------------------------------------------------------------------
   4. PRODUKTOVÁ STRÁNKA – ROZLOŽENIE A MOBIL (všetky produkty)
   --------------------------------------------------------------------- */

/* cena a tlačidlo hneď pod názvom, ikonky výhod až pod nimi */
.type-detail .p-data-wrapper { display: flex; flex-direction: column; }
.type-detail .p-data-wrapper > .p-detail-inner-header { order: 0; }
.type-detail .p-data-wrapper > #product-detail-form { order: 1; }
.type-detail .p-data-wrapper > .p-short-description { order: 2; }
.type-detail .p-data-wrapper > .social-buttons-wrapper { order: 3; }

/* počítač: kompaktnejší pravý stĺpec, galéria ide pri scrollovaní s vami */
@media (min-width: 992px) {
  .type-detail .p-image-wrapper { position: sticky; top: 20px; align-self: flex-start; }
  .type-detail .p-detail-inner { padding-bottom: 56px; }   /* odstup od recenzií */
  .type-detail .p-detail-inner-header { margin-bottom: 20px; }
  .type-detail .p-detail-inner-header h1 { margin-bottom: 10px; font-size: 28px; line-height: 1.25; }
  .type-detail .p-price-wrapper { margin-bottom: 14px; }
  .type-detail .p-price-wrapper .price-final { padding: 0; font-size: 36px; line-height: 1.15; }
  .type-detail #product-detail-form .detail-parameters { margin-bottom: 24px; }
  .type-detail .p-to-cart-block { margin-bottom: 12px; }
  .type-detail .p-short-description { margin-bottom: 0; }

  /* 4 ikonky výhod v mriežke 2 × 2 */
  .type-detail .pene-list-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px;
    max-width: none; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--pene-line);
  }
  .type-detail .pene-list-item { align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 0; }
  .type-detail .pene-list-icon { width: 34px; height: 34px; }
  .type-detail .pene-list-title { font-size: 13px; line-height: 1.3; }
  .type-detail .pene-list-text { font-size: 14px; }
  .type-detail .pene-inline-row { margin-top: 10px; padding: 16px 0 0; border-top: 1px solid var(--pene-line); }

  .pnl { margin: 0 0 22px; }
  .pnl__desc { min-height: 0; margin-top: 10px; }
}

@media (max-width: 767px) {
  .type-detail .p-detail-inner-header-mobile .h1 { margin: 20px 0 10px; font-size: 23px; line-height: 1.25; }
  .type-detail .p-price-wrapper { margin-bottom: 10px; }
  .type-detail .p-price-wrapper .price-final { padding: 4px 0; font-size: 27px; line-height: 1.2; }
  .type-detail .p-detail-tabs-wrapper .tab-content { padding: 18px 14px; }
}


/* ---------------------------------------------------------------------
   5. KRÁTKY POPIS – IKONKY VÝHOD A DOPRAVA
   --------------------------------------------------------------------- */
.pene-list-container { max-width: 600px; margin: 30px 0; font-family: 'Open Sans', sans-serif; }
.pene-list-item { display: flex; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px dashed #e0e0e0; }
.pene-list-item:last-child { border-bottom: 0; }
.pene-list-icon { flex-shrink: 0; width: 45px; height: 45px; object-fit: contain; }
.pene-list-content { display: flex; flex-direction: column; }
.pene-list-title { margin-bottom: 3px; font-weight: 700; color: var(--pene-brown); text-transform: uppercase; }
.pene-list-text { margin: 0; color: #555; line-height: 1.4; }

.pene-inline-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  font-family: 'Open Sans', sans-serif; color: #000; line-height: 1;
}
.pene-inline-icon { flex-shrink: 0; width: auto; height: 1.3em; object-fit: contain; }
.pene-inline-title { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

@media (max-width: 767px) {
  .pene-list-container { margin: 18px 0 8px; }
  .pene-list-item { padding: 10px 0; }
  .type-detail .pene-inline-row { padding: 14px 0 0; border-top: 1px solid var(--pene-line); }
  .type-detail .p-detail-inner { padding-bottom: 36px; }   /* odstup od recenzií */
}

/* Instagram widget skrytý na stránke knihy */
.pnl-page #dklab_instagram_widget { display: none; }


/* ---------------------------------------------------------------------
   6. DLHÝ POPIS – KAPITOLY A VIDEO
   --------------------------------------------------------------------- */
.pene-story-section {
  max-width: 1200px; margin: 30px auto; padding: 0 20px; box-sizing: border-box;
  font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.6; color: #444;
}
.pene-intro { max-width: 800px; margin: 0 auto 40px; text-align: center; font-size: 18px; font-style: italic; color: #666; }
.pene-row { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; margin-bottom: 50px; }
.pene-row:nth-child(even) { flex-direction: row-reverse; }
.pene-col-img { flex: 1 1 400px; }
.pene-col-text { flex: 1 1 500px; text-align: left; }
.pene-img {
  display: block; width: 100%; height: auto; border-radius: 15px; border: 1px solid #f2ece6;
  box-shadow: 0 8px 25px rgba(212, 163, 115, .15);
}
.pene-step-tag {
  display: block; margin-bottom: 8px; color: var(--pene-gold);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
}
.pene-h2 { margin: 0 0 15px; color: var(--pene-text); font-size: 26px; font-weight: 700; line-height: 1.2; }
.pene-p { margin-bottom: 15px; }
.pene-features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pene-features-list li { display: flex; align-items: center; gap: 8px; color: #555; font-size: 14px; }
.pene-features-list li::before { content: '✓'; color: var(--pene-gold); font-weight: 700; }

.pene-video { margin-top: 40px; text-align: center; }
.pene-video-title { margin-bottom: 15px; font-size: 16px; font-weight: 700; }
.pene-video-frame {
  position: relative; max-width: 850px; margin: 0 auto; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.pene-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pene-copyright {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee;
  color: #999; font-size: 11px; line-height: 1.6; text-align: center;
}

@media (max-width: 767px) {
  .pene-story-section { margin: 10px 0; padding: 0; }
  .pene-intro { margin-bottom: 26px; font-size: 16px; }
  .pene-row { gap: 20px; margin-bottom: 28px; }
  .pene-col-text { font-size: 15px; }
  .pene-h2 { margin: 22px 0 10px; font-size: 21px; line-height: 1.25; }
}


/* ---------------------------------------------------------------------
   7. VÝBER BALENIA (iba Z lásky sa zrodilo…)
   --------------------------------------------------------------------- */
.pnl { margin: 6px 0 18px; font-size: 14px; }
.pnl__label { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #3a3a3a; }
.pnl__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pnl__opt {
  position: relative; padding: 16px 8px 12px; cursor: pointer; text-align: center;
  border: 1px solid #e3ded8; border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .pnl__opt:hover { border-color: var(--pene-rose); } }
.pnl__opt:focus-visible { outline: 2px solid var(--pene-rose-dark); outline-offset: 2px; }
.pnl__opt.is-active {
  border-color: var(--pene-rose); background: var(--pene-cream);
  box-shadow: inset 0 0 0 1px var(--pene-rose), 0 2px 10px rgba(226, 168, 154, .22);
}
.pnl__imgs { display: flex; justify-content: center; gap: 3px; min-height: 36px; margin-bottom: 8px; }
.pnl__imgs img {
  width: 46px; height: 34px; padding: 2px; object-fit: contain;
  border: 1px solid #eee4e0; border-radius: 6px; background: #fff;
}
.pnl__name { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; color: #3a3a3a; }
.pnl__sum { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; color: #3a3a3a; }
.pnl__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 999px; background: var(--pene-rose-dark); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.pnl__desc { min-height: 38px; margin: 12px 0 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--pene-text-soft); }
.pnl__toggle {
  display: flex; align-items: center; gap: 6px; margin: 2px auto 0; padding: 6px 2px;
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: #6b6b6b;
  text-decoration: underline; text-underline-offset: 3px;
}
.pnl__ico { display: inline-block; text-decoration: none; transition: transform .2s ease; }
.pnl__toggle[aria-expanded="true"] .pnl__ico { transform: rotate(180deg); }
.pnl__details { margin-top: 10px; padding: 14px; border: 1px dashed #ecdad4; border-radius: 12px; background: var(--pene-cream); }
.pnl__item { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: start; text-align: left; }
.pnl__item + .pnl__item { margin-top: 13px; padding-top: 13px; border-top: 1px solid #f0e6e2; }
.pnl__item img {
  width: 68px; height: 48px; padding: 2px; object-fit: contain;
  border: 1px solid #eee4e0; border-radius: 7px; background: #fff;
}
.pnl__item strong { display: block; margin-bottom: 3px; font-size: 13px; color: #3a3a3a; }
.pnl__item span { display: block; font-size: 12.5px; line-height: 1.5; color: #6b6b6b; }
.pnl-busy { opacity: .6; pointer-events: none; }

@media (min-width: 768px) { .pnl__grid { grid-template-columns: repeat(4, 1fr); } }


/* ---------------------------------------------------------------------
   8. PÁR SLOV OD AUTORKY (iba Z lásky sa zrodilo…)
   --------------------------------------------------------------------- */
.pnl-author { padding: 48px 20px; background: #fff; }
.pnl-author__inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; max-width: 980px; margin: 0 auto; }
.pnl-author__photo img {
  display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 18px; box-shadow: 0 0 0 7px var(--pene-cream), 0 0 0 8px #ecdad4;
}
.pnl-author__text { text-align: center; }
.pnl-author__title {
  margin: 0 0 16px; font-family: Poppins, sans-serif; font-size: 22px; font-weight: 700;
  color: var(--pene-brown); text-transform: uppercase; letter-spacing: .02em;
}
.pnl-author__text p { margin: 0 0 12px; font-size: 16px; font-style: italic; line-height: 1.7; color: #4a4a4a; }
.pnl-author__text .pnl-author__sign { margin-top: 18px; font-style: normal; }
.pnl-author__sign strong { display: block; font-family: Poppins, sans-serif; font-size: 17px; color: #3a3a3a; }
.pnl-author__sign span { display: block; margin-top: 2px; font-size: 13px; color: var(--pene-brown); }

@media (min-width: 768px) {
  .pnl-author { padding: 72px 40px; }
  .pnl-author__inner { grid-template-columns: 320px 1fr; gap: 56px; }
  .pnl-author__photo img { max-width: 320px; }
  .pnl-author__text { text-align: left; }
  .pnl-author__title { font-size: 26px; }
}
@media (max-width: 767px) { .pnl-author { padding: 36px 16px; } }


/* ---------------------------------------------------------------------
   Menej pohybu pre tých, ktorí ho majú v systéme vypnutý
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #pene-sticky-cart.is-visible { animation: none; }
  .pnl__opt, .pnl__ico, #pene-sticky-cart .sticky-add-btn { transition: none; }
}

/* odkazy na doplnky v detaile balenia */
.pnl__item-img { display: block; }
.pnl__item-link { color: inherit; text-decoration: none; }
.pnl__item-link strong { text-decoration: underline; text-decoration-color: #d8c4bc; text-underline-offset: 3px; }
@media (hover: hover) { .pnl__item-link:hover strong, .pnl__item-more:hover { text-decoration-color: currentColor; } }
.pnl__item-more {
  display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--pene-rose-dark);
  text-decoration: underline; text-decoration-color: #e7c7bd; text-underline-offset: 3px;
}
.pnl__item-link:focus-visible, .pnl__item-more:focus-visible { outline: 2px solid var(--pene-rose-dark); outline-offset: 2px; border-radius: 3px; }
