@font-face {
  font-family: 'CCGothChic';
  src: url('../fonts/CCGothChic_Black.ttf') format('truetype');
  font-weight: 900;
}
@font-face {
  font-family: 'BulgariaModerna';
  src: url('../fonts/Bulgariamodernav3-00R9.otf') format('opentype');
}
@font-face {
  font-family: 'CyrillicOld';
  src: url('../fonts/cyrillicolda_bold.ttf') format('truetype');
  font-weight: bold;
}

:root {
  --parchment:     #f2e4c0;
  --parchment-mid: #e0cb96;
  --parchment-drk: #c2a06a;
  --ink:           #1e0f05;
  --ink-light:     #5a3318;
  --gold:          #b07d12;
  --gold-lt:       #d4a843;
  --black:         #070402;
  --scroll-w:      min(880px, 94vw);
  --ease-unroll:   cubic-bezier(0.23, 1, 0.32, 1);
  --top-bar-h:     58px;
  --bot-bar-h:     48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  /* padding-top and padding-bottom set dynamically by JS to match actual bar heights */
}

/* Background handled inline in each HTML file */


/* Dropdowns need their own background — override transparent rule */
.drop,
.sub-drop,
.lang-drop {
  background: var(--parchment) !important;
}

.top-roll {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  border-bottom: none;
}

.bottom-roll {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  border-top: none;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  padding: 0.4rem 1rem 0.55rem;
}

/* Brand in nav */
.nav-brand {
  font-family: 'CCGothChic', serif;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  margin-right: 0.5rem;
  border-right: 1px solid var(--parchment-drk);
}

.nav-item { position: relative; }

.nav-btn {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0.42rem 0.8rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 3px;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-btn:hover { background: rgba(30,15,5,0.07); color: var(--gold); }

.nav-arr {
  font-size: 0.55rem;
  transition: transform 0.3s var(--ease-unroll);
  display: inline-block;
  line-height: 1;
}

.nav-item:hover .nav-arr,
.nav-item.is-open .nav-arr { transform: rotate(180deg); }

/* Cart */
.nav-cart-btn {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.42rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  margin-left: 0.3rem;
}

.cart-badge {
  background: var(--gold);
  color: var(--parchment);
  font-size: 0.68rem;
  font-weight: bold;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

/* ══════════════════════════════════════
   DROPDOWN — Paper unroll effect
══════════════════════════════════════ */
.drop {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  min-width: 190px;
  background: var(--parchment);
  border: 1px solid var(--parchment-drk);
  border-radius: 0 0 7px 7px;
  box-shadow: 0 10px 28px rgba(30,15,5,0.2);
  overflow: hidden;
  z-index: 200;
  /* UNROLL: scaleY from top */
  transform-origin: top center;
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.34s var(--ease-unroll),
    opacity   0.26s ease;
}

.drop::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to bottom, var(--parchment-drk), transparent);
}

.nav-item:hover .drop,
.nav-item.is-open .drop {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.drop-item {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0.58rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.drop-item:hover { background: rgba(176,125,18,0.1); color: var(--gold); }

.drop-arr { font-size: 0.55rem; opacity: 0.6; }

/* Level 2 sub-dropdown */
.sub-drop {
  position: absolute;
  top: -4px;
  left: calc(100% + 1px);
  min-width: 170px;
  background: var(--parchment);
  border: 1px solid var(--parchment-drk);
  border-radius: 0 7px 7px 7px;
  box-shadow: 6px 10px 26px rgba(30,15,5,0.18);
  overflow: hidden;
  z-index: 300;
  transform-origin: top left;
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s var(--ease-unroll),
    opacity   0.22s ease;
}

.sub-drop::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to bottom, var(--parchment-drk), transparent);
}

.drop-item:hover .sub-drop,
.drop-item.is-open .sub-drop {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* Level 3 language dropdown */
.lang-drop {
  position: absolute;
  top: -4px;
  left: calc(100% + 1px);
  min-width: 155px;
  background: var(--parchment);
  border: 1px solid var(--parchment-drk);
  border-radius: 0 7px 7px 7px;
  box-shadow: 6px 10px 24px rgba(30,15,5,0.16);
  overflow: hidden;
  z-index: 400;
  transform-origin: top left;
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.27s var(--ease-unroll),
    opacity   0.2s ease;
}

.lang-drop::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to bottom, var(--parchment-drk), transparent);
}

