/* Appily-Eight — Monsoon Pavilion seed house */
:root {
  --indigo: #312E81;
  --indigo-deep: #1E1B4B;
  --saffron: #EA580C;
  --saffron-pale: #FFEDD5;
  --rain: #0891B2;
  --rain-pale: #CFFAFE;
  --rice: #FEFCE8;
  --rice-2: #FEF9C3;
  --ink: #0F172A;
  --muted: #64748B;
  --white: #ffffff;
  --line: rgba(49, 46, 129, 0.12);
  --radius: 10px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-round: 999px;
  --font-display: 'Lexend', system-ui, sans-serif;
  --font-body: 'Albert Sans', system-ui, sans-serif;
  --shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 28px rgba(49, 46, 129, 0.1);
  /* legacy aliases for store-chrome + shared pages */
  --roast: var(--indigo);
  --roast-mid: var(--indigo-deep);
  --black: var(--ink);
  --cream: var(--rice);
  --cream-2: var(--rice-2);
  --yellow: var(--saffron);
  --yellow-pale: var(--saffron-pale);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body.appily-store {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% 0%, rgba(8, 145, 178, 0.08), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(234, 88, 12, 0.07), transparent 24%),
    linear-gradient(180deg, var(--rice) 0%, #fff 48%, var(--rain-pale) 100%);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1 0 auto; }

/* ── Pavilion header ── */
.pavilion-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(254, 252, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.monsoon-ribbon {
  background: linear-gradient(90deg, var(--indigo-deep) 0%, var(--indigo) 35%, var(--rain) 68%, var(--saffron) 100%);
  color: var(--rice);
}
.ribbon-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0; flex-wrap: wrap;
}
.ribbon-kicker {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.ribbon-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ribbon-tag {
  font-size: .68rem; font-weight: 600; padding: 4px 10px;
  border: 1px solid rgba(254, 252, 232, 0.28); border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.08);
}

.pavilion-shell { padding: 14px 0 16px; }
.pavilion-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(280px, 1.6fr) minmax(220px, 1fr);
  gap: 16px 20px;
  align-items: center;
}
.pavilion-brand {
  display: flex; align-items: center; gap: 14px;
}
.brand-gem {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(49, 46, 129, 0.22);
}
.brand-stack { display: flex; flex-direction: column; gap: 2px; }
.brand-kicker {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rain); font-weight: 700;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--indigo-deep); line-height: 1.1;
}
.brand-title em { font-style: normal; color: var(--saffron); }
.brand-sub { font-size: .74rem; color: var(--muted); }

.pavilion-nav {
  display: flex; align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.nav-seg {
  flex: 1; display: grid; place-items: center;
  padding: 11px 8px;
  font-size: .78rem; font-weight: 700; color: var(--muted);
  border-right: 1px solid var(--line);
  transition: background .2s, color .2s;
  text-align: center;
}
.nav-seg-label { display: block; }
.nav-seg-hint { display: none; }

/* Mobile drawer chrome (hidden on desktop) */
.mobile-nav-head,
.mobile-nav-foot { display: none; }
.mobile-nav-links { display: contents; }

.pavilion-nav-backdrop { display: none; }
.nav-seg:last-child { border-right: 0; }
.nav-seg:hover { background: var(--rain-pale); color: var(--indigo); }
.nav-seg.is-active {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: var(--rice);
}
.nav-seg-contact { background: var(--saffron-pale); color: var(--saffron); }
.nav-seg-contact.is-active { background: var(--saffron); color: var(--white); }

.pavilion-tools { display: flex; flex-direction: column; gap: 8px; }
.pavilion-search {
  display: flex; border: 1px solid var(--line); border-radius: var(--radius-round);
  overflow: hidden; background: var(--white);
}
.pavilion-search input {
  flex: 1; border: 0; background: transparent; padding: 10px 14px;
  font: inherit; font-size: .88rem; outline: none; min-width: 0;
}
.pavilion-search button {
  border: 0; background: var(--indigo); color: var(--rice);
  padding: 10px 16px; font-weight: 700; font-size: .78rem; cursor: pointer;
}
.tools-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tool-link {
  font-size: .82rem; font-weight: 600; color: var(--indigo);
  padding: 6px 10px; border-radius: var(--radius-round);
  border: 1px solid var(--line); background: var(--white);
}
.tool-cart {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--saffron), #F97316);
  color: var(--white); padding: 8px 14px; border-radius: var(--radius-round);
  font-size: .82rem; font-weight: 700;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}
.tool-cart-count {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--indigo-deep); color: var(--rice);
  display: grid; place-items: center; font-size: .72rem;
}

