/* ================================================
   Kumai Tea — Stylesheet
   ================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --bg: #0f2218;
  --bg2: #14281d;
  --leaf: #3f7a52;
  --leaf-light: #8fbf9a;
  --gold: #d9b26f;
  --gold-soft: #ecd6a6;
  --cream: #f6efe0;
  --muted: rgba(246, 239, 224, 0.68);
  --line: rgba(246, 239, 224, 0.14);
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--cream);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(217, 178, 111, .18), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(63, 122, 82, .35), transparent 60%),
    linear-gradient(160deg, var(--bg2), var(--bg) 70%);
  isolation: isolate;
}
.grain {
  position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px clamp(20px, 5vw, 64px);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream) }
.logo svg { width: 34px; height: 34px }
.logo span { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; letter-spacing: .14em }
.pill {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; color: var(--gold-soft);
  background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px);
}
.pill.cta {
  text-decoration: none; color: #1a2a1f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent; font-weight: 600;
}
.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 20px clamp(20px, 5vw, 64px) 60px;
  max-width: 1280px; width: 100%; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold) }
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.01em;
}
h1 em { font-style: italic; color: var(--gold); font-weight: 400 }
.lede {
  margin-top: 26px; max-width: 520px; color: var(--muted); font-size: 1.06rem; font-weight: 300;
}

/* ---------- COUNTDOWN ---------- */
.count {
  display: flex; gap: clamp(10px, 2vw, 18px); margin-top: 38px; flex-wrap: wrap;
}
.unit {
  min-width: 84px; padding: 16px 14px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  backdrop-filter: blur(8px);
}
.unit b {
  display: block; font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 2.5rem; line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums;
}
.unit small { font-size: .65rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); opacity: .85 }
.count-note { margin-top: 14px; font-size: .82rem; color: var(--muted); letter-spacing: .04em }

/* ---------- FORM ---------- */
form { margin-top: 34px; max-width: 520px }
.field {
  display: flex; gap: 6px; padding: 6px; border-radius: 99px;
  border: 1px solid rgba(217, 178, 111, .4);
  background: rgba(255, 255, 255, .05);
  transition: border-color .25s, box-shadow .25s;
}
.field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 178, 111, .14) }
.field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--cream);
  font: inherit; font-size: .98rem; padding: 0 20px;
}
.field input::placeholder { color: rgba(246, 239, 224, .45) }
.field button {
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  padding: 14px 26px; border-radius: 99px; color: #1a2a1f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  transition: transform .2s, filter .2s;
  white-space: nowrap;
}
.field button:hover { transform: translateY(-1px); filter: brightness(1.06) }
.msg { margin-top: 12px; min-height: 1.4em; font-size: .88rem; color: var(--leaf-light) }
.msg.err { color: #f0a89a }
.fine { font-size: .76rem; color: rgba(246, 239, 224, .45); margin-top: 4px }

/* hero action buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  max-width: 520px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1a2a1f;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 22px -8px rgba(217, 178, 111, .55);
  transition: transform .2s, filter .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 28px -8px rgba(217, 178, 111, .7);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 99px;
  font-weight: 500;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(246, 239, 224, .32);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, background-color .2s, color .2s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(217, 178, 111, .12);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

/* ---------- TEACUP ART ---------- */
.art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1/1; max-width: 520px; width: 100%; margin-inline: auto;
}
.halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(217, 178, 111, .28), rgba(63, 122, 82, .18) 55%, transparent 72%);
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
}
.ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(217, 178, 111, .28);
  animation: spin 60s linear infinite;
}
.ring.two { inset: 11%; border-style: solid; border-color: rgba(246, 239, 224, .08); animation-direction: reverse; animation-duration: 90s }
.cup { position: relative; width: 78%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) }
.steam path {
  fill: none; stroke: rgba(246, 239, 224, .55); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 120; stroke-dashoffset: 120;
  animation: steam 5s ease-in-out infinite;
}
.steam path:nth-child(2) { animation-delay: 1.3s }
.steam path:nth-child(3) { animation-delay: 2.6s }
@keyframes steam {
  0%   { stroke-dashoffset: 120; opacity: 0; transform: translateY(8px) }
  35%  { opacity: .9 }
  100% { stroke-dashoffset: -120; opacity: 0; transform: translateY(-14px) }
}
@keyframes breathe { 50% { transform: scale(1.05); opacity: .85 } }
@keyframes spin    { to  { transform: rotate(360deg) } }

