/* Mevinspire Storefront — fresh, modern design system (hand-authored).
   Semantic component classes (kept stable so templates don't change when a
   Tailwind build is later adopted — DECISIONS ADR-013). */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f172a;          /* slate-900 — headings, footer bg */
  --ink-soft: #334155;     /* slate-700 */
  --muted: #64748b;        /* slate-500 */
  --line: #e6eaf0;
  --brand: #0d9f6e;        /* solid emerald — buttons, accents, active states */
  --brand-dark: #0b8a5f;
  --brand-2: #10b981;      /* emerald-500 (kept for the few remaining gradient spots) */
  --brand-ink: #ffffff;
  --accent: #f59e0b;       /* amber for sale (legacy, mostly superseded by --danger) */
  --danger: #e0343f;       /* discount badges */
  --in: #0f9d58;
  --out: #e11d48;
  --grad: linear-gradient(120deg, #0d9488 0%, #10b981 55%, #34d399 100%);
  --grad-soft: linear-gradient(120deg, #ecfeff 0%, #f0fdf4 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(2, 32, 28, 0.07);
  --shadow-lg: 0 18px 50px rgba(2, 32, 28, 0.14);
  --maxw: 1180px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.page {
  font-family: var(--font);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.site-main { background: #ffffff; }
.section-title { font-family: var(--font-display, var(--font)); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 18px; }
:root { --font-display: "Fraunces", Georgia, serif; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: var(--brand); }
.muted { color: var(--muted); }

/* Utility bar (slim, dark, promo) */
.utilbar { background: var(--ink); color: #e2e8f0; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.utilbar__inner { display: flex; align-items: center; justify-content: center; height: 36px; gap: 16px; text-align: center; }
.utilbar__r { color: #94a3b8; }
@media (max-width: 640px) { .utilbar__r { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; height: 74px; gap: 22px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand__logo { display: block; height: 34px; width: auto; }
/* Logo file has dark text — give it a light chip on dark backgrounds so it stays legible. */
.site-footer .brand__logo, .admin-header .brand__logo {
  background: #fff; border-radius: 8px; padding: 6px 10px; height: 26px;
}

/* Centered pill search in header */
.hsearch { display: flex; flex: 1 1 auto; max-width: 520px; margin: 0 auto; position: relative; }
.hsearch input {
  font: inherit; width: 100%; padding: 12px 56px 12px 20px;
  border: 1px solid var(--line); border-radius: 999px; background: #f8fafc;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.hsearch input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13,159,110,0.13); }
.hsearch__btn {
  position: absolute; right: 5px; top: 5px; bottom: 5px; width: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--brand); color: #fff;
  border-radius: 50%; cursor: pointer;
}
.hsearch__btn:hover { background: var(--brand-dark); }
@media (max-width: 720px) { .hsearch { order: 3; flex-basis: 100%; max-width: none; } .site-header__inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; } }

.site-nav { display: flex; gap: 6px; align-items: center; margin-left: auto; white-space: nowrap; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.site-nav a:hover { background: #f0fdf7; color: var(--brand); }
.site-nav .navcart { background: var(--ink); color: #fff; padding: 10px; }
.site-nav .navcart:hover { background: var(--brand); color: #fff; }

/* Main + headings */
.site-main { flex: 1 0 auto; padding: 28px 22px 60px; }
.page-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 22px; }

/* Hero — white bg, bold two-line headline, image tiles on the right */
.hero {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center;
  padding: 44px 0 40px;
}
.hero--notiles { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; text-align: center; }
.hero--notiles .hero__cta, .hero--notiles .hero__stats { justify-content: center; }
.hero--notiles p { margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; color: var(--ink); }
.hero__accent { color: var(--brand); }
.hero p { font-size: 17px; max-width: 46ch; color: var(--muted); margin: 0 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.hero__stats span { font-size: 13px; color: var(--muted); }
.hero__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; }
.hero__tile {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: 18px;
  aspect-ratio: 4 / 5; background: var(--grad-soft); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero__tile--center { aspect-ratio: 3 / 5; }
.hero__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%); }
.hero__tile-label { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 15px; padding: 16px; letter-spacing: -0.01em; display: flex; flex-direction: column; gap: 2px; }
.hero__tile-label small { font-weight: 500; font-size: 12px; color: rgba(255,255,255,0.85); }
.hero__tile--noimg { background: linear-gradient(135deg, #0d9f6e 0%, #0b7a56 100%); }
.hero__tile--noimg::after { display: none; }
@media (max-width: 520px) { .hero__tiles { grid-template-columns: 1fr; } .hero__tile, .hero__tile--center { aspect-ratio: 16 / 10; } }

/* Category chip bar (under header) */
.catbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 26px; padding: 4px 0; }
.catbar__link {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.catbar__link:hover { color: var(--brand); border-color: var(--brand); }
.catbar__link--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.catbar__link--active:hover { color: #fff; }

/* Trust strip */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 4px 0 40px; padding: 20px 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.trust__item { display: flex; align-items: center; gap: 12px; padding: 2px 22px; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: none; }
.trust__ic { width: 22px; height: 22px; flex: none; color: var(--brand); }
.trust__ic svg { width: 100%; height: 100%; }
.trust__item strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.trust__item span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .trust__item:nth-child(2n) { border-left: 1px solid var(--line); }
  .trust__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* Testimonial pull-quote */
.quote {
  text-align: center; max-width: 760px; margin: 52px auto 12px; padding: 36px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.quote p { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--ink); }
.quote__by { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Product grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card--link { text-decoration: none; color: inherit; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #cdeee6; }
.card__media { aspect-ratio: 1 / 1; background: var(--grad-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .card__img { transform: scale(1.06); }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.card__eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.card__title { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.card__meta { font-size: 12px; color: var(--muted); margin: 0; }
.card__desc { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.card__price { font-size: 19px; font-weight: 800; margin: 4px 0 0; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; color: var(--ink); }
.card__mrp { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.card__taxnote { font-size: 11px; font-weight: 600; color: var(--muted); }
.card__stock { font-size: 12px; font-weight: 700; margin: 4px 0 0; display: inline-flex; align-items: center; gap: 6px; }
.card__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.card__stock--in { color: var(--in); }
.card__stock--out { color: var(--out); }
.sale-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--danger); color: #fff; font-weight: 800; font-size: 12px;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(224,52,63,0.35);
}

/* Product section (Best Sellers / New Arrivals / You May Also Like) */
.prodsection { margin: 44px 0; }
.prodsection__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.prodsection__eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin: 0 0 4px; }
.prodsection__head .section-title { margin: 0; }
.prodsection__viewall { color: var(--brand); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.prodsection__viewall:hover { text-decoration: underline; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs span:last-child { color: var(--ink-soft); font-weight: 600; }

/* Category/search listing layout: sidebar + grid */
.listing { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .listing { grid-template-columns: 1fr; } }
.listing__sidebar h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 22px 0 10px; }
.listing__sidebar h3:first-child { margin-top: 0; }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-list a { display: block; padding: 7px 0; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; }
.sidebar-list a:hover { color: var(--brand); }
.sidebar-list a.sidebar-list__active { color: var(--brand); font-weight: 700; }
.sidebar-filter { margin: 0; }
.listing__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.listing__head .page-title { margin: 0 0 4px; }
.listing__head .muted { margin: 0; font-size: 13.5px; }
.sortform select { font: inherit; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink); border: none; border-radius: 999px;
  padding: 12px 22px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; box-shadow: 0 8px 20px rgba(13,159,110,0.24); transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-dark); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* Footer */
.site-footer { flex-shrink: 0; background: var(--ink); color: #cbd5e1; padding: 52px 0 0; font-size: 14px; }
.site-footer .brand, .site-footer .brand__sub { color: #fff; }
.site-footer .brand__sub { color: #6ee7b7; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.footer-brand p { color: #94a3b8; max-width: 36ch; margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; }
.footer-brand__legal { font-size: 12.5px; color: #64748b; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.footer-col a, .footer-col span { display: block; color: #cbd5e1; text-decoration: none; padding: 5px 0; font-size: 14px; }
.footer-col a:hover { color: #6ee7b7; }
.footer-col span { color: #94a3b8; cursor: default; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 22px; font-size: 12.5px; color: #94a3b8; }

/* Product detail */
.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }
.product__main { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--line); border-radius: 20px; background: var(--grad-soft); display: block; box-shadow: var(--shadow); }
.product__main--empty { background: var(--grad-soft); }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumb { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.product__eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brand); margin: 0 0 8px; }
.product__title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.product__meta { font-size: 13px; margin: 0 0 18px; }
.product__priceblock { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.product__price { font-size: 30px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; color: var(--ink); }
.product__mrp { font-size: 18px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.product__save { font-size: 14px; font-weight: 700; color: var(--in); }
.product__taxline { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.pricebreak { display: flex; gap: 24px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.pricebreak div { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.pricebreak strong { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.product__stock { font-weight: 700; margin: 0 0 18px; }
.product__stock.card__stock--in { color: var(--in); }
.product__stock.card__stock--out { color: var(--out); }
.product__desc { white-space: pre-line; color: var(--ink-soft); margin: 0 0 22px; font-size: 15px; }
.addcart { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin: 0 0 22px; }
.qtystep { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qtystep__btn { font: inherit; font-size: 18px; font-weight: 700; width: 42px; height: 42px; border: none; background: #f8fafc; color: var(--ink); cursor: pointer; }
.qtystep__btn:hover { background: #eef2f7; }
.addcart .qty { width: 52px; height: 42px; font: inherit; font-weight: 700; text-align: center; padding: 0; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); -moz-appearance: textfield; }
.addcart .qty::-webkit-outer-spin-button, .addcart .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addcart__actions { display: flex; gap: 12px; flex-wrap: wrap; width: 100%; }
.addcart__actions .btn { flex: 1 1 160px; }
.btn--dark { background: var(--ink); box-shadow: 0 8px 20px rgba(15,23,42,0.22); }
.btn--dark:hover { background: #1e293b; }

/* PDP trust grid */
.trustgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 26px; padding: 20px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); }
.trustgrid__item { display: flex; align-items: flex-start; gap: 10px; }
.trustgrid__ic { font-size: 18px; line-height: 1; }
.trustgrid__item strong { display: block; font-size: 13.5px; font-weight: 700; }
.trustgrid__item span { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .trustgrid { grid-template-columns: 1fr; } }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion:last-of-type { border-bottom: 1px solid var(--line); }
.accordion__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink);
  padding: 16px 2px; cursor: pointer; text-align: left;
}
.accordion__body { padding: 0 2px 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* Panels / tables (shared with admin) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 14px; font-size: 17px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.num { text-align: right; }

/* Cart + checkout + order */
.cart-table .qtyform { display: flex; gap: 6px; align-items: center; margin: 0; }
.cart-table .qty { width: 66px; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.cart-total { margin: 0; font-size: 16px; }
.checkout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }
@media (max-width: 760px) { .checkout { grid-template-columns: 1fr; } }
.order-confirm .lead { font-size: 19px; }
.order-totals { margin-top: 14px; max-width: 340px; margin-left: auto; }
.order-totals > div { display: flex; justify-content: space-between; padding: 5px 0; }
.order-totals__grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px !important; font-weight: 800; font-size: 18px; }
.pay-panel .pay-methods, .pay-methods { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pay-method { margin: 0; }
.paid-badge { display: inline-block; background: #dcfce7; color: var(--in); border: 1px solid #bbf7d0; border-radius: 999px; padding: 7px 16px; font-weight: 700; }

/* Forms / auth */
.form { display: flex; flex-direction: column; gap: 15px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13,148,136,0.13); }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 160px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.form-actions { margin-top: 6px; }
.form-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.flash { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.product-context { background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 3px; }
.auth-card { max-width: 430px; margin: 0 auto; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; width: 380px; max-width: calc(100vw - 40px); box-shadow: var(--shadow-lg); margin: 6vh auto; }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.badge--published { background: #dcfce7; color: #166534; }
.badge--draft { background: #f1f5f9; color: var(--muted); }
.badge--archived { background: #fee2e2; color: #b91c1c; }

/* Image management */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.img-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.img-tile--primary { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(13,148,136,0.25); }
.img-tile__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--grad-soft); }
.img-tile__img--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.img-grid--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.img-tile__actions { display: flex; align-items: center; gap: 6px; padding: 8px; flex-wrap: wrap; }
.img-tile__actions form { margin: 0; }
.img-tile__src { padding: 0 8px 8px; font-size: 11px; }
.img-add-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.img-add { display: flex; gap: 10px; align-items: flex-end; margin: 0; }
/* Narrow card context (category tiles): stack instead of overflowing sideways. */
.img-tile .img-add { flex-direction: column; align-items: stretch; gap: 6px; padding: 0 8px 8px; }
.img-tile .img-add input[type="file"] { max-width: 100%; }
.img-tile .img-tile__actions { padding-top: 0; }

/* Invoice (printable) */
.invoice-body { background: #fff; color: #111; font-family: var(--font); }
.invoice { max-width: 800px; margin: 24px auto; padding: 0 24px; }
.invoice__head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #111; padding-bottom: 12px; }
.invoice__seller { font-size: 18px; font-weight: 800; }
.invoice__title h1 { margin: 0; font-size: 20px; letter-spacing: 0.05em; }
.invoice__buyer { margin: 16px 0; }
.invoice__lines { margin: 16px 0; }
.invoice__note { margin-top: 18px; font-size: 12px; }
.invoice__actions { margin-top: 20px; display: flex; gap: 10px; }
@media print { .no-print { display: none !important; } .invoice { margin: 0; } body.invoice-body { font-size: 12px; } }

/* Admin */
.admin { background: var(--bg); }
.admin-header { background: var(--ink); color: #fff; }
.admin-header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.admin-header .brand { color: #fff; }
.admin-header .brand__sub { color: #6ee7b7; }
.admin-nav { display: flex; gap: 16px; margin-left: 24px; margin-right: auto; }
.admin-nav a { color: #cbd5e1; text-decoration: none; font-weight: 600; }
.admin-nav a:hover { color: #fff; }
.admin-main { padding: 28px 22px 48px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: 24px; }
.logout-form { margin: 0; }
.admin--login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
