/* =========================================
   PRODUCT PAGE
   ========================================= */

/* Topbar */
.product-topbar {
  padding: 14px 0 4px;
}

.product-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.product-back:hover {
  text-decoration: underline;
}

/* Root wrappers */
.product-hero {
  display: block;
  padding: 18px 0 8px;
}

.product-sections {
  padding: 12px 0 40px;
  display: grid;
  gap: 18px;
}

/* Main layout: only gallery + right panel */
.product-layoutMain {
  display: grid;
  gap: 24px;
  align-items: start;
}

.product-media,
.product-panel {
  min-width: 0;
}

@media (min-width: 900px) {
  .product-layoutMain {
    grid-template-columns: minmax(0, 1.35fr) 500px;
    gap: 36px;
    align-items: start;
  }

  .product-panel {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 899px) {
  .product-layoutMain {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .product-panel {
    position: static;
  }
}

/* Wider product page container */
section.container.container--wide.product-hero#productRoot {
  max-width: 1480px;
  width: min(1480px, calc(100% - 48px));
}

/* -----------------------
   Gallery
----------------------- */
.product-media {
  display: grid;
  gap: 12px;
}

.product-imageMain {
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  background: var(--bglight, #fff);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
  cursor: zoom-in;
  touch-action: pan-y;
}

.product-imageMain img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .product-imageMain:hover img {
    transform: scale(1.01);
  }
}

/* Thumbnails */
.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.product-thumbs::-webkit-scrollbar {
  height: 8px;
}

.product-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.product-thumbBtn {
  flex: 0 0 auto;
  width: 132px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
  opacity: 0.88;
  scroll-snap-align: start;
  transform: translateZ(0);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-thumbBtn:hover {
  transform: translateY(-1px);
}

.product-thumbBtn[aria-current="true"] {
  opacity: 1;
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.product-thumbBtn img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
}

@media (max-width: 520px) {
  .product-thumbBtn {
    width: 118px;
  }

  .product-thumbBtn img {
    height: 78px;
  }
}

/* -----------------------
   Cards
----------------------- */
.product-hero .product-card,
.product-sections .product-card,
.mobile-stickyCta .product-card {
  background: var(--bglight, #fff);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
  border-radius: var(--radius-lg, 18px);
  border: 0;
  padding: 20px;
}

.product-hero .product-card:hover,
.product-sections .product-card:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
}

.product-card--narrow {
  max-width: 760px;
}

/* Right panel */
.product-panel {
  min-width: 0;
}

.product-panel--sold {
  opacity: 0.92;
}

/* Pills / title / pricing */
.product-badgeRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.product-title {
  margin: 6px 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.product-price {
  font-size: 38px;
  font-weight: 750;
  margin: 6px 0 0;
  letter-spacing: -0.02em;
}

.product-price--sold {
  opacity: 0.6;
  text-decoration: line-through;
}

.product-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-sub--spaced {
  margin-top: 12px;
}

.product-desc {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 55ch;
}

/* CTA */
.product-ctaRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}

.product-ctaRow .btn {
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.product-ctaRow .btn-primary {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.product-ctaRow .btn-secondary {
  opacity: 0.92;
}

.product-ctaRow .btn:hover {
  transform: translateY(-1px);
}

.product-ctaRow .btn:active {
  transform: translateY(0);
}

.product-ctaNote {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Soft boxes */
.product-softBox {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 12px;
}

.product-softList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-softList li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}

.product-softList .muted {
  color: var(--muted);
}

/* Mini specs inside right card */
.product-miniSpecs {
  width: 100%;
}

.product-miniSpecsTitle {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.product-dimWrap {
  margin-top: 10px;
}

/* Compact info lists */
.product-card .infoList--compact {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.product-card .infoList--compact li {
  padding: 0;
}

.product-card .infoList--compact strong {
  font-weight: 700;
}

/* Right card dimensions as 2 clean columns */
.product-panel .infoList--compact.infoList--twoCols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 8px;
}

.product-panel .infoList--compact.infoList--twoCols li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.product-panel .infoList--compact.infoList--twoCols span {
  color: var(--muted);
  white-space: nowrap;
}

/* Remove visual bullet conflict on mini specs row */
.product-panel .product-softList li:has(.product-miniSpecs)::before {
  display: none;
}

/* -----------------------
   Lower sections
----------------------- */
.product-sectionPlain {
  padding: 8px 0 0;
}

.product-h2 {
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.product-bodyText {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 68ch;
}

.product-sectionTitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

/* Specs grid */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

/* Info list */
.infoList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.infoList li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.infoList li > span {
  line-height: 1.2;
  margin-top: 2px;
  flex: 0 0 auto;
  opacity: 0.75;
}

.infoList strong {
  display: block;
  margin-bottom: 2px;
}

/* Mobile sticky CTA */
.mobile-stickyCta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
}

@media (max-width: 900px) {
  .mobile-stickyCta {
    display: block;
  }

  .mobile-stickyCta .product-card {
    padding: 12px;
    border-radius: 16px;
  }

  .mobile-stickyCta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Header WhatsApp icon */
.how-cta__buttonIcon svg {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.9;
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-lightbox__content {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.image-lightbox__close,
.image-lightbox__nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  line-height: 1;
}

.image-lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.image-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 34px;
}

.image-lightbox__nav--prev {
  left: 18px;
}

.image-lightbox__nav--next {
  right: 18px;
}

.image-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 800px) {
  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox__img {
    border-radius: 14px;
    max-height: 82vh;
  }

  .image-lightbox__close {
    top: 12px;
    right: 12px;
  }

  .image-lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .image-lightbox__nav--prev {
    left: 10px;
  }

  .image-lightbox__nav--next {
    right: 10px;
  }
}

@media (min-width: 900px) {
  #productRoot .product-panel {
    position: sticky !important;
    top: 100px !important;
    align-self: start !important;
  }
}

.product-layoutMain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 36px;
  align-items: start;
}

.product-mainCol,
.product-panelWrap,
.product-panel {
  min-width: 0;
}

.product-mainCol {
  display: grid;
  gap: 10px;
  align-items: start;
}

.product-sections--inline {
  padding-top: 4px;
  display: grid;
  gap: 18px;
}

.product-sectionPlain {
  padding: 0;
  margin: 0;
}

@media (min-width: 900px) {
  .product-panelWrap {
    align-self: start;
  }

  .product-panel {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

@media (max-width: 899px) {
  .product-layoutMain {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-panelWrap {
    height: auto !important;
  }

  .product-panel {
    position: static;
  }
}

.product-layoutMain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 36px;
  align-items: start;
}

.product-mainCol,
.product-panelWrap,
.product-panel {
  min-width: 0;
}

.product-mainCol {
  display: grid;
  gap: 10px;
  align-items: start;
}

.product-sections--inline {
  padding-top: 4px;
  display: grid;
  gap: 18px;
}

.product-sectionPlain {
  padding: 0;
  margin: 0;
}

@media (min-width: 900px) {
  .product-panelWrap {
    align-self: start;
  }

  .product-panel {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

@media (max-width: 899px) {
  .product-layoutMain {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-panelWrap {
    height: auto !important;
  }

  .product-panel {
    position: static;
  }
}