/* =========================================================
   ImproWell auth + onboarding + profile — vanilla CSS, WP-safe.
   All scoped under .iw-root. Tokens mirror landing/shop/bag.
   Used by: improwell-login, -signup, -verify, -onboarding-1, -2,
            -onboarding-done, -profile.
   ========================================================= */
.iw-root, .iw-root * { box-sizing: border-box; margin: 0; padding: 0; }

.iw-root {
  --bg: #f5ede8; --bg-deep: #efe3db;
  --iw-c1:#f7e4dc; --iw-c2:#e8dff0; --iw-c3:#dce9e6; --iw-c4:#f5e0d6;
  --iw-mx:50%; --iw-my:30%;
  --ink:#2d2d2d; --ink-soft:#666; --muted:#999;
  --brand:#c97070; --brand-deep:#a05545; --brand-soft:#e8bfaa;
  --brand-glow: rgba(201,112,112,0.35);
  --ok:#5a9a72; --lav:#9a72b0;
  --glass-light-bg: rgba(255,255,255,0.65);
  --glass-light-br: rgba(255,255,255,0.50);
  --glass-card-bg:  rgba(255,255,255,0.70);
  --glass-card-br:  rgba(255,255,255,0.55);
  --shadow-soft: 0 4px 20px rgba(180,120,100,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-card: 0 6px 24px rgba(180,120,100,0.12), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-btn:  0 4px 16px rgba(201,112,112,0.45);
  --radius-md:12px; --radius-lg:14px; --radius-xl:18px; --radius-pill:28px;
  --fz-header:22px; --fz-sub:14px; --fz-body:12px; --fz-label:10px; --fz-micro:10px;

  font-family: "Gantari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: transparent;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Organic background */
.iw-root .iw-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at var(--iw-mx) var(--iw-my), var(--iw-c1) 0%, transparent 55%),
    radial-gradient(circle at calc(100% - var(--iw-mx)) calc(100% - var(--iw-my)), var(--iw-c2) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, var(--iw-c3) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, var(--iw-c4) 0%, transparent 60%),
    linear-gradient(160deg, #f5ede8, #f0e4db);
  filter: saturate(1.05);
  animation: iwWave 22s ease-in-out infinite alternate;
}
@keyframes iwWave {
  0%   { background-position: 0% 0%, 100% 100%, 20% 80%, 80% 20%, 0 0; }
  50%  { background-position: 6% 8%, 94% 92%, 16% 84%, 84% 16%, 0 0; }
  100% { background-position: 0% 0%, 100% 100%, 20% 80%, 80% 20%, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .iw-root .iw-bg { animation: none; } }

/* Mobile page */
.iw-ob-page {
  max-width: 393px; margin: 0 auto;
  padding: 24px 22px 40px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative;
}

/* Top bar */
.iw-ob-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.iw-ob-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 140ms ease;
}
.iw-ob-back:active { transform: scale(0.9); }
.iw-ob-back svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 2; }

.iw-ob-progress { flex: 1; height: 6px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; }
.iw-ob-progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); border-radius: 999px; transition: width 400ms cubic-bezier(.2,.7,.2,1); }
.iw-ob-step { font-size: 11px; font-weight: 500; letter-spacing: 1.2px; color: var(--brand); text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(201,112,112,0.10); white-space: nowrap; }

.iw-ob-logo { font-size: 18px; font-weight: 500; letter-spacing: 3px; color: var(--ink); text-decoration: none; text-align: center; margin-bottom: 20px; display: block; }
.iw-ob-logo .iw-o { color: var(--brand); }

.iw-ob-hero { text-align: center; margin-bottom: 22px; }
.iw-ob-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 1.6px; color: var(--brand); text-transform: uppercase; margin-bottom: 8px; }
.iw-ob-title { font-size: 26px; font-weight: 500; color: var(--ink); letter-spacing: -0.015em; line-height: 1.18; margin-bottom: 8px; font-family: 'Libre Baskerville', Georgia, serif; }
.iw-ob-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.55; max-width: 300px; margin: 0 auto; }

/* Card */
.iw-ob-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-card-br);
  box-shadow: var(--shadow-card);
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 14px;
}

