/* HL PDP premium polish + stable gallery (keep under FTP ~15KB) */
body#product .hl-nowrap,
.hl-nowrap {
  white-space: nowrap !important;
}

/* ---- H1 / brand rhythm (final hierarchy in hl-pdp-buy.css) ---- */
body#product .product__name.h2,
body#product h1.product__name {
  font-weight: 700 !important;
  text-transform: none !important;
  font-size: clamp(1.5rem, 1.28rem + .72vw, 2.05rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.02em !important;
  margin-bottom: 1rem !important;
}

body#product .hl-pdp-status {
  margin: 0 0 .35rem !important;
}

body#product .hl-pdp-status__badge {
  display: inline-flex !important;
  align-items: center !important;
  background: #d71920 !important;
  background-color: #d71920 !important;
  color: #fff !important;
  border: 1px solid #d71920 !important;
  box-sizing: border-box !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: .12rem .32rem !important;
  border-radius: 3px !important;
  line-height: 1 !important;
}

body#product .product__manufacturer {
  margin-bottom: .45rem !important;
  font-size: .9rem !important;
}

body#product .product__prices {
  margin-bottom: .7rem !important;
}

body#product .product__price {
  font-size: clamp(1.4rem, 1.22rem + .5vw, 1.8125rem) !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
  color: #1c2128 !important;
}

body#product .product__regular-price {
  color: #9ca3af !important;
  text-decoration: line-through !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
}

body#product .hl-pdp-discount,
body#product .hl-pdp-prices .hl-pdp-discount {
  display: inline-flex !important;
  align-items: center !important;
  background: #d71920 !important;
  background-color: #d71920 !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: .22rem .4rem !important;
  border-radius: 4px !important;
  letter-spacing: .01em !important;
  border: 0 !important;
}

body#product .product__discount-percentage,
body#product .product__discount-amount {
  display: none !important;
}

body#product .product__tax-infos,
body#product .product__tax-label {
  display: none !important;
}

/* Safety: never show redundant "Maksudega" on listing cards either (UI label only) */
body .product-miniature .product__tax-label,
body .product-miniature .product-tax-label,
body .hl-pc .product__tax-label,
body .featured-products .product__tax-label {
  display: none !important;
}

body#product .hl-pdp-prices__was {
  margin-bottom: .2rem !important;
  gap: .4rem !important;
  align-items: center !important;
}

/* Short description stays in buy-box: ~3–4 calm lines */
body#product .product__description-short {
  margin: .75rem 0 1rem !important;
  font-size: .875rem !important;
  line-height: 1.55 !important;
  color: #4a5160 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
  max-width: 34rem !important;
}

body#product .product__description-short p {
  margin: 0 0 .35rem !important;
}

body#product .product__description-short p:last-child {
  margin-bottom: 0 !important;
}

/* ---- Buy box ---- */
body#product .product__actions-qty-add,
body#product .product-add-to-cart .product-quantity,
body#product .product-add-to-cart .product__actions-qty-add {
  gap: 10px !important;
  margin-bottom: .55rem !important;
}

body#product .quantity-button__group {
  height: 42px !important;
  min-width: 108px !important;
}

body#product [data-button-action="add-to-cart"].btn-primary:not(.product-miniature__add),
body#product button.add-to-cart:not(.product-miniature__add),
body#product .product__add-to-cart-button {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(215, 25, 32, .16) !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  padding: .35rem 1rem !important;
}

@media (max-width: 767.98px) {
  /* Qty + ATC stay on one row on mobile */
  body#product .product-add-to-cart .product__actions-qty-add,
  body#product .product__actions-qty-add,
  body#product .product-add-to-cart .product-quantity {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  body#product .product-actions__quantity,
  body#product .product__quantity.quantity-button {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }
  body#product .quantity-button__group {
    width: auto !important;
    max-width: none !important;
    height: 44px !important;
  }
  body#product .product__add-to-cart.add {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  body#product [data-button-action="add-to-cart"].btn-primary:not(.product-miniature__add),
  body#product button.add-to-cart:not(.product-miniature__add),
  body#product .product__add-to-cart-button {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    min-height: 44px !important;
    height: 44px !important;
  }
}

