/* preke-2026.css (2026-10-24) – saldymas.lt prekės puslapis.
   Klasės pk-* priskirtos Maza Layout builder → Product (layout_id 2): eilutė pk-top, stulpeliai pk-gal / pk-info,
   HTML valdikliai pk-chips-w, pk-extra-w, pk-alt-w, pk-call-w; eilutė pk-more (aprašymas), forma pk-rev.
   #entry_* ID nenaudoti – Maza juos perrašo išsaugojus maketą. JS – catalog/view/javascript/preke-2026.js */
.product-product {
  --pk-blue: #263775;
  --pk-blue2: #103078;
  --pk-green: #2e7d32;
  --pk-line: #e2e6ee;
  --pk-bg: #f4f6fa;
  --pk-muted: #5b6270;
  --pk-ink: #1d2330;
}

/* ---------- Viršus: galerija + informacija ---------- */
@media (min-width: 768px) {
  .product-product .pk-top { align-items: flex-start; }
  .product-product .pk-gal { position: -webkit-sticky; position: sticky; top: 72px; align-self: flex-start; z-index: 2; }
}
.product-product .pk-info .content-title h1 { margin-bottom: 4px; }
.product-product .pk-info .design-horizontal_line { margin-top: 6px !important; margin-bottom: 6px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.product-product .pk-info .design-horizontal_line hr { margin: 0; }
.product-product .pk-info .content-brand img { max-height: 52px; width: auto; padding: 2px; }
.product-product .pk-info .content-brand .figure { margin: 0; }
/* pristatymą ir telefoną rodo pažadai / CTA žemiau – kainos bloke paliekama „Montuojame…“ eilutė */
.product-product .pk-info .mz-buy-info li:has(.fa-truck),
.product-product .pk-info .mz-buy-info li:has(.fa-phone) { display: none; }
.product-product .pk-info .mz-buy-info:not(:has(.fa-wrench)) { display: none; }
/* tuščias Mokilizingas iframe (skaičiuoklė nebeveikia, atsiskaitymas – ESTO) */
.product-product .pk-info .elp_mokilizingas { display: none !important; }
.product-product .pk-info .content-minimum:has(.elp_mokilizingas):not(:has(.alert)) { display: none; }

/* ---------- Faktų čipai ---------- */
.product-product .pk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; min-height: 52px; }
.product-product .pk-chips[data-state="few"] { min-height: 0; }
.product-product .pk-chips[data-state="none"] { display: none; }
.product-product .pk-chip { display: flex; flex-direction: column; justify-content: center; min-width: 88px; padding: 6px 11px; border: 1px solid var(--pk-line); border-radius: 8px; background: #fff; line-height: 1.2; }
.product-product .pk-chip small { font-size: 11.5px; color: var(--pk-muted); white-space: nowrap; }
.product-product .pk-chip b { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--pk-blue); white-space: nowrap; }

/* ---------- Pažadai ---------- */
.product-product .pk-extra { margin: 6px 0 4px; }
.product-product .pk-promises { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0 0 14px; padding: 0; list-style: none; }
.product-product .pk-promises li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.35; color: var(--pk-ink); }
.product-product .pk-promises svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; color: var(--pk-green); }
.product-product .pk-promises b { display: block; font-weight: 600; }
.product-product .pk-promises small { display: block; font-size: 13px; color: var(--pk-muted); }
.product-product .pk-promises a { color: var(--pk-blue); text-decoration: underline; }