/* ---------- FLOATING LEAVES ---------- */
.leaf {
  position: absolute; top: -60px; width: 22px; height: 22px; opacity: 0;
  animation: fall linear infinite; pointer-events: none;
}
.leaf svg { width: 100%; height: 100% }
@keyframes fall {
  0%   { transform: translate3d(0, -40px, 0) rotate(0); opacity: 0 }
  10%  { opacity: .55 }
  90%  { opacity: .35 }
  100% { transform: translate3d(var(--dx), 105vh, 0) rotate(var(--rot)); opacity: 0 }
}
.scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
}
.scroll i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 2s infinite }
@keyframes drip {
  0%  { transform: scaleY(0); transform-origin: top }
  50% { transform: scaleY(1); transform-origin: top }
  51% { transform-origin: bottom }
  100%{ transform: scaleY(0); transform-origin: bottom }
}

/* ---------- PROMISES ---------- */
.promises {
  background: var(--cream); color: #1d2b21;
  padding: clamp(50px, 6vw, 90px) clamp(20px, 5vw, 64px);
  position: relative;
}
.wrap { max-width: 1180px; margin: 0 auto }
.promises .eyebrow { color: var(--leaf) }
.promises .eyebrow::before { background: var(--leaf) }
.promises h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; max-width: 760px;
}
.promises h2 em { color: var(--leaf) }
.cards {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  padding: 22px 24px 24px; border-radius: 18px; background: #fff;
  border: 1px solid rgba(29, 43, 33, .08);
  transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(20, 40, 29, .28) }
.card .num { font-family: 'Cormorant Garamond', serif; font-size: .95rem; color: var(--gold); letter-spacing: .2em }
.card svg { width: 34px; height: 34px; margin: 10px 0 10px; color: var(--leaf) }
.card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.5rem; margin-bottom: 6px }
.card p { color: #53625a; font-size: .92rem; line-height: 1.5 }

/* ---------- CLOSING ---------- */
.closing {
  text-align: center;
  padding: clamp(70px, 9vw, 120px) 24px 40px;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(217, 178, 111, .16), transparent 70%),
    var(--bg);
}
.closing h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; font-style: italic;
  font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.1; max-width: 780px; margin: 0 auto;
}
.closing h2 span { color: var(--gold) }
.closing p { color: var(--muted); margin: 18px auto 0; max-width: 460px; font-weight: 300 }
.btn {
  display: inline-block; margin-top: 30px; text-decoration: none;
  padding: 15px 34px; border-radius: 99px; font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  color: #1a2a1f; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  transition: transform .2s;
}
.btn:hover { transform: translateY(-2px) }
footer {
  margin-top: 80px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1180px; margin-inline: auto;
  font-size: .8rem; color: rgba(246, 239, 224, .5);
}
footer a { color: var(--gold-soft); text-decoration: none }
footer a:hover { text-decoration: underline }

