/*
 * Inner pages: page banner, breadcrumb, popups
 * Used by Products, Recipes, Our Story and Contact.
 */

/* ---------- Products page ---------- */
.nav-current {
  color: #7F1D1D !important;
  position: relative;
}

.nav-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #7F1D1D;
}

.products-page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 64px;
  background: radial-gradient(900px 420px at 85% 30%, rgba(245,197,66,.28), transparent 65%), radial-gradient(700px 380px at 5% 0%, rgba(127,29,29,.07), transparent 60%), linear-gradient(180deg, #f6e7d2 0%, #fbf4e9 100%);
  border-bottom: 1px solid rgba(74,44,17,.08);
}

.products-page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 40px;
  align-items: center;
}

.products-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(74,44,17,.6);
  margin-bottom: 22px;
}

.products-breadcrumb a {
  color: rgba(74,44,17,.75);
  text-decoration: none;
}

.products-breadcrumb a:hover {
  color: #7F1D1D;
}

.products-breadcrumb [aria-current] {
  color: #7F1D1D;
  font-weight: 700;
}

.products-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8b4a1e;
}

.products-page-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #c9892e;
}

.products-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #4A2C11;
  font-size: clamp(44px,5.6vw,80px);
  line-height: 1.02;
  margin: 14px 0 18px;
  letter-spacing: -.01em;
}

.products-page-title em {
  font-style: italic;
  color: #8b4a1e;
}

.products-page-intro {
  font-size: clamp(15px,1.15vw,18px);
  line-height: 1.75;
  color: rgba(74,44,17,.78);
  max-width: 540px;
}

.products-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.products-page-stats span {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(74,44,17,.1);
  font-size: 13px;
  color: rgba(74,44,17,.75);
}

.products-page-stats strong {
  color: #7F1D1D;
  font-weight: 800;
}

.products-page-packs {
  position: relative;
  height: clamp(260px,26vw,380px);
}

.products-page-packs img {
  position: absolute;
  bottom: 0;
  height: 78%;
  width: auto;
  filter: drop-shadow(0 18px 22px rgba(74,44,17,.22));
  opacity: 0;
  animation: wheelPouchIn .9s cubic-bezier(.2,.72,.25,1) forwards;
}

.products-page-packs img:nth-child(1) {
  left: 2%;
  height: 66%;
  z-index: 1;
  rotate: -7deg;
  animation-delay: .35s;
}

.products-page-packs img:nth-child(2) {
  left: 22%;
  height: 80%;
  z-index: 3;
  rotate: -2deg;
  animation-delay: .5s;
}

.products-page-packs img:nth-child(3) {
  left: 44%;
  height: 92%;
  z-index: 4;
  animation-delay: .65s;
}

.products-page-packs img:nth-child(4) {
  left: 66%;
  height: 72%;
  z-index: 2;
  rotate: 6deg;
  animation-delay: .8s;
}

.products-page-hero-copy > * {
  opacity: 0;
  animation: wheelHeroWordIn .7s cubic-bezier(.2,.72,.25,1) forwards;
}

.products-page-hero-copy > *:nth-child(1) {
  animation-delay: .05s;
}

.products-page-hero-copy > *:nth-child(2) {
  animation-delay: .15s;
}

.products-page-hero-copy > *:nth-child(3) {
  animation-delay: .28s;
}

.products-page-hero-copy > *:nth-child(4) {
  animation-delay: .45s;
}

.products-page-hero-copy > *:nth-child(5) {
  animation-delay: .6s;
}

.products-count {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: #7F1D1D;
}

#product-grid .product-range-card.product-reveal {
  transform: none !important;
}

/* Product popup: narrower panel with a smooth open/close (backdrop fades, panel rises, scales and sharpens). */
#product-modal > div {
  max-width: 580px !important;
}

@keyframes wheelModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wheelModalPanelIn {
  from {
    opacity: 0;
    transform: translate3d(0,28px,0) scale(.94);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    filter: blur(0);
  }
}

@keyframes wheelModalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes wheelModalPanelOut {
  from {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0,18px,0) scale(.96);
  }
}

#product-modal.flex {
  animation: wheelModalFadeIn .32s ease-out both;
}

#product-modal.flex > div {
  animation: wheelModalPanelIn .5s cubic-bezier(.2,.75,.25,1) both;
}

#product-modal.is-closing {
  animation: wheelModalFadeOut .26s ease-in both;
}

#product-modal.is-closing > div {
  animation: wheelModalPanelOut .26s ease-in both;
}

/* contents follow the panel in, one after another */
#product-modal.flex #product-modal-content > * {
  animation: wheelHeroWordIn .55s cubic-bezier(.2,.72,.25,1) both;
}

#product-modal.flex #product-modal-content > *:nth-child(1) {
  animation-delay: .12s;
}

#product-modal.flex #product-modal-content > *:nth-child(2) {
  animation-delay: .22s;
}

#product-modal.is-closing #product-modal-content > * {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  #product-modal, #product-modal > div, #product-modal-content > * {
    animation: none !important;
  }
}

@media (max-width:900px) {
  .products-page-hero {
    padding: 128px 0 40px;
  }
  .products-page-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .products-page-packs {
    height: 220px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
  .products-page-packs img:nth-child(2) {
    left: 20%;
  }
  .products-page-packs img:nth-child(3) {
    left: 38%;
  }
  .products-page-packs img:nth-child(4) {
    left: 56%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-page-packs img, .products-page-hero-copy > * {
    animation: none !important;
    opacity: 1 !important;
  }
}
