/* LEVÁ STRANA – menu hover */
#navigation a,
#navigation li > a {
  transition: color 0.25s ease !important;
}

#navigation a:hover,
#navigation li:hover > a {
  color: #f19210 !important;
}

/* PRAVÁ STRANA – plynulý fade efekt pro ikonky */
.navigation-buttons a,
.navigation-buttons button,
.navigation-buttons a::before,
.navigation-buttons a::after,
.navigation-buttons button::before,
.navigation-buttons button::after,
.navigation-buttons svg,
.navigation-buttons path,
.navigation-buttons i {
  transition:
    color 0.25s ease,
    fill 0.25s ease,
    stroke 0.25s ease,
    opacity 0.25s ease !important;
}

/* PRAVÁ STRANA – lupa */
.navigation-buttons a[data-target="search"]:hover,
.navigation-buttons a[data-target="search"]:hover::before,
.navigation-buttons a[data-target="search"]:hover::after {
  color: #f19210 !important;
  fill: #f19210 !important;
  stroke: #f19210 !important;
}

/* PRAVÁ STRANA – účet */
.navigation-buttons .top-nav-button-login:hover,
.navigation-buttons .top-nav-button-login:hover::before,
.navigation-buttons .top-nav-button-login:hover::after {
  color: #f19210 !important;
  fill: #f19210 !important;
  stroke: #f19210 !important;
}

/* PRAVÁ STRANA – košík: hover jen ikonka */
.navigation-buttons a[data-testid="headerCart"]:hover,
.navigation-buttons a[data-testid="headerCart"]:hover::before,
.navigation-buttons a[data-testid="headerCart"]:hover::after {
  color: #f19210 !important;
  fill: #f19210 !important;
  stroke: #f19210 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ZÁKLAD – košík jako blok nesmí mít oranžové pozadí */
.navigation-buttons a[data-testid="headerCart"] {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* BADGE – doladěné pro font Poppins */
.navigation-buttons a[data-testid="headerCart"] i[data-testid="headerCartCount"] {
  background: #f19210 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  border: none !important;
  min-width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: translateY(-0.5px);
}

/* Hover badge */
.navigation-buttons a[data-testid="headerCart"]:hover i[data-testid="headerCartCount"] {
  background: #f19210 !important;
  color: #ffffff !important;
}

/* Skrytí "Vytvořeno Shoptetem" */
footer a[href*="shoptet"] {
  display: none !important;
}

/* Zobrazení tlačítka "scroll-to-top" */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #f19210;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: background 0.25s ease, opacity 0.3s ease;
}

#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background: #ffaf41;
}

#scrollTopBtn svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

/* Úprava responzivity tlačítka "scroll-to-top" napříč zařízeními */
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 15px;
    right: 20px;
  }
}

/* Úprava responzivity zápatí - footer */
footer,
.site-footer,
.page-footer,
.shp-footer,
.shoptet-footer {
  padding-bottom: 70px !important;
}

/* Mobil – menší odsazení */
@media (max-width: 768px) {
  footer,
  .site-footer,
  .page-footer,
  .shp-footer,
  .shoptet-footer {
    padding-bottom: 85px !important;
  }
}

/* Nastavení copyrightu v zápatí */
.footer-bottom,
.footer-copyright {
  margin-top: 45px !important;
}

/* Mobil – menší posun */
@media (max-width: 768px) {
  .footer-bottom,
  .footer-copyright {
    margin-top: 30px !important;
  }
}

/* Skrytí původní fontové šipky */
.btn-arrow-right::before,
.btn-arrow-right::after {
  content: "" !important;
  color: transparent !important;
  font-size: 0 !important;
}

/* Horizontální SVG šipka */
.btn-arrow-right::after {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  background-size: 21px 21px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.5' fill='none' stroke-linecap='butt' stroke-linejoin='miter'>\
<path d='M5 12 H19'></path>\
<path d='M12 5 L19 12 L12 19'></path>\
</svg>") !important;
}

/* Tlačítko – rozměry + barvy */
.btn-arrow-right {
  height: 48px !important;
  width: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f19210 !important;
  border-color: #f19210 !important;
}

.btn-arrow-right:hover {
  background-color: #ffaf41 !important;
  border-color: #ffaf41 !important;
}

/* Carousel */
#carousel {
  position: relative;
}

/* Klikací oblast šipek – desktop */
#carousel .carousel-control.left,
#carousel .carousel-control.right {
  position: absolute;
  top: 54% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  z-index: 30 !important;
  overflow: visible !important;
}

/* Odsazení od krajů */
#carousel .carousel-control.left {
  left: 45px !important;
}

#carousel .carousel-control.right {
  right: 45px !important;
}

/* Schovat původní obsah */
#carousel .carousel-control span,
#carousel .carousel-control i {
  display: none !important;
}

/* Zrušit default pseudo */
#carousel .carousel-control.left::before,
#carousel .carousel-control.right::before {
  content: none !important;
}

/* Soft šipky */
#carousel .carousel-control.left::after,
#carousel .carousel-control.right::after {
  display: block !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 36px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.65) !important;
  text-shadow: 0 0 6px rgba(0,0,0,0.25);
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Konkrétní znaky + jemné optické dorovnání */
#carousel .carousel-control.left::after {
  content: "‹";
  transform: translate(-1px, -2px);
}

#carousel .carousel-control.right::after {
  content: "›";
  transform: translate(1px, -2px);
}

/* Hover */
#carousel .carousel-control.left:hover::after,
#carousel .carousel-control.right:hover::after {
  color: rgba(255,255,255,0.92) !important;
}

