/* NexOperandi / HCS — product detail page.
   A technical, sales-first layout layered over native Hummingbird markup. */

body#product {
  --nexo-pdp-ink: #102f39;
  --nexo-pdp-muted: #64767b;
  --nexo-pdp-line: #d7dfde;
  --nexo-pdp-soft: #e8efed;
  --nexo-pdp-wash: #f7f9f8;
  background: #fff;
}

body#product .breadcrumb__wrapper {
  background: #f7f9f8;
  border-bottom: 1px solid rgba(14, 58, 74, .08);
}

body#product .breadcrumb {
  padding-block: .9rem;
  color: var(--nexo-pdp-muted);
  font-size: .76rem;
}

body#product .columns-container.container {
  max-width: 1480px;
  padding-inline: clamp(18px, 4vw, 64px);
}

body#product .product__container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(380px, 5fr);
  align-items: start;
  gap: clamp(40px, 6vw, 104px);
  margin: 0;
  padding: clamp(36px, 5vw, 72px) 0 clamp(68px, 8vw, 118px);
}

body#product .product__left,
body#product .product__right {
  width: auto;
  max-width: none;
  padding: 0;
}
body#product .product__left { animation: nexo-pdp-enter .65s cubic-bezier(.22, 1, .36, 1) both; }
body#product .product__right { animation: nexo-pdp-enter .72s .08s cubic-bezier(.22, 1, .36, 1) both; }

body#product .product__images {
  position: relative;
  padding: clamp(18px, 3vw, 44px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .98) 0 26%, rgba(239, 244, 242, .94) 68%, #e6edeb 100%);
  border: 1px solid rgba(14, 58, 74, .08);
  border-radius: 18px;
}

body#product .product__images::after {
  content: "";
  position: absolute;
  inset: auto 9% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 58, 74, .22), transparent);
  pointer-events: none;
}

body#product .product__carousel .carousel-item {
  min-height: clamp(460px, 52vw, 720px);
}

body#product .product__carousel .carousel-item img {
  width: 100%;
  height: clamp(460px, 52vw, 720px);
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) {
  body#product .product__images:hover .carousel-item.active img { transform: scale(1.025); }
}

body#product .product__zoom {
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  padding: 0;
  z-index: 3;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(14, 58, 74, .16);
  border-radius: 50%;
  color: var(--nexo-pdp-ink);
  font-size: 0;
  line-height: 0;
  backdrop-filter: blur(8px);
}
body#product .product__zoom .material-icons,
body#product .product__zoom svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
  margin: 0;
}
body#product .product__zoom .material-icons {
  font-size: 20px;
  line-height: 1;
}
body#product .product__zoom svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body#product .product-flags {
  top: 18px;
  left: 18px;
  z-index: 3;
}

body#product .product-flags .badge {
  padding: .42rem .72rem;
  border: 0;
  border-radius: 3px;
  background: var(--hcs-glebia);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body#product .product__thumbnails {
  margin-top: 14px;
  overflow: visible;
}
body#product .product__thumbnails-list {
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
body#product .product__thumbnail {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 78px;
  box-sizing: border-box;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--nexo-pdp-line);
  border-radius: 8px;
  outline: 2px solid transparent !important;
  outline-offset: -2px !important;
  line-height: 0;
}
body#product .product__thumbnail.active {
  border-color: transparent;
  outline-color: var(--hcs-glebia) !important;
  box-shadow: none;
}
body#product .product__thumbnail-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border: 0 !important;
  border-radius: 4px;
  outline: 0 !important;
}

body#product .product__right {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 4px solid var(--hcs-czystosc);
}

body#product .nexo-product-eyebrow {
  order: -3;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--hcs-glebia);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body#product .nexo-product-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hcs-czystosc);
  box-shadow: 0 0 0 5px rgba(0, 166, 166, .12);
}

body#product .product__name {
  order: -2;
  max-width: 680px;
  margin: 0;
  color: var(--nexo-pdp-ink);
  font-size: clamp(1.95rem, 2.55vw, 3rem);
  font-weight: 680;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body#product .product__manufacturer {
  order: -1;
  margin: 18px 0 0;
  font-size: .8rem;
}
body#product .product__manufacturer::before {
  content: attr(data-nexo-label);
  color: var(--nexo-pdp-muted);
}
body#product .product__manufacturer a {
  color: var(--nexo-pdp-ink);
  font-weight: 700;
  text-decoration: none;
}