/* ---------- SHOP / PACKAGING ---------- */
.shop {
  --edge: max(clamp(20px, 5vw, 64px), calc((100vw - 1180px) / 2));
  background: #fbf8f0; color: #1d2b21;
  border-top: 1px solid rgba(29, 43, 33, .06);
  padding-inline: 0;
  overflow: hidden;
}
.shop .wrap { padding-inline: var(--edge); max-width: none }
.shop .eyebrow { color: var(--leaf) }
.shop .eyebrow::before { background: var(--leaf) }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap }
.shop h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04;
}
.shop h2 em { color: var(--leaf) }
.shop-head p { max-width: 330px; color: #53625a; font-size: .95rem; font-weight: 300 }
.shop-note { text-align: left; margin-top: 20px; color: #6b7a70 }

/* horizontal scroller */
.pgrid {
  display: flex; gap: 24px;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: 50px;
  padding: 12px var(--edge) 30px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; cursor: grab;
  counter-reset: p;
}
.pgrid::-webkit-scrollbar { display: none }
.pgrid.drag { cursor: grabbing; scroll-snap-type: none; user-select: none }
.pgrid.drag * { pointer-events: none }

.pcard {
  flex: 0 0 clamp(270px, 26vw, 340px); scroll-snap-align: start;
  counter-increment: p;
  padding: 14px 14px 18px; border-radius: 26px; background: #fff;
  border: 1px solid rgba(29, 43, 33, .08);
  transition: box-shadow .4s, transform .9s ease, opacity .9s ease;
}
.pcard:hover { box-shadow: 0 28px 50px -26px rgba(20, 40, 29, .4) }
.panel {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--tint), color-mix(in srgb, var(--tint) 70%, #fff));
  display: grid; place-items: center;
  padding: 30px 0 34px;
  transform: scale(calc(1 - var(--d, 0) * .06));
  transition: transform .25s ease-out;
}
.panel::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 68%);
  top: 6%; left: 15%;
}
.panel::after {
  content: "0" counter(p); position: absolute; top: 16px; left: 18px;
  font-family: 'Cormorant Garamond', serif; font-size: 1rem; letter-spacing: .2em; color: #b88f45;
}
.pouch {
  position: relative; width: 58%; max-width: 230px; height: auto;
  filter: drop-shadow(0 26px 22px rgba(10, 30, 18, .34));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  translate: calc(var(--o, 0) * -22px) 0;
}
.pcard:hover .pouch { transform: translateY(-10px) rotate(-2.5deg) scale(1.03) }
.info {
  position: relative; left: auto; bottom: auto; width: auto;
  padding: 18px 8px 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #1d2b21;
}
.info h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.65rem; line-height: 1.1; padding-right: 46px }
.info .sub { color: #53625a; opacity: 1; font-size: .78rem; letter-spacing: .06em; margin: 6px 0 14px }
.info .row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid rgba(29, 43, 33, .1);
}
.price { font-weight: 600; font-size: 1.1rem; color: #1d2b21 }
.price small { font-weight: 300; color: #6b7a70; font-size: .74rem; margin-left: 6px }
.buy {
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 99px;
  background: #14281d; color: var(--cream);
  transition: transform .2s, filter .2s;
}
.buy:hover { filter: none; background: #1f3d2c }
.plus {
  position: absolute; right: 6px; top: 14px; transform: none;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 0; font-size: 1.35rem; line-height: 1; font-weight: 500;
  background: var(--leaf); color: #fff;
  display: grid; place-items: center; transition: transform .25s;
}
.plus:hover { transform: rotate(90deg) scale(1.08) }

/* gallery nav */
.pnav { display: flex; align-items: center; gap: 30px; margin-top: 6px }
.pbar { position: relative; flex: 1; max-width: 340px; height: 3px; border-radius: 3px; background: rgba(29, 43, 33, .12); overflow: hidden }
.pbar i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 3px; background: var(--leaf); transition: left .1s linear }
.arrows { display: flex; gap: 10px }
.arrows button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.15rem;
  border: 1px solid rgba(29, 43, 33, .2); background: #fff; color: #1d2b21; transition: all .25s;
}
.arrows button:hover:not(:disabled) { background: #14281d; color: var(--cream); border-color: #14281d }
.arrows button:disabled { opacity: .35; cursor: default }

/* "Shop more" link */
.more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #1d2b21;
  padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(29, 43, 33, .25); transition: all .25s; white-space: nowrap;
}
.more:hover { background: #14281d; color: var(--cream); border-color: #14281d }
.more span { transition: transform .25s }
.more:hover span { transform: translateX(4px) }

/* ---------- CART / DRAWER ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; cursor: pointer;
  border: 1px solid rgba(29, 43, 33, .15); color: #1d2b21; font: inherit; font-weight: 500; font-size: .9rem;
  padding: 12px 20px; border-radius: 99px; background: #fff;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 16px 34px -12px rgba(20, 40, 29, .45);
}
.fab b {
  min-width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center;
  background: #14281d; color: var(--cream); font-size: .78rem;
}
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(29, 43, 33, .35); opacity: 0; pointer-events: none; transition: opacity .3s }
.overlay.open { opacity: 1; pointer-events: auto }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 60; height: 100%; width: min(420px, 100%);
  background: #fbf8f0; color: #1d2b21; border-left: 1px solid rgba(29, 43, 33, .1);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(20, 40, 29, .4);
}
.drawer.open { transform: none }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; border-bottom: 1px solid rgba(29, 43, 33, .1) }
.drawer header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 500 }
.x { background: none; border: 0; color: #1d2b21; font-size: 1.8rem; cursor: pointer; line-height: 1 }
#cartItems { flex: 1; overflow: auto; padding: 10px 26px }
.empty { color: #6b7a70; text-align: center; margin-top: 60px; font-weight: 300 }
.ci { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(29, 43, 33, .1) }
.dot { width: 38px; height: 50px; border-radius: 6px; flex: none; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .4) }
.ci .n { flex: 1; font-size: .95rem; line-height: 1.3 }
.ci .n small { display: block; color: #6b7a70; font-size: .76rem }
.qty { display: flex; align-items: center; gap: 8px }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(29, 43, 33, .25); background: none; color: #1d2b21; cursor: pointer; font-size: 1rem; line-height: 1 }
.qty button:hover { background: #14281d; color: var(--cream) }
.qty span { min-width: 16px; text-align: center; font-size: .92rem }
.drawer footer { padding: 20px 26px 26px; border-top: 1px solid rgba(29, 43, 33, .1); margin: 0; max-width: none; display: block; background: #fff }
.tot { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 16px }
.checkout {
  width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 15px; border-radius: 99px;
  background: #14281d; color: var(--cream); transition: background .25s;
}
.checkout:hover:not(:disabled) { background: #1f3d2c }
.checkout:disabled { opacity: .45; cursor: not-allowed }
.cmsg { margin-top: 12px; font-size: .84rem; color: var(--leaf); min-height: 1.2em; text-align: center }

/* ---------- SCROLL REVEAL ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease }
.rv.in { opacity: 1; transform: none }
.d1 { transition-delay: .1s }
.d2 { transition-delay: .2s }
.d3 { transition-delay: .3s }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 0 }
  .eyebrow { justify-content: center }
  .lede, form { margin-inline: auto }
  .hero-actions { justify-content: center }
  .count { justify-content: center }
  .art { order: -1; max-width: 300px }
  .cards { grid-template-columns: 1fr }
  .scroll { display: none }
  footer { justify-content: center; text-align: center }
}
@media (max-width: 620px) {
  .pgrid { gap: 16px }
  .pcard { flex-basis: 78vw }
  .pnav { gap: 16px; flex-wrap: wrap }
  .pouch { width: 52% }
  .more { margin-left: 0 }
}
@media (max-width: 480px) {
  .unit { min-width: 70px; padding: 12px 8px 10px }
  .unit b { font-size: 2rem }
  .field { flex-direction: column; border-radius: 26px; padding: 8px }
  .field input { padding: 14px 16px }
  .hero-actions { flex-direction: column; width: 100% }
  .hero-actions a { width: 100% }
  .pill { display: none }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
  .rv { opacity: 1; transform: none }
}

/* ========================================================
   E-COMMERCE & APP EXTENSIONS (Auth, Cart, Checkout, Admin)
   ======================================================== */

/* Nav Extensions */
.nav-links { display: flex; align-items: center; gap: 16px }
.nav-link { color: var(--cream); text-decoration: none; font-size: .88rem; font-weight: 500; transition: color .2s }
.nav-link:hover { color: var(--gold) }
.cart-link { display: inline-flex; align-items: center; gap: 6px }
.nav-badge {
  background: var(--gold); color: #1a2a1f; font-size: .72rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 4px;
}
.nav-auth-buttons { display: flex; gap: 10px; align-items: center }

/* Nav User Dropdown */
.nav-user-menu { position: relative }
.nav-user-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 14px 6px 6px; display: flex; align-items: center; gap: 8px; color: var(--cream);
  cursor: pointer; font: inherit; transition: all .2s;
}
.nav-user-btn:hover { border-color: var(--gold); background: rgba(217,178,111,.1) }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a2a1f; display: grid; place-items: center; font-weight: 700; font-size: .82rem;
}
.user-name { font-size: .88rem; font-weight: 500 }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: #122f1f; border: 1px solid rgba(217,178,111,.25); border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6); padding: 8px 0; z-index: 100;
  display: none; opacity: 0; transform: translateY(-8px); transition: all .2s ease;
}
.nav-dropdown.show { display: block; opacity: 1; transform: none }
.dropdown-header { padding: 12px 18px; border-bottom: 1px solid var(--line) }
.dropdown-header strong { display: block; font-size: .92rem }
.dropdown-header small { color: var(--muted); font-size: .76rem }
.nav-dropdown a {
  display: block; padding: 10px 18px; color: var(--cream); text-decoration: none; font-size: .86rem; transition: background .15s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,.06); color: var(--gold-soft) }
