/* Naše Hračkářství v34 — customer-journey refinements. */

/* v28 narrowed the desktop consent card but left Shoptet's -335px margin. */
@media (min-width: 768px) {
  .siteCookies.siteCookies--bottom {
    margin-left: 0 !important;
  }
}

/* Keep the desktop category menu open while the pointer crosses its small gap. */
@media (min-width: 768px) {
  #navigation .menu-level-1 > li.ext:hover > .menu-level-2,
  #navigation .menu-level-1 > li.ext:focus-within > .menu-level-2 {
    display: flex !important;
  }

  #navigation .menu-level-1 > li.ext::after {
    position: absolute;
    z-index: 1002;
    top: calc(100% - 13px);
    right: 0;
    left: 0;
    height: 16px;
    content: "";
  }
}

/* The category intro is useful SEO content, but products are the primary task. */
.category-perex.nh-customer-after-products {
  max-width: none;
  margin: 24px 0 0 !important;
  padding: 20px !important;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #f8fafc;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

/* A search result should lead with products; related categories stay available below. */
body.type-search #products-found + .search-results-groups {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #dce4ed;
}

.nh-search-empty-help {
  display: grid;
  gap: 12px;
  box-sizing: border-box;
  max-width: 760px;
  margin: 22px 0 0;
  padding: 20px;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #f8fafc;
  color: #475467;
}

.nh-search-empty-help strong {
  color: #172033;
  font-size: 18px;
}

.nh-search-empty-help p {
  margin: 0;
}

.nh-search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nh-search-empty-actions button,
.nh-search-empty-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid #d7a600;
  border-radius: 9px;
  background: #f2b705;
  color: #172033;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.nh-search-empty-actions a {
  border-color: #cfd7e2;
  background: #fff;
}

