/* =========================================================
   LEMES.CZ – Apollo custom CSS
   Verzia: 8
   Bez zásahov do ľavého menu kategórií
   ========================================================= */


/* ================================
   Základné úpravy
   ================================ */

body {
  background-color: #f5f7fa !important;
}

#footer ul li b {
  font-weight: 400;
}

.products-block.products .p .name {
  overflow: hidden;
}

.products-block .p-in-in {
  min-height: auto;
}

.category-header input[type="radio"]:checked + label {
  background-color: var(--color-primary);
}

.in-contacts .content-inner > article {
  width: 100%;
}


/* ================================
   Úvodný text / welcome blok
   ================================ */

.welcome .welcome__content p {
  margin-bottom: 0;
}

.welcome .welcome__content p + p {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .welcome .h1 {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .welcome p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
  }
}

@media (min-width: 992px) {
  .welcome {
    padding: 40px;
  }
}


/* ================================
   Header, logo, košík
   ================================ */

@media (min-width: 768px) {
  .top-navigation-bar .container > div.top-navigation-contacts {
    top: 0;
    height: 49px;
  }

  .header-top {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .popup-widget.cart-widget,
  .popup-widget.login-widget,
  .admin-logged .popup-widget.cart-widget,
  .admin-logged .popup-widget.login-widget {
    top: 130px;
  }

  .products-related-block h2,
  .products-alternative-block h2,
  h4.homepage-group-title,
  .h4.homepage-group-title {
    font-size: 36px;
  }

  body .hodnoceni:before {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
  }

  .products-block.products .p .name {
    font-size: 18px;
  }

  .navigation-buttons a[data-target="cart"]:hover {
    color: white;
  }

  .header-top .btn.cart-count:hover .cart-price {
    color: white;
  }

  .navigation-buttons .click-cart a:after {
    display: none;
  }

  .click-cart > a[data-target="cart"] {
    background: var(--color-secondary);
    border-radius: 8px;
  }

  .click-cart > a[data-target="cart"]:hover {
    background: var(--color-secondary-hover);
  }

  #header .cart-count {
    border-radius: 7px;
  }

  .navigation-buttons a[data-target="cart"] {
    color: #ffffff;
  }

  .header-top .btn.cart-count:before {
    font-size: 26px;
    color: white !important;
  }

  .navigation-buttons {
    right: 0;
  }

  .cart-window-visible #header .click-cart {
    border-radius: 7px 7px 0 0;
  }

  .cart-window-visible #header .cart-count {
    background: var(--color-secondary-hover);
    border-radius: 7px 7px 0 0;
  }

  .cart-window-visible .btn.cart-count .cart-price {
    color: white;
  }

  .popup-widget {
    margin-left: -6px;
  }

  .is-header-fixed.is-header-hidden #header .site-name a img {
    max-height: 56px;
  }

  #header .site-name {
    display: flex;
    align-items: center;
  }

  #header .site-name a img {
    max-height: 100px;
  }
}

@media (min-width: 992px) {
  .header-top {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .popup-widget.cart-widget,
  .popup-widget.login-widget {
    top: 130px;
  }

  .admin-logged .popup-widget.cart-widget,
  .admin-logged .popup-widget.login-widget {
    top: 155px;
  }

  .popup-widget.cart-widget {
    margin-left: 106px;
  }
}

@media (min-width: 1200px) {
  .popup-widget.cart-widget {
    margin-left: 209px;
  }
}

@media (min-width: 1440px) {
  .popup-widget.cart-widget {
    margin-left: 329px;
  }
}

@media (max-width: 767px) {
  .top-navigation-bar {
    background-color: white;
  }

  .top-navigation-bar .site-name a img {
    max-height: 40px;
  }
}

@media (max-width: 370px) {
  .top-navigation-bar .site-name a img {
    max-height: 30px;
  }
}


/* ================================
   Benefity pod bannerom
   ================================ */

.benefitBanner__item {
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
}

.benefitBanner__picture {
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
  height: 70px;
}

.benefitBanner__link {
  flex-wrap: wrap;
}

.benefitBanner__content {
  margin-top: 5px;
  justify-content: center;
  padding-right: 0;
  width: 100%;
}

.benefitBanner__picture img {
  max-height: 70px;
  max-width: 75px;
}


/* ================================
   Produktové karty
   ================================ */

.products-block.products .p {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.products-block.products .p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.10);
  border-color: rgba(47, 115, 118, 0.25);
}

.products-block.products .p-in {
  padding: 18px 18px 16px 18px;
}

.products-block.products .p .image {
  background: #ffffff;
  padding: 10px;
}

