/* ---------- Navbar (transparent state over hero) ---------- */
.nav-link {
  color: #FBF7F0;
  opacity: 0.9;
  transition: opacity 0.3s, color 0.5s;
}
.nav-link:hover {
  opacity: 1;
}

/* ---------- Navbar (scrolled / solid state) ---------- */
#navbar.scrolled {
  top: 0 !important;
  background-color: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 196, 168, 0.3);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
#navbar.scrolled .nav-link {
  color: #2A2A24;
}
#navbar.scrolled .nav-link:hover {
  color: #4A6D47;
}
#navbar.scrolled #navCta {
  border-color: #4A6D47;
  color: #4A6D47;
}
#navbar.scrolled #navCta:hover {
  background-color: #4A6D47;
  color: #FBF7F0;
}
#navbar.scrolled #menuBtn {
  color: #4A6D47;
}
/* ---------- Product slider ---------- */
.product-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
  pointer-events: none;
}

.product-slider .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.product-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-slider .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-slider .slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(74, 109, 71, 0.4);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.25rem;
  pointer-events: none;
}

/* Hide placeholder when image loaded successfully */
.product-slider .slide img:not([style*="display: none"]) + .slide-placeholder {
  display: none;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(251, 247, 240, 0.5);
  border: 1px solid rgba(251, 247, 240, 0.7);
  cursor: pointer;
  transition: all 300ms ease;
  padding: 0;
}

.slider-dots .dot:hover {
  background-color: rgba(251, 247, 240, 0.8);
}

.slider-dots .dot.active {
  background-color: #FBF7F0;
  width: 24px;
  border-radius: 4px;
}
/* Hide placeholder when a video is present */
.product-slider .slide video {
  position: relative;
  z-index: 1;
}

.product-slider .slide:has(video) .slide-placeholder {
  display: none;
}

/* ---------- Warm "photo touch" on product-page media (matches the landing/shop) ---------- */
.product-slider .slide img,
.product-slider .slide video {
  filter: saturate(1.18) brightness(1.05) contrast(0.97);
}
/* soft warm cream vignette over the slider frame — same as the shop/hero photos */
.product-slider .aspect-square,
.product-slider [class*="aspect-"] {
  position: relative;
}
.product-slider .aspect-square::after,
.product-slider [class*="aspect-"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  background: radial-gradient(66% 50% at 58% 72%,
    rgba(238, 226, 201, 0) 30%,
    rgba(238, 226, 201, 0.42) 60%,
    rgba(238, 226, 201, 0.68) 100%);
}
/* warm the small cart thumbnail too, so it matches */
#cartItems img {
  filter: saturate(1.15) brightness(1.04) contrast(0.98);
}
/* ---------- FAQ accordion ---------- */
.faq-item {
  background-color: #F0EAD6; /* the beige used on the form boxes / set cards */
  border: 1px solid rgba(139, 154, 94, 0.45);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.faq-item[open] {
  border-color: rgba(87, 112, 47, 0.45);
  box-shadow: 0 4px 20px rgba(74, 109, 71, 0.08);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  color: #4A6D47;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color 250ms ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
  background-color: rgba(219, 196, 168, 0.3);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #4A6D47;
  transition: transform 300ms ease;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: rgba(42, 42, 36, 0.75);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: #4A6D47;
  font-weight: 600;
}
/* ---------- Form fields ---------- */
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(42, 42, 36, 0.6);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: #FBF7F0;
  border: 1px solid rgba(219, 196, 168, 0.6);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: #2A2A24;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #4A6D47;
  box-shadow: 0 0 0 3px rgba(74, 109, 71, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(42, 42, 36, 0.35);
}

/* ---------- Payment radio cards ---------- */
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background-color: #FBF7F0;
  border: 1px solid rgba(219, 196, 168, 0.6);
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms ease;
}

.payment-option:hover {
  border-color: rgba(74, 109, 71, 0.4);
  background-color: rgba(239, 225, 206, 0.3);
}

.payment-option input[type="radio"] {
  accent-color: #4A6D47;
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: #4A6D47;
  background-color: rgba(74, 109, 71, 0.05);
  box-shadow: 0 0 0 1px #4A6D47;
}
/* ---------- Hide placeholder text when media is present ---------- */

/* Hide placeholder divs in any card that contains a video */
[class*="aspect-"]:has(video) .absolute.inset-0.flex.items-center.justify-center {
  display: none;
}

/* Hide placeholder divs when their sibling image is still visible (loaded) */
[class*="aspect-"] img:not([style*="display: none"]) + div.absolute {
  display: none;
}

/* ---------- Footer (navbar sage — matches the nav) ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: #F7F2E7;
  /* same sage as the floating navbar (#898F63 -> scrolled #7C8356) */
  background:
    radial-gradient(130% 120% at 15% -25%, rgba(247,242,231,.12), transparent 55%),
    linear-gradient(180deg, #8F955F 0%, #7C8356 100%);
}
/* soft cream hairline so it separates cleanly from the page above */
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(247,242,231,.4), transparent);
}
/* giant faded kanji watermark — bottom-left so it doesn't fight the sticker */
.footer-kanji {
  position: absolute; left: -2%; bottom: -16%; z-index: 0;
  font-family: "Yu Mincho", "Hiragino Mincho Pro", "MS PMincho", serif;
  font-size: clamp(160px, 24vw, 320px); line-height: 1;
  color: #F7F2E7; opacity: .08;
  pointer-events: none; user-select: none; white-space: nowrap;
}
/* the matcha stamp sticker, tucked into the bottom-right corner */
.footer-sticker {
  position: absolute; z-index: 0; right: 22px; bottom: 20px;
  width: clamp(120px, 12vw, 168px);
  transform: rotate(-8deg);
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 16px 26px rgba(42,42,36,.30));
}
.footer-logo { filter: brightness(0) invert(1); opacity: .95; }
.footer-text  { color: rgba(247,242,231,.78); }
.footer-muted { color: rgba(247,242,231,.6); }
.footer-head  { color: #FFFFFF; }
.footer-dot   { display: inline-block; width: 4px; height: 4px; border-radius: 9999px; background: rgba(247,242,231,.45); }

/* animated underline links — same language as the navbar */
.footer-link {
  position: relative; color: rgba(247,242,231,.78);
  transition: color .25s ease;
}
.footer-link:hover { color: #FFFFFF; }
.footer-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0;
  background: rgba(247,242,231,.85); transition: width .28s ease;
}
.footer-link:hover::after { width: 100%; }

/* WhatsApp pill — outline that fills on hover, exactly like the nav CTA */
.footer-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: #F7F2E7;
  border: 1px solid rgba(247,242,231,.6); border-radius: 9999px;
  padding: .6rem 1.2rem; font-size: .85rem;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.footer-cta:hover {
  background: #F7F2E7; color: #7C8356; transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(42,42,36,.5);
}
.footer-cta svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(247,242,231,.18); color: rgba(247,242,231,.6); }