/* Field */
.iw-field { margin-bottom: 14px; }
.iw-field-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 1.3px; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 6px; }
.iw-field-label .iw-req { color: var(--brand); }
.iw-input, .iw-select, .iw-textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  font-family: inherit; font-size: 14px; color: var(--ink); font-weight: 600;
  outline: none; transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.iw-input:focus, .iw-select:focus, .iw-textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(201,112,112,0.10);
}
.iw-input::placeholder { color: var(--muted); font-weight: 500; }
.iw-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 70px; line-height: 1.5; }
.iw-input-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.iw-input-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Chips */
.iw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iw-chip {
  padding: 9px 13px; border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all 180ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.iw-chip:active { transform: scale(0.96); }
.iw-chip.iw-on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 3px 10px var(--brand-glow); }

/* Big option cards */
.iw-bigopts { display: grid; gap: 8px; }
.iw-bigopt {
  display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.6);
  cursor: pointer; transition: all 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.iw-bigopt:active { transform: scale(0.99); }
.iw-bigopt.iw-on { border-color: var(--brand); background: rgba(201,112,112,0.08); }
.iw-bigopt-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  color: #fff; font-size: 18px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.iw-bigopt-t { font-size: 13px; font-weight: 500; color: var(--ink); }
.iw-bigopt-s { font-size: 11px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.iw-bigopt-r {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 180ms ease;
}
.iw-bigopt.iw-on .iw-bigopt-r { border-color: var(--brand); background: var(--brand); }
.iw-bigopt.iw-on .iw-bigopt-r::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* Segmented */
.iw-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: rgba(0,0,0,0.05); border-radius: 12px; }
.iw-seg-opt { padding: 9px 8px; text-align: center; font-size: 12px; font-weight: 500; color: var(--ink-soft); border-radius: 9px; cursor: pointer; transition: all 180ms ease; -webkit-tap-highlight-color: transparent; }
.iw-seg-opt.iw-on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* CTA */
.iw-ob-footer { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.iw-ob-next {
  height: 48px; width: 100%;
  border: none; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
  cursor: pointer; box-shadow: var(--shadow-btn);
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, background 180ms ease, opacity 200ms ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.iw-ob-next:active { transform: scale(0.98); }
.iw-ob-next[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.iw-ob-next svg { width: 14px; height: 14px; }
.iw-ob-skip {
  height: 42px; border: none; background: transparent;
  color: var(--ink-soft); font-size: 13px; font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.iw-ob-skip:hover { color: var(--brand); }

/* Social */
.iw-social-btns { display: grid; gap: 8px; }
.iw-social-btn {
  height: 44px; border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.08); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.iw-social-btn:hover { border-color: var(--brand); }
.iw-social-btn:active { transform: scale(0.98); }
.iw-social-btn svg { width: 16px; height: 16px; }
.iw-social-btn.iw-apple { background: #000; color: #fff; border-color: #000; }
.iw-social-btn.iw-apple:hover { background: #222; }

.iw-divider {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  margin: 14px 0;
  color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase;
}
.iw-divider::before, .iw-divider::after { content: ''; height: 1px; background: rgba(0,0,0,0.08); }

/* OTP */
.iw-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.iw-otp-cell {
  min-width: 0;
  width: 100%;
  height: 52px; border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  text-align: center; font-size: 20px; font-weight: 500; color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, serif; outline: none;
  transition: all 180ms ease;
}
.iw-otp-cell:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(201,112,112,0.12); }
.iw-otp-cell.iw-filled { border-color: var(--brand); background: rgba(201,112,112,0.06); }

/* Success */
.iw-success {
  width: 108px; height: 108px; margin: 12px auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px var(--brand-glow);
  animation: iwPop 700ms cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.iw-success::before { content:''; position:absolute; inset:-10px; border-radius:50%; border:1.5px solid rgba(201,112,112,0.35); animation: iwPulse 2.2s ease-out infinite; }
.iw-success svg { width: 52px; height: 52px; stroke: #fff; fill: none; stroke-width: 2.5; }
@keyframes iwPop { 0%{transform:scale(0);opacity:0;} 60%{transform:scale(1.1);opacity:1;} 100%{transform:scale(1);} }
@keyframes iwPulse { 0%{transform:scale(1);opacity:1;} 100%{transform:scale(1.5);opacity:0;} }

/* Saved-address card */
.iw-addr {
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.6);
  margin-bottom: 8px; position: relative;
  cursor: pointer; transition: all 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.iw-addr.iw-on { border-color: var(--brand); background: rgba(201,112,112,0.06); }
.iw-addr-t { font-size: 13px; font-weight: 500; color: var(--ink); }
.iw-addr-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 500; letter-spacing: 1.1px;
  padding: 2px 7px; border-radius: 999px;
  background: var(--brand); color: #fff; text-transform: uppercase;
}
.iw-addr-b { font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; }

/* Profile header */
.iw-prof-head { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; margin: 6px 0 18px; }
.iw-prof-av {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  color: #fff; font-size: 28px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px var(--brand-glow); font-family: 'Libre Baskerville', Georgia, serif; }
.iw-prof-n { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; font-family: 'Libre Baskerville', Georgia, serif; }
.iw-prof-e { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.iw-prof-edit {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; color: var(--ink);
  transition: transform 140ms ease;
}
.iw-prof-edit:active { transform: scale(0.9); }
.iw-prof-edit svg { width: 14px; height: 14px; stroke: var(--ink); fill: none; stroke-width: 1.8; }

.iw-prof-tier {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,112,112,0.10), rgba(232,191,170,0.14));
  border: 1px solid rgba(201,112,112,0.18);
}
.iw-prof-tier-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-family: 'Libre Baskerville', Georgia, serif; }
.iw-prof-tier-t { font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.iw-prof-tier-s { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.iw-prof-tier-bar { margin-top: 8px; height: 4px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; }
.iw-prof-tier-fill { height: 100%; width: 62%; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); border-radius: 999px; }

.iw-prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.iw-prof-stat {
  padding: 12px 8px; text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
}
.iw-prof-stat-v { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; font-family: 'Libre Baskerville', Georgia, serif; }
.iw-prof-stat-l { font-size: 10px; font-weight: 500; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

.iw-prof-sect { margin-bottom: 16px; }
.iw-prof-sect-h { font-size: 11px; font-weight: 500; letter-spacing: 1.3px; color: var(--ink-soft); text-transform: uppercase; margin: 8px 4px 8px; }

.iw-prof-list {
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  overflow: hidden;
}
.iw-prof-row {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px;
  padding: 13px 14px; align-items: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease;
  color: inherit;
  cursor: pointer;
}
.iw-prof-row + .iw-prof-row { border-top: 1px solid rgba(0,0,0,0.05); }
.iw-prof-row:hover { background: rgba(201,112,112,0.05); }
.iw-prof-row:active { background: rgba(201,112,112,0.10); }
.iw-prof-row-ic {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(201,112,112,0.10);
  display: inline-flex; align-items: center; justify-content: center;
}
.iw-prof-row-ic svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.iw-prof-row-t { font-size: 13px; font-weight: 500; color: var(--ink); }
.iw-prof-row-s { font-size: 11px; color: var(--ink-soft); margin-top: 1px; }
.iw-prof-row-r { font-size: 16px; color: var(--muted); font-weight: 600; }
.iw-prof-row-badge {
  font-size: 10px; font-weight: 500; letter-spacing: 1px;
  padding: 3px 7px; border-radius: 999px;
  background: var(--brand); color: #fff; text-transform: uppercase;
}
.iw-prof-row-badge.iw-ok { background: rgba(90,154,114,0.15); color: var(--ok); }
.iw-prof-row-badge.iw-warn { background: rgba(201,112,112,0.15); color: var(--brand); }

.iw-logout {
  width: 100%; height: 44px;
  border: none; border-radius: 999px;
  background: rgba(0,0,0,0.05); color: var(--ink-soft);
  font-size: 13px; font-weight: 500; cursor: pointer;
  margin-top: 12px;
  -webkit-tap-highlight-color: transparent;
  transition: background 180ms ease, color 180ms ease;
}
.iw-logout:hover { background: rgba(201,112,112,0.10); color: var(--brand); }

/* =========================================================
   Bottom app-style navigation — universal, shared across
   landing / shop / discover / product / bag / profile
   ========================================================= */
/* Nav selectors scoped under .iw-root so they beat `.iw-root *` resets
   on every page. Specificity (0,2,0) > (0,1,1). */
.iw-root .iw-bottomnav {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 28px); max-width: 372px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 50px;
  box-shadow: 0 14px 36px rgba(180,120,100,0.18), 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  padding: 10px 12px;
  gap: 4px;
  z-index: 200;
  box-sizing: border-box;
}
.iw-root .iw-bn-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: #888;
  font-size: 11px; font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 140ms ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  min-width: 0;
}
.iw-root .iw-bn-item:active { transform: scale(0.94); }
.iw-root .iw-bn-item.iw-active { color: var(--brand); background: rgba(201,112,112,0.08); }
.iw-root .iw-bn-icon { width: 22px; height: 22px; display: block; }
.iw-root .iw-bn-icon svg { width: 100%; height: 100%; display: block; }
.iw-root .iw-bn-label { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }

/* Hide bottom-nav on flow pages */
.iw-root[data-page="login"] .iw-bottomnav,
.iw-root[data-page="signup"] .iw-bottomnav,
.iw-root[data-page="verify"] .iw-bottomnav,
.iw-root[data-page="ob1"] .iw-bottomnav,
.iw-root[data-page="ob2"] .iw-bottomnav,
.iw-root[data-page="done"] .iw-bottomnav { display: none; }

.iw-root[data-page="profile"] .iw-ob-page { padding-bottom: 100px; }

/* Checkbox row */
.iw-check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.iw-check-row input { margin-top: 2px; accent-color: var(--brand); width: 14px; height: 14px; }
.iw-check-row a { color: var(--brand); font-weight: 500; text-decoration: none; }

/* Helper reminder */
.iw-hint { font-size: 11px; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }

/* Privacy / consent badge */
.iw-privacy {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(90,154,114,0.08);
  border: 1px solid rgba(90,154,114,0.18);
  margin-top: 10px;
}
.iw-privacy-ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ok); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.iw-privacy-ic svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.iw-privacy-t { font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.iw-privacy-s { font-size: 11px; color: var(--ink-soft); line-height: 1.45; }

/* =========================================================
   Announce bar + top nav (for product, bag, and other pages
   that use .iw-announce / .iw-nav / .iw-page layout)
   ========================================================= */

.iw-page {
  max-width: 393px; margin: 0 auto;
  padding: 0 16px 32px;
  min-height: 100vh;
  position: relative;
}

.iw-announce {
  text-align: center;
  font-size: 11px; font-weight: 500; letter-spacing: 1.3px;
  color: var(--brand);
  padding: 10px 12px;
  background: rgba(201,112,112,0.06);
  border-bottom: 1px solid rgba(201,112,112,0.10);
  margin: 0 -16px 0;
  text-transform: uppercase;
}

.iw-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px 12px;
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(to bottom, rgba(245,237,232,0.92), rgba(245,237,232,0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 -16px 8px;
  padding-left: 18px; padding-right: 18px;
}

.iw-nav-logo {
  font-size: 18px; font-weight: 500; letter-spacing: 3px;
  color: var(--ink); text-decoration: none;
}
.iw-nav-logo .iw-o { color: var(--brand); }

.iw-hamburger {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 140ms ease;
}
.iw-hamburger:active { transform: scale(0.9); }
.iw-hamburger svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; }

/* Reveal-on-scroll primitives used across pages */
.iw-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms cubic-bezier(.2,.7,.2,1) var(--iw-delay, 0ms),
              transform 620ms cubic-bezier(.2,.7,.2,1) var(--iw-delay, 0ms);
  will-change: opacity, transform;
}
.iw-reveal.iw-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .iw-reveal { opacity: 1; transform: none; transition: none; }
}

/* Section padding helper for pages that use .iw-page wrapper */
.iw-root[data-page="product"] .iw-page,
.iw-root[data-page="bag"] .iw-page { padding-bottom: 120px; }

/* =========================================================
   Footer (dark chocolate — shared across product, bag, shop,
   landing, discover, and any page with <footer class="iw-footer">)
   ========================================================= */
.iw-footer {
  background: #120c0c;
  color: #fff;
  margin: 32px -16px 0;
  padding: 28px 22px 120px;
  border-radius: 28px 28px 0 0;
}
.iw-footer-logo {
  font-size: 19px; font-weight: 500; letter-spacing: 3px;
  color: var(--brand-soft);
  margin-bottom: 10px;
}
.iw-footer-logo .iw-o { color: var(--brand); }
.iw-footer-tag {
  font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.6;
  margin-bottom: 20px; max-width: 280px;
}
.iw-footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px;
  margin-bottom: 22px;
}
.iw-footer-col-h {
  font-size: 11px; font-weight: 500; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.iw-footer-link {
  display: block; font-size: 13px; color: rgba(255,255,255,0.72);
  padding: 4px 0; text-decoration: none;
  transition: color 180ms ease;
}
.iw-footer-link:hover { color: #fff; }
.iw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  font-size: 11px; color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.iw-footer-socials {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.iw-footer-soc {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.72); text-decoration: none;
  transition: transform 140ms ease, color 160ms ease, background 160ms ease;
}
.iw-footer-soc:active { transform: scale(0.9); }
.iw-footer-soc:hover { color: #fff; background: rgba(255,255,255,0.12); }
.iw-footer-soc svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
