/* === custom.css — FINÁLNÍ OPRAVA (Oválné příznaky) === */
/* === ZÁKLAD === */
:root {
  --template-headings-font: 'Outfit', sans-serif
}

body {
  font-family: "Outfit", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: #fff !important
}

.whole-width a {
  color: #000
}

.contact-box li:last-child {
  letter-spacing: .2px
}

header .social-icon-list {
  display: none !important
}

#footer .contact-box.no-image {
  filter: invert(0)
}

.p-tools {
  margin-bottom: 33px;
  width: 100%;
  float: left
}

/* MEZERY: karusely, bannery, cílové boxy */
#target {
  display: block;
  min-height: 0 !important;
  width: 100%;
  box-sizing: border-box
}

.row.banners-row {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important
}

.row.banners-row:empty {
  display: none !important
}

.row.banners-row:not(:has(img, a, .banner)) {
  display: none !important
}

/* Swiper */
.swiper.my-swiper {
  min-height: unset !important;
  width: 100%;
  position: relative;
  padding-bottom: 20px !important;
  margin-bottom: 16px !important;
  box-sizing: border-box
}

.swiper-pagination {
  min-height: 0 !important
}

.swiper.my-swiper .swiper-slide {
  height: auto !important
}

.swiper.my-swiper+.row.banners-row {
  display: none !important
}

/* Nadpisy sekcí */
.homepage-products-heading-33,
.homepage-products-heading-37 {
  margin-top: 16px !important;
  margin-bottom: 12px !important;
  line-height: 1.2
}

/* MOBIL */
@media (max-width: 768px) {
  .homepage-blog-wrapper {
    display: none
  }

  .swiper.my-swiper {
    margin-bottom: 14px !important;
    padding-bottom: 16px !important
  }

  .homepage-products-heading-37 {
    margin-top: 16px !important
  }
}

/* PRODUKTOVÉ DOPLŇKY */
.discounttag {
  background: #fdf6d9 !important;
  border-radius: 100px;
  text-align: center;
  max-width: 78%;
  margin: auto;
  position: relative;
  bottom: -31px
}

/* Specifikace ve výpise */
.ab-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: .95rem;
  line-height: 1.3
}

.ab-specs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f9ff;
  border: 1px solid #e3f1ff;
  border-radius: 999px;
  padding: 6px 10px;
  color: #111;
  white-space: nowrap
}

.ab-specs__icon {
  font-style: normal;
  color: #009cff
}

[class*="products"] .product .ab-specs {
  margin-bottom: 6px
}

/* Mobilní lišta filtru */
.ab-filter-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  background: #009cff;
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, .08)
}

.ab-filter-bar__btn {
  display: flex;
  align-items: center;
  gap: 8px
}

.ab-filter-bar__btn svg {
  width: 18px;
  height: 18px
}

@media (max-width: 992px) {
  .ab-filter-bar {
    display: flex
  }

  body {
    padding-bottom: 56px
  }
}

/* Porovnání */
.ab-compare-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .92rem;
  cursor: pointer;
  user-select: none
}

.ab-compare-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 64px;
  z-index: 9998;
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 10px 12px
}

.ab-compare-dock__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.ab-compare-chip {
  border: 1px solid #e3f1ff;
  background: #f5f9ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .9rem
}

.ab-compare-actions {
  display: flex;
  gap: 10px
}

.ab-btn {
  appearance: none;
  border: 1px solid #009cff;
  background: #009cff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer
}

.ab-btn--ghost {
  background: #fff;
  color: #009cff
}

.ab-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(0, 0, 0, .4)
}

.ab-modal__inner {
  position: relative;
  margin: 40px auto;
  max-width: 1100px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  overflow: auto;
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18)
}

.ab-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer
}

.ab-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem
}

.ab-compare-table th,
.ab-compare-table td {
  border: 1px solid #eef2f7;
  padding: 10px;
  text-align: left;
  vertical-align: top
}

.ab-compare-table thead th {
  background: #f7fbff;
  color: #111
}

.ab-compare-table tbody tr:nth-child(odd) {
  background: #fcfeff
}

/* Tel/email v hlavičce */
#header .contact-box a[href^="tel"],
#header .contact-box a[href^="mailto"] {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: #111 !important
}

/* Pojistky v navigaci */
#navigation .menu-level-1 a[href*="hodnoceni-obchodu"],
#navigation .menu-level-1 a[href*="nejcastejsi-otazky"] {
  display: none !important
}

#nav-manufacturers {
  display: none !important
}

