/* ================================================================
   PRODUCT PAGE – herboristerie-ambre
   ================================================================ */

/* Breadcrumb */
.product-breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--green-primary); }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ── Product Top ─────────────────────────────────────────────── */
.product-page { background: var(--beige-light); }

.product-top {
  background: var(--white);
  padding: 48px 0 56px;
}

.product-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 90px; }

.gallery-main-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--beige);
  margin-bottom: 12px;
}

.gallery-main-img,
.gallery-main-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
}

.gallery-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--green-dark);
}
.gallery-zoom-btn:hover { background: #fff; transform: scale(1.1); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb-btn {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: var(--transition);
}
.thumb-btn img { width: 100%; height: 80px; object-fit: cover; display: block; }
.thumb-btn:hover,
.thumb-btn.active { border-color: var(--green-primary); }

/* Buy Box */
.product-buybox { padding-top: 8px; }

.buybox-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.stars-row { display: flex; gap: 2px; }
.star { font-size: 1rem; }
.star.filled { color: #f0a500; }
.star.half   { color: #f0a500; opacity: .6; }
.star.empty  { color: #ddd; }

.rating-link {
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
}
.rating-link:hover { color: var(--green-primary); }
.rating-link strong { color: var(--green-dark); }

.buybox-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--green-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.buybox-tagline {
  font-size: 1rem;
  color: var(--green-primary);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 20px;
}

/* Price */
.buybox-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.buybox-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  font-family: 'Playfair Display', serif;
}
.buybox-price .woocommerce-Price-amount { font-size: 2rem; color: var(--green-dark); }
.buybox-price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount-badge {
  background: #e74c3c;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

/* Urgency */
.urgency-block {
  background: #fff8f0;
  border: 1.5px solid #f0c080;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.urgency-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: #b35900;
  margin-bottom: 10px;
}
.stock-progress {
  height: 6px;
  background: #fde8c8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.stock-bar {
  height: 100%;
  background: linear-gradient(to right, #f0a500, #e74c3c);
  border-radius: 3px;
}
.urgency-sub { font-size: .75rem; color: #b35900; margin: 0; }

/* Quick benefit pills */
.quick-benefits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.quick-benefits span {
  background: rgba(74,103,65,.1);
  color: var(--green-primary);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
}

/* Add to cart / qty */
.buybox-buy {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: stretch;
}
.buybox-qty-wrap { display: flex; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.qty-btn {
  width: 40px;
  height: 52px;
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--green-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--beige); }
.qty-input {
  width: 50px;
  height: 52px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: var(--green-dark);
  outline: none;
  background: var(--white);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-add-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-add-cart:hover {
  background: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47,62,47,.25);
}
.btn-buy-now {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}
.btn-buy-now:hover { background: var(--green-dark); color: #fff; }

/* Micro trust */
.micro-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.micro-trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--beige-light, #f5f5f0);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}
.micro-trust-item svg { color: var(--green-primary); flex-shrink: 0; }
.micro-trust-item span { line-height: 1.3; }

/* RTL: keep icon left of text, right-align text */
html[dir="rtl"] .micro-trust,
html[data-dir="rtl"] .micro-trust,
body.dir-rtl .micro-trust                { direction: rtl; }

html[dir="rtl"] .micro-trust-item,
html[data-dir="rtl"] .micro-trust-item,
body.dir-rtl .micro-trust-item           { flex-direction: row-reverse; text-align: center; justify-content: center; }

/* ── Benefits ────────────────────────────────────────────────── */
.benefits-section { padding: 80px 0; background: var(--beige-light); }
.benefits-header  { text-align: center; margin-bottom: 52px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit-icon {
  width: 64px;
  height: 64px;
  background: rgba(74,103,65,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--green-primary);
  transition: var(--transition);
}
.benefit-card:hover .benefit-icon { background: var(--green-primary); color: #fff; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--green-dark); }
.benefit-card p  { font-size: .83rem; color: var(--text-muted); line-height: 1.65; }

.benefits-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-primary);
  border-radius: var(--radius-md);
  padding: 28px 40px;
}
.proof-stat { text-align: center; flex: 1; color: #fff; }
.proof-stat strong { display: block; font-size: 1.8rem; font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.proof-stat span   { font-size: .8rem; opacity: .8; }
.proof-divider { width: 1px; height: 40px; background: rgba(255,255,255,.25); flex-shrink: 0; }

/* ── How To Use ──────────────────────────────────────────────── */
.howto-section  { padding: 80px 0; background: var(--white); }
.howto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.howto-subtitle { color: var(--text-muted); margin-bottom: 36px; font-size: .95rem; }
.howto-steps    { display: flex; flex-direction: column; gap: 28px; }
.howto-step     { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(74,103,65,.1);
  color: var(--green-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; letter-spacing: .05em;
}
.step-content strong { display: block; font-size: .95rem; color: var(--green-dark); margin-bottom: 4px; }
.step-content p      { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.howto-image         { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.howto-image img     { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.howto-image-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--green-primary);
  backdrop-filter: blur(6px);
}
.howto-image-badge span   { font-size: .85rem; color: var(--green-dark); }
.howto-image-badge strong { font-weight: 700; }

/* ── Ingredients Accordion ───────────────────────────────────── */
.ingredients-section { padding: 48px 0; background: var(--beige-light); }
.ingredients-accordion {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer; list-style: none;
  font-weight: 600; color: var(--green-dark);
  transition: var(--transition); user-select: none;
}
.accordion-trigger::-webkit-details-marker { display: none; }
.accordion-trigger > span { display: flex; align-items: center; gap: 10px; color: var(--green-primary); }
.accordion-trigger:hover  { background: var(--beige-light); }
.ingredients-accordion[open] .accordion-arrow { transform: rotate(180deg); }
.accordion-arrow  { transition: transform .3s ease; flex-shrink: 0; }
.accordion-body   { padding: 0 24px 24px; }
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 16px;
}
.ingredient-item { display: flex; gap: 14px; align-items: flex-start; }
.ingredient-dot  { width: 8px; height: 8px; background: var(--green-primary); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.ingredient-item strong { display: block; font-size: .88rem; color: var(--green-dark); margin-bottom: 3px; }
.ingredient-item p      { font-size: .78rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.ingredients-note {
  background: rgba(74,103,65,.07);
  border-radius: 8px; padding: 10px 16px;
  font-size: .8rem; color: var(--green-primary); font-weight: 600; margin: 0;
}
.delivery-list    { padding-left: 0; }
.delivery-list li { padding: 8px 0; font-size: .88rem; color: var(--text); border-bottom: 1px solid var(--border); line-height: 1.5; }
.delivery-list li:last-child { border: none; }

/* ── Reviews ─────────────────────────────────────────────────── */
.reviews-section  { padding: 80px 0; background: var(--white); }
.reviews-header   { text-align: center; margin-bottom: 52px; }
.reviews-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px; align-items: start;
}
.reviews-summary {
  background: var(--beige-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  position: sticky; top: 90px;
}
.rating-big-num {
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--green-dark);
  line-height: 1; margin-bottom: 8px;
}
.rating-big-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.rating-big-stars .star { font-size: 1.3rem; }
.rating-total { font-size: .82rem; color: var(--text-muted); margin-bottom: 24px; }
.rating-bars  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.rb-label { width: 28px; text-align: right; color: var(--text-muted); flex-shrink: 0; }
.rb-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rb-fill  { height: 100%; background: #f0a500; border-radius: 3px; }
.rb-pct   { width: 30px; font-size: .72rem; color: var(--text-muted); flex-shrink: 0; }
.reviews-summary-badges { display: flex; flex-direction: column; gap: 6px; }
.rsb-item { font-size: .75rem; color: var(--green-primary); font-weight: 600; }

.reviews-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card {
  background: var(--beige-light);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.review-stars    { color: #f0a500; font-size: .95rem; letter-spacing: .05em; }
.review-verified { font-size: .7rem; color: var(--green-primary); font-weight: 600; background: rgba(74,103,65,.1); padding: 3px 8px; border-radius: 50px; }
.review-text     { font-size: .88rem; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.review-author   { display: flex; align-items: center; gap: 10px; }
.review-avatar   { width: 38px; height: 38px; background: var(--green-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.review-avatar-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-author strong { display: block; font-size: .85rem; color: var(--green-dark); }
.review-author span   { font-size: .75rem; color: var(--text-muted); }
.reviews-more { text-align: center; margin-top: 36px; }

/* ── Guarantee ───────────────────────────────────────────────── */
.guarantee-section { padding: 20px 0; background: var(--green-dark); }
.guarantee-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
/* Hide the big badge on product page — keep only the compact strip */
.guarantee-badge-main { display: none; }
.guarantee-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}
.gi-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  text-align: left;
}
.gi-item:last-child { border-right: none; }
.gi-item svg { flex-shrink: 0; opacity: .85; }
.gi-item strong { display: block; font-size: .82rem; font-weight: 600; color: #fff; margin-bottom: 1px; white-space: nowrap; }
.gi-item p      { font-size: .72rem; color: rgba(255,255,255,.6); margin: 0; line-height: 1.3; white-space: nowrap; }

/* ── Related ─────────────────────────────────────────────────── */
.related-section { padding: 72px 0; background: var(--beige-light); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 40px;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: block;
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.related-card img   { width: 100%; height: 200px; object-fit: cover; display: block; }
.related-info       { padding: 16px; }
.related-info h4    { font-family: 'Playfair Display', serif; font-size: .95rem; margin-bottom: 6px; color: var(--green-dark); }
.related-info span  { font-size: .9rem; font-weight: 700; color: var(--green-primary); }

/* ── Sticky Cart Bar ─────────────────────────────────────────── */
.sticky-cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(47,62,47,.12);
  z-index: 990;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  padding: 12px 0;
}
.sticky-cart-bar.visible { transform: translateY(0); }
.sticky-cart-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.sticky-product-info { display: flex; flex-direction: column; gap: 2px; }
.sticky-name  { font-size: .9rem; font-weight: 700; color: var(--green-dark); }
.sticky-price { font-size: .85rem; color: var(--green-primary); font-weight: 600; }
.sticky-btn   { flex-shrink: 0; padding: 12px 28px; font-size: .9rem; }

/* ── WooCommerce form overrides ──────────────────────────────── */
.single-product .buybox-buy .quantity { display: flex; }
.single-product .buybox-buy .qty {
  width: 50px; height: 52px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center; font-size: 1rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; color: var(--green-dark);
  outline: none; background: var(--white);
}
.single-product .buybox-buy .button.single_add_to_cart_button {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  background: var(--green-dark); color: #fff;
  border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.single-product .buybox-buy .button.single_add_to_cart_button:hover { background: var(--green-primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-top-grid    { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery     { position: static; }
  .gallery-main-img    { height: 400px; }
  .howto-inner         { grid-template-columns: 1fr; }
  .howto-image img     { height: 320px; }
  .benefits-grid       { grid-template-columns: repeat(2, 1fr); }
  .guarantee-items     { grid-template-columns: repeat(2, 1fr); }
  .gi-item             { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .gi-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.12); }
  .gi-item:last-child,
  .gi-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .reviews-layout      { grid-template-columns: 1fr; }
  .reviews-summary     { position: static; }
}

@media (max-width: 768px) {
  .product-top      { padding: 32px 0; }
  .gallery-main-img { height: 300px; }
  .micro-trust      { grid-template-columns: 1fr 1fr; }
  .benefits-grid    { grid-template-columns: 1fr; }
  .benefits-proof   { flex-wrap: wrap; gap: 20px; padding: 24px; }
  .proof-divider    { display: none; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .reviews-cards    { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: repeat(2, 1fr); }
  .guarantee-items  { grid-template-columns: 1fr 1fr; }
  .gi-item          { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .buybox-buy    { flex-direction: column; }
  .related-grid  { grid-template-columns: 1fr; }
  .guarantee-items  { grid-template-columns: 1fr 1fr; }
  .gi-item strong, .gi-item p { white-space: normal; }
  .sticky-product-info { display: none; }
  .sticky-btn    { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   WooCommerce native gallery overrides
   ══════════════════════════════════════════════════════════════ */

/* Gallery container keeps our badge positioned inside it */
.product-gallery {
  position: sticky !important;
  top: 90px;
}

/* WC gallery wrapper */
.woocommerce-product-gallery {
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  position: relative;
}

/* Main image area */
.woocommerce-product-gallery__wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--beige);
  margin-bottom: 12px;
  position: relative;
}

.woocommerce-product-gallery__image {
  display: block;
}

.woocommerce-product-gallery__image a {
  display: block;
  cursor: zoom-in;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* WC zoom icon */
.woocommerce-product-gallery__trigger {
  display: none !important; /* we rely on hover zoom, not icon */
}

/* Badge overlay on WC gallery */
.product-gallery .gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

/* Thumbnail strip (flexslider list) */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  float: none !important;
  width: 100% !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  opacity: 1 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  border-color: var(--green-primary);
}

/* WC gallery opacity fade-in (handled by WC JS) */
.woocommerce-product-gallery[style*="opacity: 0"] {
  opacity: 1 !important; /* prevent invisible state if WC JS is slow */
}

/* ═══════════════════════════════════════════════════════════════
   WooCommerce single-product add-to-cart form (native)
   ══════════════════════════════════════════════════════════════ */

/* The <form class="cart"> wrapper */
.buybox-buy .cart {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  flex-wrap: wrap;
}

/* Qty input group (WC default: <div class="quantity">) */
.buybox-buy .quantity {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}

.buybox-buy .quantity label {
  display: none; /* hidden — qty is clear from context */
}

.buybox-buy .quantity input.qty {
  width: 56px;
  height: 52px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: var(--green-dark);
  outline: none;
  background: var(--white);
  -moz-appearance: textfield;
}
.buybox-buy .quantity input.qty::-webkit-outer-spin-button,
.buybox-buy .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Add-to-cart submit button */
.buybox-buy .single_add_to_cart_button {
  flex: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--green-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 52px;
}
.buybox-buy .single_add_to_cart_button:hover {
  background: var(--green-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47,62,47,.25);
}
.buybox-buy .single_add_to_cart_button.loading {
  opacity: .7;
  pointer-events: none;
}
.buybox-buy .single_add_to_cart_button.added {
  background: var(--green-primary) !important;
}

/* Buybox inline wishlist button */
.buybox-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 20px;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
}
.buybox-wishlist-btn:hover {
  border-color: #e05575;
  color: #e05575;
}
.buybox-wishlist-btn.wishlisted {
  border-color: #e05575;
  color: #e05575;
  background: #fff5f7;
}
.buybox-wishlist-btn.wishlisted .buybox-wl-label::before {
  content: "✓ ";
}

/* WC price display in buybox */
.buybox-price-row .price {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.buybox-price-row .price del {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 6px;
  font-family: 'DM Sans', sans-serif;
}
.buybox-price-row .price ins {
  text-decoration: none;
  color: var(--green-dark);
}
.buybox-price-row .price ins .woocommerce-Price-amount,
.buybox-price-row .price > .woocommerce-Price-amount {
  font-size: 2rem;
  color: var(--green-dark);
}

/* Out-of-stock badge */
.stock-badge.out-of-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ── Description accordion content ──────────────────────────── */
.description-content {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text);
}
.description-content h2,
.description-content h3 { color: var(--green-dark); margin: 20px 0 8px; }
.description-content p  { margin-bottom: 12px; }
.description-content ul { padding-left: 20px; margin-bottom: 12px; }
.description-content ul li { margin-bottom: 6px; }

/* ── Reviews empty state ─────────────────────────────────────── */
.reviews-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
}

/* WC review form wrapper */
.wc-review-form-wrap {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.wc-review-form-wrap #reviews { margin: 0; }
.wc-review-form-wrap .comment-form-rating { margin-bottom: 16px; }
.wc-review-form-wrap .comment-form-rating label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--green-dark); }
.wc-review-form-wrap input[type="text"],
.wc-review-form-wrap input[type="email"],
.wc-review-form-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.wc-review-form-wrap input:focus,
.wc-review-form-wrap textarea:focus { border-color: var(--green-primary); }
.wc-review-form-wrap .submit input[type="submit"],
.wc-review-form-wrap input#submit {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: auto;
}
.wc-review-form-wrap .submit input:hover { background: var(--green-primary); }

/* Responsive adjustments for WC gallery */
@media (max-width: 1024px) {
  .woocommerce-product-gallery__image img,
  .woocommerce-product-gallery__image--placeholder img { height: 400px; }
  .product-gallery { position: static !important; }
}
@media (max-width: 768px) {
  .woocommerce-product-gallery__image img { height: 300px; }
  .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .woocommerce-product-gallery .flex-control-thumbs li img { height: 64px; }
}

/* ================================================================
   PRODUCT PAGE – Responsive Enhancements v2
   Fills remaining gaps for all mobile breakpoints.
   ================================================================ */

/* ── 1. Section padding: reduce on mobile ───────────────────── */
@media (max-width: 768px) {
  .benefits-section  { padding: 56px 0; }
  .howto-section     { padding: 56px 0; }
  .reviews-section   { padding: 56px 0; }
  .related-section   { padding: 56px 0; }
  .guarantee-section { padding: 0; }
  .ingredients-section { padding: 36px 0; }
}

@media (max-width: 480px) {
  .product-top       { padding: 24px 0 32px; }
  .benefits-section  { padding: 40px 0; }
  .howto-section     { padding: 40px 0; }
  .reviews-section   { padding: 40px 0; }
  .related-section   { padding: 40px 0; }
  .guarantee-section { padding: 0; }
}

/* ── 2. Gallery: adjust height on very small screens ────────── */
@media (max-width: 400px) {
  .woocommerce-product-gallery__image img,
  .woocommerce-product-gallery__image--placeholder img,
  .gallery-main-img { height: 260px; }

  .woocommerce-product-gallery .flex-control-thumbs li img,
  .thumb-btn img { height: 54px; }
}

/* ── 3. Buy box: typography + layout on mobile ───────────────── */
@media (max-width: 480px) {
  .buybox-title   { font-size: 1.55rem; }
  .buybox-tagline { font-size: .92rem; }

  /* Price */
  .buybox-price,
  .buybox-price .woocommerce-Price-amount,
  .buybox-price-row .price ins .woocommerce-Price-amount,
  .buybox-price-row .price > .woocommerce-Price-amount {
    font-size: 1.7rem;
  }

  /* Benefit pills: compact */
  .quick-benefits       { gap: 6px; }
  .quick-benefits span  { font-size: .72rem; padding: 4px 10px; }

  /* Micro trust */
  .micro-trust-item {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 4px;
    font-size: .72rem;
    padding: 8px 6px;
  }
}

/* ── 4. Add-to-cart button: full touch target ───────────────── */
@media (max-width: 768px) {
  .btn-add-cart,
  .buybox-buy .single_add_to_cart_button {
    min-height: 52px;
  }
  .btn-buy-now { min-height: 48px; }
}

/* ── 5. Ingredients accordion: compact on mobile ─────────────── */
@media (max-width: 480px) {
  .accordion-trigger { padding: 16px 18px; font-size: .9rem; }
  .accordion-body    { padding: 0 18px 18px; }
  .ingredients-grid  { grid-template-columns: 1fr; gap: 12px; }
}

/* ── 6. Benefits proof stats: responsive wrapping ───────────── */
@media (max-width: 480px) {
  .benefits-proof   { padding: 20px 16px; gap: 16px; }
  .proof-stat strong{ font-size: 1.5rem; }
  .proof-stat span  { font-size: .72rem; }
}

/* ── 7. How-to section: compact on mobile ───────────────────── */
@media (max-width: 480px) {
  .howto-inner     { gap: 36px; }
  .howto-image img { height: 240px; }
  .howto-step      { gap: 14px; }
  .howto-step .step-num { width: 38px; height: 38px; font-size: .78rem; }
  .step-content strong  { font-size: .9rem; }
}

/* ── 8. Guarantee section: stack & compact on mobile ─────────── */
@media (max-width: 480px) {
  .guarantee-circle  { width: 64px; height: 64px; }
  .guarantee-badge-main strong { font-size: 1rem; }
}

/* ── 9. Reviews: compact on mobile ──────────────────────────── */
@media (max-width: 480px) {
  .reviews-header    { margin-bottom: 32px; }
  .review-card       { padding: 18px; }
  .rating-big-num    { font-size: 3.2rem; }
  .review-text       { font-size: .84rem; }
}

/* ── 10. Related products: 2-col on mobile, 1-col on tiny ───── */
@media (max-width: 480px) {
  .related-grid            { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .related-card img        { height: 150px; }
  .related-info            { padding: 12px; }
  .related-info h4         { font-size: .85rem; }
}
@media (max-width: 360px) {
  .related-grid            { grid-template-columns: 1fr; }
}

/* ── 11. Sticky cart bar: full-width CTA on small screens ────── */
@media (max-width: 480px) {
  .sticky-cart-bar    { padding: 10px 0; }
  .sticky-cart-inner  { gap: 12px; }
  .sticky-btn         { padding: 12px 20px; font-size: .88rem; flex: 1; text-align: center; justify-content: center; }
}

/* ── 12. iOS input zoom prevention in review form ────────────── */
.wc-review-form-wrap input[type="text"],
.wc-review-form-wrap input[type="email"],
.wc-review-form-wrap textarea { font-size: 16px; }
@media (min-width: 769px) {
  .wc-review-form-wrap input[type="text"],
  .wc-review-form-wrap input[type="email"],
  .wc-review-form-wrap textarea { font-size: .9rem; }
}

/* ================================================================
   PRODUCT PAGE – RTL
   ================================================================ */

html[dir="rtl"] .product-layout,
html[data-dir="rtl"] .product-layout,
body.dir-rtl .product-layout            { direction: rtl; }

html[dir="rtl"] .buybox,
html[data-dir="rtl"] .buybox,
body.dir-rtl .buybox                    { text-align: right; }

html[dir="rtl"] .buybox-price-row,
html[data-dir="rtl"] .buybox-price-row,
body.dir-rtl .buybox-price-row          { flex-direction: row-reverse; }

html[dir="rtl"] .quick-benefits,
html[data-dir="rtl"] .quick-benefits,
body.dir-rtl .quick-benefits            { flex-direction: row-reverse; justify-content: flex-end; }

html[dir="rtl"] .buybox-form,
html[data-dir="rtl"] .buybox-form,
body.dir-rtl .buybox-form               { direction: rtl; }

html[dir="rtl"] .qty-stepper,
html[data-dir="rtl"] .qty-stepper,
body.dir-rtl .qty-stepper               { flex-direction: row-reverse; }

html[dir="rtl"] .buybox-add-btn,
html[data-dir="rtl"] .buybox-add-btn,
body.dir-rtl .buybox-add-btn            { flex-direction: row-reverse; }

html[dir="rtl"] .benefits-section,
html[data-dir="rtl"] .benefits-section,
body.dir-rtl .benefits-section          { direction: rtl; }

html[dir="rtl"] .benefits-grid,
html[data-dir="rtl"] .benefits-grid,
body.dir-rtl .benefits-grid             { direction: rtl; }

html[dir="rtl"] .benefit-card,
html[data-dir="rtl"] .benefit-card,
body.dir-rtl .benefit-card              { text-align: right; }

html[dir="rtl"] .howto-section,
html[data-dir="rtl"] .howto-section,
body.dir-rtl .howto-section             { direction: rtl; }

html[dir="rtl"] .howto-grid,
html[data-dir="rtl"] .howto-grid,
body.dir-rtl .howto-grid                { direction: rtl; }

html[dir="rtl"] .howto-step,
html[data-dir="rtl"] .howto-step,
body.dir-rtl .howto-step                { text-align: right; }

html[dir="rtl"] .ingredients-section,
html[data-dir="rtl"] .ingredients-section,
body.dir-rtl .ingredients-section       { direction: rtl; }

html[dir="rtl"] .ingredients-grid,
html[data-dir="rtl"] .ingredients-grid,
body.dir-rtl .ingredients-grid          { direction: rtl; }

html[dir="rtl"] .ingredient-card,
html[data-dir="rtl"] .ingredient-card,
body.dir-rtl .ingredient-card           { text-align: right; }

html[dir="rtl"] .reviews-section,
html[data-dir="rtl"] .reviews-section,
body.dir-rtl .reviews-section           { direction: rtl; }

html[dir="rtl"] .review-card,
html[data-dir="rtl"] .review-card,
body.dir-rtl .review-card               { text-align: right; }

html[dir="rtl"] .star-bar-fill,
html[data-dir="rtl"] .star-bar-fill,
body.dir-rtl .star-bar-fill             { margin-right: auto; margin-left: 0; }

html[dir="rtl"] .related-section,
html[data-dir="rtl"] .related-section,
body.dir-rtl .related-section           { direction: rtl; }

html[dir="rtl"] .guarantee-section,
html[data-dir="rtl"] .guarantee-section,
body.dir-rtl .guarantee-section         { direction: rtl; }

html[dir="rtl"] .guarantee-items,
html[data-dir="rtl"] .guarantee-items,
body.dir-rtl .guarantee-items           { direction: rtl; }

html[dir="rtl"] .gi-item,
html[data-dir="rtl"] .gi-item,
body.dir-rtl .gi-item                   { text-align: right; border-right: none; border-left: 1px solid rgba(255,255,255,.12); }

html[dir="rtl"] .gi-item:last-child,
html[data-dir="rtl"] .gi-item:last-child,
body.dir-rtl .gi-item:last-child        { border-left: none; }

html[dir="rtl"] .sticky-cart-inner,
html[data-dir="rtl"] .sticky-cart-inner,
body.dir-rtl .sticky-cart-inner         { flex-direction: row-reverse; }

html[dir="rtl"] .sticky-btn,
html[data-dir="rtl"] .sticky-btn,
body.dir-rtl .sticky-btn               { flex-direction: row-reverse; }
