/* Shopengo — iPadOS "Liquid Glass" theme */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  --text: #1d1d1f;
  --muted: rgba(60, 60, 67, .68);
  --separator: rgba(60, 60, 67, .14);

  --brand: #c8612a;
  --brand-dark: #a24e20;
  --brand-soft: rgba(214, 120, 64, .12);
  --brand-grad: linear-gradient(160deg, #eb9a62 0%, #db7a42 50%, #c8612a 100%);
  --brand-glow: rgba(200, 97, 42, .22);
  --focus: rgba(219, 122, 66, .3);

  --danger: #d70015;
  --danger-soft: rgba(255, 59, 48, .14);
  --warn: #a05a00;
  --warn-soft: rgba(255, 159, 10, .18);
  --ok: #1a7f37;
  --ok-soft: rgba(52, 199, 89, .16);

  /* glass material */
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-edge: rgba(255, 255, 255, .95);
  --glass-shadow: 0 10px 40px rgba(80, 50, 30, .08), 0 2px 6px rgba(80, 50, 30, .05);
  --glass-blur: blur(28px) saturate(160%);
  --fill: rgba(118, 118, 128, .12);
  --fill-hover: rgba(118, 118, 128, .2);

  --wall-1: #f6e7da;
  --wall-2: #f3cba8;
  --wall-3: #e9b08c;
  --wall-4: #ece3f0;
  --wall-base: #f8f4f0;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}

/* dark theme: set on <html data-theme> by the head script (system default, or the user's toggle choice) */
:root[data-theme="dark"] {
    --text: #f5f5f7;
    --muted: rgba(235, 235, 245, .62);
    --separator: rgba(255, 255, 255, .12);
    --brand: #eb9f6e;
    --brand-dark: #f2b48a;
    --brand-soft: rgba(235, 159, 110, .16);
    --brand-glow: rgba(0, 0, 0, .35);
    --focus: rgba(235, 159, 110, .35);
    --danger: #ff6961;
    --danger-soft: rgba(255, 69, 58, .2);
    --warn: #ffcc66;
    --warn-soft: rgba(255, 159, 10, .2);
    --ok: #4cd964;
    --ok-soft: rgba(48, 209, 88, .2);
    --glass: rgba(40, 36, 34, .5);
    --glass-strong: rgba(48, 44, 42, .72);
    --glass-border: rgba(255, 255, 255, .12);
    --glass-edge: rgba(255, 255, 255, .28);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
    --fill: rgba(118, 118, 128, .24);
    --fill-hover: rgba(118, 118, 128, .34);
    --wall-1: #2a1d16;
    --wall-2: #4a2c1c;
    --wall-3: #6b3a20;
    --wall-4: #241c2c;
    --wall-base: #121010;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.01em;
  color: var(--text);
  background: var(--wall-base);
  -webkit-font-smoothing: antialiased;
}

/* wallpaper: soft colour fields the glass refracts */
body::before {
  content: "";
  position: fixed; inset: -10%;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 12% 18%, var(--wall-2) 0%, transparent 70%),
    radial-gradient(38% 40% at 88% 12%, var(--wall-4) 0%, transparent 70%),
    radial-gradient(45% 50% at 80% 85%, var(--wall-3) 0%, transparent 70%),
    radial-gradient(50% 50% at 20% 90%, var(--wall-1) 0%, transparent 70%),
    var(--wall-base);
  filter: blur(20px);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
.muted { color: var(--muted); }

/* ---------- glass material ---------- */
.glass, .card, .site-header .inner, .site-footer .inner, .tabs, .sheet {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(255, 255, 255, .08);
}
/* specular sheen across the top of each pane */
.card::before, .site-header .inner::before, .sheet::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 38%);
  mix-blend-mode: soft-light;
}