.pavilion-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 10px 11px; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
  min-width: 46px; min-height: 46px;
}
.pavilion-toggle .toggle-bar {
  display: block; width: 22px; height: 2px;
  background: var(--indigo-deep); border-radius: var(--radius-round);
  transition: transform .25s ease, opacity .25s ease;
}
body.nav-open .pavilion-toggle .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .pavilion-toggle .toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .pavilion-toggle .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.nav-open { overflow: hidden; }

/* Typography */
.eyebrow {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rain); font-weight: 700; margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; }
h1 em { font-style: normal; color: var(--saffron); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-round);
  font-weight: 700; font-size: .9rem; border: 2px solid transparent;
  cursor: pointer; transition: .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), #F97316);
  color: var(--white); border-color: transparent;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.22);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline {
  background: transparent; border-color: rgba(254, 252, 232, 0.65); color: var(--rice);
}
.btn-soft {
  background: var(--rain-pale); color: var(--indigo-deep); border-color: rgba(8, 145, 178, 0.2);
}
.btn-dark { background: var(--indigo-deep); color: var(--rice); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* Hero — monsoon diagonal pavilion */
.hero-monsoon {
  position: relative; overflow: hidden;
  background: var(--indigo-deep); color: var(--rice);
}
.hero-monsoon::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(125deg, transparent 42%, rgba(8, 145, 178, 0.35) 42%, rgba(234, 88, 12, 0.2) 100%);
  pointer-events: none;
}
.hero-monsoon-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 520px; gap: 24px;
}
.hero-monsoon-copy {
  padding: 56px 0; display: flex; flex-direction: column; justify-content: center;
}
.hero-monsoon-copy h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem); margin: 0 0 18px; color: var(--rice);
}
.hero-monsoon-copy .hero-lede {
  color: rgba(254, 252, 232, 0.78); max-width: 48ch; margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.trust-badges strong {
  display: block; font-size: 1.3rem; color: var(--saffron);
  font-family: var(--font-display);
}
.trust-badges span {
  font-size: .7rem; color: rgba(254, 252, 232, 0.62);
  text-transform: uppercase; letter-spacing: .1em;
}

.hero-mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 12px; padding: 36px 0 36px 12px; align-content: center;
}
.mosaic-cell {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(254, 252, 232, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.mosaic-cell-a { grid-row: span 2; border-radius: var(--radius-xl) var(--radius) var(--radius) var(--radius-xl); }
.mosaic-cell-a img { aspect-ratio: 3/4; min-height: 100%; }
.mosaic-cell-b { border-radius: var(--radius) var(--radius-xl) var(--radius) var(--radius); }
.mosaic-cell-c { border-radius: var(--radius) var(--radius) var(--radius-xl) var(--radius); }

/* Sections */
.section { padding: 56px 0; }
.section-muted { background: rgba(255, 255, 255, 0.55); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.85rem; color: var(--indigo-deep); }
.section-head p { margin: 0; color: var(--muted); }

.category-rail { padding: 36px 0; }
.rail-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: thin;
}
.rail-chip {
  flex-shrink: 0; padding: 10px 18px; border-radius: var(--radius-round);
  background: var(--white); border: 1px solid var(--line);
  font-size: .84rem; font-weight: 700; color: var(--indigo);
  box-shadow: var(--shadow-soft);
}
.rail-chip:hover { border-color: var(--rain); background: var(--rain-pale); }

/* Ledger product cards — horizontal layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.product-card {
  display: grid; grid-template-columns: 120px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-soft);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-img {
  position: relative; display: block; background: var(--rice-2);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.product-img img {
  width: 100%; height: 100%; min-height: 132px;
  object-fit: cover; aspect-ratio: 1;
}
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--indigo); color: var(--rice);
  font-size: .62rem; font-weight: 700; padding: 4px 8px;
  border-radius: var(--radius-round); text-transform: uppercase; letter-spacing: .06em;
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; justify-content: center; }
.product-cat {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rain);
  font-weight: 700;
}
.product-body h3 {
  font-size: .95rem; margin: 6px 0; font-family: var(--font-body); font-weight: 700;
  color: var(--indigo-deep);
}
.product-variant { font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-weight: 800; color: var(--saffron); font-size: 1.05rem; }

.product-grid-compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-tile {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--line); padding: 10px;
}
.product-tile-img {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: var(--radius);
  overflow: hidden; background: var(--rice-2);
}
.product-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.product-tile-info h3 { font-size: .85rem; margin: 0 0 4px; font-family: var(--font-body); }
.product-tile-info .price { font-size: .92rem; }

.promo-band {
  background: linear-gradient(120deg, var(--indigo-deep) 0%, var(--indigo) 45%, var(--rain) 100%);
  color: var(--rice); padding: 44px 0;
}
.promo-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.promo-inner h2 { margin: 0 0 8px; color: var(--rice); }
.promo-inner p { margin: 0; opacity: .82; }

/* Catalog */
.page-hero {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, var(--rain-pale), transparent);
}
.catalog-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding-bottom: 56px;
}
.filter-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 150px; align-self: start;
  box-shadow: var(--shadow-soft);
}
.filter-panel h2 { font-size: .95rem; margin: 0 0 14px; color: var(--indigo); }
.filter-nav { display: flex; flex-direction: column; gap: 4px; }
.filter-nav a {
  padding: 9px 12px; border-radius: var(--radius);
  font-size: .86rem; color: var(--muted); border-left: 3px solid transparent;
}
.filter-nav a.active, .filter-nav a:hover {
  background: var(--saffron-pale); color: var(--indigo-deep);
  border-left-color: var(--saffron); font-weight: 700;
}
.result-meta { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }

