/* ============================================================
   PRODUCT PAGE — gallery + details left, sticky buy panel right
   ============================================================ */

.hs-pdp { padding-bottom: 12px; }

.hs-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-areas:
    "left right"
    "info right";
  column-gap: 48px;
  margin-top: 6px;
}
.hs-pdp__left  { grid-area: left; min-width: 0; }
.hs-pdp__right { grid-area: right; }
.hs-pdp__info  { grid-area: info; min-width: 0; margin-top: 32px; }

/* Gallery: big framed stage, thumbnails underneath */
.p-gallery { display: flex; flex-direction: column; gap: 12px; }
.p-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 680px;
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--hs-tint);
}
.p-gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.p-gallery__slide.is-active { opacity: 1; z-index: 1; }
.p-gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }

.p-gallery__thumbs {
  order: 2;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.p-gallery__thumbs::-webkit-scrollbar { display: none; }
.p-gallery__thumb {
  width: 84px; height: 84px; flex-shrink: 0;
  border-radius: var(--r-2);
  border: 2px solid transparent;
  overflow: hidden;
  background: var(--hs-tint);
  transition: border-color .15s;
}
.p-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.p-gallery__thumb:hover { border-color: var(--hs-line-2); }
.p-gallery__thumb.is-active { border-color: var(--hs-brand); }

.p-gallery__heart,
.p-gallery__nav {
  position: absolute;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-btn);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--hs-ink);
}
.p-gallery__heart { top: 14px; right: 14px; }
.p-gallery__nav { top: 50%; transform: translateY(-50%); }
.p-gallery__nav:hover { background: var(--hs-brand); color: #fff; }
.p-gallery__nav--prev { left: 14px; }
.p-gallery__nav--next { right: 14px; }
.p-gallery__count {
  position: absolute; z-index: 2;
  bottom: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: var(--r-1);
  background: var(--hs-ink);
  color: #fff;
  font-size: 12px; font-weight: 700;
}

/* Buy panel */
.hs-pdp__right { position: relative; }
.hs-buy { position: sticky; top: 150px; padding-top: 4px; }
.hs-buy__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.hs-buy__coll {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hs-brand);
  margin-right: 4px;
}
a.hs-buy__coll:hover { color: var(--hs-brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.hs-buy__title { font-size: clamp(22px, .8vw + 16px, 28px); font-weight: 800; line-height: 1.22; color: var(--hs-ink); }
.hs-buy__sku { margin-top: 8px; font-size: 13px; color: var(--hs-gray); }
.hs-buy__price {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hs-line);
  border-bottom: 1px solid var(--hs-line);
}
.hs-price--xl { font-size: 32px; }
.hs-buy__price .hs-price-html { font-size: 26px; font-weight: 800; color: var(--hs-ink); }
.hs-buy__stock {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-1);
  background: #E8F4ED;
  color: var(--hs-green);
  font-size: 12.5px; font-weight: 800;
}

.hs-buy__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.hs-buy__specs > div { padding: 10px 12px; border-radius: var(--r-2); background: var(--hs-tint); }
.hs-buy__specs dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hs-gray); }
.hs-buy__specs dd { margin: 2px 0 0; font-size: 14px; font-weight: 800; color: var(--hs-ink); }

.hs-buy__cart form.cart { display: flex; align-items: center; gap: 10px; margin: 0; }
.hs-buy__cart form.cart .quantity { height: 50px; }
.hs-buy__cart form.cart .quantity .qty { height: 48px; }
.hs-buy__cart form.cart .qty-btn { height: 48px; }
.hs-buy__cart .single_add_to_cart_button {
  flex: 1 1 auto;
  min-height: 50px;
  font-size: 16px;
  border-radius: var(--pill);
}
.hs-buy__cart .stock { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--hs-green); }
.hs-buy__cart .stock.out-of-stock { color: var(--hs-red); }
.hs-buy__cart .added_to_cart { display: none !important; }
.single_add_to_cart_button.is-added { background: var(--hs-green); }

.hs-buy__save {
  width: 100%;
  margin-top: 10px;
  height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--pill);
  border: 1px solid var(--hs-line-2);
  font-size: 15px; font-weight: 700;
  color: var(--hs-ink);
}
.hs-buy__save:hover { border-color: var(--hs-brand); color: var(--hs-brand); }

.hs-buy__info {
  list-style: none;
  margin-top: 18px;
  border: 1px solid var(--hs-line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.hs-buy__info li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; font-size: 13px; color: var(--hs-ink-2); }
.hs-buy__info li + li { border-top: 1px solid var(--hs-line); }
.hs-buy__info strong { display: block; font-size: 14px; color: var(--hs-ink); }
.hs-buy__info-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--hs-brand-50); color: var(--hs-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.hs-buy__pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hs-buy__pay .pay-mark { width: 40px; height: 25px; }

/* Description / specs */
.hs-pdp__sec { padding: 24px 0; border-top: 1px solid var(--hs-line); }
.hs-pdp__h { position: relative; font-size: 20px; font-weight: 800; color: var(--hs-ink); margin-bottom: 14px; padding-left: 14px; }
.hs-pdp__h::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--hs-brand); }
.hs-pdp__desc { font-size: 15px; line-height: 1.75; color: var(--hs-ink-2); max-width: 80ch; }
.hs-specs { margin: 0; border: 1px solid var(--hs-line); border-radius: var(--r-3); overflow: hidden; }
.hs-specs__row { display: grid; grid-template-columns: 220px 1fr; font-size: 14px; }
.hs-specs__row + .hs-specs__row { border-top: 1px solid var(--hs-line); }
.hs-specs dt { padding: 11px 16px; background: var(--hs-tint); font-weight: 700; color: var(--hs-ink); }
.hs-specs dd { margin: 0; padding: 11px 16px; color: var(--hs-ink-2); }
.hs-pdp__policy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
.hs-pdp__policy > div { padding: 16px 18px; border-radius: var(--r-3); background: var(--hs-tint); }
.hs-pdp__policy strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--hs-ink); }
.hs-pdp__policy p { color: var(--hs-ink-2); }

.hs-related { margin-top: 20px; padding-bottom: 20px; }

/* Mobile sticky buy bar */
.hs-stickybuy { display: none; }

@media (max-width: 1023px) {
  .hs-pdp__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "left" "right" "info";
  }
  .hs-pdp__right { margin-top: 20px; }
  .hs-buy { position: static; }
  .p-gallery__stage { max-height: none; }
  .p-gallery__thumb { width: 64px; height: 64px; }
  .p-gallery__nav { width: 36px; height: 36px; }
  .hs-pdp__policy { grid-template-columns: 1fr; gap: 10px; }
  .hs-specs__row { grid-template-columns: 130px 1fr; }

  .hs-stickybuy {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 3px solid var(--hs-brand);
    box-shadow: 0 -4px 16px rgba(16, 32, 48, .12);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .hs-stickybuy.is-on { transform: none; }
  .hs-stickybuy__price { font-size: 22px; }
  .hs-stickybuy .btn { flex: 0 0 auto; min-width: 160px; min-height: 46px; }
}

@media (max-width: 639px) {
  .hs-buy__specs dd { font-size: 13px; }
  .hs-buy__specs > div { padding: 8px 10px; }
}