/* ---------- floating toolbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 16px 0;
}
.site-header .inner {
  max-width: 1100px; margin: 0 auto;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 8px var(--brand-glow); }
.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.nav > a:not(.btn) {
  color: var(--text); font-weight: 550; font-size: .95rem;
  padding: .45rem .9rem; border-radius: 999px; transition: background .25s var(--ease);
}
.nav > a:not(.btn):hover { background: var(--fill); text-decoration: none; }
.nav > a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav .who { color: var(--muted); font-size: .9rem; padding: 0 .4rem; }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem 16px 3rem; }

/* light / dark switch */
.theme-toggle {
  flex: none; width: 40px; height: 40px; padding: 0; margin-left: .35rem;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--text); background: var(--fill); border: 1px solid transparent;
  transition: background .25s var(--ease), transform .35s var(--ease);
}
.theme-toggle:hover { background: var(--fill-hover); }
.theme-toggle:active { transform: scale(.9) rotate(-20deg); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.header-end { display: flex; align-items: center; gap: .35rem; }

/* footer */
.site-footer { padding: 0 16px 16px; }
.site-footer .inner {
  max-width: 1100px; margin: 0 auto; padding: .9rem 1.4rem; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap;
  font-size: .9rem; color: var(--muted);
}
.site-footer nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--text); font-weight: 550; padding: .35rem .8rem; border-radius: 999px; }
.site-footer nav a:hover { background: var(--fill); text-decoration: none; }
.site-footer nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

/* ---------- buttons (capsules) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .6rem 1.35rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; text-decoration: none; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 6px 18px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(110, 50, 20, .18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0 0 50% 0; border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn.secondary {
  color: var(--text);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06), inset 0 1px 0 var(--glass-edge);
}
.btn.secondary::after { opacity: .5; }
.btn.danger {
  background: linear-gradient(160deg, #ff6a5f, #e0241a);
  box-shadow: 0 6px 18px rgba(215, 0, 21, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.small { min-height: 36px; padding: .4rem 1rem; font-size: .9rem; }

/* ---------- home ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem;
  padding: 3rem; border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 15% 0%, rgba(255, 255, 255, .35), transparent 60%);
}
.hero > * { position: relative; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.hero p { color: var(--muted); font-size: 1.2rem; max-width: 560px; margin: 0 0 1.75rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-logo {
  width: 100%; max-width: 300px; justify-self: center; border-radius: 26%;
  box-shadow: 0 24px 50px rgba(80, 50, 30, .18), 0 0 0 1px rgba(255, 255, 255, .5);
  transform: rotate(-4deg);
  transition: transform .6s var(--ease);
}
.hero-logo:hover { transform: rotate(0) scale(1.03); }
.hero.compact { padding: 2rem 2.5rem; margin-bottom: 2rem; grid-template-columns: 1fr auto; }
.hero.compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero.compact p { margin-bottom: 1.25rem; }
.hero.compact .hero-logo { max-width: 150px; }
.hero.compact #hero-actions:empty, .hero.compact p:last-child { margin-bottom: 0; }
.page-head h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0; }
.page-head .search { max-width: 320px; }
.hero h1 em, .about-hero .lead em, .tagline h2 em {
  font-style: normal;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- about ---------- */
.hero .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); margin: 0 0 .5rem; }
.about-hero .lead { font-size: 1.5rem; font-weight: 700; margin: -.1rem 0 1rem; color: var(--text); }
.mission { background: var(--brand-soft); }
.mission .big { font-size: 1.2rem; font-weight: 600; line-height: 1.4; margin: 0; }
.tagline { margin-top: 1.5rem; text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--r-xl); }
.tagline h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.02em; margin-bottom: 1.25rem; }
.tagline .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.features .card h3 { display: flex; align-items: center; gap: .5rem; }

