/* ── Product Page Layout ── */
.product-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 40px;
}

/* ── Breadcrumb ── */
.product-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.product-breadcrumb a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.product-breadcrumb a:hover {
  color: #2e7d32;
}

/* ── Two-column layout ── */
.product-layout {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Image Column ── */
.product-image-col {
  position: sticky;
  top: 80px;
}

.product-image-col img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: block;
}

/* ── Details Column ── */
.product-details-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Title ── */
.product-title {
  font-size: 30px;
  font-weight: 800;
  color: #111;
  margin: 0;
  line-height: 1.2;
}

/* ── Tagline bar ── */
.product-tagline-bar {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* ── Feature Pills ── */
.product-feature-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-pill {
  border: 1.5px solid #2e7d32;
  color: #2e7d32;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
}

/* ── Warranty Badge ── */
.warranty-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b8860b;
  font-weight: 700;
  font-size: 14px;
}

/* ── AH Selector ── */
.ah-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ah-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ah-btn {
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  color: #333;
}

.ah-btn:hover {
  border-color: #2e7d32;
}

.ah-btn.selected {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #2e7d32;
}

/* ── Price Box ── */
.price-box {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px 24px;
}

.price-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

#price-value {
  font-size: 44px;
  font-weight: 900;
  color: #2e7d32;
  line-height: 1;
}

#price-value.no-selection {
  font-size: 18px;
  color: #aaa;
  font-weight: 400;
}

@keyframes price-animate {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.price-animate {
  animation: price-animate 0.2s ease;
}

/* ── Quantity Row ── */
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.qty-control {
  display: flex;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-control button:hover {
  background: #f5f5f5;
}

.qty-control span {
  width: 48px;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  font-weight: 700;
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
}

/* ── Add to Cart Button ── */
.add-to-cart-btn {
  width: 100%;
  height: 56px;
  background: #2e7d32;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: #1b5e20;
}

.add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ── Ideal For Section ── */
.ideal-for-section {
  border: 1.5px solid #eee;
  border-radius: 10px;
  padding: 20px;
}

.ideal-for-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #666;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.ideal-for-icons {
  display: flex;
  justify-content: space-around;
}

.ideal-icon {
  text-align: center;
}

.ideal-icon .fas,
.ideal-icon .fab {
  font-size: 28px;
  color: #2e7d32;
}

.ideal-icon p {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  color: #444;
}

/* ── Spec Pills ── */
.specs-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-pill {
  background: #f5f5f5;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-image-col {
    position: static;
  }

  .product-page {
    padding: 24px 20px 120px; /* bottom padding for sticky button */
  }

  .ah-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Mobile Product Page ── */
@media (max-width: 768px) {
  .product-page {
    padding: 16px 14px 120px;
  }

  .product-title {
    font-size: 22px;
    line-height: 1.3;
  }

  .product-feature-pills {
    gap: 6px;
  }

  .feature-pill {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* AH buttons — bigger tap targets, 4 per row */
  .ah-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .ah-btn {
    padding: 14px 6px;
    font-size: 13px;
    border-radius: 10px;
  }

  .ah-btn.selected {
    box-shadow: 0 0 0 2px #2e7d32;
  }

  /* Price box */
  .price-box {
    padding: 16px 18px;
    border-radius: 12px;
    background: #f0faf0;
    border: 1.5px solid #c8e6c9;
  }

  #price-value {
    font-size: 38px;
  }

  /* Qty */
  .qty-control button {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .qty-control span {
    width: 56px;
    line-height: 48px;
    font-size: 18px;
  }

  /* Sticky Add to Cart */
  .add-to-cart-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    border-radius: 0;
    font-size: 17px;
    z-index: 300;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  }

  body.nav-open .add-to-cart-btn {
    display: none;
  }

  .ideal-for-section {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .ah-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ah-btn {
    padding: 16px 8px;
    font-size: 14px;
  }

  #price-value {
    font-size: 32px;
  }
}