/* Product detail */
.product-hero { padding: 40px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--line); overflow: hidden; padding: 20px;
  box-shadow: var(--shadow-soft);
}
.product-gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--rice-2);
}
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 14px; color: var(--indigo-deep); }
.product-lede { color: var(--muted); margin-bottom: 20px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.spec-list div { padding: 10px 12px; background: var(--rain-pale); border-radius: var(--radius); }
.spec-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-list dd { margin: 4px 0 0; font-weight: 700; color: var(--indigo-deep); }
.buy-panel {
  padding: 22px;
  background: linear-gradient(145deg, var(--indigo-deep), var(--indigo));
  color: var(--rice); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.buy-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.price-lg { font-size: 1.6rem; color: var(--saffron); }
.buy-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.buy-form label { display: block; font-size: .82rem; margin-bottom: 4px; }
.buy-form select { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.fine-print { font-size: .78rem; opacity: .75; margin: 12px 0 0; }

/* Cart / checkout */
.dual { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft);
}
.summary-box { position: sticky; top: 150px; }
.cart-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.price-row { display: flex; justify-content: space-between; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit;
}
.form-grid textarea { min-height: 90px; resize: vertical; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--rain-pale); border: 1px solid rgba(8,145,178,.2); }
.notice.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.notice.success { border-color: #bbf7d0; background: #f0fdf4; }
.notice.warning { border-color: #fed7aa; background: var(--saffron-pale); }
.mini-copy { font-size: .85rem; color: var(--muted); margin: 0; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state p { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--indigo); }
.empty-state .sub { margin-top: 8px; font-size: .92rem; font-weight: 400; color: var(--muted); }

.catalog-pagination { margin-top: 32px; }
.pagination-inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pagination-btn, .pagination-num {
  padding: 8px 14px; border-radius: var(--radius-round);
  border: 1px solid var(--line); font-size: .88rem; font-weight: 700;
  background: var(--white); color: var(--ink);
}
.pagination-pages { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination-prev, .pagination-next { white-space: nowrap; }
.pagination-ellipsis { padding: 0 6px; color: var(--muted); font-weight: 700; }
.pagination-num.is-active {
  background: var(--indigo); color: var(--rice); border-color: var(--indigo);
}
.pagination-btn.is-disabled { opacity: .4; pointer-events: none; }

/* ── Terrace footer ── */
.terrace-footer { margin-top: auto; }
.terrace-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 48px 0 28px;
}
.terrace-tile {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.terrace-brand {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--indigo-deep), var(--indigo));
  color: var(--rice);
  border-color: transparent;
}
.terrace-brand p { opacity: .82; font-size: .9rem; margin: 8px 0 0; }
.terrace-legal { font-size: .76rem; opacity: .65; }
.terrace-mark { margin-bottom: 12px; border-radius: 16px; }
.terrace-shop { background: var(--saffron-pale); }
.terrace-help { background: var(--rain-pale); }
.terrace-policy { background: var(--rice-2); }
.terrace-contact { grid-column: span 2; background: var(--white); }
.terrace-tile h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 12px; color: var(--indigo);
}
.terrace-brand h4 { color: var(--saffron); }
.terrace-tile a, .terrace-contact p {
  display: block; font-size: .88rem; margin-bottom: 8px; color: inherit;
}
.terrace-tile a:hover { color: var(--saffron); }
.terrace-brand a:hover { color: var(--saffron); }
.terrace-rainbar {
  background: linear-gradient(90deg, var(--indigo-deep), var(--rain), var(--saffron));
  color: var(--rice);
}
.terrace-base {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; font-size: .82rem; flex-wrap: wrap;
}
.terrace-note { opacity: .78; }

.order-list { display: grid; gap: 12px; margin-top: 18px; }
.order-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white);
}