@media (min-width: 1200px) {
  .subcategories.with-image {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .subcategories.with-image {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Make the comparison-price label real DOM text instead of generated content. */
.products .product .prices > .price-standard::before,
.p-detail .p-final-price-wrapper > .price-standard::before {
  content: none !important;
}

.nh-price-standard-label {
  display: block;
  margin: 0 0 1px;
  color: #667085;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.p-detail .nh-price-standard-label {
  font-size: 11px;
}

/* Factual help follows the native form and never duplicates its controls. */
.nh-product-help {
  display: grid;
  gap: 3px;
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid #dce4ed;
  border-radius: 11px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.nh-product-help strong {
  color: #172033;
  font-size: 13px;
}

.nh-product-help a {
  color: #6f5100;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.p-detail .p-data-wrapper > .nh-product-help {
  order: 4 !important;
}

.p-detail .p-data-wrapper > .position--benefitProduct {
  order: 5 !important;
}

.p-detail .p-data-wrapper > .buttons-wrapper {
  order: 6 !important;
}

.nh-short-description-jump,
.nh-mobile-buy-jump {
  display: none;
}

/* Repair Shoptet lazy placeholders so real trust logos are visible. */
.footer-icons {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 12px !important;
  padding: 12px 0 !important;
}

.footer-icons .footer-icon {
  display: flex !important;
  flex: 0 0 118px !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
}

.footer-icons .footer-icon[hidden] {
  display: none !important;
}

.footer-icons .footer-icon img {
  display: block !important;
  width: auto !important;
  max-width: 100px !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

/* Give informational pages the reading width and focus they need. */
@media (min-width: 768px) {
  body.type-page:is(
    .in-kontakty,
    .in-reklamace,
    .in-odstoupeni-od-kupni-smlouvy-do-14-dni,
    .in-obchodni-podminky,
    .in-podminky-ochrany-osobnich-udaju
  ) .sidebar-left {
    display: none !important;
  }

  body.type-page:is(
    .in-kontakty,
    .in-reklamace,
    .in-odstoupeni-od-kupni-smlouvy-do-14-dni,
    .in-obchodni-podminky,
    .in-podminky-ochrany-osobnich-udaju
  ) main#content {
    float: none !important;
    width: 100% !important;
    max-width: 980px;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* Full-cart reassurance sits after the native action, never inside calculations. */
.nh-cart-confidence {
  display: grid;
  gap: 4px;
  max-width: 430px;
  margin: 12px 0 0 auto;
  padding: 12px 14px;
  border: 1px solid #dce4ed;
  border-radius: 11px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.nh-cart-confidence strong {
  color: #172033;
  font-size: 13px;
}

.nh-cart-confidence a {
  color: #6f5100;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Deterministic empty-cart artwork instead of a platform-dependent emoji. */
.cart-empty > .cart-heading::before {
  display: block !important;
  box-sizing: border-box;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px !important;
  border: 1px solid #ead47a;
  border-radius: 17px;
  background-color: #fff8dc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M7 9h4l3.5 20.5h21L39 16H13' stroke='%23172033' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 22h18' stroke='%23D5A000' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='36' r='3' fill='%23F2B705' stroke='%23172033' stroke-width='2'/%3E%3Ccircle cx='33' cy='36' r='3' fill='%23F2B705' stroke='%23172033' stroke-width='2'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 39px 39px;
  content: "" !important;
}

@media (max-width: 767px) {
  body.type-search #products-found + .search-results-groups {
    margin-top: 28px;
    padding-top: 22px;
  }

  .nh-search-empty-help {
    padding: 16px;
  }

  .nh-search-empty-actions > * {
    flex: 1 1 100%;
    width: 100%;
  }

  .p-detail .p-short-description > p:first-child {
    -webkit-line-clamp: 2 !important;
  }

  .p-detail .p-short-description::after {
    content: none !important;
  }

  .nh-short-description-jump {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 4px;
    padding: 7px 2px;
    color: #5f4700;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .nh-short-description-jump::after {
    margin-left: 6px;
    content: "\2193";
    text-decoration: none;
  }

  .nh-product-help {
    padding: 11px 12px;
  }

  .nh-mobile-buy-jump {
    position: fixed;
    z-index: 1003;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 58px;
    padding: 8px 9px 8px 16px;
    border: 1px solid #d7a600;
    border-radius: 13px;
    background: #fff;
    color: #172033;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
    text-decoration: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nh-mobile-buy-jump strong {
    font-size: 18px;
    font-weight: 850;
  }

  .nh-mobile-buy-jump span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 9px;
    background: #f2b705;
    font-size: 13px;
    font-weight: 850;
  }

  .nh-mobile-buy-jump.is-native-visible {
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
  }

  .responsive-nav > .navigation-btn {
    top: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #344054 !important;
    border-radius: 9px !important;
    background: #172033 !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
  }

  .p-thumbnails.p-thumbnails-horizontal.overflow-prev > .thumbnail-prev,
  .p-thumbnails.p-thumbnails-horizontal.overflow-next > .thumbnail-next {
    top: 50% !important;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin-top: -22px !important;
    border-radius: 50%;
  }

  .buttons-wrapper .link-icons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .buttons-wrapper .link-icon {
    display: inline-flex !important;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.in-kosik .cart-table .p-quantity .quantity {
    box-sizing: border-box !important;
    min-height: 50px !important;
    padding-right: 44px !important;
    padding-left: 44px !important;
  }

  body.in-kosik .cart-table .p-quantity .quantity label,
  body.in-kosik .cart-table .p-quantity .quantity .amount,
  body.in-kosik .cart-table .p-quantity .quantity .decrease,
  body.in-kosik .cart-table .p-quantity .quantity .increase {
    box-sizing: border-box !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 50px !important;
    min-height: 50px !important;
  }

  body.in-kosik .cart-table .p-name .inline.delete-cart-item {
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
  }

  body.in-kosik .cart-table .p-name .remove-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }

  body.in-kosik .next-step--cart .next-step-forward {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 56px !important;
    border-radius: 10px !important;
    box-shadow: 0 7px 18px rgba(242, 183, 5, 0.22) !important;
    font-weight: 850 !important;
  }

  body.in-kosik .next-step--cart .next-step-back {
    min-height: 44px !important;
  }

  .nh-cart-confidence {
    max-width: none;
    margin-right: auto;
  }

  .footer-icons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .footer-icons .footer-icon {
    width: 100% !important;
    min-height: 56px !important;
  }
}

@media (max-width: 350px) {
  .footer-icons {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #navigation .menu-level-1 > li.ext > .menu-level-2,
  .nh-mobile-buy-jump {
    transition: none !important;
  }
}