/* Review CTA: out of buy-box competition — keep only in comments section */
body#product .product__actions .product-comments-additional-info,
body#product .js-product-additional-info .product-comments-additional-info {
  display: none !important;
}

/* ---- Trust card: one light surface, full buy-box content width ---- */
/* Root cause of narrow mobile card: legacy .hl-commerce-box { padding:1rem; border }
   from custom.css / hummingbird-bridge.css nested around .hl-trust-card */
body#product .hl-commerce-box {
  margin-top: .55rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

body#product .hl-commerce-box > .hl-delivery-status {
  padding: .5rem .75rem !important;
  margin-bottom: .45rem !important;
  font-size: .88rem !important;
  border-radius: 8px !important;
}

body#product .hl-trust-card {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #ebecef !important;
  border-radius: 10px !important;
  padding: .85rem 1rem !important;
  box-shadow: none !important;
}

body#product .hl-trust-primary {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .45rem !important;
}

body#product .hl-trust-primary__item {
  display: flex !important;
  align-items: flex-start !important;
  gap: .45rem !important;
  font-size: .875rem !important;
  line-height: 1.35 !important;
  color: #3a414c !important;
  font-weight: 550 !important;
  min-height: 1.4rem;
}

body#product .hl-trust-primary__item i.material-icons {
  font-size: 18px !important;
  color: #8b93a0 !important;
  margin-top: 1px !important;
  flex-shrink: 0 !important;
}

body#product .hl-trust-primary__item--eta .hl-stock-dot {
  width: .65rem !important;
  height: .65rem !important;
  margin-top: .28rem !important;
  background: #22c55e !important;
}

body#product .hl-trust-primary__item--free {
  color: #15803d !important;
  font-weight: 650 !important;
}

body#product .hl-trust-primary__item--free i.material-icons {
  color: #22c55e !important;
}

body#product .hl-trust-details {
  margin-top: .65rem !important;
  border-top: 1px solid #f0f1f3 !important;
  padding-top: .4rem !important;
}

body#product .hl-trust-details__summary {
  cursor: pointer !important;
  list-style: none !important;
  font-size: .82rem !important;
  font-weight: 650 !important;
  color: #5b6470 !important;
  padding: .35rem 0 !important;
  min-height: 44px;
  display: flex;
  align-items: center;
  user-select: none;
}

body#product .hl-trust-details__summary::-webkit-details-marker { display: none; }
body#product .hl-trust-details__summary::after { content: "▾"; float: right; opacity: .5; }
body#product .hl-trust-details[open] .hl-trust-details__summary::after { content: "▴"; }

body#product .hl-trust-carriers {
  list-style: none !important;
  margin: .35rem 0 0 !important;
  padding: 0 !important;
}

body#product .hl-trust-carriers li {
  display: flex !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  font-size: .84rem !important;
  color: #555 !important;
  padding: .28rem 0 !important;
}

body#product .hl-trust-carriers .delivery-price {
  font-weight: 650 !important;
  white-space: nowrap !important;
}

body#product .hl-trust-pay {
  margin-top: .65rem !important;
  padding-top: .65rem !important;
  border-top: 1px solid #f0f1f3 !important;
}

body#product .hl-trust-pay__link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  text-decoration: none !important;
  color: inherit !important;
}

body#product .hl-trust-pay__title {
  font-size: .84rem !important;
  color: #5b6470 !important;
  font-weight: 500 !important;
}

body#product .hl-trust-pay__logos .hl-pay-strip-img,
body#product .hl-pay-strip-img {
  height: 20px !important;
  width: auto !important;
  max-width: 170px !important;
  object-fit: contain !important;
  display: block !important;
}

body#product .hl-trust-pay__inbank {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: .45rem .75rem !important;
  margin-top: .55rem !important;
}

body#product .hl-trust-pay__inbank .inbank-service-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
}

body#product .hl-trust-pay__inbank .inbank-service-label {
  font-size: .78rem !important;
  font-weight: 700 !important;
  color: #18191a !important;
  white-space: nowrap !important;
}