.products-block.products .p .name {
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.products-block.products .p .price,
.products-block.products .p .price-final {
  color: #111827;
  font-weight: 800;
}

.products-block.products .p .availability {
  color: #008000;
  font-weight: 700;
}

.products-block.products .p .p-bottom {
  padding-top: 12px;
}

.products-block.products .p .btn,
.products-block.products .p .btn-primary {
  border-radius: 14px;
  background-color: #2F7376;
  border-color: #2F7376;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(47, 115, 118, 0.22);
}

.products-block.products .p .btn:hover,
.products-block.products .p .btn-primary:hover {
  background-color: #255C5F;
  border-color: #255C5F;
}


/* =========================================================
   DETAIL PRODUKTU – jemné premium úpravy
   ========================================================= */


/* ================================
   Detail produktu – nadpis a text
   ================================ */

.p-detail h1 {
  color: #111827;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.2px;
  margin-bottom: 18px;
}

.p-detail .p-short-description,
.p-detail .description-inner,
.p-detail .basic-description {
  color: #4b5563;
  line-height: 1.7;
  font-size: 15px;
}

.p-detail .p-short-description strong,
.p-detail .description-inner strong,
.p-detail .basic-description strong {
  color: #111827;
  font-weight: 800;
}

.p-detail .p-short-description a,
.p-detail .description-inner a,
.p-detail .basic-description a {
  color: #2F7376 !important;
  font-weight: 700;
}


/* ================================
   Detail produktu – hlavný obrázok a galéria
   ================================ */

.p-detail .p-image-wrapper,
.p-detail .p-image,
.p-detail .main-image {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.p-detail .p-image-wrapper img,
.p-detail .p-image img,
.p-detail .main-image img {
  border-radius: 14px;
}

.p-detail .p-thumbnails a,
.p-detail .p-image-thumbnails a,
.p-detail .thumbnails a,
.p-detail .thumbnail {
  background: #ffffff;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.p-detail .p-thumbnails a:hover,
.p-detail .p-image-thumbnails a:hover,
.p-detail .thumbnails a:hover,
.p-detail .thumbnail:hover,
.p-detail .p-thumbnails a.active,
.p-detail .p-image-thumbnails a.active,
.p-detail .thumbnails a.active,
.p-detail .thumbnail.active {
  border-color: #2F7376 !important;
  box-shadow: 0 0 0 3px rgba(47, 115, 118, 0.12);
  transform: translateY(-1px);
}


/* ================================
   Detail produktu – hodnotenie
   ================================ */

.p-detail .stars,
.p-detail .stars-wrapper,
.p-detail .rating-wrapper,
.p-detail .p-rating {
  background: #ffffff;
  border-radius: 999px;
}

.p-detail .stars .star,
.p-detail .star,
.p-detail .stars-wrapper .star {
  color: #f5b400;
}

.p-detail .rating-wrapper a,
.p-detail .p-rating a {
  color: #6b7280 !important;
}

.p-detail .rating-wrapper a:hover,
.p-detail .p-rating a:hover {
  color: #2F7376 !important;
}


/* ================================
   Detail produktu – cena, dostupnosť, doručenie
   ================================ */

.p-detail .price-final,
.p-detail .p-final-price,
.p-detail .price {
  color: #111827 !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px;
}

.p-detail .price-measure,
.p-detail .price-secondary,
.p-detail .price-save,
.p-detail .price-standard {
  color: #6b7280 !important;
}

.p-detail .availability,
.p-detail .availability-value,
.p-detail .p-availability,
.p-detail .in-stock {
  color: #008000 !important;
  font-weight: 800 !important;
}

.p-detail .delivery-time,
.p-detail .delivery,
.p-detail .availability-tooltip,
.p-detail .availability-amount {
  color: #111827;
}

.p-detail a[href*="doprava"],
.p-detail a[href*="doruceni"],
.p-detail a[href*="delivery"] {
  color: #2F7376 !important;
  font-weight: 700;
}


/* ================================
   Detail produktu – množstvo a košík
   ================================ */

.p-detail .quantity,
.p-detail .quantity input,
.p-detail .quantity .increase,
.p-detail .quantity .decrease {
  border-radius: 14px !important;
}

.p-detail .quantity {
  overflow: hidden;
  border-color: #d1d5db !important;
}

.p-detail .add-to-cart-button,
.p-detail button.add-to-cart-button {
  background-color: #2F7376 !important;
  border-color: #2F7376 !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  min-height: 56px;
  box-shadow: 0 8px 18px rgba(47, 115, 118, 0.22);
  font-weight: 800;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.p-detail .add-to-cart-button:hover,
.p-detail button.add-to-cart-button:hover {
  background-color: #255C5F !important;
  border-color: #255C5F !important;
  box-shadow: 0 12px 26px rgba(47, 115, 118, 0.28);
  transform: translateY(-1px);
}

.p-detail .p-tools a,
.p-detail .link-icons a,
.p-detail .watchdog,
.p-detail .ask,
.p-detail .social-buttons-wrapper a {
  color: #6b7280 !important;
  font-weight: 700;
}

.p-detail .p-tools a:hover,
.p-detail .link-icons a:hover,
.p-detail .watchdog:hover,
.p-detail .ask:hover,
.p-detail .social-buttons-wrapper a:hover {
  color: #2F7376 !important;
}


/* ================================
   Detail produktu – záložky a popis
   ================================ */

.p-detail-tabs,
.shp-tabs,
.tabs {
  border-radius: 18px;
}

.p-detail-tabs .active a,
.shp-tabs .active a,
.tabs .active a {
  color: #2F7376 !important;
  font-weight: 800;
}

.p-detail .tab-content,
.p-detail .p-detail-tabs-content,
.p-detail .description,
.p-detail .extended-description {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.p-detail .tab-content p,
.p-detail .description p,
.p-detail .extended-description p {
  color: #374151;
  line-height: 1.75;
}

.p-detail .tab-content h2,
.p-detail .tab-content h3,
.p-detail .description h2,
.p-detail .description h3,
.p-detail .extended-description h2,
.p-detail .extended-description h3 {
  color: #111827;
  font-weight: 800;
}


/* =========================================================
   DETAIL PRODUKTU – nákupný box
   ========================================================= */

/* Jemné zvýraznenie nákupnej časti */
.p-detail .p-to-cart-block,
.p-detail .add-to-cart {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

/* Rozloženie množstva a tlačidla */
.p-detail .p-to-cart-block {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Množstvo */
.p-detail .quantity {
  background: #ffffff;
  border: 1px solid #d1d5db !important;
  border-radius: 16px !important;
  min-height: 54px;
  overflow: hidden;
}

.p-detail .quantity input {
  font-weight: 800;
  color: #111827;
}

.p-detail .quantity .increase,
.p-detail .quantity .decrease {
  color: #6b7280;
}

/* Tlačidlo do košíka */
.p-detail .add-to-cart-button,
.p-detail button.add-to-cart-button {
  min-height: 56px;
  padding-left: 28px;
  padding-right: 28px;
  border-radius: 18px !important;
  font-size: 17px;
  font-weight: 800;
}

/* Cena a dostupnosť – vizuálne čistejšie */
.p-detail .price-final,
.p-detail .p-final-price,
.p-detail .price {
  font-size: 32px;
  line-height: 1.15;
}

.p-detail .availability,
.p-detail .availability-value,
.p-detail .p-availability,
.p-detail .in-stock {
  font-size: 16px;
  letter-spacing: 0.2px;
}

/* Menší text bez DPH */
.p-detail .price-measure,
.p-detail .price-secondary,
.p-detail .price-save,
.p-detail .price-standard {
  font-size: 15px;
  color: #6b7280 !important;
}

/* Odkazy pod dostupnosťou */
.p-detail a[href*="doruceni"],
.p-detail a[href*="doprava"],
.p-detail a[href*="delivery"] {
  color: #2F7376 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Zeptat se / Hlídať */
.p-detail .p-tools,
.p-detail .link-icons {
  margin-top: 14px;
}

.p-detail .p-tools a,
.p-detail .link-icons a {
  font-size: 13px;
  letter-spacing: 0.2px;
}


/* ================================
   Detail produktu – mobil
   ================================ */

@media (max-width: 767px) {
  .p-detail h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .p-detail .add-to-cart-button,
  .p-detail button.add-to-cart-button {
    min-height: 52px;
    border-radius: 16px !important;
    width: 100%;
    font-size: 16px;
  }

  .p-detail .p-image,
  .p-detail .p-image-wrapper,
  .p-detail .main-image {
    border-radius: 16px;
  }

  .p-detail .tab-content,
  .p-detail .p-detail-tabs-content,
  .p-detail .description,
  .p-detail .extended-description {
    border-radius: 16px;
  }

  .p-detail .p-to-cart-block,
  .p-detail .add-to-cart {
    padding: 14px;
    border-radius: 16px;
  }

  .p-detail .p-to-cart-block {
    gap: 12px;
  }

  .p-detail .price-final,
  .p-detail .p-final-price,
  .p-detail .price {
    font-size: 28px;
  }
}