.dropdown-divider { height: 1px; background: var(--line); margin: 6px 0 }
.logout-link { color: #f0a89a !important }

/* Flash Alerts */
.flash-alert {
  padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .9rem;
  display: flex; align-items: center; gap: 10px; line-height: 1.4;
}
.flash-success { background: rgba(63,122,82,.25); border: 1px solid var(--leaf-light); color: #d0f0d8 }
.flash-error { background: rgba(170,42,53,.25); border: 1px solid #f0a89a; color: #ffd8d3 }

/* Auth Pages (Login & Register) */
.auth-wrapper {
  min-height: calc(100vh - 120px); display: grid; place-items: center;
  padding: 60px 20px 80px; position: relative; isolation: isolate;
}
.auth-card {
  width: 100%; max-width: 440px; background: #122f1f; border: 1px solid rgba(217,178,111,.25);
  border-radius: 24px; padding: 40px 34px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.auth-brand { text-align: center; margin-bottom: 26px }
.auth-brand h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; margin-top: 14px; line-height: 1.1 }
.auth-brand h2 em { color: var(--gold); font-style: italic }
.auth-brand p { color: var(--muted); font-size: .88rem; margin-top: 8px; font-weight: 300 }

.form-group { margin-bottom: 16px }
.form-group label { display: block; font-size: .8rem; letter-spacing: .04em; margin-bottom: 6px; color: var(--cream) }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(246,239,224,.18);
  background: rgba(255,255,255,.04); color: var(--cream); font: inherit; font-size: .92rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,111,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.auth-divider {
  display: flex; align-items: center; text-align: center; margin: 22px 0; color: var(--muted); font-size: .76rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--line) }
.auth-divider span { padding: 0 12px; letter-spacing: .1em }
.auth-footer-note { text-align: center; margin-top: 24px; font-size: .84rem; color: var(--muted) }
.auth-footer-note a { color: var(--gold-soft); text-decoration: none }
.auth-footer-note a:hover { text-decoration: underline }

/* Full Cart Page */
.cart-page-wrapper { min-height: 80vh; position: relative }
.cart-head { margin-bottom: 34px }
.cart-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1 }
.cart-head h1 em { color: var(--gold); font-style: italic }
.cart-subtitle { color: var(--muted); font-size: .96rem; margin-top: 8px }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--gold-soft);
  font-size: .85rem; letter-spacing: .04em; margin-bottom: 12px; transition: color .2s;
}
.back-link:hover { color: #fff }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: flex-start }
.cart-table-panel {
  background: #122f1f; border: 1px solid var(--line); border-radius: 20px; padding: 20px; overflow-x: auto;
}
.cart-table { width: 100%; border-collapse: collapse; text-align: left }
.cart-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.cart-table td { padding: 18px 16px; border-bottom: 1px solid rgba(246,239,224,.06); vertical-align: middle }
.cart-item-meta { display: flex; align-items: center; gap: 14px }
.cart-item-dot { width: 36px; height: 48px; border-radius: 6px; flex-none: true; box-shadow: 0 4px 10px rgba(0,0,0,.35) }
.cart-item-meta h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; line-height: 1.1 }
.cart-item-meta .weight { font-size: .76rem; color: var(--muted) }
.qty-stepper {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px;
}
.qty-stepper button {
  background: none; border: 0; color: var(--cream); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 4px;
}
.qty-stepper button:hover { color: var(--gold) }
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 600; font-size: .9rem }
.remove-btn {
  background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; padding: 4px 8px; border-radius: 50%;
}
.remove-btn:hover { color: #f0a89a }
.gold-text { color: var(--gold) }
.green-text { color: var(--leaf-light); font-weight: 600 }

.cart-summary-panel {
  background: #122f1f; border: 1px solid rgba(217,178,111,.25); border-radius: 20px; padding: 26px 24px;
}
.cart-summary-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; margin-bottom: 18px }
.summary-row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 12px }
.summary-divider { height: 1px; background: var(--line); margin: 16px 0 }
.total-row { font-size: 1.15rem; font-weight: 600 }
.total-price { color: var(--gold); font-size: 1.4rem }
.summary-note { font-size: .78rem; color: var(--muted); margin: 12px 0 20px; line-height: 1.4 }
.guest-callout { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center }
.guest-callout a { color: var(--gold-soft); text-decoration: none }
.cart-empty-state {
  text-align: center; padding: 80px 20px; background: #122f1f; border: 1px solid var(--line); border-radius: 24px; max-width: 580px; margin: 0 auto;
}
.empty-icon { width: 56px; height: 56px; color: var(--gold); margin-bottom: 16px }

