/* ============================================================
   GRABBLY — Product Page Stylesheet
   ============================================================ */

/* ----- HERO LAYOUT ----- */
.pdp-hero {
  padding: 60px 0 80px;
  min-height: calc(100vh - 85px);
}

.pdp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}


/* ----- IMAGE GALLERY ----- */
.pdp-gallery {
  position: sticky;
  top: 104px;
}

.pdp-gallery-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 24px;
  gap: 0;
}
.pdp-gallery-track::-webkit-scrollbar { display: none; }

.pdp-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  background: #F7F7F7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 40px;
}
.pdp-gallery-slide img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}
.pdp-gallery-slide--ingredients {
  padding: 0;
}
.pdp-gallery-slide--ingredients img {
  object-fit: cover;
  max-height: none;
  filter: none;
}

.pdp-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}


/* ----- PRODUCT DETAILS ----- */
.pdp-details {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-eyebrow {
  color: var(--text-muted);
}

.pdp-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.pdp-price {
  font-size: 28px;
  font-weight: 800;
}

.pdp-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 46ch;
}

.pdp-atc {
  width: 100%;
  margin-top: 4px;
}


/* ----- HOW TO EAT ----- */
.pdp-steps {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-steps-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pdp-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ----- INGREDIENTS ----- */
.pdp-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pdp-ingredients {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}


/* ----- TAGS ----- */
.pdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}


/* ----- BACK LINK ----- */
.pdp-back-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.pdp-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.pdp-back:hover { color: var(--text); }


/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .pdp-hero { padding: 32px 0 60px; min-height: auto; }
  .pdp-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .pdp-gallery { position: static; }
  .pdp-gallery-slide { min-height: 320px; padding: 28px; }
  .pdp-gallery-slide--ingredients { padding: 0; }
  .pdp-gallery-slide img { max-height: 280px; }
  .pdp-title { font-size: 28px; }
  .pdp-back-wrap { padding: 0 20px 48px; }
}
