/* ============================================
   TIBBESABIR — DYNAMIC PRODUCT PAGE CSS
   ============================================ */

/* ===== CART FLASH ===== */
.cart-flash {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: #1e293b;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-flash a {
  color: #86efac;
  text-decoration: underline;
}

/* Hero */
.product-hero {
  padding: 48px 0 72px;
  display: flex;
  align-items: flex-start;
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 60px;
  align-items: start;
}

.product-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

/* ===== SHOPIFY-STYLE GALLERY ===== */
.pg-gallery {
  width: 100%;
}

.pg-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  position: relative;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-gallery__main--emoji {
  font-size: 120px;
  line-height: 1;
}

.pg-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.pg-gallery__main:hover .pg-gallery__main-img {
  transform: scale(1.03);
}

.pg-gallery__badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: white;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Thumbnail Strip */
.pg-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pg-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: white;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-thumb:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px rgba(90,158,111,0.2);
}

.pg-thumb--active {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(90,158,111,0.25);
}

/* Badge chip */
.badge-chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

/* Rating */
.product-hero__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
  font-family: 'Inter', sans-serif;
}

.product-hero__stars {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: -1px;
}

/* Info Panel */
.product-hero__info {
  padding-top: 4px;
}

.product-hero__name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
  line-height: 1.1;
}

.product-hero__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #475569;
  margin: 0 0 14px;
  line-height: 1.6;
}

.product-hero__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.03);
  border-left: 3px solid var(--theme-primary);
  border-radius: 0 8px 8px 0;
}

/* Pack Options */
.pack-options { margin-bottom: 20px; }

.pack-options__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.pack-options__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pack-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  display: block;
  user-select: none;
}

.pack-card:hover { border-color: var(--theme-primary); }
.pack-card--selected { border-color: var(--theme-primary); background: var(--theme-light); }

.pack-card__label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  margin-bottom: 4px;
}

.pack-card__price {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.pack-card__save {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Selected Price */
.selected-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.selected-price {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

/* Price row (no packs) */
.product-hero__price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-hero__price {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.product-hero__price-old {
  font-size: 18px;
  color: #94a3b8;
  text-decoration: line-through;
  font-family: 'Inter', sans-serif;
}

.product-hero__save {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== QUANTITY SELECTOR ===== */
.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.qty-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: none;
  font-size: 20px;
  font-weight: 400;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}

.qty-btn:hover { background: #e2e8f0; }

.qty-input {
  width: 52px;
  text-align: center;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  padding: 8px 4px;
  -moz-appearance: textfield;
  background: white;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== CTA BUTTONS ===== */
.product-hero__ctas {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.btn-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  min-width: 160px;
}

.btn-cart:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.btn-buynow {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  background: white;
  border: 2px solid #1e293b;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
}

.btn-buynow:hover {
  background: #1e293b;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* WA link alternative */
.btn-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #25D366;
  text-decoration: none;
  padding: 0;
}

.btn-wa-link:hover { text-decoration: underline; }

/* Legacy btn-buy (keep for CTA banner) */
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-buy:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-query {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  background: white;
  border: 2px solid #e2e8f0;
  transition: all 0.2s;
}

.btn-query:hover { border-color: var(--theme-primary); color: var(--theme-primary); }

/* Unit & Trust */
.product-hero__unit {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

.product-hero__trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-hero__trust span {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  font-family: 'Inter', sans-serif;
  background: white;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

/* ===== SECTION BASE ===== */
.prod-section { padding: 80px 0; }
.prod-section--light { background: #FEFAE0; }

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin: 0 0 12px;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #64748b;
  text-align: center;
  margin: 0 0 48px;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.benefit-card:hover { transform: translateY(-4px); }

.benefit-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.benefit-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.benefit-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ===== CONCERNS ===== */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.concern-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.concern-card__icon { font-size: 32px; }

.concern-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.concern-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step-card { text-align: center; position: relative; }

.step-card__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step-card__emoji { font-size: 40px; margin-bottom: 12px; }

.step-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.step-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ===== INGREDIENTS ===== */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.ingredient-card {
  background: white;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.ingredient-card:hover { transform: translateY(-4px); }
.ingredient-card__emoji { font-size: 48px; margin-bottom: 12px; }

.ingredient-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.ingredient-card__latin {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.ingredient-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.review-card__city {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #94a3b8;
}

.review-card__stars {
  margin-left: auto;
  font-size: 16px;
  letter-spacing: -1px;
}

.review-card__text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 48px auto 0; }

.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); overflow: hidden; }

.faq-item__q {
  padding: 20px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--theme-primary, #5A9E6F);
  flex-shrink: 0;
}

details[open] .faq-item__q::after { content: '−'; }
details[open] .faq-item__q { color: var(--theme-primary, #5A9E6F); }

.faq-item__a {
  padding: 0 16px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.prod-cta { padding: 80px 0; }
.prod-cta__inner { text-align: center; }

.prod-cta__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: white;
  margin: 0 0 12px;
}

.prod-cta__sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}

.prod-cta__btn {
  display: inline-block;
  background: white;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

.prod-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .product-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .product-hero__visual { position: static; }
}

@media (max-width: 768px) {
  .product-hero { padding: 32px 0 48px; }
  .pack-options__grid { grid-template-columns: 1fr 1fr; }
  .product-hero__ctas { flex-direction: column; }
  .btn-cart, .btn-buynow { flex: unset; width: 100%; min-width: unset; }
  .prod-section { padding: 48px 0; }
  .benefits-grid, .concerns-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .ingredients-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .pg-thumb { width: 60px; height: 60px; }
}

@media (max-width: 480px) {
  .pack-options__grid { grid-template-columns: 1fr; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .pg-gallery__thumbs { gap: 6px; }
  .pg-thumb { width: 54px; height: 54px; }
}