.drop-item:hover .lang-drop,
.drop-item.is-open .lang-drop {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════
   SCROLL FRAME — sits in safe zone only
══════════════════════════════════════ */
.scroll-frame {
  position: fixed;
  top: 15vh;
  bottom: 15vh;
  left: 0;
  right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}

/* ══════════════════════════════════════
   PAGE CONTENT AREA
══════════════════════════════════════ */
.page-area {
  padding: 2rem 6%;
  max-width: 100%;
}

@keyframes pageUnroll {
  from { clip-path: inset(0 0 100% 0); opacity: 0.4; }
  to   { clip-path: inset(0 0 0% 0);   opacity: 1; }
}


.footer-link {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.85rem;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-link:hover { color: var(--gold); }

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
.hero-title {
  font-family: 'CCGothChic', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 1px 2px 4px rgba(30,15,5,0.15);
}

.hero-motto {
  font-family: 'BulgariaModerna', serif;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  color: var(--ink-light);
  text-align: center;
  letter-spacing: 0.14em;
  font-style: italic;
  margin-top: 0.5rem;
}

h1 {
  font-family: 'CCGothChic', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
h2 {
  font-family: 'CCGothChic', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
h3 {
  font-family: 'BulgariaModerna', serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

p, li {
  font-family: 'CyrillicOld', serif;
  font-size: clamp(0.88rem, 1.3vw, 1.02rem);
  line-height: 1.8;
  color: var(--ink);
}

.gold-divider {
  border: none;
  border-top: 1px solid var(--gold);
  opacity: 0.4;
  margin: 1.8rem auto;
  width: 55%;
}

/* ══════════════════════════════════════
   COUPON BANNER
══════════════════════════════════════ */
.coupon-banner {
  border: 1.5px dashed var(--gold);
  background: rgba(176,125,18,0.07);
  border-radius: 6px;
  padding: 0.8rem 1.4rem;
  text-align: center;
  margin: 1.5rem 0;
}
.coupon-banner p {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.9rem;
  color: var(--ink-light);
  margin: 0;
}
.coupon-code {
  font-family: 'CCGothChic', serif;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.product-card {
  background: rgba(242,228,192,0.72) !important;
  border: 1px solid var(--parchment-drk);
  border-radius: 7px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
  box-shadow: 0 6px 22px rgba(30,15,5,0.14);
  transform: translateY(-3px);
}
.product-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--parchment-drk);
}
.product-name {
  font-family: 'CCGothChic', serif;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}
.product-desc {
  font-family: 'CyrillicOld', serif;
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.55;
  flex: 1;
}
.product-price {
  font-family: 'BulgariaModerna', serif;
  font-size: 1.1rem;
  color: var(--gold);
}
.product-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.87rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.25s;
  border: none;
}
.btn-dark {
  background: var(--ink);
  color: var(--parchment);
}
.btn-dark:hover { background: var(--gold); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--parchment-drk);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Coming soon */
.badge-soon {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.7rem;
  background: var(--parchment-drk);
  color: var(--ink);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  opacity: 0.7;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* ══════════════════════════════════════
   FASTING CALENDAR
══════════════════════════════════════ */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'CyrillicOld', serif;
  font-size: 0.8rem;
}
.cal-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(30,15,5,0.15);
}
.cal-month { margin-bottom: 1.5rem; }
.cal-month-name {
  font-family: 'CCGothChic', serif;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-header {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.72rem;
  color: var(--ink-light);
  text-align: center;
  padding: 0.2rem 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'CyrillicOld', serif;
  font-size: 0.75rem;
  border-radius: 3px;
  border: 1px solid rgba(30,15,5,0.08);
}
.cal-day.empty { background: transparent; border: none; }

/* ══════════════════════════════════════
   PROCESS PAGE
══════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.process-item img,
.process-item video {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--parchment-drk);
  display: block;
}
.process-caption {
  font-family: 'CyrillicOld', serif;
  font-size: 0.78rem;
  color: var(--ink-light);
  font-style: italic;
  text-align: center;
  margin-top: 0.35rem;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: 'BulgariaModerna', serif;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--ink-light);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(242,228,192,0.45);
  border: 1px solid var(--parchment-drk);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-family: 'CyrillicOld', serif;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ══════════════════════════════════════
   CART
══════════════════════════════════════ */
.cart-empty {
  text-align: center;
  padding: 3rem 0;
  font-family: 'CyrillicOld', serif;
  color: var(--ink-light);
}
.cart-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.cart-table th {
  font-family: 'BulgariaModerna', serif;
  font-size: 0.85rem;
  color: var(--ink-light);
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1.5px solid var(--parchment-drk);
}
.cart-table td {
  font-family: 'CyrillicOld', serif;
  font-size: 0.88rem;
  padding: 0.6rem 0.6rem;
  border-bottom: 1px solid rgba(30,15,5,0.08);
  vertical-align: middle;
}
.cart-total-row {
  text-align: right;
  margin-top: 1.2rem;
  font-family: 'CCGothChic', serif;
  font-size: 1.2rem;
  color: var(--ink);
}
.coupon-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}
.coupon-input-row input {
  flex: 1;
  background: rgba(242,228,192,0.45);
  border: 1px solid var(--parchment-drk);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  font-family: 'BulgariaModerna', serif;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}
.coupon-input-row input:focus { border-color: var(--gold); }

/* ══════════════════════════════════════
   MISSION PAGE SPECIFIC
══════════════════════════════════════ */
.mission-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.mission-body {
  max-width: 100%;
  margin: 0 auto;
}
.mission-body p { margin-bottom: 1.2rem; }

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 700px) {

  .page-area { padding: 1.5rem 4%; }

  .nav-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    gap: 0;
    padding: 0.3rem 0.4rem 0.45rem;
  }
  .nav-bar::-webkit-scrollbar { display: none; }

  .nav-btn { font-size: 0.8rem; padding: 0.38rem 0.55rem; }
  .nav-brand { font-size: 0.88rem; padding: 0.25rem 0.5rem; margin-right: 0.3rem; }

  /* On mobile dropdowns open downward from fixed position */
  .drop {
    position: fixed;
    top: 70px;
    left: 50% !important;
    transform: translateX(-50%) scaleY(0) !important;
    min-width: 220px;
  }
  .nav-item:hover .drop,
  .nav-item.is-open .drop {
    transform: translateX(-50%) scaleY(1) !important;
  }

  .sub-drop, .lang-drop {
    position: static;
    transform: scaleY(0);
    border-radius: 0 0 7px 7px;
    margin-left: 1rem;
    border-left: 2px solid var(--parchment-drk);
    box-shadow: none;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .nav-btn { font-size: 0.74rem; padding: 0.32rem 0.42rem; }
  .page-area { padding: 1rem 0.8rem 2rem; }
  .hero-title { font-size: 1.6rem; }
}