/* ---------- cards & forms ---------- */
.card { border-radius: var(--r-lg); padding: 1.6rem; }
.auth-card { max-width: 500px; margin: 1rem auto 0; padding: 2rem; border-radius: var(--r-xl); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin: 0 0 .35rem .3rem; font-size: .9rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select, .search {
  width: 100%; min-height: 46px; padding: .7rem 1rem;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--fill);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder, .search::placeholder { color: var(--muted); }
.field input:hover, .field textarea:hover, .search:hover { background: var(--fill-hover); }
.field input:focus, .field textarea:focus, .search:focus {
  outline: none; background: var(--glass-strong);
  box-shadow: 0 0 0 4px var(--focus);
}
.field textarea { min-height: 100px; resize: vertical; }
.field-hint { font-size: .8rem; margin: .3rem 0 0 .3rem; }
.field .err { color: var(--danger); font-size: .85rem; margin: .3rem 0 0 .3rem; display: none; }
.field.invalid input, .field.invalid textarea { box-shadow: 0 0 0 2px var(--danger); }
.field.invalid .err { display: block; }

.search {
  border-radius: 999px; padding-left: 2.6rem;
  background: var(--glass-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 3.5 3.5'/%3E%3C/svg%3E") no-repeat 1rem center;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge);
}

.alert { padding: .8rem 1.1rem; border-radius: var(--r-md); margin-bottom: 1rem; display: none; font-weight: 500; }
.alert.show { display: block; animation: pop .45s var(--ease); }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.success { background: var(--ok-soft); color: var(--ok); }


/* ---------- store directory ---------- */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.store-card { display: flex; flex-direction: column; gap: .55rem; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.store-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 50px rgba(80, 50, 30, .12), inset 0 1px 0 var(--glass-edge); }
.store-card .avatar {
  width: 56px; height: 56px; border-radius: 16px; color: #fff;
  background: var(--brand-grad);
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 6px 16px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.store-card .meta { font-size: .875rem; color: var(--muted); margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--separator); }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty h3 { color: var(--text); }
.empty p { max-width: 460px; margin: .25rem auto 1.25rem; }

/* settings */
.section-title { font-size: 1.15rem; margin: 1.5rem 0 .9rem; padding-top: 1.25rem; border-top: 1px solid var(--separator); }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin: -.25rem 0 1.1rem .3rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.hint { font-size: .85rem; text-align: center; margin: .9rem 0 0; }

.settings { max-width: 760px; }
.settings > h1 { margin-bottom: .2rem; }
.settings > #who { margin-bottom: 1.5rem; }
.settings-card { margin-bottom: 1.25rem; border-radius: var(--r-xl); padding: 1.75rem; }
.settings-card h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.settings-card > .muted { margin: 0 0 1rem; }
.sub-title { font-size: 1rem; margin: .5rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--separator); }
.hint-left { font-size: .85rem; margin: .5rem 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.section-head p { margin: 0 0 1rem; }

.logo-edit { display: flex; gap: 1.1rem; align-items: center; margin: .5rem 0 1.25rem; }
.logo-preview {
  flex: none; width: 88px; height: 88px; border-radius: 24px; overflow: hidden; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-size: 2.2rem; font-weight: 800;
  box-shadow: 0 6px 16px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.logo-preview img, .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-actions { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.logo-actions label.btn { cursor: pointer; }
.avatar.has-logo { background: var(--glass-strong); overflow: hidden; }

.small-empty { padding: 1.5rem 1rem; }
.tile-editor { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.tile-preview-wrap { display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.tile-preview { width: 100%; pointer-events: none; }
.tiny { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.tile-choice { margin: 0 0 .6rem; }
.tile-choice .muted { font-size: .8rem; }
.tile-choice.disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) { .tile-editor { grid-template-columns: 1fr; } .tile-preview { max-width: 200px; } }
.offer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1rem; border-radius: var(--r-md); background: var(--fill); margin-bottom: .6rem;
}
.offer-row.off { opacity: .6; }
.offer-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.offer-actions { display: flex; align-items: center; gap: .5rem; }
.promo-chip {
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  padding: .2rem .6rem; border-radius: 8px; border: 1.5px dashed var(--brand); color: var(--brand); background: var(--brand-soft);
}

/* iOS-style switch */
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--fill-hover); cursor: pointer; transition: background .25s var(--ease); }
.switch span::before {
  content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--ease);
}
.switch input:checked + span { background: #34c759; }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* offers on the shop page */
.offers-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; margin: -1rem 0 2rem; }
.offer-card { padding: 1rem 1.15rem; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: .35rem; }
.offer-card .offer-title { font-weight: 700; }
.offer-card .offer-detail { font-size: .9rem; color: var(--muted); }
/* ---------- cart ---------- */
.cart-button {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--brand-grad); box-shadow: 0 4px 12px var(--brand-glow);
}
.cart-button:hover { text-decoration: none; filter: brightness(1.05); }
.cart-button svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--brand); background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400;
  display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem 1.2rem; border-radius: 22px;
  width: max-content; max-width: calc(100% - 32px);
  color: #fff; background: rgba(28, 24, 22, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: pop .35s var(--ease); font-size: .92rem;
}
.toast a { color: #ffb37a; font-weight: 700; white-space: nowrap; }

.buy-row { display: flex; gap: .6rem; align-items: center; margin: .9rem 0 1rem; flex-wrap: wrap; }
.buy-row .add-to-cart { flex: 1; min-width: 140px; }
.qty-stepper {
  display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill); padding: 3px; flex: none;
}
.qty-stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--glass-strong); color: var(--text);
  font: inherit; font-size: 1.2rem; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.qty-stepper .qty-value { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty-stepper.small button { width: 30px; height: 30px; font-size: 1rem; }
.product-facts { display: grid; gap: .35rem; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--separator); font-size: .9rem; }
.product-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; font-weight: 600; }