@media (max-width: 980px) {
  .container { width: min(1180px, calc(100% - 24px)); }
  .pavilion-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "tools tools";
    gap: 12px;
  }
  .pavilion-brand { grid-area: brand; }
  .pavilion-toggle { grid-area: toggle; display: flex; align-self: center; }
  .pavilion-tools {
    grid-area: tools;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .pavilion-search { flex: 1; min-width: 0; }
  .tools-row { flex-shrink: 0; }

  .pavilion-nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(30, 27, 75, 0.48);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease;
    z-index: 90;
  }
  .pavilion-nav-backdrop.is-visible {
    opacity: 1; pointer-events: auto;
  }

  .pavilion-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, calc(100vw - 24px));
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.22);
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    z-index: 100;
    overflow: hidden;
    background: linear-gradient(180deg, var(--rice) 0%, var(--white) 42%, var(--rain-pale) 100%);
  }
  .pavilion-nav.is-open { transform: translateX(0); }

  .mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, var(--indigo-deep), var(--indigo));
    color: var(--rice);
  }
  .mobile-nav-title {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
  }
  .mobile-nav-close {
    width: 40px; height: 40px;
    border: 1px solid rgba(254, 252, 232, 0.25);
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer; padding: 0;
    display: grid; place-items: center;
  }
  .mobile-nav-close span {
    position: relative;
    width: 16px; height: 16px;
  }
  .mobile-nav-close span::before,
  .mobile-nav-close span::after {
    content: '';
    position: absolute; left: 50%; top: 50%;
    width: 16px; height: 2px;
    background: var(--rice); border-radius: var(--radius-round);
  }
  .mobile-nav-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
  .mobile-nav-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

  .mobile-nav-links {
    display: flex; flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
    overflow-y: auto;
    flex: 1 1 auto;
  }
  .nav-seg {
    flex: none;
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--rain);
    border-right: 0; border-bottom: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    text-align: left;
  }
  .nav-seg-label {
    font-family: var(--font-display);
    font-size: .95rem; font-weight: 700;
    color: var(--indigo-deep);
  }
  .nav-seg-hint {
    display: block;
    font-size: .72rem; font-weight: 600;
    color: var(--muted);
  }
  .nav-seg.is-active {
    background: linear-gradient(135deg, var(--indigo-deep), var(--indigo));
    border-color: transparent;
    border-left-color: var(--saffron);
    box-shadow: 0 12px 28px rgba(49, 46, 129, 0.24);
  }
  .nav-seg.is-active .nav-seg-label,
  .nav-seg.is-active .nav-seg-hint { color: var(--rice); }
  .nav-seg.is-active .nav-seg-hint { opacity: .78; }
  .nav-seg-contact {
    background: var(--saffron-pale);
    border-left-color: var(--saffron);
  }
  .nav-seg-contact.is-active {
    background: linear-gradient(135deg, var(--saffron), #ea580c);
  }

  .mobile-nav-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
  }
  .mobile-nav-account,
  .mobile-nav-cart {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }
  .mobile-nav-cart {
    background: linear-gradient(135deg, var(--saffron), #f97316);
    border-color: transparent;
    color: var(--white);
  }
  .mobile-foot-kicker {
    font-size: .62rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
    opacity: .75;
  }
  .mobile-foot-value {
    font-size: .82rem; font-weight: 700;
    line-height: 1.3;
  }

  .hero-monsoon-grid, .product-layout, .dual, .catalog-layout { grid-template-columns: 1fr; }
  .hero-mosaic { padding: 0 0 36px; }
  .terrace-grid { grid-template-columns: 1fr 1fr; }
  .terrace-brand { grid-row: auto; grid-column: 1 / -1; }
  .terrace-contact { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .summary-box { position: static; }
  .section-head { align-items: flex-start; }
  .buy-form { flex-direction: column; align-items: stretch; }
  .buy-form select, .buy-form .btn { width: 100%; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, calc(100% - 20px)); }
  .pavilion-shell { padding: 12px 0 14px; }
  .brand-gem { width: 46px; height: 46px; }
  .brand-title { font-size: 1.12rem; }
  .brand-sub { font-size: .68rem; }
  .tools-row { display: none; }
  .pavilion-tools { flex-direction: column; align-items: stretch; }
  .pavilion-search button { padding: 10px 14px; }
  .ribbon-inner { justify-content: center; text-align: center; }
  .ribbon-kicker { display: none; }
  .ribbon-tags { justify-content: center; }
  .section { padding: 40px 0; }
  .hero-monsoon-grid { min-height: auto; }
  .hero-monsoon-copy { padding: 36px 0 24px; }
  .hero-monsoon-copy h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero-actions .btn { flex: 1 1 calc(50% - 6px); min-width: 140px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 96px 1fr; }
  .product-grid-compact { grid-template-columns: 1fr 1fr; }
  .terrace-grid { grid-template-columns: 1fr; }
  .terrace-base { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trust-badges { gap: 16px; }
  .mosaic-cell-a { grid-row: auto; }
  .hero-mosaic { grid-template-columns: 1fr; padding-bottom: 28px; }
  .filter-panel nav, .filter-panel .filter-nav {
    display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
  }
  .filter-panel a { flex-shrink: 0; white-space: nowrap; border-left: 0; }
  .panel { padding: 20px 18px !important; }
  .page-panel .panel { padding: 20px 18px; }
  .spec-list { grid-template-columns: 1fr; }
  .order-row { flex-direction: column; align-items: stretch; }
  .order-row .btn { width: 100%; text-align: center; }
  .action-row { flex-direction: column; }
  .action-row .btn { width: 100%; }
  .almanac-plate-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .almanac-query-shell { flex-direction: column; }
  .almanac-query-shell button { width: 100%; }
  .cart-table thead { display: none; }
  .cart-table tbody tr {
    display: block; margin-bottom: 14px; padding: 14px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  }
  .cart-table td {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right;
  }
  .cart-table td:last-child { border-bottom: 0; }
  .cart-table td::before {
    content: attr(data-label); font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left;
  }
}

/* ── Shop: Monsoon Seed Almanac (unique to Appily Eight) ── */
.page-almanac .page-main { background: var(--rice); }

.almanac-vault {
  position: relative;
  background: linear-gradient(165deg, var(--indigo-deep) 0%, #1a1744 42%, var(--indigo) 100%);
  color: var(--rice);
  overflow: hidden;
}
.almanac-vault-rain {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(8, 145, 178, 0.07) 18px 19px),
    repeating-linear-gradient(122deg, transparent 0 28px, rgba(234, 88, 12, 0.05) 28px 29px);
  pointer-events: none;
}
.almanac-vault-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
  padding: 44px 0 36px;
}
.almanac-plate { position: relative; z-index: 1; }
.almanac-plate-tag {
  display: inline-block;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--saffron);
  border: 1px solid rgba(234, 88, 12, 0.45);
  padding: 5px 12px; border-radius: var(--radius-round);
  background: rgba(234, 88, 12, 0.12);
}
.almanac-plate-meta {
  margin: 14px 0 8px; font-size: .82rem; opacity: .72;
}
.almanac-plate-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08; margin: 0 0 12px;
}
.almanac-plate-title em { font-style: normal; color: var(--rain-pale); }
.almanac-plate-note { margin: 0; font-size: .88rem; opacity: .78; max-width: 42ch; }

