/* ═══════════════════════════════════════════════════════════════
   YEMENI TEA — PROFESSIONAL PRODUCT DETAIL PAGE (PDP) STYLES
   Adheres to site design tokens, 1200px max-width container,
   responsive grid, interactive gallery, variant cards, and tabs.
   ═══════════════════════════════════════════════════════════════ */

/* ── Global PDP Container ── */
.pdp-page {
  width: 100%;
  background: var(--cream);
  color: var(--text);
  padding-bottom: 80px;
}

/* ── Breadcrumbs ── */
.pdp-breadcrumbs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 12px;
}

.pdp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pdp-breadcrumbs a:hover {
  color: var(--gold);
}

.pdp-breadcrumbs .sep {
  opacity: 0.5;
  font-size: 10px;
}

.pdp-breadcrumbs .current {
  color: var(--dark);
  font-weight: 600;
}

/* ── Hero Container & Grid (1200px max width) ── */
.pdp-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px 60px;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

/* ── Left Column: Gallery ── */
.pdp-gallery-col {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdp-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFF;
  border: 1px solid rgba(200, 150, 62, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 24, 16, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

.pdp-main-image-wrap:hover img {
  transform: scale(1.03);
}

.pdp-badge {
  position: absolute;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pdp-badge-rating {
  top: 16px;
  left: 16px;
  background: rgba(26, 15, 5, 0.82);
  color: var(--gold-light);
  border: 1px solid rgba(200, 150, 62, 0.4);
}

.pdp-badge-origin {
  top: 16px;
  right: 16px;
  background: rgba(200, 150, 62, 0.9);
  color: #FFF;
}

.pdp-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.pdp-thumb {
  aspect-ratio: 1 / 1;
  background: #FFF;
  border: 2px solid rgba(200, 150, 62, 0.2);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.pdp-thumb:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.pdp-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 150, 62, 0.35);
}

/* Assurance Strip */
.pdp-assurance-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
  background: var(--smoke);
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 10px;
  padding: 16px;
}

.assurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assurance-item .icon {
  font-size: 24px;
  line-height: 1;
}

.assurance-item strong {
  display: block;
  font-size: 13px;
  color: var(--dark);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

.assurance-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Right Column: Buy Box ── */
.pdp-buy-col {
  display: flex;
  flex-direction: column;
}

.pdp-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.pdp-title {
  font-family: 'Cinzel', serif;
  font-size: 34px;
  line-height: 1.25;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.pdp-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 400;
}

.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(200, 150, 62, 0.2);
}

.pdp-stars {
  color: #E2A03F;
  letter-spacing: 2px;
  font-size: 17px;
}

.pdp-rating-score {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.pdp-review-count {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pdp-review-count:hover {
  color: var(--gold);
}

.pdp-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pdp-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pdp-price {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.pdp-currency {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.pdp-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E7D32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.3);
}

.pdp-summary {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 28px;
}

/* Variant Selector */
.pdp-variant-section {
  margin-bottom: 28px;
}

.variant-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 14px;
}

.variant-label {
  font-weight: 600;
  color: var(--dark);
}

.variant-selected-name {
  color: var(--gold);
  font-weight: 600;
}

.pdp-variant-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variant-card {
  position: relative;
  display: block;
  background: #FFF;
  border: 1.5px solid rgba(200, 150, 62, 0.25);
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-card:hover {
  border-color: var(--gold);
  background: #FFFDF9;
}

.variant-card.active {
  border-color: var(--gold);
  background: #FCF8F2;
  box-shadow: 0 4px 16px rgba(200, 150, 62, 0.12);
}

.variant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.variant-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.variant-price {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.variant-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Action Section: Qty & Buttons */
.pdp-action-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.pdp-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.pdp-qty-control {
  display: inline-flex;
  align-items: center;
  background: #FFF;
  border: 1.5px solid rgba(200, 150, 62, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.pdp-qty-btn {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s ease;
}

.pdp-qty-btn:hover {
  background: var(--smoke);
}

.pdp-qty-control input {
  width: 44px;
  height: 38px;
  border: none;
  border-left: 1px solid rgba(200, 150, 62, 0.2);
  border-right: 1px solid rgba(200, 150, 62, 0.2);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  background: transparent;
  outline: none;
}

.pdp-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pdp-btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--dark);
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdp-btn-add:hover {
  background: #2E180A;
  color: #FFF;
  box-shadow: 0 6px 20px rgba(26, 15, 5, 0.2);
  transform: translateY(-1px);
}

.pdp-btn-price {
  opacity: 0.85;
  font-size: 13px;
}

.pdp-btn-buy {
  background: linear-gradient(135deg, #C8963E, #B37D28);
  color: #FFF;
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(200, 150, 62, 0.25);
}

.pdp-btn-buy:hover {
  background: linear-gradient(135deg, #D4A54F, #C8963E);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.35);
  transform: translateY(-1px);
}

/* Trust Pills */
.pdp-trust-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--smoke);
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 10px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text);
}

.trust-pill svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Deep Dive Tabs Section (1200px max width) ── */
.pdp-details-section {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.pdp-tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid rgba(200, 150, 62, 0.2);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.pdp-tabs-nav::-webkit-scrollbar {
  display: none;
}

.pdp-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 20px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.pdp-tab-btn:hover {
  color: var(--dark);
}

.pdp-tab-btn.active {
  color: var(--dark);
  border-bottom-color: var(--gold);
}

.pdp-tab-content {
  display: none;
  padding: 40px 0;
}

.pdp-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdp-tab-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 16px;
}

/* Tab 1: Story Grid */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
}

.story-quote {
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  margin: 24px 0 0;
  font-style: italic;
  font-size: 18px;
  color: var(--dark);
  background: var(--smoke);
  border-radius: 0 8px 8px 0;
}

.story-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200, 150, 62, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tab 2: Spices Cards */
.spices-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.spice-card {
  background: #FFF;
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.12);
  border-color: var(--gold);
}

.spice-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.spice-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
}

.spice-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Tab 3: Brewing Guide */
.brew-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.brew-method-card {
  background: #FFF;
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 12px;
  padding: 30px;
}

.method-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.method-steps {
  padding-left: 20px;
}

.method-steps li {
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}

.method-variations {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.method-variations li strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 4px;
}

.method-variations li span {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Tab 4: Specs Table */
.specs-table-wrap {
  background: #FFF;
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid rgba(200, 150, 62, 0.15);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th {
  width: 28%;
  padding: 16px 24px;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  color: var(--dark);
  background: var(--smoke);
}

.specs-table td {
  padding: 16px 24px;
  font-size: 15px;
  color: var(--text);
}

/* Tab 5: FAQ Accordion */
.pdp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFF;
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.15s ease;
}

.faq-toggle:hover {
  background: var(--smoke);
}

.faq-icon {
  font-size: 20px;
  color: var(--gold);
  font-weight: 700;
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  border-top: 1px solid rgba(200, 150, 62, 0.1);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── Customer Reviews Section (1200px max width) ── */
.pdp-reviews-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}

.reviews-header .section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.reviews-header .section-title {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 16px;
}

.reviews-score-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #FFF;
  border: 1px solid rgba(200, 150, 62, 0.25);
  border-radius: 40px;
  padding: 10px 24px;
}

.score-large {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
}

.score-details .stars {
  color: #E2A03F;
  letter-spacing: 2px;
  font-size: 15px;
}

.score-details div:last-child {
  font-size: 12px;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #FFF;
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.03);
}

