/* ==========================================================================
   product.css — Vanilla Co Indonesia
   ========================================================================== */

/* ------------------------------------------------------------------
   REVEAL ANIMATION
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------------
   ORIGINAL: Catalog Row Layout
   ------------------------------------------------------------------ */
.catalog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid #EBE4D8;
}
.catalog-row:nth-child(even) .catalog-visual { order: -1; }
.catalog-copy { display: flex; flex-direction: column; }
.catalog-visual {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.catalog-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.catalog-visual:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .catalog-row { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .catalog-row .catalog-visual { order: -1; }
  .catalog-row .catalog-copy { order: 1; }
}

/* ------------------------------------------------------------------
   KICKER LABELS
   ------------------------------------------------------------------ */
.kicker {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A66A18;
  border: 1px solid #E2D4BC;
  border-radius: 999px;
  padding: 0.3rem 1rem;
}
.kicker-light {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8C488;
  border: 1px solid rgba(232, 196, 136, 0.35);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  background: rgba(232, 196, 136, 0.1);
}

/* ------------------------------------------------------------------
   TYPOGRAPHY HELPERS
   ------------------------------------------------------------------ */
.display { font-family: 'Cinzel', serif; }
.font-serifText { font-family: 'Lora', serif; }
.font-serifTitle { font-family: 'Cinzel', serif; }

/* ------------------------------------------------------------------
   SPEC GRID (original)
   ------------------------------------------------------------------ */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}
.spec span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9D8873;
  margin-bottom: 0.25rem;
}
.spec b { font-size: 0.85rem; color: #2B1B12; }

/* ------------------------------------------------------------------
   GRADE PILL (original HS Code tag)
   ------------------------------------------------------------------ */
.grade-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #F4EEE4;
  color: #7A5230;
  border: 1px solid #E5D7C3;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
}

/* ------------------------------------------------------------------
   CATALOG GRADE PILLS (on product.php catalog cards)
   ------------------------------------------------------------------ */