.almanac-query label {
  display: block; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; color: rgba(254, 252, 232, 0.65);
  margin-bottom: 8px;
}
.almanac-query-shell {
  display: flex; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(254, 252, 232, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.almanac-query-shell input {
  flex: 1; border: 0; background: transparent; color: var(--rice);
  padding: 14px 16px; font: inherit; outline: none; min-width: 0;
}
.almanac-query-shell input::placeholder { color: rgba(254, 252, 232, 0.45); }
.almanac-query-shell button {
  border: 0; background: var(--saffron); color: var(--white);
  padding: 14px 18px; font-weight: 700; font-size: .82rem; cursor: pointer;
}
.almanac-vault-lip {
  height: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.18), transparent),
    repeating-linear-gradient(90deg, var(--rain) 0 24px, var(--saffron) 24px 48px, var(--indigo) 48px 72px);
  opacity: .55;
}

.almanac-body { padding: 28px 0 56px; }
.cascade-index {
  position: relative;
  margin-bottom: 28px;
  padding: 18px 0 8px;
}
.cascade-steps {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: thin;
  align-items: flex-end;
}
.cascade-step {
  flex: 0 0 auto;
  min-width: 108px;
  display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 14px 12px 12px;
  margin-top: var(--step-drop, 0);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cascade-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cascade-step.is-active {
  background: linear-gradient(160deg, var(--indigo-deep), var(--indigo));
  color: var(--rice); border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(49, 46, 129, 0.28);
}
.step-num {
  font-size: .62rem; letter-spacing: .14em; font-weight: 700;
  color: var(--rain);
}
.cascade-step.is-active .step-num { color: var(--saffron); }
.step-label { font-size: .78rem; font-weight: 700; line-height: 1.2; color: var(--indigo-deep); }
.cascade-step.is-active .step-label { color: var(--rice); }
.step-qty {
  font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-round); background: var(--rain-pale); color: var(--indigo);
}
.cascade-step.is-active .step-qty { background: rgba(255,255,255,.15); color: var(--rice); }
.step-veg { border-top: 4px solid #4ade80; }
.step-bloom { border-top: 4px solid #f472b6; }
.step-forage { border-top: 4px solid #a3a3a3; }
.step-fruit { border-top: 4px solid #fb923c; }
.step-herb { border-top: 4px solid #34d399; }
.step-spice { border-top: 4px solid #fbbf24; }
.step-misc { border-top: 4px solid #818cf8; }
.step-all { border-top: 4px solid var(--saffron); }

.almanac-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.toolbar-folio { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.folio-range {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--indigo-deep);
}
.folio-of { font-size: .82rem; color: var(--muted); }
.folio-clear {
  font-size: .78rem; font-weight: 700; color: var(--rain);
  padding: 4px 10px; border-radius: var(--radius-round);
  background: var(--rain-pale);
}
.toolbar-reset {
  font-size: .82rem; font-weight: 700; color: var(--saffron);
  padding: 8px 14px; border-radius: var(--radius-round);
  border: 1px solid rgba(234, 88, 12, 0.25); background: var(--saffron-pale);
}

.folio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.folio-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s, box-shadow .22s;
}
.folio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.folio-arch {
  position: relative; display: block;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, var(--rice-2), var(--white));
}
.folio-index {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em;
  padding: 4px 8px; border-radius: var(--radius-round);
  background: var(--indigo-deep); color: var(--rice);
}
.folio-frame {
  display: block; overflow: hidden;
  border-radius: 50% 50% 12px 12px / 38% 38% 12px 12px;
  border: 2px solid rgba(49, 46, 129, 0.12);
  aspect-ratio: 1;
  background: var(--rice-2);
}
.folio-frame img { width: 100%; height: 100%; object-fit: cover; }
.folio-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: .58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 8px;
  border-radius: var(--radius-round);
  background: var(--saffron); color: var(--white);
}
.folio-copy { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.folio-group {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rain);
}
.folio-copy h2 {
  font-family: var(--font-body); font-size: .98rem; font-weight: 700;
  margin: 6px 0 8px; line-height: 1.35; color: var(--indigo-deep);
}
.folio-variant { font-size: .76rem; color: var(--muted); margin: 0 0 12px; }
.folio-bar {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px dashed var(--line);
}
.folio-price { font-size: 1.08rem; font-weight: 800; color: var(--saffron); }
.folio-link {
  font-size: .76rem; font-weight: 700; color: var(--indigo);
  padding: 6px 12px; border-radius: var(--radius-round);
  background: var(--rain-pale);
}
.folio-veg .folio-frame { border-color: rgba(74, 222, 128, 0.45); }
.folio-bloom .folio-frame { border-color: rgba(244, 114, 182, 0.45); }
.folio-forage .folio-frame { border-color: rgba(163, 163, 163, 0.45); }
.folio-fruit .folio-frame { border-color: rgba(251, 146, 60, 0.45); }
.folio-herb .folio-frame { border-color: rgba(52, 211, 153, 0.45); }
.folio-spice .folio-frame { border-color: rgba(251, 191, 36, 0.45); }
.folio-misc .folio-frame { border-color: rgba(129, 140, 248, 0.45); }

.almanac-empty {
  text-align: center; padding: 56px 24px;
  background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
}
.almanac-empty-mark {
  display: block; width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px;
  background: linear-gradient(180deg, var(--rain-pale), var(--saffron-pale));
  border: 2px solid var(--line);
}
.almanac-empty p { margin: 0; font-weight: 700; color: var(--indigo); }
.almanac-empty .sub { margin: 8px 0 18px; font-weight: 400; color: var(--muted); }

.almanac-pagination .catalog-pagination { margin-top: 36px; }
.almanac-pagination .pagination-inner {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 12px 16px;
  box-shadow: var(--shadow-soft);
}
.almanac-pagination .pagination-btn {
  background: var(--indigo-deep); color: var(--rice); border-color: transparent;
}
.almanac-pagination .pagination-btn.is-disabled {
  background: var(--rice-2); color: var(--muted); border-color: var(--line);
}

@media (max-width: 900px) {
  .almanac-vault-grid { grid-template-columns: 1fr; }
  .folio-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
  .cascade-step { min-width: 92px; padding: 12px 10px; }
  .folio-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .folio-copy h2 { font-size: .88rem; }
  .almanac-toolbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
  .folio-grid { grid-template-columns: 1fr; }
}

/* ── Track & Support: Monsoon Rain-Gauge Desk (Appily Eight) ── */
.page-monsoon-track .page-main { background: var(--rice); }

.monsoon-track-hero {
  position: relative;
  background: linear-gradient(160deg, var(--indigo-deep) 0%, var(--indigo) 50%, #2a4a6e 100%);
  color: var(--rice);
  overflow: hidden;
  padding: 48px 0 40px;
}
.gauge-tower {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: 56px; height: 160px;
  border: 2px solid rgba(254, 252, 232, 0.25);
  border-radius: 8px 8px 20px 20px;
  background: rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column-reverse; gap: 3px;
  padding: 8px 6px 12px;
}
.gauge-fill {
  border-radius: 4px;
  animation: gaugePulse 3s ease-in-out infinite;
}
.gauge-fill-1 { height: 28%; background: var(--rain); opacity: .9; animation-delay: 0s; }
.gauge-fill-2 { height: 22%; background: var(--saffron); opacity: .75; animation-delay: .4s; }
.gauge-fill-3 { height: 18%; background: rgba(254, 252, 232, 0.5); animation-delay: .8s; }
@keyframes gaugePulse {
  0%, 100% { opacity: .6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.05); }
}
.monsoon-track-hero-inner { position: relative; max-width: 640px; }
.monsoon-track-kicker {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--saffron); margin: 0 0 10px;
}
.monsoon-track-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.08; margin: 0 0 12px;
}
.monsoon-track-hero h1 em { font-style: normal; color: var(--rain-pale); }
.monsoon-track-lede { margin: 0; opacity: .82; max-width: 46ch; font-size: .92rem; }
.monsoon-track-splash {
  height: 12px;
  background: linear-gradient(90deg, var(--rain), var(--indigo), var(--saffron), var(--rain));
  opacity: .7;
}

.monsoon-track-body { padding: 36px 0 56px; }
.monsoon-track-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.rain-ticket {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 28px 28px 36px;
  overflow: hidden;
}
.ticket-perforation {
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: repeating-linear-gradient(
    180deg,
    var(--rain-pale) 0 8px,
    var(--line) 8px 10px
  );
  border-right: 2px dashed rgba(8, 145, 178, 0.35);
}
.ticket-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 8px;
}
.ticket-serial {
  flex-shrink: 0;
  font-size: .62rem; font-weight: 800; letter-spacing: .12em;
  padding: 6px 8px; border-radius: var(--radius);
  background: var(--indigo-deep); color: var(--rice);
  transform: rotate(-3deg);
}
.ticket-label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--rain); margin: 0 0 4px;
}
.ticket-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem; margin: 0; color: var(--indigo-deep);
}
.ticket-note { margin: 0 0 20px; color: var(--muted); font-size: .88rem; }
.ticket-form { display: flex; flex-direction: column; gap: 16px; }
.ticket-field label {
  display: block; font-size: .82rem; font-weight: 700;
  margin-bottom: 6px; color: var(--indigo-deep);
}
.ticket-field input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit;
}
.ticket-field input:focus {
  outline: 2px solid rgba(8, 145, 178, 0.35);
  border-color: var(--rain);
}
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.compass-help {
  background: linear-gradient(145deg, var(--rain-pale), var(--saffron-pale));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
}
.compass-title {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--indigo); margin: 0 0 16px; text-align: center;
}
.compass-rose {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 220px;
}
.compass-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-deep));
  color: var(--rice); font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.3);
  z-index: 2;
}
.compass-quadrant {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(49, 46, 129, 0.1);
  transition: transform .2s, box-shadow .2s;
}
.compass-quadrant:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-soft);
  background: var(--white);
}
.quad-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 800;
  color: var(--white);
}
.quad-n .quad-icon { background: var(--indigo); }
.quad-e .quad-icon { background: var(--saffron); }
.quad-s .quad-icon { background: var(--rain); }
.quad-w .quad-icon { background: #6366f1; }
.quad-text strong { display: block; font-size: .78rem; color: var(--indigo-deep); }
.quad-text span { display: block; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.compass-foot {
  margin: 16px 0 0; text-align: center;
  font-size: .76rem; color: var(--muted); word-break: break-all;
}

.downpour-reveal { max-width: 720px; margin: 0 auto; }
.shipment-folio {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
}
.folio-hit-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.folio-stamp {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: var(--radius-round);
}
.folio-stamp-ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.folio-stamp-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.folio-status-pill {
  font-size: .78rem; font-weight: 700; padding: 6px 14px;
  border-radius: var(--radius-round);
  background: var(--indigo-deep); color: var(--rice);
}
.folio-order-id {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--indigo-deep); margin: 0 0 18px;
}
.folio-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 0 0 24px;
}
.folio-stats div {
  padding: 12px; background: var(--rice-2);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.folio-stats dt {
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.folio-stats dd { margin: 0; font-weight: 800; color: var(--indigo-deep); }

.downpour-path {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0; margin-bottom: 24px; padding-left: 8px;
}
.downpour-node {
  display: flex; align-items: center; gap: 14px;
  position: relative;
}
.downpour-drop {
  flex-shrink: 0;
  width: 36px; height: 44px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--rice-2);
  border: 2px solid var(--line);
  display: grid; place-items: center;
  position: relative;
}
.downpour-phase {
  font-size: .5rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  text-align: center; line-height: 1.1; max-width: 32px;
}
.downpour-label {
  font-size: .88rem; font-weight: 700; color: var(--muted);
}
.downpour-stream {
  width: 3px; height: 28px; margin-left: 17px;
  background: linear-gradient(180deg, var(--line), var(--rain-pale));
  border-radius: var(--radius-round);
}
.downpour-node.is-done .downpour-drop {
  background: var(--rain-pale); border-color: var(--rain);
}
.downpour-node.is-done .downpour-label { color: var(--indigo-deep); }
.downpour-node.is-current .downpour-drop {
  background: linear-gradient(180deg, var(--rain), var(--indigo));
  border-color: var(--indigo);
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.35);
}
.downpour-node.is-current .downpour-phase,
.downpour-node.is-current .downpour-label { color: var(--indigo-deep); }