/* Checkout Page */
.checkout-wrapper { min-height: 80vh; position: relative }
.checkout-head { margin-bottom: 34px }
.checkout-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1 }
.checkout-head h1 em { color: var(--gold); font-style: italic }
.checkout-sub { color: var(--muted); font-size: .96rem; margin-top: 8px }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: flex-start }
.checkout-form-panel { background: #122f1f; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px }
.checkout-section h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; margin-bottom: 18px }
.guest-notice-bar, .logged-in-bar {
  padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; font-size: .84rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.guest-notice-bar a { color: var(--gold-soft); text-decoration: none }
.payment-options { display: grid; gap: 12px }
.payment-option {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: all .2s;
}
.payment-option input { margin-top: 4px; accent-color: var(--gold) }
.payment-content strong { display: block; font-size: .92rem }
.payment-content p { font-size: .8rem; color: var(--muted); margin-top: 4px }
.payment-option:hover, .payment-option:has(input:checked) {
  border-color: var(--gold); background: rgba(217,178,111,.08);
}
.checkout-summary-panel {
  background: #122f1f; border: 1px solid rgba(217,178,111,.25); border-radius: 22px; padding: 26px 24px;
}
.checkout-summary-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; margin-bottom: 16px }
.checkout-items-list { max-height: 240px; overflow-y: auto; padding-right: 4px }
.checkout-item-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px }
.checkout-dot { width: 28px; height: 38px; border-radius: 4px; flex-shrink: 0 }
.checkout-item-info { flex: 1; min-width: 0 }
.checkout-item-info h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; line-height: 1.1; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.checkout-item-info small { color: var(--muted); font-size: .74rem }
.checkout-item-total { font-weight: 600; font-size: .92rem }
.security-guarantee {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .74rem; color: var(--muted);
}

