/* ============================================================
   DC Masala - Product Details Page CSS
   Font: Gotham (Bold 700, Medium 500, Book 400)
   ============================================================ */

/* === Detail Hero === */
.detail-hero {
  background: var(--gradient-hero);
  padding: 110px 0 0;
  position: relative; overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 60%, rgba(255,193,7,0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(192,57,43,0.2) 0%, transparent 50%);
}
.detail-hero-wave {
  position: relative; bottom: 0;
  width: 100%; height: 60px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  margin-top: -1px;
}

/* === Product Image Panel === */
.product-detail-img-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px; padding: 40px 30px;
  text-align: center; position: relative;
}
.product-detail-emoji {
  font-size: 9rem;
  display: block; line-height: 1;
  animation: gentleFloat 5s ease-in-out infinite;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}
.product-detail-name {
  font-family: 'Gotham', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: white; margin-top: 20px;
}
.product-detail-tagline {
  color: var(--yellow); font-size: 0.82rem;
  letter-spacing: 2px; text-transform: uppercase;
  font-family: 'Gotham', sans-serif; font-weight: 400;
}
/* Weight selector (detail page) */
.weight-selector {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-top: 20px;
}
.weight-btn {
  padding: 8px 20px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent; color: rgba(255,255,255,0.7);
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  font-family: 'Gotham', sans-serif;
}
.weight-btn.active, .weight-btn:hover {
  background: var(--yellow); border-color: var(--yellow);
  color: var(--dark-brown);
}
/* Badges row */
.product-badges-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 18px;
}
.p-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 5px 14px;
  font-size: 0.72rem; color: rgba(255,255,255,0.8);
  font-family: 'Gotham', sans-serif; font-weight: 400;
  display: inline-flex; align-items: center; gap: 5px;
}

/* === Detail Info Panel === */
.detail-info-panel { padding: 40px 0 60px; }
.product-meta-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
}
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow-light); border: 1px solid var(--yellow);
  border-radius: 50px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 700; color: var(--dark-brown);
  font-family: 'Gotham', sans-serif;
}
.detail-desc {
  font-size: 1.0rem; color: var(--text-muted);
  line-height: 1.85; margin-bottom: 24px;
  font-family: 'Gotham', sans-serif; font-weight: 400;
}
/* Ingredients section */
.ingredients-section {
  background: white; border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow-warm);
}
.ingredients-section h6 {
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); font-family: 'Gotham', sans-serif; font-weight: 700;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.ingredients-section h6::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}
.ingredient-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ing-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cream); border: 1px solid var(--border-light);
  border-radius: 50px; padding: 6px 14px;
  font-size: 0.8rem; color: var(--dark-brown);
  font-family: 'Gotham', sans-serif; font-weight: 500;
  transition: var(--transition);
}
.ing-chip:hover { background: var(--yellow-light); border-color: var(--yellow); }
/* Usage box */
.usage-box {
  background: linear-gradient(135deg, var(--dark-brown), var(--medium-brown));
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.usage-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,193,7,0.12), transparent 60%);
}
.usage-box h6 {
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--yellow); font-family: 'Gotham', sans-serif; font-weight: 700;
  margin-bottom: 12px; position: relative; z-index: 1;
}
.usage-list {
  display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1;
}
.usage-chip {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 5px 14px;
  font-size: 0.8rem; color: rgba(255,255,255,0.85);
  font-family: 'Gotham', sans-serif; font-weight: 400;
  display: inline-flex; align-items: center; gap: 6px;
}
/* Health highlights */
.health-section {
  background: white; border-radius: var(--radius);
  padding: 24px 26px; border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow-warm);
}
.health-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem; color: var(--dark-brown);
  font-family: 'Gotham', sans-serif; font-weight: 400;
}
.health-item:last-child { border-bottom: none; }
.health-item .h-icon {
  width: 32px; height: 32px;
  background: var(--yellow-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
/* Add to cart strip */
.add-strip {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; align-items: center;
}

/* === Related Recipes Section === */
.related-recipes { background: var(--cream); }
.related-product-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: 0 3px 16px var(--shadow-warm);
  transition: var(--transition);
  height: 100%;
}
.related-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 45px var(--shadow-strong);
}
.related-product-img {
  height: 180px;
  background: linear-gradient(135deg, var(--deep-red), var(--spice-orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
}
.related-product-body { padding: 18px 20px; }
.related-product-body h5 {
  font-size: 1rem; margin-bottom: 6px;
  font-family: 'Gotham', sans-serif; font-weight: 700;
}
.related-product-body p {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
  font-family: 'Gotham', sans-serif; font-weight: 400;
}

/* === Navigation Arrows (prev/next product) === */
.product-nav-arrows {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 48px;
  padding-top: 30px; border-top: 1px solid var(--border-light);
}
.product-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  background: white; border: 1.5px solid var(--border-light);
  color: var(--dark-brown); font-weight: 500; font-size: 0.88rem;
  transition: var(--transition); text-decoration: none;
  font-family: 'Gotham', sans-serif;
}
.product-nav-btn:hover {
  border-color: var(--yellow); background: var(--yellow-light);
  color: var(--dark-brown);
}

/* === Responsive === */
@media (max-width: 991px) {
  .detail-hero { padding: 110px 0 0; }
  .product-detail-img-panel { margin-bottom: 30px; }
  .detail-info-panel { padding: 30px 0 40px; }
}
@media (max-width: 575px) {
  .add-strip { flex-direction: column; }
  .add-strip .btn-brand, .add-strip .btn-brand-outline { width: 100%; justify-content: center; }
  .product-nav-arrows { flex-direction: column; gap: 12px; }
  .product-nav-btn { width: 100%; justify-content: center; }
}
/* ============================================================
   DETAIL PAGE — IMAGE FLIP (main panel)
   ============================================================ */
.detail-img-flip-wrap {
  perspective: 1000px;
  width: 100%;
  height: 280px;
  border-radius: 16px;
  margin-bottom: 8px;
}
.detail-img-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
}
.product-detail-img-panel:hover .detail-img-flip-inner {
  transform: rotateY(180deg);
}
.detail-img-flip-front,
.detail-img-flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}
.detail-img-flip-back {
  transform: rotateY(180deg);
}