.review-stars {
  color: #E2A03F;
  letter-spacing: 2px;
  font-size: 15px;
  margin-bottom: 12px;
}

.review-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
  font-style: italic;
}

.review-author strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--dark);
}

.review-author span {
  font-size: 12px;
  color: var(--muted);
}

/* ── Sticky Mobile Purchase Bar ── */
.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200, 150, 62, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  z-index: 998;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.pdp-sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.sticky-prod-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.sticky-prod-info img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(200, 150, 62, 0.2);
  flex-shrink: 0;
}

.sticky-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.sticky-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.sticky-add-btn {
  background: var(--dark);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Responsive Media Queries ── */
@media (max-width: 960px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pdp-gallery-col {
    position: static;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .brew-guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pdp-sticky-bar {
    display: block;
  }
}

@media (max-width: 640px) {
  .pdp-hero-container {
    padding: 10px 16px 40px;
  }
  .pdp-breadcrumbs-wrap {
    padding: 16px 16px 8px;
  }
  .pdp-details-section,
  .pdp-reviews-section {
    padding: 0 16px;
  }
  .pdp-title {
    font-size: 26px;
  }
  .pdp-price {
    font-size: 30px;
  }
  .pdp-buttons-group {
    grid-template-columns: 1fr;
  }
  .pdp-assurance-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .specs-table th {
    width: 35%;
    padding: 12px 14px;
    font-size: 12px;
  }
  .specs-table td {
    padding: 12px 14px;
    font-size: 13.5px;
  }
}