/* MOBIL – úplně schovat šipky */
@media (max-width: 767px) {
  #carousel .carousel-control.left,
  #carousel .carousel-control.right {
    display: none !important;
  }
}

/* Tečky pod hero carouselem */
#carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin: 18px 0 0 !important;
  padding: 0 !important;
  line-height: 1;

  transform: none !important;
}

#carousel-dots button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;

  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;

  color: rgba(0, 0, 0, 0.38);
  transition: color 0.2s ease, transform 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
}

#carousel-dots button:hover {
  color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

#carousel-dots button.is-active {
  color: #000000;
  font-size: 22px;
  font-weight: 600;
}

@media (max-width: 767px) {
  #carousel-dots {
    gap: 8px;
    margin: 6px 0 0 !important;
    transform: translateY(-6px) !important;
  }

  #carousel-dots button {
    font-size: 16px;
  }

  #carousel-dots button.is-active {
    font-size: 19px;
  }
}

/* SEARCH FORM – finální oprava layoutu */
.search-form.compact-form fieldset,
.search-form.js-search-main fieldset {
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Input dostane místo pro 60px tlačítko vpravo */
.search-form.compact-form input[data-testid="searchInput"],
.search-form.js-search-main input[data-testid="searchInput"],
.search-form.compact-form .query-input,
.search-form.js-search-main .query-input {
  display: block !important;
  width: 100% !important;
  height: 60px !important;
  margin: 0 !important;
  padding-right: 70px !important;
  box-sizing: border-box !important;
}

/* Search button – 60x60 a ukotvený vpravo */
.search-form.compact-form button[data-testid="searchBtn"],
.search-form.js-search-main button[data-testid="searchBtn"],
.search-form.compact-form .btn-arrow-right.btn-lg,
.search-form.js-search-main .btn-arrow-right.btn-lg {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;

  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  z-index: 10 !important;
  line-height: 1 !important;
}

/* Jen search šipka – přesné vystředění */
.search-form.compact-form button[data-testid="searchBtn"]::after,
.search-form.js-search-main button[data-testid="searchBtn"]::after,
.search-form.compact-form .btn-arrow-right.btn-lg::after,
.search-form.js-search-main .btn-arrow-right.btn-lg::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: 23px !important;
  height: 23px !important;
  background-size: 23px 23px !important;
}

/* Whisperer ať nerozbíjí layout */
.search-form.compact-form .search-whisperer,
.search-form.js-search-main .search-whisperer {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  z-index: 20 !important;
}

/* =========================================
   TYPOGRAFIE – FINÁLNÍ SYSTÉM
   ========================================= */

/* ===== DESKTOP (základ) ===== */
:root {
  --fs-h1: 25px;
  --fs-h2: 21px;
  --fs-h3: 18px;
  --fs-h4: 16px;

  --fs-body: 15px;
  --fs-small: 14px;
  --fs-price: 16px;

  --lh-h1: 1.15;
  --lh-h2: 1.22;
  --lh-h3: 1.28;
  --lh-h4: 1.3;
  --lh-body: 1.55;
}


/* ===== OBSAH ===== */
main h1,
#content h1,
.content-wrapper h1,
.content-inner h1,
article h1,
section h1 {
  font-size: var(--fs-h1) !important;
  line-height: var(--lh-h1) !important;
}

main h2,
#content h2,
.content-wrapper h2,
.content-inner h2,
article h2,
section h2 {
  font-size: var(--fs-h2) !important;
  line-height: var(--lh-h2) !important;
}

main h3,
#content h3,
.content-wrapper h3,
.content-inner h3,
article h3,
section h3 {
  font-size: var(--fs-h3) !important;
  line-height: var(--lh-h3) !important;
}

main h4,
#content h4,
.content-wrapper h4,
.content-inner h4,
article h4,
section h4 {
  font-size: var(--fs-h4) !important;
  line-height: var(--lh-h4) !important;
}

/* Text */
main p,
main li,
main dt,
main dd,
main blockquote,
#content p,
#content li,
#content dt,
#content dd,
#content blockquote,
.content-wrapper p,
.content-wrapper li,
.content-wrapper dt,
.content-wrapper dd,
.content-wrapper blockquote,
.content-inner p,
.content-inner li,
.content-inner dt,
.content-inner dd,
.content-inner blockquote,
article p,
article li,
article dt,
article dd,
article blockquote,
section p,
section li,
section dt,
section dd,
section blockquote {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
}

/* Blog */
.news-item .title,
.news-item h2,
.news-item h3,
.blog-title {
  font-size: calc(var(--fs-h3) + 1px) !important;
}

.news-item p,
.blog-perex {
  font-size: var(--fs-small) !important;
}

/* Produkty */
.product-name {
  font-size: var(--fs-small) !important;
}

.price-final,
.price {
  font-size: var(--fs-price) !important;
}

/* Newsletter */
.newsletter-header h3,
.newsletter-header h4,
.newsletter-header .topic,
.box-newsletter .topic,
.footer-newsletter .topic {
  font-size: var(--fs-h2) !important;
}

.newsletter-header p,
.box-newsletter p,
.footer-newsletter p {
  font-size: var(--fs-body) !important;
}


/* =========================================
   MOBILE – ZMENŠENÉ MĚŘÍTKO (~ -14 %)
   ========================================= */

@media (max-width: 767px) {
  :root {
    --fs-h1: 21.5px;
    --fs-h2: 18px;
    --fs-h3: 15.5px;
    --fs-h4: 14px;

    --fs-body: 13.5px;
    --fs-small: 13px;
    --fs-price: 14.5px;
  }
}