.cart-page { max-width: 760px; }
.cart-page > h1 { margin-bottom: .2rem; }
.cart-items { padding: .5rem 1.25rem; border-radius: var(--r-xl); margin: 1rem 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--separator); }
.cart-item:last-child { border-bottom: none; }
.cart-thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--fill); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cart-info .muted { font-size: .82rem; }
.cart-controls { display: flex; align-items: center; gap: .9rem; margin-top: .35rem; }
.cart-line { font-weight: 700; white-space: nowrap; }
.cart-summary, .checkout { border-radius: var(--r-xl); padding: 1.5rem; margin-bottom: 1rem; }
.promo-row { display: flex; gap: .6rem; align-items: flex-start; }
.promo-row .field { flex: 1; margin-bottom: .5rem; }
.promo-row .btn { margin-top: 1.75rem; }
.totals { display: grid; gap: .45rem; padding: .9rem 0; border-top: 1px solid var(--separator); margin-top: .4rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.totals .discount { color: var(--ok); }
.totals .grand { font-size: 1.25rem; font-weight: 800; padding-top: .45rem; border-top: 1px solid var(--separator); }
.delivery-note { font-size: .88rem; color: var(--muted); background: var(--brand-soft); padding: .7rem .9rem; border-radius: var(--r-md); margin: .4rem 0 1rem; }
.checkout-btn { width: 100%; min-height: 50px; font-size: 1.05rem; }
.checkout h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.sheet.narrow { width: min(420px, 100%); }
.order-done { text-align: center; display: flex; flex-direction: column; gap: .6rem; }
.order-done .icon { font-size: 3rem; }
.order-done p { margin: 0; }
.order-done .btn { width: 100%; }
@media (max-width: 640px) {
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-thumb { width: 60px; height: 60px; }
  .cart-line { grid-column: 2; }
}

/* ---------- store owner: orders & code lookup ---------- */
.view-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fill); margin-bottom: 1rem; }
.view-switch button {
  border: none; background: none; padding: .5rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.view-switch button.active { background: var(--glass-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); color: var(--brand); }
.new-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: .3rem; border-radius: 999px; font-size: .72rem; color: #fff; background: var(--danger); }
.lookup { padding: 1rem 1.25rem; border-radius: var(--r-lg); margin-bottom: 1rem; }
.lookup label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .4rem; }
.lookup-row { display: flex; gap: .5rem; }
.lookup-row .search { max-width: none; flex: 1; }
.lookup-hit { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; margin-top: .8rem; }
.lookup-hit img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.lookup-hit div { display: flex; flex-direction: column; gap: .1rem; }
.lookup-hit .muted { font-size: .82rem; }
.lookup-none { margin: .7rem 0 0; }
.order-card { border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: .9rem; border-left: 4px solid transparent; }
.order-card.status-new { border-left-color: var(--brand); }
.order-card.status-completed { opacity: .85; }
.order-card.status-cancelled { opacity: .6; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-head > div { display: flex; flex-direction: column; }
.order-no { font-size: 1.1rem; }
.order-head .muted { font-size: .82rem; }
.order-head select { min-height: 38px; padding: .4rem 2.2rem .4rem .9rem; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--fill); color: var(--text); font: inherit; font-weight: 600; }
.order-customer { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .7rem 0; font-size: .92rem; }
.order-note { background: var(--brand-soft); padding: .55rem .8rem; border-radius: var(--r-sm); font-size: .9rem; margin: 0 0 .7rem; }
.order-items { width: 100%; border-collapse: collapse; font-size: .88rem; }
.order-items th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; padding: .3rem .4rem; border-bottom: 1px solid var(--separator); }
.order-items td { padding: .45rem .4rem; border-bottom: 1px solid var(--separator); vertical-align: top; }
.order-items td:nth-child(n+3), .order-items th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.code-link { border: 1.5px dashed var(--brand); background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: .1rem .4rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.order-totals { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .7rem; font-size: .92rem; }
.order-totals .discount { color: var(--ok); }
.order-meta { font-size: .8rem; margin: .6rem 0 0; }
@media (max-width: 640px) {
  .order-items th:nth-child(4), .order-items td:nth-child(4) { display: none; }
}

/* admin: WhatsApp API */
.wa-steps { margin: .5rem 0 1rem; font-size: .9rem; }
.wa-steps summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.wa-steps ol { padding-left: 1.2rem; display: grid; gap: .5rem; margin: .8rem 0 0; }
.wa-steps code { font-size: .82rem; background: var(--fill); padding: .1rem .35rem; border-radius: 6px; word-break: break-all; }
.wa-template { white-space: pre-wrap; font-size: .82rem; background: var(--fill); padding: .7rem .9rem; border-radius: var(--r-sm); margin: .4rem 0 0; }
.wa-test { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--separator); }
.wa-test .field { flex: 1; margin: 0; }
.wa-test .btn { margin-top: 1.75rem; }

