/* ============================================================
   DEVAJAMI VANTASALA — Product Page Styles (product.css)
   ============================================================ */

/* ── Product Layout ────────────────────────────────────────── */
.pdp-wrap {
  padding: 2.5rem 0 5rem;
}
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Gallery ───────────────────────────────────────────────── */
.pdp-gallery {
  position: sticky;
  top: calc(var(--header-h) + var(--announce-h) + 1.5rem);
}
.pdp-gallery__main-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--cream-dark);
  aspect-ratio: 1;
  cursor: zoom-in;
  margin-bottom: 1rem;
}
.pdp-gallery__main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.pdp-gallery__main-wrap:hover .pdp-gallery__main {
  transform: scale(1.06);
}

/* Zoom lens overlay */
.pdp-gallery__main-wrap::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  background: rgba(255,248,238,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--maroon);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.pdp-gallery__main-wrap:hover::after { opacity: 1; }

/* Badge on gallery */
.gallery-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Thumbnails */
.pdp-gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  background: var(--cream-dark);
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--maroon);
  box-shadow: 0 0 0 2px rgba(122,31,31,0.15);
}

/* Fullscreen zoom modal */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.zoom-modal.open { display: flex; }
.zoom-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.zoom-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
}
.zoom-close:hover { background: rgba(255,255,255,0.28); }

/* ── Product Info ───────────────────────────────────────────── */
.pdp-info { }

.pdp-category-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.pdp-category-link:hover { color: var(--maroon); }

.pdp-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Rating row */
.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.pdp-rating-val {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown);
}
.pdp-review-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pdp-review-count:hover { color: var(--maroon); }

/* Price */
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.pdp-price-current {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--maroon);
}
.pdp-price-original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pdp-save-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(46,125,50,0.12);
  color: #1B5E20;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(46,125,50,0.2);
}

.pdp-short-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

/* ── Variant Selector ──────────────────────────────────────── */
.pdp-variant-section {
  margin-bottom: 1.75rem;
}
.pdp-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pdp-label span { color: var(--text-muted); font-weight: 400; }

.variant-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.variant-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.variant-btn:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}
.variant-btn.selected {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  box-shadow: 0 4px 14px rgba(122,31,31,0.25);
}
.variant-btn .variant-price-tag {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 1px;
}
.variant-btn .variant-save {
  position: absolute;
  top: -8px; right: -6px;
  background: var(--gold);
  color: var(--brown);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}
.variant-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Qty + Actions ─────────────────────────────────────────── */
.pdp-actions {
  margin-bottom: 1.5rem;
}
.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pdp-qty-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown);
}
.pdp-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.pdp-qty-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-dark);
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  font-family: var(--font-body);
}
.pdp-qty-btn:hover { background: var(--maroon); color: #fff; }
.pdp-qty-input {
  width: 48px;
  text-align: center;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  background: #fff;
}

.pdp-btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pdp-btn-row .btn {
  flex: 1;
  justify-content: center;
  min-width: 140px;
}
.btn-add-cart {
  background: var(--maroon);
  color: #fff;
  border: 2px solid var(--maroon);
}
.btn-add-cart:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122,31,31,0.32);
}
.btn-buy-now {
  background: var(--gold);
  color: var(--brown);
  border: 2px solid var(--gold);
}
.btn-buy-now:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-wishlist-pdp {
  width: 50px; height: 50px;
  flex: none;
  min-width: unset;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition);
}
.btn-wishlist-pdp:hover,
.btn-wishlist-pdp.wishlisted {
  border-color: var(--maroon);
  color: var(--maroon);
  background: rgba(122,31,31,0.06);
}
.btn-wishlist-pdp.wishlisted i { font-weight: 900; }

/* ── Product Meta Strip ────────────────────────────────────── */
.pdp-meta-strip {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.pdp-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--text-mid);
}
.pdp-meta-item i {
  color: var(--gold);
  width: 16px;
  flex-shrink: 0;
}
.pdp-meta-item strong { color: var(--brown); }

/* ── Share / Social ────────────────────────────────────────── */
.pdp-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.pdp-share-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.share-btn:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ── Product Tabs ──────────────────────────────────────────── */
.pdp-tabs {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.pdp-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-tab-nav::-webkit-scrollbar { display: none; }
.pdp-tab-btn {
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.pdp-tab-btn:hover { color: var(--brown); }
.pdp-tab-btn.active {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
  font-weight: 600;
}
.pdp-tab-panel { display: none; animation: fadeUp 0.3s ease; }
.pdp-tab-panel.active { display: block; }

/* Ingredients */
.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.ingredient-pill {
  padding: 0.3rem 0.9rem;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-mid);
  display: flex; align-items: center; gap: 0.35rem;
}
.ingredient-pill i { color: var(--gold); font-size: 0.65rem; }

/* Health benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.benefit-card {
  padding: 1.2rem;
  background: var(--gold-pale);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.benefit-card i { color: var(--gold); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.benefit-card p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.5; }

/* Storage info */
.storage-card {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.storage-item { display: flex; gap: 1rem; align-items: flex-start; }
.storage-item__icon {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.storage-item__title { font-size: 0.78rem; font-weight: 600; color: var(--brown); margin-bottom: 0.2rem; }
.storage-item__val   { font-size: 0.82rem; color: var(--text-mid); }

/* ── Reviews ───────────────────────────────────────────────── */
.reviews-section { margin-top: 5rem; }
.reviews-head { margin-bottom: 2.5rem; }

.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}
.rating-big {
  text-align: center;
}
.rating-big__num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}
.rating-big__stars { margin: 0.3rem 0; }
.rating-big__count { font-size: 0.78rem; color: var(--text-muted); }

.rating-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.rating-bar-row span:first-child { width: 32px; text-align: right; flex-shrink: 0; }
.rating-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.8s ease;
}
.rating-bar-row span:last-child { width: 28px; flex-shrink: 0; }

/* Review cards */
.review-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }
.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.review-card__author { display: flex; align-items: center; gap: 0.75rem; }
.review-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--maroon);
  font-weight: 600;
  flex-shrink: 0;
}
.review-card__name { font-size: 0.9rem; font-weight: 600; color: var(--brown); }
.review-card__date { font-size: 0.72rem; color: var(--text-muted); }
.review-card__verified {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1565C0;
  background: rgba(21,101,192,0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  display: flex; align-items: center; gap: 0.3rem;
}
.review-card__title { font-weight: 600; font-size: 0.9rem; color: var(--brown); margin-bottom: 0.3rem; }
.review-card__body  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; }

/* Write a review form */
.review-form {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}
.review-form h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
}
.star-input {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.star-input input { display: none; }
.star-input label {
  font-size: 1.8rem;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--gold);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown);
}
.form-input,
.form-textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--maroon); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Related Products ──────────────────────────────────────── */
.related-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pdp-gallery { position: static; }
  .storage-card { grid-template-columns: 1fr; }
  .rating-summary { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pdp-btn-row { flex-direction: column; }
  .pdp-btn-row .btn { width: 100%; }
  .pdp-tab-btn { padding: 0.6rem 1rem; font-size: 0.8rem; }
}