.cat-grade-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.cat-grade-pill.petite  { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.cat-grade-pill.standard { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.cat-grade-pill.super   { background: #EDE9FE; color: #4C1D95; border: 1px solid #DDD6FE; }
.cat-grade-pill.grade-c { background: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }

/* ------------------------------------------------------------------
   GALLERY (original + updated with real photos)
   ------------------------------------------------------------------ */
.gallery-item { border-radius: 0.375rem; overflow: hidden; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------------
   FLOATING CONTACT
   ------------------------------------------------------------------ */
.floating-contact { transition: transform 0.2s ease; }
.floating-contact.is-hidden { transform: scale(0) translateY(20px); pointer-events: none; }

/* ==========================================================================
   DETAIL PAGE STYLES — product-detail.php
   ========================================================================== */

/* ------------------------------------------------------------------
   PRODUCT DETAIL HEADER
   ------------------------------------------------------------------ */
.prod-detail-header { }

/* ------------------------------------------------------------------
   GRADE TABLE
   ------------------------------------------------------------------ */
.grade-table-wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #EBE4D8;
  box-shadow: 0 2px 12px rgba(43,27,18,0.05);
}
.grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.grade-table thead tr {
  background: #2b1b12;
  color: #E8C488;
}
.grade-table thead th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.grade-table tbody .grade-row {
  border-bottom: 1px solid #F0EAE2;
  transition: background 0.2s ease;
}
.grade-table tbody .grade-row:last-child { border-bottom: none; }
.grade-table tbody .grade-row:hover { background: #FAF7F2; }
.grade-table tbody td { padding: 0.9rem 1rem; vertical-align: middle; }

.grade-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}
.petite-badge   { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.standard-badge { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.super-badge    { background: #EDE9FE; color: #4C1D95; border: 1px solid #DDD6FE; }
.gradec-badge   { background: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }
.spec-val { font-size: 0.875rem; color: #2b1b12; font-weight: 500; }

/* ------------------------------------------------------------------
   SPECS CARDS GRID
   ------------------------------------------------------------------ */
.specs-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .specs-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .specs-card-grid { grid-template-columns: 1fr; } }

.specs-card {
  background: #FFFFFF;
  border: 1px solid #EBE4D8;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.specs-card:hover {
  box-shadow: 0 8px 24px rgba(43,27,18,0.1);
  transform: translateY(-3px);
  border-color: #C28B38;
}
.specs-card-icon {
  width: 2.75rem; height: 2.75rem;
  background: #FAF5ED;
  border: 1px solid #EFE4D3;
  border-radius: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  color: #A66A18;
  font-size: 1.1rem;
  margin: 0 auto 0.85rem;
}
.specs-card-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9D8873;
  margin-bottom: 0.4rem;
}
.specs-card-val {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2b1b12;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   BUKTI FISIK GALLERY
   ------------------------------------------------------------------ */
.bukti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}
.bukti-wide { grid-column: span 3; }
.bukti-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1a0d05;
  aspect-ratio: 4/3;
}
.bukti-wide { aspect-ratio: 21/9; }
.bukti-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.9) saturate(1.05);
}
.bukti-item:hover img { transform: scale(1.04); filter: brightness(1) saturate(1.15); }
.bukti-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(26,13,5,0.85), transparent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8C488;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bukti-item:hover .bukti-label { opacity: 1; }
@media (max-width: 640px) {
  .bukti-grid { grid-template-columns: 1fr 1fr; }
  .bukti-wide { grid-column: span 2; aspect-ratio: 16/9; }
}

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.video-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: #111;
}
.video-item:first-child,
.video-item:nth-child(2) { aspect-ratio: 16/9; }
.video-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(to top, rgba(26,13,5,0.85), transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8C488;
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-item:first-child,
  .video-item:nth-child(2) { grid-column: span 2; }
}

/* ------------------------------------------------------------------
   CERTIFICATION
   ------------------------------------------------------------------ */
.cert-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-card.cert-primary { grid-column: span 2; }
}
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card.cert-primary { grid-column: span 1; }
}
.cert-card {
  background: #FFFFFF;
  border: 1px solid #EBE4D8;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.3s ease;
}
.cert-card:hover { box-shadow: 0 8px 24px rgba(43,27,18,0.1); }
.cert-card.cert-primary {
  background: linear-gradient(135deg, #2b1b12 0%, #4a2c1e 100%);
  border-color: #C28B38;
  position: relative; overflow: hidden;
}
.cert-card.cert-primary::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #A66A18, #E2B669, #A66A18);
}
.cert-icon-wrap {
  width: 4rem; height: 4rem;
  background: rgba(194,139,56,0.2);
  border: 1px solid rgba(194,139,56,0.4);
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: #E8C488;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.cert-icon-wrap.secondary {
  background: #FAF5ED; border-color: #EFE4D3; color: #A66A18;
  width: 3rem; height: 3rem; font-size: 1.1rem; border-radius: 0.75rem;
}
.cert-badge-tag {
  display: inline-block;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(194,139,56,0.25); color: #E8C488;
  border: 1px solid rgba(194,139,56,0.4); border-radius: 999px;
  padding: 0.2rem 0.75rem; margin-bottom: 0.75rem;
}
.cert-title { font-family: 'Cinzel', serif; font-size: 1.35rem; font-weight: 700; color: #FFFFFF; margin-bottom: 0.75rem; }
.cert-desc { font-size: 0.82rem; line-height: 1.75; color: #D1C4B5; margin-bottom: 1rem; }
.cert-issued { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #E8C488; opacity: 0.8; }
.cert-title-sm { font-family: 'Cinzel', serif; font-size: 0.9rem; font-weight: 700; color: #2b1b12; margin: 0.5rem 0; }
.cert-desc-sm { font-size: 0.78rem; line-height: 1.65; color: #6E635A; }

.doc-list-box {
  background: #FFFFFF; border: 1px solid #EBE4D8; border-radius: 1rem; padding: 1.75rem 2rem;
}
.doc-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem 2rem; list-style: none; padding: 0; }
.doc-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 500; color: #2b1b12; }
@media (max-width: 640px) { .doc-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   LOGISTICS
   ------------------------------------------------------------------ */
.logistics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 768px) { .logistics-grid { grid-template-columns: 1fr; } }

.logistics-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem; padding: 2rem 1.5rem; text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.logistics-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(194,139,56,0.5); }
.logistics-card.logistics-featured {
  background: linear-gradient(135deg, rgba(194,139,56,0.2), rgba(166,106,24,0.1));
  border-color: rgba(194,139,56,0.5);
}
.logistics-icon {
  width: 3.5rem; height: 3.5rem;
  background: rgba(194,139,56,0.15); border: 1px solid rgba(194,139,56,0.3);
  border-radius: 1rem; display: flex; align-items: center; justify-content: center;
  color: #E8C488; font-size: 1.3rem; margin: 0 auto 1.25rem;
}
.featured-icon { background: rgba(194,139,56,0.3); border-color: rgba(194,139,56,0.6); font-size: 1.5rem; }
.logistics-title { font-family: 'Cinzel', serif; font-size: 0.95rem; font-weight: 700; color: #E8C488; margin-bottom: 0.5rem; }
.logistics-val { font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 800; color: #FFFFFF; margin-bottom: 0.75rem; }
.logistics-desc { font-size: 0.82rem; line-height: 1.75; color: #B5A99D; }

.export-bar {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem; padding: 1.5rem 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.export-bar-item { display: flex; flex-direction: column; gap: 0.25rem; text-align: center; flex: 1; min-width: 120px; }
.export-bar-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #A66A18; }
.export-bar-val { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: #FFFFFF; }
.export-bar-divider { width: 1px; background: rgba(255,255,255,0.15); align-self: stretch; }
@media (max-width: 640px) { .export-bar-divider { display: none; } }

/* ------------------------------------------------------------------
   REQUEST SAMPLE CTA
   ------------------------------------------------------------------ */
.sample-icon-ring {
  width: 5rem; height: 5rem;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: pulse-ring 2.5s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}
.sample-cta-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #FFFFFF; color: #2b1b12;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1.1rem 2.5rem; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease; text-decoration: none;
}
.sample-cta-btn:hover {
  background: #2b1b12; color: #E8C488;
  transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

/* ------------------------------------------------------------------
   ORDER FLOW TIMELINE
   ------------------------------------------------------------------ */
.timeline-wrap { display: flex; flex-direction: column; }
.timeline-step {
  display: grid;
  grid-template-columns: 3rem 2px 1fr;
  gap: 0 1.25rem;
  align-items: start;
  padding-bottom: 2.5rem;
}
.timeline-step.last-step { padding-bottom: 0; grid-template-columns: 3rem 1fr; }

.timeline-num {
  width: 3rem; height: 3rem;
  background: #2b1b12; border: 2px solid #C28B38; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 0.75rem; font-weight: 800; color: #E8C488;
  flex-shrink: 0; position: relative; z-index: 1;
}
.timeline-num.done { background: #C28B38; color: #FFFFFF; border-color: #A66A18; }

.timeline-connector {
  width: 2px;
  background: linear-gradient(to bottom, #C28B38, #E2D4BC);
  align-self: stretch;
  margin-left: calc(1.5rem - 1px);
  margin-top: 3rem;
}
.timeline-card {
  background: #FFFFFF; border: 1px solid #EBE4D8; border-radius: 1rem;
  padding: 1.5rem; margin-top: 0.25rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.timeline-card:hover { box-shadow: 0 8px 24px rgba(43,27,18,0.09); border-color: #C28B38; }
.timeline-icon {
  width: 2.5rem; height: 2.5rem;
  background: #FAF5ED; border: 1px solid #EFE4D3; border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  color: #A66A18; font-size: 1rem; margin-bottom: 0.75rem;
}
.timeline-icon.done-icon {
  background: linear-gradient(135deg, #D49E4B, #A66A18);
  border-color: #E2B669; color: #FFFFFF;
}
.timeline-title { font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 700; color: #2b1b12; margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.875rem; line-height: 1.75; color: #6E635A; }

@media (max-width: 640px) {
  .timeline-step { grid-template-columns: 2.5rem 2px 1fr; gap: 0 0.85rem; }
  .timeline-step.last-step { grid-template-columns: 2.5rem 1fr; }
  .timeline-num { width: 2.5rem; height: 2.5rem; font-size: 0.65rem; }
  .timeline-connector { margin-left: calc(1.25rem - 1px); margin-top: 2.5rem; }
}

/* ------------------------------------------------------------------
   PAYMENT METHODS
   ------------------------------------------------------------------ */
.payment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 768px) { .payment-grid { grid-template-columns: 1fr; } }

.payment-card {
  background: #FFFFFF; border: 1px solid #EBE4D8; border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.payment-card:hover { box-shadow: 0 8px 30px rgba(43,27,18,0.1); border-color: #C28B38; transform: translateY(-4px); }
.payment-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.payment-brand { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700; color: #2b1b12; }
.payment-title { font-size: 0.95rem; font-weight: 700; color: #2b1b12; margin-bottom: 0.6rem; }
.payment-desc { font-size: 0.82rem; line-height: 1.75; color: #6E635A; margin-bottom: 1rem; }
.payment-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; color: #374151;
  background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.payment-tag.warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

.payment-note {
  background: #FFF8F0; border: 1px solid #F5D9B0;
  border-radius: 0.75rem; padding: 1rem 1.25rem;
  font-size: 0.85rem; color: #7A5230; line-height: 1.7;
}

/* ------------------------------------------------------------------
   SIDEBAR NAV LINK HOVER
   ------------------------------------------------------------------ */
.sidebar-link:hover { background-color: rgba(255,255,255,0.07); }

/* ------------------------------------------------------------------
   RESPONSIVE: floating contact hide on mobile
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
  [data-purpose="floating-whatsapp"] { right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------------
   Why-card (imported from style.css — kept here for self-sufficiency)
   ------------------------------------------------------------------ */
.why-card {
  position: relative; background: #FFF; border: 1px solid #EBE4D8; border-radius: 1.25rem;
  padding: 2.5rem 1.5rem 2.25rem; display: flex; flex-direction: column;
  align-items: center; text-align: center; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
  box-shadow: 0 4px 20px -4px rgba(51,31,24,0.05);
}