/* Success & Confirmation */
.success-page-wrapper { min-height: 80vh; position: relative }
.success-card {
  max-width: 680px; margin: 0 auto; background: #122f1f; border: 1px solid rgba(217,178,111,.3);
  border-radius: 24px; padding: 46px 38px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(217,178,111,.15);
  display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid var(--gold);
}
.success-card h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 12px; line-height: 1.08 }
.success-card h1 em { color: var(--gold); font-style: italic }
.success-lead { color: var(--muted); font-size: .98rem; max-width: 520px; margin: 0 auto 24px; font-weight: 300 }
.order-id-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05);
  border: 1px dashed var(--gold); border-radius: 99px; padding: 10px 22px; font-size: .9rem; margin-bottom: 28px;
}
.order-summary-box {
  background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-align: left; margin-bottom: 30px;
}
.order-summary-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 16px }
.order-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px }
.meta-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px }
.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; text-transform: uppercase;
}
.status-placed, .status-pending { background: rgba(217,178,111,.2); color: var(--gold-soft); border: 1px solid var(--gold) }
.status-processing { background: rgba(74,154,51,.2); color: var(--leaf-light); border: 1px solid var(--leaf-light) }
.status-shipped, .status-delivered { background: rgba(63,122,82,.3); color: #8fcf6a; border: 1px solid #7cc24a }
.status-cancelled { background: rgba(170,42,53,.25); color: #f0a89a; border: 1px solid #aa2a35 }
.order-shipping-summary { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: .88rem; color: var(--muted) }
.ordered-items-list { border-top: 1px solid var(--line); padding-top: 10px }
.ordered-item-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap }

/* Order History Page */
.orders-page-wrapper { min-height: 80vh; position: relative }
.orders-head { margin-bottom: 34px }
.orders-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem) }
.orders-head h1 em { color: var(--gold); font-style: italic }
.orders-list { display: grid; gap: 20px }
.order-card { background: #122f1f; border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: border-color .2s }
.order-card:hover { border-color: rgba(217,178,111,.3) }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px }
.order-card-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin: 4px 0 }
.order-date { font-size: .8rem; color: var(--muted) }
.order-header-right { text-align: right }
.order-amount { display: block; font-size: 1.3rem; font-weight: 600; color: var(--gold); margin-top: 6px }
.order-card-body { padding-top: 16px }
.order-items-compact { display: grid; gap: 8px; margin-bottom: 14px }
.compact-item { display: flex; justify-content: space-between; font-size: .9rem }
.order-delivery-info { font-size: .82rem; color: var(--muted) }
.guest-lookup-card {
  max-width: 580px; margin: 20px auto; background: #122f1f; border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px;
}