/* ---------- Konsultacijos CTA ---------- */
.product-product .pk-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--pk-line); border-radius: 10px; background: var(--pk-bg); }
.product-product .pk-cta__ava { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--pk-blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.product-product .pk-cta__ava svg { width: 24px; height: 24px; }
.product-product .pk-cta__txt { flex: 1 1 auto; min-width: 0; }
.product-product .pk-cta__q { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--pk-ink); }
.product-product .pk-cta__who { margin: 0; font-size: 14px; color: var(--pk-ink); }
.product-product .pk-cta__who a { font-weight: 700; color: var(--pk-blue); white-space: nowrap; }
.product-product .pk-cta__sub { margin: 2px 0 0; font-size: 13px; color: var(--pk-muted); }
.product-product .pk-cta__sub a { color: inherit; text-decoration: underline; }
.product-product .pk-cta__btn { flex: 0 0 auto; min-height: 44px; padding: 9px 18px; border: 2px solid var(--pk-blue); border-radius: 6px; background: #fff; color: var(--pk-blue); font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.product-product .pk-cta__btn:hover,
.product-product .pk-cta__btn:focus-visible { background: var(--pk-blue); color: #fff; }

/* „Klausti apie prekę“ langas */
#ask-about-product-modal .pk-aap-head { align-items: flex-start; }
#ask-about-product-modal .pk-aap-head .modal-title { margin: 0; font-weight: 700; }
#ask-about-product-modal .pk-aap-prod { margin: 2px 0 0; font-size: 13px; color: #5b6270; }

/* ---------- Išsirinkite tinkamiausią ---------- */
.product-product .pk-alt { margin: 26px 0 10px; }
.product-product .pk-alt[hidden] { display: none; }
.product-product .pk-alt__h { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--pk-ink); }
.product-product .pk-alt__p { margin: 0 0 14px; font-size: 14px; color: var(--pk-muted); }
.product-product .pk-alt__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product-product .pk-alt__card { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid var(--pk-line); border-radius: 10px; background: #fff; transition: box-shadow .15s; }
.product-product .pk-alt__card:hover { box-shadow: 0 4px 16px rgba(16, 48, 120, .12); }
.product-product .pk-alt__card--cur { border: 2px solid var(--pk-blue); background: var(--pk-bg); }
.product-product .pk-alt__tag { align-self: flex-start; margin-bottom: 8px; padding: 3px 8px; border-radius: 4px; background: #e8edf7; color: var(--pk-blue); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.product-product .pk-alt__tag--eco { background: #e6f4ea; color: #1e6b34; }
.product-product .pk-alt__tag--cur { background: var(--pk-blue); color: #fff; }
.product-product .pk-alt__img { display: flex; align-items: center; justify-content: center; height: 130px; }
.product-product .pk-alt__img img { max-width: 100%; max-height: 130px; width: auto; height: auto; object-fit: contain; }
.product-product .pk-alt__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 8px 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--pk-ink); }
.product-product a.pk-alt__name:hover { color: var(--pk-blue); text-decoration: underline; }
.product-product .pk-alt__kw { font-size: 13px; color: var(--pk-muted); }
.product-product .pk-alt__price { margin-top: auto; padding-top: 8px; font-size: 18px; font-weight: 700; color: var(--pk-blue); }
.product-product .pk-alt__diff { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 700; }
.product-product .pk-alt__diff--up { color: #8a5300; }
.product-product .pk-alt__diff--down { color: #1e6b34; }
.product-product .pk-alt__btn { display: block; margin-top: 10px; min-height: 44px; padding: 10px 8px; border: 2px solid var(--pk-blue); border-radius: 6px; color: var(--pk-blue); font-size: 15px; font-weight: 700; line-height: 20px; text-align: center; }
.product-product a.pk-alt__btn:hover,
.product-product a.pk-alt__btn:focus-visible { background: var(--pk-blue); color: #fff; text-decoration: none; }
.product-product .pk-alt__btn--cur { border-color: transparent; color: var(--pk-muted); font-weight: 600; }

/* ---------- Apačia per visą plotį ---------- */
/* Maza stulpelio šablonas – flex eilutė (justify-around, align-center); čia reikia stulpelio per visą plotį */
.product-product .pk-alt-row-col,
.product-product .pk-more-col { flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important; }
.product-product .pk-alt-row-col > *,
.product-product .pk-more-col > * { width: 100%; max-width: 100%; min-width: 0; }
.product-product .pk-more { margin-top: 18px; }
.product-product .pk-more .tab-content { max-width: 1000px; }
.product-product .pk-rev { max-width: 720px; margin-top: 24px; }

@media (max-width: 1199.98px) {
  .product-product .pk-alt__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .product-product .pk-promises { grid-template-columns: 1fr; }
  .product-product .pk-cta { flex-wrap: wrap; }
  .product-product .pk-cta__txt { flex: 1 1 calc(100% - 60px); }
  .product-product .pk-cta__btn { flex: 1 1 100%; }
}
@media (max-width: 767.98px) {
  .product-product .pk-chips { min-height: 104px; gap: 6px; }
  .product-product .pk-chip { flex: 1 1 calc(33.333% - 6px); min-width: 0; padding: 6px 8px; }
  .product-product .pk-chip small { font-size: 11px; white-space: normal; }
  .product-product .pk-chip b { font-size: 14px; }
  .product-product .pk-promises { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .product-product .pk-promises li { font-size: 13.5px; }
  .product-product .pk-alt__h { font-size: 20px; }
  .product-product .pk-alt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-product .pk-alt__card { padding: 10px; }
  .product-product .pk-alt__img { height: 110px; }
  .product-product .pk-alt__img img { max-height: 110px; }
  .product-product .pk-alt__price { font-size: 16px; }
  .product-product .pk-alt__diff { display: block; margin: 2px 0 0; }
  .product-product .pk-more .tab-content { max-width: none; }
}
@media (max-width: 400px) {
  .product-product .pk-promises { grid-template-columns: 1fr; }
}

/* ---------- Telefonas: lipni apatinė juosta + skambinimas ---------- */
.product-product .pk-call { display: none; }
@media (max-width: 575.98px) {
  .product-product .fixed-bottom > .entry-component { gap: 6px; padding-left: 6px !important; padding-right: 6px !important; }
  .product-product .fixed-bottom .content-quantity .btn { min-width: 42px; min-height: 44px; }
  .product-product .fixed-bottom .content-quantity .form-control { min-height: 44px; }
  .product-product .fixed-bottom .content-button { flex: 0 0 auto; }
  .product-product .fixed-bottom .content-button.d-md-none { flex: 1 1 auto; min-width: 0; }
  .product-product .fixed-bottom .content-button .btn { min-height: 44px; min-width: 44px; }
  .product-product .fixed-bottom .content-button.d-md-none .btn { width: 100%; padding-left: 6px; padding-right: 6px; }
  .product-product .fixed-bottom .pk-call-w { flex: 0 0 auto; }
  .product-product .pk-call { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; background: var(--pk-green); color: #fff; }
  .product-product .pk-call svg { width: 22px; height: 22px; }
  /* Crisp burbulas virš juostos, kad neuždengtų mygtukų */
  .product-product #crisp-chatbox > div > div[role="button"] { bottom: 64px !important; }
}