body#product .product__prices {
  order: 1;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
}
body#product .product__prices-inline { align-items: baseline; }
body#product .product__price-label { display: none; }
body#product .current-price-display,
body#product .product-price {
  color: var(--nexo-pdp-ink);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.035em;
}
body#product .product__tax-infos {
  margin-top: 7px;
  color: var(--nexo-pdp-muted);
  font-size: .75rem;
}

body#product .product__description-short {
  order: 5;
  margin: 24px 0 0;
  color: #34494f;
  font-size: .98rem;
  line-height: 1.7;
}
body#product .product__description-short p:last-child { margin-bottom: 0; }

body#product .nexo-product-highlights {
  order: 2;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--nexo-pdp-line);
  border-bottom: 1px solid var(--nexo-pdp-line);
}
body#product .nexo-product-highlights__title {
  margin: 0 0 14px;
  color: var(--nexo-pdp-muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
body#product .nexo-product-highlights dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
body#product .nexo-product-highlights dl > div {
  min-width: 0;
  padding-right: 16px;
}
body#product .nexo-product-highlights dl > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--nexo-pdp-line);
}
body#product .nexo-product-highlights dt {
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--nexo-pdp-muted);
  font-size: .7rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#product .nexo-product-highlights dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--nexo-pdp-ink);
  font-size: 1.05rem;
  font-weight: 720;
  line-height: 1.2;
}
body#product .nexo-product-commercial-note {
  order: 3;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 0;
  color: #34494f;
  font-size: .78rem;
  line-height: 1.5;
}
body#product .nexo-product-commercial-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: .35rem;
  border-radius: 50%;
  background: var(--hcs-czystosc);
}

body#product .product__actions { order: 4; margin-top: 22px; }
body#product .product__variants { margin-bottom: 22px; }
body#product .product__variants-item { margin-bottom: 18px; }
body#product .product__variants-item label {
  margin-bottom: 8px;
  color: var(--nexo-pdp-ink);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body#product .product__add-to-cart-container { margin-top: 0; }
body#product .product__availability {
  margin: 0 0 14px;
  padding: 0;
  background: transparent !important;
  color: #226739 !important;
  border-radius: 0;
  font-size: .8rem;
  font-weight: 700;
}
body#product .product__availability-icon { font-size: 1rem; }

body#product .product__actions-qty-add {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
body#product .product-actions__quantity,
body#product .product__add-to-cart,
body#product .product__add-to-cart-button { width: 100%; }
body#product .quantity-button__group,
body#product .product__add-to-cart-button { min-height: 58px; }
body#product .quantity-button__group {
  border: 1px solid var(--nexo-pdp-line);
  border-radius: 4px;
}
body#product .product__add-to-cart-button {
  justify-content: center;
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(14, 58, 74, .15);
}
body#product .product__add-to-cart-button:hover { transform: translateY(-1px); }
body#product .product__additional-info {
  margin-top: 14px;
  color: var(--nexo-pdp-muted);
  font-size: .76rem;
}

body#product .nexo-product-trust {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--nexo-pdp-line);
}
body#product .nexo-product-trust__item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--nexo-pdp-line);
}
body#product .nexo-product-trust__icon {
  width: 36px;
  height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  color: var(--hcs-glebia);
  background: var(--nexo-pdp-soft);
  border-radius: 50%;
  line-height: 0;
}
body#product .nexo-product-trust__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  margin: 0;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body#product .nexo-product-trust__icon--delivery svg { transform: translateY(-.5px); }
body#product .nexo-product-trust__icon--support svg { transform: translateY(.5px); }
body#product .nexo-product-trust__item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--nexo-pdp-ink);
  font-size: .82rem;
}
body#product .nexo-product-trust__item span {
  display: block;
  color: var(--nexo-pdp-muted);
  font-size: .73rem;
  line-height: 1.45;
}