body#product .hl-trust-pay__inbank .hl-inbank-img {
  height: 16px !important;
  width: auto !important;
}

body#product .hl-trust-pay__inbank .inbank-separator {
  color: #d1d5db !important;
}

/* Mobile compact — MUST stay after base .hl-trust-* rules (cascade) */
@media (max-width: 767.98px) {
  body#product .hl-trust-card {
    padding: .72rem .82rem !important;
    border-radius: 10px !important;
  }
  body#product .hl-trust-primary {
    gap: .35rem !important;
  }
  body#product .hl-trust-primary__item {
    font-size: .86rem !important;
    line-height: 1.3 !important;
    min-height: 1.35rem;
  }
  body#product .hl-trust-details {
    margin-top: .5rem !important;
    padding-top: .3rem !important;
  }
  body#product .hl-trust-details__summary {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding: .35rem 0 !important;
  }
  body#product .hl-trust-pay {
    margin-top: .5rem !important;
    padding-top: .5rem !important;
  }
  body#product .hl-trust-pay__link {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: .45rem !important;
  }
  body#product .hl-trust-pay__logos {
    width: 100% !important;
  }
  body#product .hl-trust-pay__logos .hl-pay-strip-img,
  body#product .hl-pay-strip-img {
    max-width: 100% !important;
    height: 18px !important;
  }
  body#product .hl-trust-pay__inbank {
    gap: .35rem .55rem !important;
    margin-top: .45rem !important;
  }
  body#product .hl-trust-pay__inbank .inbank-service-label {
    white-space: normal !important;
    font-size: .76rem !important;
  }
  body#product .product__bottom {
    margin-top: 1.25rem !important;
  }
}

/* Hide old nested payment card if any leftover */
body#product .custom-payment-methods-btn,
body#product .product-delivery-methods-box {
  display: none !important;
}

/* ---- Gallery: one visible slide, no peek; desktop size capped in hl-product-related ---- */
body#product .product__carousel {
  position: relative !important;
  touch-action: pan-y pinch-zoom !important;
  -webkit-user-select: none;
  user-select: none;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden !important;
}

body#product .product__carousel .carousel-inner {
  height: 100%;
  overflow: hidden !important;
  width: 100%;
  position: relative;
}

body#product .product__carousel .carousel-item {
  display: none !important;
  height: 100%;
  float: none !important;
  margin: 0 !important;
  position: relative !important;
  transition: none !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
}

body#product .product__carousel .carousel-item.active {
  display: block !important;
}

body#product .product__carousel .carousel-item picture,
body#product .product__carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body#product .hl-gallery-counter {
  position: absolute;
  left: 50%;
  bottom: .65rem;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(24, 25, 26, .55);
  color: #fff;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
  padding: .18rem .5rem;
  border-radius: 999px;
  line-height: 1.2;
  pointer-events: none;
}

body#product .hl-gallery-arrow {
  opacity: .3;
  width: 2.25rem;
  height: 2.25rem;
  z-index: 4;
}

body#product .product__carousel:hover .hl-gallery-arrow { opacity: .65; }

body#product .product__thumbnails { margin-top: .55rem !important; }

body#product .product__thumbnails-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: .4rem !important;
  overflow-x: auto !important;
  padding-bottom: .15rem !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

body#product .product__thumbnail {
  flex: 0 0 auto !important;
  width: 56px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body#product .product__thumbnail-image {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1.5px solid transparent !important;
}

body#product .product__thumbnail.active .product__thumbnail-image,
body#product .product__thumbnail-image.js-thumb-selected {
  border-color: var(--hl-red, #d71920) !important;
}

@media (max-width: 991.98px) {
  body#product .hl-gallery-arrow {
    opacity: .18;
    width: 2rem;
    height: 2rem;
  }
  body#product .product__thumbnail { width: 48px !important; }
  body#product .product__thumbnail-image {
    width: 48px !important;
    height: 48px !important;
  }
}

body#product .product__bottom { margin-top: 2rem !important; }

body#product .ps-categoryproducts .section-title {
  font-size: 1.15rem !important;
  margin-bottom: .85rem !important;
}
