/* Sacred Orchard — Bribal DNA + black-hole grove */

.orchard-page { overflow-x: hidden; }

/* —— Hero —— */
.orchard-hero {
  position: relative;
  min-height: min(70vh, 34rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(5.5rem, 12vw, 7.5rem) 0 clamp(3.25rem, 6vw, 4.25rem);
  text-align: center;
  border-bottom: 1px solid rgba(196, 165, 116, 0.1);
}

.orchard-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #050308;
  background-image:
    linear-gradient(180deg, rgba(5, 3, 8, 0.45) 0%, rgba(5, 3, 8, 0.55) 35%, rgba(5, 3, 8, 0.94) 100%),
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(76, 29, 149, 0.4), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 20%, #000 85%),
    url("assets/orchard/hero-purple-apple.jpg");
  background-size: cover;
  background-position: center 40%;
}

.orchard-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 40% at 50% 100%, rgba(127, 29, 29, 0.18), transparent 55%);
}

.orchard-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.orchard-hero h1 {
  margin: 0 0 1.1rem;
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.08;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.85),
    0 0 48px rgba(0, 0, 0, 0.9),
    0 0 64px rgba(127, 29, 29, 0.35);
}

.orchard-sub {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(184, 176, 168, 0.85);
  line-height: 1.5;
}

.orchard-sub--line {
  margin-top: 0.5rem;
  color: rgba(232, 212, 168, 0.9);
}

/* —— Menu / grid —— */
.orchard-menu { padding-top: clamp(3.5rem, 8vw, 5rem); }

.orchard-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.55rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 640px) {
  .orchard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .orchard-grid { grid-template-columns: repeat(3, 1fr); }
}

.apple-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: rgba(12, 10, 16, 0.96);
  border: 1px solid rgba(196, 165, 116, 0.14);
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease, ease),
    box-shadow 0.3s var(--ease, ease),
    transform 0.3s var(--ease, ease);
}
.apple-card:hover,
.apple-card:focus-visible {
  border-color: rgba(196, 165, 116, 0.4);
  box-shadow: 0 0 36px rgba(127, 29, 29, 0.2), 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
  outline: none;
}
.apple-card--crown {
  background: linear-gradient(168deg, rgba(61, 24, 36, 0.28) 0%, rgba(12, 10, 16, 0.97) 48%);
  border-color: rgba(196, 165, 116, 0.28);
}
.apple-card--crown:hover,
.apple-card--crown:focus-visible {
  border-color: rgba(232, 212, 168, 0.45);
  box-shadow: 0 0 40px rgba(196, 165, 116, 0.12), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.apple-card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #050308;
}
.apple-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease, ease);
}
.apple-card:hover .apple-card-media img { transform: scale(1.05); }

.apple-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.35rem 0.55rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 212, 168, 0.92);
  background: rgba(5, 3, 8, 0.72);
  border: 1px solid rgba(196, 165, 116, 0.25);
  backdrop-filter: blur(6px);
}

.apple-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.35rem;
}
.apple-card-body h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright, #e8d4a8);
}
.apple-card-body .apple-desc {
  margin: 0.65rem 0 0;
  flex: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(184, 176, 168, 0.9);
  line-height: 1.45;
}

.apple-card-foot {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 165, 116, 0.1);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.apple-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-bright, #e8d4a8);
  letter-spacing: 0.02em;
}
.apple-price-label {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 165, 116, 0.65);
}
.apple-card-cta {
  margin: 0;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184, 176, 168, 0.55);
  white-space: nowrap;
}

/* —— Modal —— */
.orchard-modal {
  position: fixed;
  inset: 0;
  z-index: 280; /* above player, below cart drawer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.orchard-modal[hidden] { display: none !important; }
.orchard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(8px);
}
.orchard-modal-panel {
  position: relative;
  z-index: 1;
  width: min(30rem, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #0a0810;
  border: 1px solid rgba(196, 165, 116, 0.28);
  box-shadow: 0 0 60px rgba(127, 29, 29, 0.3), 0 24px 48px rgba(0, 0, 0, 0.55);
}
.orchard-modal-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  max-height: min(42vh, 22rem);
}
.orchard-modal-body { padding: 1.5rem 1.6rem 1.75rem; }
.orchard-modal-body h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.45rem;
  color: var(--gold-bright, #e8d4a8);
}
.orchard-modal-body .apple-desc {
  margin: 0.85rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(184, 176, 168, 0.92);
  line-height: 1.5;
}
.orchard-modal-body .apple-price {
  margin-top: 1.15rem;
  font-size: 1.35rem;
}
.orchard-modal-body .btn {
  margin-top: 1.35rem;
  width: 100%;
}
.orchard-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(196, 165, 116, 0.25);
  border-radius: 2px;
  background: rgba(5, 3, 8, 0.65);
  color: #f4efe6;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}
.orchard-modal-close:hover { opacity: 1; border-color: rgba(196, 165, 116, 0.5); }

/* —— Cart —— */
.orchard-cart-btn { cursor: pointer; }
.orchard-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 310; /* above rite player (200) so cart is usable */
  background: rgba(0, 0, 0, 0.55);
}
.orchard-cart-backdrop[hidden] { display: none !important; }
.orchard-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 320;
  display: flex;
  flex-direction: column;
  width: min(22rem, 100%);
  height: 100%;
  background: #0a0810;
  border-left: 1px solid rgba(196, 165, 116, 0.2);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}
.orchard-cart[hidden] { display: none !important; }
.orchard-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(196, 165, 116, 0.15);
}
.orchard-cart-head h2 {
  margin: 0;
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.orchard-cart-head button {
  border: 0;
  background: transparent;
  color: #b8b0a8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.orchard-cart-lines {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  flex: 1;
  overflow: auto;
}
.orchard-cart-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(196, 165, 116, 0.1);
  font-size: 0.9rem;
}
.orchard-cart-lines .line-meta {
  color: rgba(184, 176, 168, 0.7);
  font-size: 0.78rem;
}
.orchard-cart-lines .line-gold { color: var(--gold-bright, #e8d4a8); }
.orchard-cart-lines .line-total {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-bottom: 0;
  border-top: 1px solid rgba(196, 165, 116, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.orchard-cart-lines .line-remove {
  margin-left: 0.5rem;
  border: 0;
  background: transparent;
  color: rgba(184, 176, 168, 0.45);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.orchard-cart-lines .line-remove:hover { color: #e8d4a8; }

.orchard-cart-empty {
  margin: 0;
  padding: 1rem 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: rgba(184, 176, 168, 0.75);
  text-align: center;
}
.orchard-cart-empty[hidden] { display: none !important; }
.orchard-cart-foot {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(196, 165, 116, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.orchard-cart-note {
  margin: 0.25rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(184, 176, 168, 0.5);
}

.orchard-footer-seal-dim {
  margin-top: 0.5rem !important;
  opacity: 0.7;
}

body.orchard-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .apple-card,
  .apple-card-media img {
    transition: none;
  }
  .apple-card:hover,
  .apple-card:focus-visible {
    transform: none;
  }
  .apple-card:hover .apple-card-media img {
    transform: none;
  }
}