body#product .product__bottom {
  display: block;
  margin: 0 0 clamp(70px, 9vw, 130px);
  padding: clamp(34px, 5vw, 64px);
  background: var(--nexo-pdp-wash);
  border-radius: 16px;
  border: 0;
}
body#product .product__bottom-left { width: 100%; max-width: none; }
body#product .product__bottom-right { display: none; }
body#product .product__accordion {
  display: block;
  border-top: 1px solid var(--nexo-pdp-ink);
}
body#product .product__accordion:has(#product_description) {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  column-gap: clamp(36px, 8vw, 120px);
}
body#product .product__accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--nexo-pdp-line);
  background: transparent;
}
body#product .product__accordion #product_description {
  grid-row: 1 / span 8;
  padding-right: clamp(0px, 3vw, 42px);
  border-bottom: 0;
}
body#product .product__accordion .accordion-button {
  padding: 24px 0;
  background: transparent;
  box-shadow: none;
  color: var(--nexo-pdp-ink);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body#product .product__accordion #product_description .accordion-button {
  pointer-events: none;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 650;
  letter-spacing: -.035em;
  text-transform: none;
}
body#product .product__accordion #product_description .accordion-button::after { display: none; }
body#product .product__accordion #product_description .accordion-collapse { display: block; }
body#product .product__accordion .accordion-body {
  padding: 0 0 28px;
  color: #34494f;
  font-size: .94rem;
  line-height: 1.75;
}
body#product .product__accordion #product_description .accordion-body {
  max-width: 760px;
  padding-top: 2px;
  font-size: 1.02rem;
}
body#product .details__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(14, 58, 74, .08);
}
body#product .details__left { color: var(--nexo-pdp-muted); }
body#product .details__right { color: var(--nexo-pdp-ink); font-weight: 650; text-align: right; }

body#product .ps-categoryproducts {
  margin-inline: calc(-1 * clamp(0px, 1vw, 16px));
  padding: clamp(62px, 8vw, 110px) clamp(0px, 1vw, 16px);
  border-top: 1px solid var(--nexo-pdp-line);
}
body#product .ps-categoryproducts > h2,
body#product .ps-categoryproducts .h2 {
  margin-bottom: 30px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -.035em;
}

body#product .nexo-mobile-buy { display: none; }

@media (max-width: 991px) {
  body#product .product__container {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    gap: 34px;
  }
  body#product .product__carousel .carousel-item,
  body#product .product__carousel .carousel-item img { height: clamp(410px, 54vw, 560px); min-height: 410px; }
}

@media (max-width: 767px) {
  body#product { padding-bottom: 76px; }
  body#product .breadcrumb__wrapper { overflow: hidden; }
  body#product .breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body#product .columns-container.container { padding-inline: 15px; }
  body#product .product__container {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 22px 0 62px;
  }
  body#product .product__images { padding: 14px; border-radius: 12px; }
  body#product .product__carousel .carousel-item,
  body#product .product__carousel .carousel-item img { height: min(92vw, 500px); min-height: 340px; }
  body#product .product__right { position: static; padding-top: 16px; }
  body#product .product__name { font-size: clamp(1.8rem, 8vw, 2.45rem); }
  body#product .product__prices { margin-top: 26px; }
  body#product .product__actions-qty-add { grid-template-columns: 98px 1fr; }
  body#product .product__accordion { display: block; }
  body#product .product__accordion #product_description { padding-right: 0; border-bottom: 1px solid var(--nexo-pdp-line); }
  body#product .product__accordion #product_description .accordion-button { font-size: 1.75rem; }
  body#product .ps-categoryproducts { padding-bottom: 48px; }
  body#product .nexo-mobile-buy {
    position: fixed;
    z-index: 1035;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--nexo-pdp-line);
    box-shadow: 0 -12px 34px rgba(14, 58, 74, .12);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  }
  body#product .nexo-mobile-buy.is-visible { transform: translateY(0); }
  body#product .nexo-mobile-buy__price {
    min-width: 92px;
    color: var(--nexo-pdp-ink);
    font-size: 1rem;
    font-weight: 750;
  }
  body#product .nexo-mobile-buy__button {
    min-height: 48px;
    border: 0;
    border-radius: 4px;
    background: var(--hcs-glebia);
    color: #fff;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  body#product .nexo-mobile-buy__button:disabled { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  body#product .product__left,
  body#product .product__right { animation: none; }
  body#product .product__carousel .carousel-item img,
  body#product .product__add-to-cart-button,
  body#product .nexo-mobile-buy { transition: none; }
}

@keyframes nexo-pdp-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
