/* =========================================================================
   AMBERNORD — PRODUCT PAGE STYLES
   css/product.css
   Gallery · Thumbnails · Info column · Science box · Abo box · Related products
   Shared across The Starter, The Habit, The Protocol
   ========================================================================= */

/* =========================================================================
   PAGE LAYOUT
   ========================================================================= */

.product-page-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 120px auto 60px auto;
  padding: 0 var(--container-pad);
  gap: 60px;
  animation: smoothReveal 1s ease forwards;
}

/* =========================================================================
   LEFT COLUMN — IMAGE GALLERY
   ========================================================================= */

.product-gallery {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.main-image-box {
  width: 100%;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  background: transparent;
  position: relative;
  touch-action: pan-y;
}

.main-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
  user-select: none;
  -webkit-user-drag: none;
}

.thumb-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.thumb-container img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  background-color: transparent;
  transition: all var(--t-fast) ease;
}

.thumb-container img:hover,
.thumb-container img.active-thumb {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(237, 163, 35, 0.2);
}

/* Voucher badge overlaid on main image */
.custom-badge-position {
  position: absolute;
  top: 95px;
  left: 10px;
  z-index: var(--z-above);
}

/* =========================================================================
   RIGHT COLUMN — PRODUCT INFO
   ========================================================================= */

.product-info-column {
  flex: 1 1 450px;
}

.p-top-title {
  font-size: 32px;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 10px;
  margin-top: 0;
}

.p-title-volume {
  font-size: 20px;
  font-weight: 400;
  color: #b0b0b0;
  white-space: nowrap;
  margin-left: 8px;
  font-family: var(--font-sans);
}

.p-main-price {
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 40px;
  display: inline-block;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Primary order button */
.order-btn-stripe {
  display: block;
  width: 100%;
  background: var(--color-gold);
  border: none;
  color: #000;
  text-align: center;
  padding: 18px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 20px;
  transition: all var(--t-fast) var(--ease-out);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(237, 163, 35, 0.3);
}

.order-btn-stripe:hover {
  background: #f5b53f;
  color: #000;
  box-shadow: 0 8px 25px rgba(237, 163, 35, 0.4);
  transform: translateY(-2px);
}

/* =========================================================================
   SCIENCE BOX
   ========================================================================= */

.science-box {
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--color-gold);
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 0 8px 8px 0;
}

.science-box h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0;
  margin-bottom: 15px;
}

.science-box li {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  list-style: none;
  padding-left: 0;
}

/* =========================================================================
   SUBSCRIPTION BOX (The Habit + The Protocol only)
   ========================================================================= */

.abo-wrapper {
  display: block;
  width: 100%;
  border: 1px solid rgba(237, 163, 35, 0.4);
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 20px;
  transition: transform var(--t-fast) ease,
              box-shadow var(--t-fast) ease,
              border-color var(--t-fast) ease;
  background: #050505;
}

.abo-wrapper:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(237, 163, 35, 0.2);
}

.abo-top {
  background-color: rgba(237, 163, 35, 0.1);
  color: var(--color-gold);
  text-align: center;
  padding: 12px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(237, 163, 35, 0.15);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}

.abo-wrapper:hover .abo-top {
  background-color: var(--color-gold);
  color: #000;
}

.abo-bottom {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.abo-price {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans);
  margin-bottom: 4px;
}

.abo-subtext {
  color: var(--color-text-dim);
  font-size: 11px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.abo-guarantee {
  color: var(--color-gold);
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================================================
   SHIPPING / LOGISTICS FOOTER
   ========================================================================= */

.product-shipping-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.product-shipping-label {
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

/* =========================================================================
   RELATED PRODUCTS SECTION
   ========================================================================= */

.ambernord-related-wrapper {
  max-width: 1200px;
  margin: 80px auto 120px auto;
  padding: 0 var(--container-pad);
}

.ambernord-related-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.ambernord-related-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.ambernord-product-card {
  flex: 1 1 300px;
  max-width: 320px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--t-base) ease;
  position: relative;
  background-color: var(--color-surface-2);
  border: 1px solid rgba(237, 163, 35, 0.15);
  border-radius: 16px;
  padding: 20px;
}

.ambernord-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 163, 35, 0.4);
}

.ambernord-product-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.ambernord-product-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.ambernord-product-info { width: 100%; }

.ambernord-product-info h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 6px 0;
  font-weight: 400;
  color: var(--color-gold);
}

.ambernord-product-info .p-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  margin: 0 0 8px 0;
  color: var(--color-gold);
}

.ambernord-product-info .p-price {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #f5f5f5;
}

.ambernord-product-info .p-extra {
  font-family: var(--font-sans);
  font-size: 12px;
  margin: 0 0 6px 0;
  font-weight: 300;
  color: #e8e8e8;
}

.ambernord-product-info .p-daily-price {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--color-gold);
}

.ambernord-product-info .p-shipping {
  font-family: var(--font-sans);
  font-size: 10px;
  margin: 0;
  letter-spacing: 0.5px;
  color: #b3b3b3;
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================================================
   RESPONSIVE — PRODUCT PAGES
   ========================================================================= */

@media (max-width: 991px) {
  .product-page-container {
    margin: 100px auto 30px auto;
    gap: 30px;
  }

  .main-image-box { height: 400px; }

  .p-top-title { font-size: 26px; text-align: center; }
  .p-title-volume { font-size: 16px; }
  .p-main-price { text-align: center; display: block; margin-bottom: 30px; }

  .thumb-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    padding: 5px 0 15px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .thumb-container::-webkit-scrollbar {
    height: 0;
    background: transparent;
  }

  .thumb-container img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .science-box { border-radius: 8px; }

  .custom-badge-position {
    left: 25%;
    top: 75px;
  }

  .inline-main-btn { display: none; }

  .ambernord-product-card {
    flex: 0 1 calc(50% - 15px);
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .ambernord-related-grid { gap: 15px; padding: 0 10px; }
  .ambernord-product-card { flex: 0 1 calc(50% - 15px); max-width: 250px; }
}
