﻿/* ============================================================
   PRODUCT DETAIL SECTION
   ============================================================ */

.pd-section {
  background: #faf7f2;
}

/* Each product row */
.pd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 90vh;
  align-items: start;
  border-bottom: 1px solid rgba(139,69,19,0.08);
}

/* ── IMAGE COLUMN ── */
.pd-img-col {
  padding: 4rem 3rem 4rem 4rem;
  background: #fff;
  position: sticky;
  top: 80px;
  align-self: start;
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pd-main-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f8f3e8;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 40px rgba(139,69,19,0.1);
}

.pd-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
  padding: 1.5rem;
}

.pd-main-img-wrap:hover .pd-main-img {
  transform: scale(1.04);
}

.pd-main-img.pd-img-fade {
  opacity: 0;
  transform: scale(0.97);
}

/* Badge */
.pd-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #c8102e, #8B0000);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(200,16,46,0.3);
}

.pd-badge--green {
  background: linear-gradient(135deg, #2d7a2d, #1a5c1a);
}

.pd-badge--gold {
  background: linear-gradient(135deg, #b8860b, #8B6914);
}

/* Thumbnails */
.pd-thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid rgba(139,69,19,0.12);
  background: #f8f3e8;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pd-thumb:hover {
  border-color: rgba(200,16,46,0.4);
  transform: translateY(-2px);
}

.pd-thumb.active {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}

/* ── INFO COLUMN ── */
.pd-info-col {
  padding: 4rem 4rem 4rem 3rem;
  background: #faf7f2;
  position: sticky;
  top: 80px;
  align-self: start;
  height: fit-content;
}


.pd-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8102e;
  margin: 0 0 0.6rem;
}

.pd-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #2a1505;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.pd-tagline {
  font-size: 1rem;
  color: #8B4513;
  font-style: italic;
  margin: 0 0 1.5rem;
}

.pd-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #c8102e, #f5a623);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

.pd-desc {
  font-size: 0.95rem;
  color: #5a3a1a;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.pd-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pd-features span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2d7a2d;
  background: rgba(45,122,45,0.08);
  border: 1px solid rgba(45,122,45,0.2);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
}

.pd-packing-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8B4513;
  margin-bottom: 0.75rem;
}

.pd-packing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pd-pack-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  border: 2px solid rgba(139,69,19,0.2);
  background: #fff;
  color: #5a3a1a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pd-pack-btn:hover {
  border-color: #c8102e;
  color: #c8102e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,16,46,0.15);
}

.pd-pack-btn.active {
  background: linear-gradient(135deg, #c8102e, #8B0000);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(200,16,46,0.3);
}

.pd-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #c8102e, #8B0000);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(200,16,46,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pd-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(200,16,46,0.45);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pd-img-col  { padding: 3rem 2rem; }
  .pd-info-col { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
  .pd-row {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .pd-img-col {
    padding: 2rem 1.25rem 1rem;
    position: static;
  }
  .pd-info-col {
    padding: 1.5rem 1.25rem 3rem;
    position: static;
  }
  .pd-thumb { width: 56px; height: 56px; }
  .pd-name  { font-size: 1.6rem; }
  .pd-desc  { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .pd-img-col  { padding: 1.5rem 1rem 0.5rem; }
  .pd-info-col { padding: 1rem 1rem 2.5rem; }
  .pd-name     { font-size: 1.35rem; }
  .pd-tagline  { font-size: 0.9rem; }
  .pd-thumb    { width: 48px; height: 48px; }
  .pd-pack-btn { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
  .pd-cta      { width: 100%; justify-content: center; padding: 0.85rem 1.5rem; }
  .pd-features span { font-size: 0.72rem; }
}