/* === MOBILE READABILITY BOOST (větší texty + tlačítka) === */
@media (max-width: 768px) {

  html,
  body {
    font-size: 17px !important;
    line-height: 1.7 !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  h1 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  h2 {
    font-size: 1.4rem !important;
    line-height: 1.28 !important;
  }

  h3 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }

  p,
  li,
  .text,
  .description,
  .article {
    font-size: 1rem !important;
  }

  .breadcrumbs,
  small,
  .label,
  .note {
    font-size: .95rem !important;
  }

  .product .name,
  .p .name {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  .p .price-final,
  .product .price-final {
    font-size: 1.15rem !important;
    font-weight: 700;
  }

  .btn,
  .button,
  button,
  [type="submit"],
  .btn-primary,
  .p-to-cart .btn,
  .p-to-cart-block .btn,
  .ab-btn,
  .ab-btn--ghost {
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    line-height: 1.2 !important;
  }

  .ab-btn--ghost {
    border-width: 2px !important;
  }

  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 1rem !important;
    padding: 12px 14px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
  }

  #menu-pt a,
  #menu-pt button {
    font-size: 1.05rem !important;
    padding: 14px 16px !important;
    min-height: 48px !important;
  }

  .ab-specs,
  .ab-compare-toggle,
  .ab-compare-chip {
    font-size: 1rem !important;
  }

  .paging a,
  .paging span {
    font-size: 1rem !important;
    padding: 10px 14px !important;
    min-width: 44px;
    min-height: 44px;
  }

  #header .search input[type="text"],
  #header .search input[type="search"] {
    font-size: 1rem !important;
    padding: 12px 14px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
  }

  #header .search button[type="submit"] {
    min-height: 46px !important;
    padding: 12px 14px !important;
  }

  .type-detail .p-to-cart-block .btn {
    font-size: 1.0625rem !important;
  }

  .type-detail .amount input,
  .type-detail .amount select {
    min-height: 46px !important;
  }

  .accordion .title,
  .faq .question {
    font-size: 1.05rem !important;
  }

  .accordion .content,
  .faq .answer {
    font-size: 1rem !important;
  }

  body {
    padding-bottom: max(56px, env(safe-area-inset-bottom)) !important;
  }
}

/* === v4 JS helper (komentář ponechán pro informaci) ===
jQuery(function($){
  // Najdi spodní popis – běžné selektory v Shoptetu
  var $desc = $('.type-detail #description, .type-detail .tab-content-description');

  // Pokud je nalezen, přidej třídu .ab-desc pro 2:1 layout
  if ($desc.length) {
    $desc.first().addClass('ab-desc');
  }
});
*/

/* ===== PŘÍZNAKY (Akce/Novinka) — NOVÝ VZHLED (Oválný) ===== */
:root body .product .flags .flag,
:root body .p .flags .flag,
:root body .flags .flag,
:root body .product .flag,
:root body .p .flag,
:root body .flag,
:root body [class*="flag"],
:root body .label.flag,
:root body .badge.flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2;

  /* TVAR: Oválný / Pilulka */
  border-radius: 999px !important;

  /* VELIKOST: Decentní štítek */
  min-height: unset !important; /* Zrušit obří výšku 52px */
  padding: 6px 14px !important; /* Menší, vyvážené odsazení */
  font-size: 0.95rem !important;  /* Standardní velikost textu */
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase !important;
  
  /* BARVY: Téměř bílá s nádechem modré */
  background: #f5f9ff !important; /* Světle modrý podkres */
  color: #009cff !important;      /* Brand modrá pro text */
  border: 1px solid #d4eaff !important; /* Světle modrý okraj */
  box-shadow: none !important;    /* Zrušit starý stín */
}

:root body .flag span {
  line-height: 1.1 !important;
}

/* Varianta: NOVINKA (zůstává modrá) */
:root body .flag--new,
:root body .flag--novinka {
  background: #f5f9ff !important;
  color: #009cff !important;
  border-color: #d4eaff !important;
}

/* Varianta: AKCE (kreativní - oranžová) */
:root body .flag--action,
:root body .flag--akce,
:root body .flag--sale {
  background: #fff8f5 !important; /* Téměř bílá s nádechem oranžové */
  color: #e6451e !important;    /* Výrazná oranžovo-červená */
  border-color: #ffe8e0 !important; /* Světle oranžový okraj */
}

/* ===== Spodní "Podrobný popis" 2:1 — FINÁLNÍ VERZE v7 ===== */
/* Cílení na .description-inner z v6/v7 a .ab-desc z v4 */
:root body .description-inner,
:root body .type-detail .ab-desc {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

/* Když má .ab-desc uvnitř jen 1 wrapper (z v4) */
:root body .type-detail .ab-desc>*:only-child {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 24px !important;
}

:root body .description-inner>.basic-description,
:root body .description-inner>.extended-description {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex: initial !important;
  /* kdyby bylo display:flex na parentu dříve */
}

:root body .description-inner .extended-description .detail-parameters {
  width: 100% !important;
}

/* Pomocné cílení z v4 */
.type-detail .ab-desc .ab-desc-left { order: 1; }
.type-detail .ab-desc .ab-desc-right { order: 2; }

@media (max-width: 992px) {
  :root body .description-inner,
  :root body .type-detail .ab-desc,
  :root body .type-detail .ab-desc>*:only-child {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}