/* contact buttons: Instagram, email, WhatsApp */
.contact-icons { display: flex; gap: .6rem; flex-wrap: wrap; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-icon:hover { transform: translateY(-2px) scale(1.06); text-decoration: none; }
.contact-icon:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.contact-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.contact-icon.email { background: var(--brand-grad); }
.contact-icon.whatsapp { background: #25d366; }
.contact-icon.small { width: 24px; height: 24px; box-shadow: none; vertical-align: middle; }
.contact-icon.small svg { width: 14px; height: 14px; }
.icon-field label { display: flex; align-items: center; gap: .45rem; }
.contact-intro { margin: -.3rem 0 .9rem; }
.shop-head-main { flex: 1; min-width: 0; }
.shop-contact { align-self: center; }
.contact-box .contact-icons { margin-top: .7rem; }
@media (max-width: 640px) {
  .shop-contact { align-self: flex-start; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.shop-head .address { margin-top: .35rem; white-space: pre-line; }
.offer-badge { font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #34c75922; color: var(--ok); }

/* home page: round shop tiles */
.brand-text { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.home-head h1 { margin: 0; }
.search-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: var(--glass-strong); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge);
  transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.search-toggle svg { width: 20px; height: 20px; }
.search-toggle:active { transform: scale(.92); }
.search-toggle.active { background: var(--brand-grad); color: #fff; border-color: transparent; }
.search-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-drawer { margin: 0 0 1rem; animation: pop .35s var(--ease); }
.filter-chips { display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px .4rem; margin: -.4rem 0 1.25rem; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button {
  flex: none; border: 1px solid var(--glass-border); background: var(--glass-strong); color: var(--text);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font: inherit; font-size: .9rem; font-weight: 600; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s;
}
.filter-chips button:active { transform: scale(.95); }
.filter-chips button.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px var(--brand-glow); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.shop-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem;
  padding: 1.4rem .9rem 1.1rem; border-radius: 28px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.shop-tile:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(80, 50, 30, .14), inset 0 1px 0 var(--glass-edge); }
.tile-link { display: flex; flex-direction: column; align-items: center; gap: .65rem; color: var(--text); width: 100%; }
.tile-link:hover { text-decoration: none; }
.tile-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 20px; }
.round-logo {
  width: 124px; height: 124px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-size: 3rem; font-weight: 800;
  box-shadow: 0 0 0 4px var(--glass-strong), 0 0 0 5px var(--glass-border), 0 10px 24px var(--brand-glow);
  transition: transform .45s var(--ease);
}
.shop-tile:hover .round-logo { transform: scale(1.06); }
.round-logo img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.shop-tile h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.tile-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.cat-chip {
  position: relative; z-index: 1; font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); transition: background .2s, color .2s;
}
.cat-chip:hover { text-decoration: none; background: var(--brand); color: #fff; }
.cat-chip.more { background: var(--fill); color: var(--muted); }

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .shop-tile { padding: 1.1rem .6rem .9rem; border-radius: 24px; }
  .round-logo { width: 104px; height: 104px; font-size: 2.5rem; }
}

/* sign-in codes & password reset */
.forgot { text-align: right; font-size: .9rem; margin: -.4rem 0 1rem; }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: 1.5rem !important; }
.otp-actions { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.link-btn { background: none; border: none; padding: .25rem 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--brand); cursor: pointer; }
.link-btn:disabled { color: var(--muted); cursor: default; }
.link-btn:not(:disabled):hover { text-decoration: underline; }
.status-done { text-align: center; }
.status-done .icon { font-size: 2.6rem; margin-bottom: .5rem; }
.switch-link { text-align: center; font-size: .9rem; margin: 1.1rem 0 0; }

/* whole shop card is clickable through its title link; contact links stay clickable on top */
.store-card { position: relative; }
.store-card h3 a.stretched { color: inherit; }
.store-card h3 a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.store-card h3 a.stretched:hover { text-decoration: none; }
.store-card .meta a { position: relative; z-index: 1; }
.store-card .view-shop { color: var(--brand); font-weight: 600; font-size: .9rem; }

/* ---------- shop page & products ---------- */
.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.shop-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2rem; border-radius: var(--r-xl); padding: 1.75rem; }
.shop-head .avatar {
  flex: none; width: 72px; height: 72px; border-radius: 22px; color: #fff; background: var(--brand-grad);
  display: grid; place-items: center; font-weight: 800; font-size: 2rem;
  box-shadow: 0 6px 16px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.shop-head h1 { margin-bottom: .4rem; }
.shop-head p { margin: .6rem 0; }
.shop-head .meta { font-size: .9rem; color: var(--muted); }
.shop-status { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cat-tools { display: flex; gap: .5rem; flex-wrap: wrap; margin: -.3rem 0 1rem; }
.cat-tools:empty { display: none; }
.btn.danger-text { color: var(--danger); }
.tabs .n { opacity: .6; margin-left: .2rem; font-size: .85em; }

.grid.products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
button.product-card { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.product-card.clickable { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.product-card.clickable:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(80, 50, 30, .12), inset 0 1px 0 var(--glass-edge); }
.product-card.clickable:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Product photos: square, filling the whole frame edge to edge. */
.product-card .thumb { position: relative; aspect-ratio: 1; background: var(--fill); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-count {
  position: absolute; top: 10px; right: 10px; font-size: .72rem; font-weight: 600; color: #fff;
  padding: .2rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.product-card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.05rem; }
.code { font-size: .82rem; color: var(--muted); }
.price { font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.price.big { font-size: 1.6rem; margin: .4rem 0 .2rem; }
.row-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.row-actions .btn { flex: 1; }

/* product form */
.sheet { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.sheet.wide { width: min(720px, 100%); }
.sheet .sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--fill); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.sheet .sheet-close:hover { background: var(--fill-hover); }
.sheet h3 { padding-right: 2.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.photo-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.photo-slot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--fill); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot .main-label, .photo-slot .make-main {
  position: absolute; left: 6px; bottom: 6px; font: inherit; font-size: .68rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px; border: none; color: #fff; background: rgba(0, 0, 0, .55);
}
.photo-slot .main-label { background: var(--brand); }
.photo-slot .make-main { cursor: pointer; }
.photo-slot .remove {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer;
}
.photo-add {
  display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--muted);
  background: transparent; border: 2px dashed var(--separator); font-size: .8rem; line-height: 1.3;
  transition: border-color .2s, color .2s;
}
.photo-add:hover { border-color: var(--brand); color: var(--brand); }
.photo-add strong { font-size: 1.4rem; }
.photo-add input { display: none; }
.field.invalid .photo-slots .photo-add { border-color: var(--danger); }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
.gallery-main {
  position: relative; display: block; width: 100%; padding: 0; border: none; cursor: zoom-in;
  aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--fill);
}
.gallery-main:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.zoom-badge {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.zoom-badge svg { width: 20px; height: 20px; }

/* full-screen photo zoom */
.zoom-viewer { position: fixed; inset: 0; z-index: 300; background: rgba(8, 8, 10, .96); animation: fade .25s var(--ease); }
.zoom-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zoom-viewer.zoomed .zoom-stage { cursor: grab; }
.zoom-viewer.zoomed .zoom-stage:active { cursor: grabbing; }
.zoom-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none;
}
.zoom-close, .zoom-nav, .zoom-bar button {
  position: absolute; z-index: 1; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font: inherit; line-height: 1; transition: background .2s;
}
.zoom-close:hover, .zoom-nav:hover, .zoom-bar button:hover { background: rgba(255, 255, 255, .26); }
.zoom-close { top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.7rem; }
.zoom-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; padding-bottom: 4px; }
.zoom-nav.prev { left: 14px; }
.zoom-nav.next { right: 14px; }
.zoom-viewer.zoomed .zoom-nav { opacity: 0; pointer-events: none; }
.zoom-bar {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1;
  display: flex; align-items: center; gap: .75rem; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.zoom-bar button { position: static; width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; }
.zoom-count { color: #fff; font-size: .85rem; font-weight: 600; min-width: 84px; text-align: center; font-variant-numeric: tabular-nums; }
.zoom-hint {
  position: absolute; left: 0; right: 0; top: max(22px, env(safe-area-inset-top)); margin: 0; text-align: center; pointer-events: none;
  color: rgba(255, 255, 255, .7); font-size: .8rem; transition: opacity .3s;
}
.zoom-viewer.zoomed .zoom-hint { opacity: 0; }
@media (max-width: 640px) { .zoom-hint { padding: 0 64px; } .zoom-nav { width: 40px; height: 40px; } }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 60px; height: 60px; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--fill); border: 2px solid transparent; transition: border-color .2s;
}
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail .info h2 { margin: .6rem 0 .3rem; font-size: 1.6rem; }
.product-detail .desc { color: var(--text); white-space: pre-line; }
.contact-box { margin-top: 1.25rem; padding: 1rem; border-radius: var(--r-md); background: var(--brand-soft); }
.contact-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat .num { font-size: 2.4rem; font-weight: 750; letter-spacing: -.03em; }
.stat .label { color: var(--muted); font-size: .9rem; font-weight: 500; }
.stat.pending .num { color: var(--warn); }
.stat.approved .num { color: var(--ok); }
.stat.rejected .num { color: var(--danger); }

.tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 1.1rem; border-radius: 999px;
  max-width: 100%; overflow-x: auto;
}
.tabs button {
  border: none; background: none; padding: .5rem 1.1rem; border-radius: 999px;
  font: inherit; font-size: .95rem; font-weight: 550; color: var(--text); cursor: pointer; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.tabs button:hover { background: var(--fill); }
.tabs button.active { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 12px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .45); }

.request { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-bottom: .9rem; animation: pop .5s var(--ease) both; }
.request .details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .3rem 1rem;
  font-size: .9rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--separator);
}
.request .actions { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; min-width: 130px; }
.badge { font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.approved { background: var(--ok-soft); color: var(--ok); }
.badge.rejected { background: var(--danger-soft); color: var(--danger); }

.status-panel { text-align: center; max-width: 580px; margin: 1rem auto 0; padding: 2.5rem; border-radius: var(--r-xl); }
.status-panel .icon {
  width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 26px; font-size: 2.6rem;
  display: grid; place-items: center; background: var(--glass-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08), inset 0 1px 0 var(--glass-edge);
}
.status-panel hr { border: none; border-top: 1px solid var(--separator); margin: 1.5rem 0; }

/* ---------- sheet (modal) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .3s var(--ease);
}
.sheet {
  width: min(440px, 100%); padding: 1.75rem; border-radius: var(--r-xl);
  background: var(--glass-strong);
  animation: sheet-in .5s var(--ease);
}
.sheet h3 { font-size: 1.3rem; }
.sheet p { color: var(--muted); margin: .25rem 0 1.1rem; }
.sheet textarea {
  width: 100%; min-height: 90px; padding: .7rem 1rem; border: none; border-radius: var(--r-sm);
  font: inherit; color: var(--text); background: var(--fill); resize: vertical; margin-bottom: 1.1rem;
}
.sheet textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- accessibility fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--wall-base); --glass-strong: var(--wall-base); }
  .glass, .card, .site-header .inner, .tabs, .sheet, .btn.secondary, .search { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.25rem; }
  .hero p { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero-logo { max-width: 200px; order: -1; }
  .hero.compact { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; margin-bottom: 1.5rem; }
  .hero.compact .hero-logo { display: none; }
  .page-head .search { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding: 10px 10px 0; }
  .site-header .inner { border-radius: 22px; }
  .stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat { padding: 1.1rem; }
  .stat .num { font-size: 1.9rem; }
  .logo { font-size: 1.05rem; gap: .45rem; }
  .logo img { width: 30px; height: 30px; }
  .nav .who { display: none; }
  .nav .btn { min-height: 36px; padding: .35rem .9rem; font-size: .875rem; }
  .nav.guest { flex-wrap: nowrap; }
  .nav.guest .btn { padding: .35rem .75rem; }
  .theme-toggle { width: 36px; height: 36px; margin-left: 0; }
  .nav > a:not(.btn) { padding: .4rem .65rem; font-size: .875rem; }
  main { padding-top: 1.25rem; }
  .auth-card, .status-panel { padding: 1.5rem 1.25rem; }
  .request { grid-template-columns: 1fr; }
  .request .actions { flex-direction: row; }
  .request .actions .btn { flex: 1; }
  .form-grid, .product-detail { grid-template-columns: 1fr; }
  .photo-slots { grid-template-columns: repeat(3, 1fr); }
  .grid.products { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .product-card .body { padding: .8rem .85rem .9rem; }
  .row-actions { flex-direction: column; }
  .shop-head { flex-direction: column; padding: 1.25rem; }
  .page-head .head-actions { width: 100%; }
  .page-head .head-actions .btn { flex: 1; }}