/* Admin Dashboard */
.admin-wrapper { min-height: 85vh; position: relative }
.admin-top-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap }
.admin-top-bar h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1 }
.admin-top-bar h1 em { color: var(--gold); font-style: italic }
.admin-actions-bar { display: flex; gap: 10px }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.stat-card { background: #122f1f; border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-align: left }
.stat-label { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px }
.stat-value { font-size: 1.8rem; font-family: 'Cormorant Garamond', serif; font-weight: 600 }
.admin-panel { background: #122f1f; border: 1px solid var(--line); border-radius: 20px; overflow: hidden }
.panel-header { padding: 20px 24px; border-bottom: 1px solid var(--line) }
.panel-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem }
.admin-table th { padding: 14px 18px; background: rgba(0,0,0,.2); border-bottom: 1px solid var(--line); font-size: .76rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em }
.admin-table td { padding: 14px 18px; border-bottom: 1px solid rgba(246,239,224,.06); vertical-align: middle }
.admin-select {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0b1a12; color: var(--cream); font: inherit; font-size: .8rem;
}
.admin-btn-sm {
  padding: 6px 12px; border-radius: 8px; border: 0; background: var(--gold); color: #1a2a1f; font-weight: 600; font-size: .76rem; cursor: pointer;
}
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: .72rem; letter-spacing: .04em }

/* Mobile Adaptations */
@media (max-width: 900px) {
  .cart-grid, .checkout-grid { grid-template-columns: 1fr }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr) }
  .form-row { grid-template-columns: 1fr }
}
@media (max-width: 600px) {
  .admin-stats-grid { grid-template-columns: 1fr }
  .order-meta-grid { grid-template-columns: 1fr }
  .order-card-header { flex-direction: column }
  .order-header-right { text-align: left }
}

