/* =============================================
   ANIMATIONS & REVEAL
   ============================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
}

.reveal-up.visible    { animation: fadeUp    0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-left.visible  { animation: fadeLeft  0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-right.visible { animation: fadeRight 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }

.delay-1 { animation-delay: 0.12s !important; }
.delay-2 { animation-delay: 0.24s !important; }
.delay-3 { animation-delay: 0.36s !important; }

/* =============================================
   PRODUCT TILE — ENHANCED
   ============================================= */

.product-tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s ease;
}

.product-tile-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(62,67,48,0.14);
}

.product-tile-img-wrap {
  position: relative;
  overflow: hidden;
}

.product-tile-img-wrap img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}

.product-tile-link:hover .product-tile-img-wrap img {
  transform: scale(1.06);
}

.product-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84,89,61,0.72), rgba(163,104,43,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-tile-link:hover .product-tile-overlay {
  opacity: 1;
}

.product-tile-cta {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 999px;
}

.product-tile-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.prod-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile-link-text {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.product-tile-link:hover .tile-link-text {
  text-decoration: underline;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

.product-detail-section { padding-top: 60px; }

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

.product-detail-image {
  position: sticky;
  top: 100px;
}

.product-detail-image .rounded-image img {
  animation: float 6s ease-in-out infinite;
}

.product-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

.prod-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(84,89,61,0.22);
}

.product-detail-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--primary-dark);
  margin: 14px 0 18px;
  line-height: 1.15;
}

.product-detail-content p {
  color: var(--muted);
  font-size: 1.03rem;
  margin-bottom: 14px;
}

.trust-badges {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.trust-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 1px;
}

.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* =============================================
   SPEC SECTION
   ============================================= */

.spec-section { padding-top: 60px; }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.spec-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(62,67,48,0.12);
}

.spec-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-icon { font-size: 1.1rem; }

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-list li {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.93rem;
  border-left: 3px solid var(--accent);
}

/* =============================================
   VARIETY PILLS (RAISINS)
   ============================================= */

.variety-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.variety-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.2s, color 0.2s;
}

.variety-pill:hover {
  background: var(--accent);
  color: #fff;
  cursor: default;
}

/* =============================================
   MILLET VARIETIES
   ============================================= */

.millet-variety {
  max-width: 900px;
}

.millet-variety-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 18px;
}

.millet-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

.millet-variety h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--primary-dark);
  margin: 0 0 4px;
}

.millet-botanical {
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0;
}

/* =============================================
   CTA PANEL (PRODUCT PAGES)
   ============================================= */

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #6b7a4a 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  color: #fff;
  border-radius: 32px;
  padding: 42px 48px;
  box-shadow: 0 24px 60px rgba(62,67,48,0.2);
  flex-wrap: wrap;
}

.cta-panel h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.cta-panel p {
  color: #ece4d6;
  margin: 0;
}

.cta-panel-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.product-cta-strip { padding-bottom: 80px; }

/* =============================================
   FEATURE CARD ICON
   ============================================= */

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

/* =============================================
   TABLE ROW HOVER
   ============================================= */

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: #faf6ee;
}

/* =============================================
   PAGE BANNER ANIMATED GRADIENT
   ============================================= */

.page-banner {
  background: linear-gradient(135deg,
    rgba(84,89,61,0.1) 0%,
    rgba(163,104,43,0.08) 50%,
    rgba(84,89,61,0.06) 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* =============================================
   RESPONSIVE — PRODUCT DETAIL
   ============================================= */

@media (max-width: 820px) {
  .product-detail-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    position: static;
  }

  .cta-panel {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }

  .cta-panel-actions {
    justify-content: center;
  }

  .millet-variety-header {
    flex-direction: column;
    gap: 8px;
  }

  .millet-number {
    font-size: 2.5rem;
  }
}
