/* =====================================================================
   Daily Lemon — stylesheet
   Palette: lemon yellow, light zest, white, fresh green
   Type: Fraunces (display) + DM Sans (interface)
   ===================================================================== */

:root {
  --lemon:      #FFC91B;
  --lemon-deep: #E8AE00;
  --zest:       #FFF3C4;
  --pith:       #FFFDF6;
  --white:      #FFFFFF;
  --leaf:       #1F7A4C;
  --leaf-soft:  #E4F3EA;
  --ink:        #22260F;
  --ink-soft:   #5C6047;
  --line:       #E8E4D2;
  --danger:     #B3261E;
  --danger-soft:#FCEDEC;
  --warn:       #8A5A00;
  --warn-soft:  #FFF0CC;

  --radius:      14px;
  --radius-lg:   24px;
  --shadow:      0 10px 30px -18px rgba(34, 38, 15, .45);
  --shadow-lift: 0 18px 44px -22px rgba(34, 38, 15, .55);
  --wrap:        1180px;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--pith);
}

img { max-width: 100%; display: block; }
a   { color: var(--leaf); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- */
/* Layout primitives                                                 */
/* ---------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: 2.5rem 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right  { text-align: right; }

.section-head {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: end; justify-content: space-between;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }
.section-head p  { margin: .25rem 0 0; color: var(--ink-soft); }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--lemon); color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--lemon-deep); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

.btn--leaf  { background: var(--leaf); color: #fff; }
.btn--leaf:hover { background: #17603b; }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--pith); }
.btn--quiet { background: var(--white); border-color: var(--line); font-weight: 600; }
.btn--quiet:hover { background: var(--zest); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8f1e17; }
.btn--sm { padding: .45rem .9rem; font-size: .82rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- */
/* Header                                                            */
/* ---------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 246, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__bar {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }

.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--leaf); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.cart-btn { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; background: var(--zest); color: var(--ink); font-weight: 600; font-size: .9rem; }
.cart-btn:hover { background: var(--lemon); text-decoration: none; }
.cart-btn__count { min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 999px; background: var(--leaf); color: #fff; font-size: .72rem; font-weight: 700; padding: 0 .35rem; }

.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: .45rem .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    order: 4; width: 100%; flex-direction: column; align-items: stretch;
    gap: .25rem; margin: 0; padding: .75rem 0 .25rem;
    border-top: 1px solid var(--line);
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: .55rem 0; }
  .nav-actions { margin-left: auto; }
}

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--lemon) 0%, #FFDE6A 55%, var(--zest) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2.5rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero h1 { margin-bottom: .35em; }
.hero__lead { font-size: 1.1rem; color: #4A4A22; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; }
.hero__fact strong { display: block; font-family: var(--display); font-size: 1.6rem; }
.hero__fact span { font-size: .85rem; color: #56561F; }
.hero__art { justify-self: center; width: min(100%, 380px); }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__art { max-width: 260px; }
}

.ribbon {
  background: var(--leaf); color: #fff;
  font-size: .88rem; text-align: center; padding: .55rem 1rem;
}
.ribbon a { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------- */
/* Product cards                                                     */
/* ---------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: var(--lemon); }

.card__media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--zest);
  display: grid; place-items: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .placeholder { width: 62%; }

.card__flag {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--leaf); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  padding: .25rem .6rem; border-radius: 999px;
}
.card__flag--out { background: var(--ink); }

.card__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.card__cat { font-size: .78rem; color: var(--leaf); font-weight: 600; }
.card__title { font-family: var(--display); font-size: 1.15rem; margin: 0; }
.card__title a { color: var(--ink); }
.card__desc { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.card__foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.price small { font-family: var(--body); font-size: .72rem; color: var(--ink-soft); font-weight: 500; display: block; }

.stock-note { font-size: .78rem; color: var(--ink-soft); }
.stock-note--low { color: var(--warn); font-weight: 600; }
.stock-note--out { color: var(--danger); font-weight: 600; }

/* ---------------------------------------------------------------- */
/* Category chips, filters                                           */
/* ---------------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font-size: .88rem; font-weight: 500;
}
.chip:hover { background: var(--zest); text-decoration: none; }
.chip.is-active { background: var(--ink); color: var(--pith); border-color: var(--ink); }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.panel h3 { font-size: 1rem; margin-bottom: .75rem; }
.panel + .panel { margin-top: 1rem; }

/* ---------------------------------------------------------------- */
/* Forms                                                             */
/* ---------------------------------------------------------------- */

.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.input, .select, .textarea, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="date"], input[type="search"], input[type="file"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px var(--leaf-soft); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.checkline { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.checkline input { width: auto; }
.hint { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }

/* ---------------------------------------------------------------- */
/* Alerts and badges                                                 */
/* ---------------------------------------------------------------- */

.alerts { position: fixed; top: 1rem; right: 1rem; z-index: 90; display: grid; gap: .5rem; width: min(360px, calc(100vw - 2rem)); }
.alert {
  padding: .8rem 1rem; border-radius: 12px; font-size: .9rem;
  box-shadow: var(--shadow); border: 1px solid;
  display: flex; gap: .6rem; align-items: start;
}
.alert--success { background: var(--leaf-soft); border-color: #BFE3CE; color: #14532D; }
.alert--error   { background: var(--danger-soft); border-color: #F3C9C6; color: #7F1D1A; }
.alert__close { margin-left: auto; background: none; border: 0; cursor: pointer; font-size: 1.1rem; line-height: 1; color: inherit; }

.notice { padding: 1rem 1.15rem; border-radius: 12px; background: var(--zest); border: 1px solid #F2E1A3; font-size: .92rem; }
.notice--warn  { background: var(--warn-soft); border-color: #F0D89A; }
.notice--error { background: var(--danger-soft); border-color: #F3C9C6; }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge--good  { background: var(--leaf-soft); color: #14532D; }
.badge--warn  { background: var(--warn-soft); color: var(--warn); }
.badge--info  { background: #E3EEF9; color: #1B4A73; }
.badge--bad   { background: var(--danger-soft); color: #7F1D1A; }
.badge--muted { background: #EDEBE0; color: var(--ink-soft); }

/* ---------------------------------------------------------------- */
/* Tables                                                            */
/* ---------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: .78rem; font-weight: 700; color: var(--ink-soft); background: var(--pith); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #FFFCEE; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.empty { padding: 3rem 1.5rem; text-align: center; color: var(--ink-soft); }
.empty h3 { font-family: var(--display); color: var(--ink); }

/* ---------------------------------------------------------------- */
/* Pagination                                                        */
/* ---------------------------------------------------------------- */

.pager { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; }
.pager a {
  padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: .88rem; font-weight: 600;
}
.pager a:hover { background: var(--zest); text-decoration: none; }
.pager a.is-current { background: var(--ink); color: var(--pith); border-color: var(--ink); }

/* ---------------------------------------------------------------- */
/* Product detail                                                    */
/* ---------------------------------------------------------------- */

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 2rem; } }

.product__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--zest); aspect-ratio: 1; display: grid; place-items: center; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media .placeholder { width: 60%; }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; }
.thumbs button { width: 72px; height: 72px; border-radius: 12px; border: 2px solid var(--line); overflow: hidden; padding: 0; background: var(--zest); cursor: pointer; }
.thumbs button.is-active { border-color: var(--leaf); }

.sizes { display: grid; gap: .6rem; margin: 1.25rem 0; }
.size-option {
  display: flex; align-items: center; gap: .8rem;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; cursor: pointer;
}
.size-option:hover { border-color: var(--lemon); }
.size-option input { width: auto; margin: 0; accent-color: var(--leaf); }
.size-option.is-selected { border-color: var(--leaf); background: var(--leaf-soft); }
.size-option.is-disabled { opacity: .5; cursor: not-allowed; }
.size-option__price { margin-left: auto; font-weight: 700; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 40px; height: 42px; border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--zest); }
.qty input { width: 52px; border: 0; text-align: center; padding: .55rem 0; font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- */
/* Cart and checkout                                                 */
/* ---------------------------------------------------------------- */

.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.line-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item__thumb { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--zest); display: grid; place-items: center; }
.line-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item__thumb .placeholder { width: 66%; }
.line-item h4 { margin: 0 0 .15rem; font-family: var(--display); font-size: 1.05rem; }
.line-item__meta { font-size: .84rem; color: var(--ink-soft); }
.line-item__controls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: end; }
@media (max-width: 620px) {
  .line-item { grid-template-columns: 64px 1fr; }
  .line-item__thumb { width: 64px; height: 64px; }
  .line-item__controls { grid-column: 1 / -1; justify-content: start; }
}

.summary { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.summary h3 { font-size: 1.15rem; }
.summary__row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .93rem; }
.summary__row--total { border-top: 2px solid var(--ink); margin-top: .6rem; padding-top: .8rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }

.steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; font-size: .85rem; color: var(--ink-soft); }
.steps span.is-current { color: var(--ink); font-weight: 700; }

.pay-option { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; cursor: pointer; margin-bottom: .75rem; }
.pay-option.is-selected { border-color: var(--leaf); background: var(--leaf-soft); }
.pay-option__head { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.pay-option__head input { width: auto; accent-color: var(--leaf); }
.pay-option p { margin: .4rem 0 0 1.6rem; font-size: .86rem; color: var(--ink-soft); }
.pay-fields { margin: .85rem 0 0 1.6rem; }

/* ---------------------------------------------------------------- */
/* Why-us / reviews / promo                                          */
/* ---------------------------------------------------------------- */

.feature { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.feature svg { width: 34px; height: 34px; color: var(--leaf); margin-bottom: .6rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.promo {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
  background: var(--ink); color: var(--pith);
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
}
.promo h2 { color: var(--pith); }
.promo p  { color: #D6D6C0; }
.promo__price { font-family: var(--display); font-size: clamp(3rem, 8vw, 5rem); color: var(--lemon); line-height: 1; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }

.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.quote p { font-family: var(--display); font-size: 1.08rem; margin-bottom: 1rem; }
.quote footer { font-size: .85rem; color: var(--ink-soft); }
.stars { color: var(--lemon-deep); letter-spacing: .1em; font-size: .95rem; }

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

.footer { background: var(--ink); color: #D6D6C0; margin-top: 4rem; padding: 3.5rem 0 2rem; }
.footer a { color: #D6D6C0; }
.footer a:hover { color: var(--lemon); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--pith); font-family: var(--body); font-size: .85rem; font-weight: 700; margin-bottom: .75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .9rem; }
.footer__brand { display: flex; align-items: center; gap: .6rem; color: var(--pith); font-family: var(--display); font-size: 1.3rem; }
.footer__brand svg { width: 32px; height: 32px; }
.footer__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #3A3E22; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* =====================================================================
   Admin dashboard
   ===================================================================== */

.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin__side {
  background: var(--ink); color: #D6D6C0;
  padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin__brand { display: flex; align-items: center; gap: .6rem; color: var(--pith); font-family: var(--display); font-size: 1.2rem; margin-bottom: 1.5rem; }
.admin__brand svg { width: 30px; height: 30px; }
.admin__nav { display: grid; gap: .15rem; }
.admin__nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .75rem; border-radius: 10px;
  color: #D6D6C0; font-size: .92rem; font-weight: 500;
}
.admin__nav a:hover { background: #333722; color: var(--pith); text-decoration: none; }
.admin__nav a.is-active { background: var(--lemon); color: var(--ink); font-weight: 700; }
.admin__nav .group { margin: 1rem 0 .35rem; font-size: .7rem; font-weight: 700; color: #8A8E6E; padding-left: .75rem; }
.admin__nav .pill { margin-left: auto; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; }

.admin__main { padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 3rem; background: var(--pith); min-width: 0; }
.admin__top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.admin__top h1 { font-size: 1.85rem; margin: 0; }
.admin__who { font-size: .85rem; color: var(--ink-soft); }

.admin-toggle { display: none; }
@media (max-width: 940px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; }
  .admin__nav { display: none; }
  .admin__side.is-open .admin__nav { display: grid; }
  .admin-toggle { display: inline-flex; margin-left: auto; background: #333722; color: var(--pith); border: 0; border-radius: 8px; padding: .4rem .7rem; cursor: pointer; }
  .admin__brand { margin-bottom: 0; }
  .admin__head-row { display: flex; align-items: center; gap: 1rem; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat__label { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.stat__value { font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-top: .2rem; }
.stat__meta { font-size: .78rem; color: var(--ink-soft); }
.stat--accent { background: var(--lemon); border-color: var(--lemon-deep); }
.stat--leaf { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.stat--leaf .stat__label, .stat--leaf .stat__meta { color: #D6EFE0; }

.card-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.card-block__head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-block__head h2, .card-block__head h3 { margin: 0; font-size: 1.1rem; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.filters .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.filters .field label { font-size: .75rem; }

/* Chart drawn with plain CSS bars, no chart library needed. */
.chart { display: flex; align-items: flex-end; gap: .35rem; height: 200px; padding-top: 1rem; }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; min-width: 0; }
.chart__bar { width: 100%; max-width: 34px; background: var(--lemon); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; }
.chart__col:hover .chart__bar { background: var(--leaf); }
.chart__label { font-size: .66rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chart__value { font-size: .66rem; font-weight: 700; color: var(--ink-soft); }

.bar-list { display: grid; gap: .75rem; }
.bar-list__row { font-size: .88rem; }
.bar-list__top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.bar-list__track { height: 8px; border-radius: 999px; background: var(--zest); overflow: hidden; }
.bar-list__fill { height: 100%; background: var(--leaf); border-radius: 999px; }

.inline-form { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 80px; padding: .4rem .6rem; font-size: .85rem; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .87rem; color: var(--ink); font-weight: 600; }
.tabs a.is-active { background: var(--ink); color: var(--pith); border-color: var(--ink); }
.tabs a:hover { text-decoration: none; }

.thumb-sm { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--zest); }

.receipt-link img { max-width: 240px; border-radius: 10px; border: 1px solid var(--line); }

@media print {
  .masthead, .footer, .admin__side, .btn, .filters, .alerts { display: none !important; }
  .admin { grid-template-columns: 1fr; }
  body { background: #fff; }
}