/* Fallback back panel */
.detail-back-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--dark-brown), #3a1a08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; gap: 10px; text-align: center;
  border-radius: 16px;
}
.detail-back-emoji  { font-size: 2.8rem; }
.detail-back-name   { color: var(--yellow); font-family: 'Gotham', sans-serif; font-weight: 700; font-size: 1.05rem; }
.detail-back-divider{ width: 40px; height: 2px; background: var(--yellow); border-radius: 2px; }
.detail-back-tags   { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 4px; }
.detail-back-tag    {
  background: rgba(255,193,7,0.15); border: 1px solid rgba(255,193,7,0.35);
  color: var(--yellow); font-size: 0.7rem; padding: 3px 9px;
  border-radius: 20px; font-family: 'Gotham', sans-serif; font-weight: 400;
}
.detail-back-tip    {
  color: rgba(255,255,255,0.65); font-size: 0.72rem;
  font-family: 'Gotham', sans-serif; font-weight: 400;
  font-style: italic; line-height: 1.5; margin: 0;
}

/* Hover hint */
.flip-hint {
  text-align: center; font-size: 0.72rem;
  color: var(--text-muted); font-family: 'Gotham', sans-serif;
  font-weight: 400; letter-spacing: 0.5px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: opacity 0.3s;
}
.product-detail-img-panel:hover .flip-hint { opacity: 0; }

/* ============================================================
   "YOU MAY ALSO LIKE" — mini flip cards
   ============================================================ */
.also-like-img-wrap {
  width: 100%; height: 180px;
  perspective: 800px;
  overflow: hidden;
}
.also-like-flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.also-like-img-wrap:hover .also-like-flip-inner {
  transform: rotateY(180deg);
}
.also-like-flip-front,
.also-like-flip-back {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.also-like-flip-back {
  transform: rotateY(180deg);
}