/* ══════════════════════════════════════════
   AROMI CASA — PRODUCT DETAIL PAGE STYLES
   Extracted from product.php
══════════════════════════════════════════ */

/* Breadcrumb chevron separator */
.breadcrumb-sep {
  font-size: 0.55rem;
  color: var(--muted);
  margin: 0 6px;
  vertical-align: middle;
}

/* Regional badges & Also Known As */
.product-regional-names {
  font-size: 0.84rem;
}
.badge-regional-gu {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 600;
  padding: 4px 9px;
}
.badge-regional-hi {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 600;
  padding: 4px 9px;
}
.badge-regional-mr {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 600;
  padding: 4px 9px;
}
.badge-regional-lang {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-right: 3px;
}
.product-lang-switcher {
  background: #fdf9f4;
  border: 1px solid rgba(192, 132, 70, 0.25);
  border-radius: 8px;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.18s ease;
}
.lang-switch-btn:hover {
  background: #fef7ed;
  border-color: #f59e0b;
  color: #92400e;
}
.lang-switch-btn.active {
  background: var(--wine, #721817);
  color: #ffffff;
  border-color: var(--wine, #721817);
  box-shadow: 0 2px 6px rgba(114, 24, 23, 0.22);
}
.product-aka-wrap {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.product-aka-title {
  font-weight: 600;
  color: var(--wine);
}
.product-aka-names {
  color: var(--text);
}
.price-mrp-strike {
  text-decoration: line-through;
  font-size: 0.95rem;
  color: var(--muted);
}
.price-status {
  font-size: 0.8rem;
  font-weight: 600;
}
.reviews-empty-cell {
  grid-column: 1 / -1;
}

/* Nutrition & Storage full-width section */
.product-info-row-section {
  padding: 20px 0;
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
}

.product-ingredients-badge-wrap {
  margin-top: 10px;
  margin-bottom: 10px;
}
.product-ingredients-badge {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--gold);
  padding: 4px 10px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(92,26,26,0.05);
  font-size: 0.85rem;
  line-height: 1.4;
}
.ingredients-badge-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--wine);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ingredients-badge-val {
  color: var(--text);
  font-weight: 500;
}
.product-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(92,26,26,0.05);
  transition: var(--transition);
}
.product-rating-badge:hover {
  background: #ffffff;
  border-color: var(--gold);
}
.rating-stars-gold {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.rating-val {
  color: var(--wine);
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}
.rating-count {
  color: var(--muted);
  font-size: 0.78rem;
}

/* E-commerce Variant Selector & Pricing Block */
.product-price-block {
  background: rgba(248, 240, 224, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.price-amount {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.65rem;
  color: var(--wine);
  font-weight: 700;
}
.currency-symbol {
  font-size: 0.85em;
  font-weight: 600;
  margin-right: 2px;
}
.badge-savings-compact {
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  vertical-align: middle;
}
.variant-selector-wrap {
  margin-top: 12px;
}
.variant-selector-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.variant-pills {
  margin-top: 4px;
}
.variant-pill {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.variant-pill:hover {
  border-color: var(--gold);
  color: var(--wine);
  background: rgba(201, 168, 76, 0.05);
}
.variant-pill.active {
  border-color: var(--wine);
  color: #ffffff;
  background: var(--wine);
}

/* Reviews Section Layout */
.product-tabs-section {
  padding: 20px 0;
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Standalone Nutrition Facts Capsules Section */
.product-nutrition-capsules-wrap {
  margin-top: 14px;
}
.nutrition-capsules-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.nutrition-capsules {
  margin-top: 4px;
}
.nutrition-capsule {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(92,26,26,0.03);
}
.nutrition-capsule .nutrition-label {
  color: var(--muted);
  margin-right: 4px;
}
.nutrition-capsule .nutrition-val {
  color: var(--wine);
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Compact Reviews Header & Bar */
.reviews-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(92,26,26,0.04);
  flex-wrap: wrap;
  gap: 12px;
}
.reviews-score-compact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.score-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
}
.score-meta {
  display: flex;
  flex-direction: column;
}
.mini-bars-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mini-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  color: var(--muted);
  min-width: 38px;
}
.mini-bar-track {
  width: 100%;
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  margin: 2px 0;
}
.mini-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.write-review-card-compact {
  background: #ffffff;
  border: 1.5px solid var(--wine);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 4px 12px rgba(92,26,26,0.08);
}
.form-control-compact {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.84rem;
  color: var(--text);
}
.form-control-compact:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 2px rgba(92,26,26,0.1);
}

/* Review Cards — 4-per-row grid with equal heights */
.reviews-feed-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.review-card-compact {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(92,26,26,0.03);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.review-card-compact:hover {
  box-shadow: 0 4px 14px rgba(92,26,26,0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.review-card-compact-header {
  margin-bottom: 6px;
}
.review-avatar-compact {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--wine);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-author-compact {
  font-weight: 700;
  color: var(--wine);
  font-size: 0.88rem;
}
.badge-verified-compact {
  font-size: 0.68rem;
  color: #15803d;
  font-weight: 600;
  margin-left: 4px;
}
.review-stars-compact {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.review-date-compact {
  font-size: 0.72rem;
  color: var(--muted);
}
.review-title-compact {
  display: block;
  font-family: 'Playfair Display', serif;
  color: var(--wine);
  font-size: 0.92rem;
  margin: 4px 0 2px;
}
.review-comment-compact {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
  margin: 4px 0 0;
  flex-grow: 1;
}
.alert-review {
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.alert-review-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid #16a34a;
  color: #15803d;
}
.alert-review-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #dc2626;
  color: #b91c1c;
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--gold);
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(92,26,26,0.1);
}
@media (max-width: 767px) {
  .sticky-mobile-cta {
    display: flex;
  }
  /* Add bottom padding to page so content isn't hidden behind sticky bar */
  .page-content { padding-bottom: 70px; }
}
.sticky-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}
.sticky-cta-call {
  background: var(--wine);
  color: #ffffff;
}
.sticky-cta-call:hover {
  background: var(--wine-dark);
  color: #ffffff;
}
.sticky-cta-wa {
  background: #25d366;
  color: #ffffff;
}
.sticky-cta-wa:hover {
  background: #1da851;
  color: #ffffff;
}

/* Image Lightbox */
.product-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}
.product-lightbox.active {
  display: flex;
}
.product-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Clickable product images */
.product-gallery-main,
.product-detail-img-wrap img {
  cursor: zoom-in;
}