.folio-miss h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; margin: 12px 0 8px; color: var(--indigo-deep);
}
.folio-miss-note { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }

.downpour-idle {
  text-align: center; padding: 40px 24px;
  background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
}
.downpour-idle-gauge {
  display: block; width: 48px; height: 80px; margin: 0 auto 16px;
  border: 2px solid var(--line); border-radius: 8px 8px 16px 16px;
  background: linear-gradient(180deg, var(--rain-pale) 40%, transparent 40%);
}

@media (max-width: 900px) {
  .monsoon-track-grid { grid-template-columns: 1fr; }
  .gauge-tower { display: none; }
  .folio-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rain-ticket { padding: 24px 20px 24px 28px; }
  .compass-rose { min-height: 200px; }
}

/* Shared page shells — keep layout readable on every route */
.appily-eight .page-main { min-width: 0; }
.page-shop .page-main,
.page-product .page-main,
.page-cart .page-main,
.page-account .page-main,
.page-orders .page-main,
.page-support .page-main,
.page-checkout .page-main {
  background: var(--rice);
}
.auth-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--indigo-deep);
}
.auth-form input,
.auth-form textarea,
.auth-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

/* ── Policy pages ── */
.page-policy .page-main { background: var(--rice); }
.policy-page { padding: 48px 0 72px; }
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.policy-nav a {
  padding: 10px 18px;
  border-radius: var(--radius-round);
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.policy-nav a:hover:not(.active) {
  background: var(--rain-pale);
  color: var(--indigo-deep);
}
.policy-nav a.active {
  background: var(--indigo);
  color: var(--rice);
  border-color: var(--indigo);
}
.policy-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
  max-width: 920px;
}
.policy-content,
.policy-detail { max-width: 100%; }
.policy-content h1,
.policy-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 10px;
  color: var(--indigo-deep);
  line-height: 1.2;
}
.policy-content .last-updated,
.policy-detail .last-updated {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.policy-content h2,
.policy-detail h2 {
  font-size: 1.2rem;
  margin: 36px 0 14px;
  color: var(--indigo-deep);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rice-2);
  line-height: 1.35;
}
.policy-content h3,
.policy-detail h3 {
  font-size: 1.02rem;
  margin: 22px 0 10px;
  color: var(--ink);
  font-weight: 700;
}
.policy-content p,
.policy-detail p,
.policy-content li,
.policy-detail li {
  line-height: 1.85;
  color: #374151;
  font-size: .96rem;
  margin: 0 0 14px;
}
.policy-content ul,
.policy-detail ul {
  padding-left: 22px;
  margin: 12px 0 18px;
}
.policy-content li,
.policy-detail li { margin-bottom: 10px; }
.policy-content strong,
.policy-detail strong {
  color: var(--indigo-deep);
  font-weight: 700;
}
.policy-content a,
.policy-detail a {
  color: var(--rain);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy-content .highlight-box,
.policy-detail .highlight-box {
  padding: 20px 22px;
  background: var(--rain-pale);
  border: 1px solid rgba(8, 145, 178, 0.22);
  border-radius: var(--radius);
  margin: 20px 0;
  color: #374151;
}
.policy-content .highlight-box p,
.policy-detail .highlight-box p { margin-bottom: 0; }
.policy-content table,
.policy-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: .92rem;
}
.policy-content th,
.policy-detail th,
.policy-content td,
.policy-detail td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: #374151;
}
.policy-content th,
.policy-detail th {
  background: var(--rice);
  color: var(--indigo-deep);
  font-weight: 700;
}
.policy-content .contact-grid,
.policy-detail .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.policy-content .contact-card,
.policy-detail .contact-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
}
.policy-content .contact-card dt,
.policy-detail .contact-card dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.policy-content .contact-card dd,
.policy-detail .contact-card dd {
  margin: 0;
  font-weight: 600;
  font-size: .94rem;
  color: var(--indigo-deep);
  word-break: break-word;
}
@media (max-width: 640px) {
  .policy-card { padding: 22px 18px; }
  .policy-nav a { padding: 9px 14px; font-size: .82rem; }
  .policy-content table,
  .policy-detail table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .policy-content th,
  .policy-detail th,
  .policy-content td,
  .policy-detail td { white-space: nowrap; }
}
