/* Superdeals design system — grocery + beauty, Whole Foods-inspired */
:root {
  --forest: #00674f;
  --forest-deep: #004c3f;
  --forest-soft: #0e8a68;
  --leaf: #d4eee4;
  --cream: #f6f4ef;
  --cream-2: #efebe3;
  --sand: #e4d5bc;
  --ink: #1a1a1a;
  --muted: #5b6b64;
  --line: rgba(26, 26, 26, 0.12);
  --white: #ffffff;
  --blush: #f1d6ce;
  --gold: #c4a574;
  --danger: #9b2c2c;
  --shadow: 0 12px 32px rgba(0, 76, 63, 0.08);
  --radius: 6px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Utility bar */
.util-bar {
  background: var(--forest-deep);
  color: #e7f3ec;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.util-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 40px;
}
.util-bar a { color: #e7f3ec; opacity: 0.9; }
.util-links a { display: inline-flex; align-items: center; gap: 6px; }
.util-bar a:hover { opacity: 1; }
.util-links { display: flex; gap: 22px; flex-wrap: wrap; }
.util-right { display: flex; align-items: center; gap: 16px; }

/* Language & currency */
.locale-dock { display: flex; align-items: center; gap: 8px; }
.locale-dd { position: relative; }
.locale-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: inherit;
  border-radius: 999px;
  padding: 5px 10px 5px 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.locale-btn:hover, .locale-dd.open .locale-btn {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
}
.locale-code { font-variant: small-caps; }
.locale-chev { opacity: 0.7; }
.locale-dd.open .locale-chev { transform: rotate(180deg); }
.locale-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 260px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 80;
  border: 1px solid var(--line);
}
.locale-menu-wide { min-width: 300px; }
.locale-dd.open .locale-menu { display: grid; gap: 4px; }
.locale-menu-label {
  margin: 4px 10px 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.locale-option {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
}
.locale-option small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.locale-option strong { font-size: 14px; font-weight: 600; }
.locale-option em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.locale-option:hover, .locale-option.is-on { background: var(--cream); }
.locale-check { color: var(--forest); font-weight: 700; }
.flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  flex-shrink: 0;
  display: block;
}
.flag-us {
  background:
    linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 38% 54% no-repeat,
    repeating-linear-gradient(#fff, #fff 1.15px, #b22234 1.15px, #b22234 2.3px);
}
.flag-fr { background: linear-gradient(90deg, #002395 33.33%, #fff 33.33% 66.66%, #ed2939 66.66%); }
.flag-sn { background: linear-gradient(90deg, #00853f 33.33%, #fdef42 33.33% 66.66%, #e31b23 66.66%); }

.locale-dock-light .locale-btn {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.locale-dock-light .locale-btn:hover,
.locale-dock-light .locale-dd.open .locale-btn {
  border-color: var(--forest);
  background: var(--cream);
}
.locale-float {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
}
.auth-shell, .soon-shell, .install-shell { position: relative; }

.util-bar { z-index: 50; position: relative; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand search actions";
  gap: 28px;
  align-items: center;
  padding: 14px 0;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  grid-area: brand;
}
.search { grid-area: search; }
.header-actions { grid-area: actions; }
.menu-toggle { grid-area: menu; }
.brand-logo img {
  height: 58px;
  width: auto;
  max-width: min(280px, 46vw);
  object-fit: contain;
  display: block;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: transparent;
}
.brand-icon img {
  height: 72px;
  width: auto;
  display: block;
  background: transparent;
}
.brand-logo-lg img {
  height: auto;
  width: min(420px, 100%);
  max-width: 100%;
}
.brand-logo-on-dark {
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
}
.admin-side .brand-logo {
  display: block;
  margin: 0 4px 18px;
  padding: 10px 8px;
  background: #fff;
  border-radius: 14px;
}
.admin-side .brand-logo img {
  height: auto;
  width: 100%;
  max-width: 100%;
}
.soon-card .brand-logo,
.auth-card .brand-logo,
.install-card .brand-logo {
  justify-content: center;
  width: 100%;
  margin-bottom: 8px;
}
.search {
  display: flex;
  align-items: center;
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  padding-left: 14px;
  min-height: 48px;
  grid-area: search;
}
.search .ico { flex-shrink: 0; color: var(--muted); }
.search:focus-within { border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(0,103,79,.12); }
.search input {
  flex: 1; border: 0; background: transparent; padding: 12px 14px; outline: none; font-size: 16px;
}
.search button {
  align-self: stretch; border: 0; background: var(--forest); color: #fff; padding: 0 22px; cursor: pointer; font-weight: 600;
}
.header-actions { display: flex; align-items: center; gap: 8px; grid-area: actions; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; font-size: 14px; font-weight: 600;
}
.icon-btn:hover { background: var(--cream); }
.bag-count {
  background: var(--forest); color: #fff; border-radius: 99px;
  min-width: 20px; height: 20px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700;
}

/* Dept nav + mega */
.dept-nav { border-top: 1px solid var(--line); background: var(--white); }
.dept-list {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto;
}
.dept-list > li { position: relative; }
.dept-list > li > a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  white-space: nowrap; color: var(--ink);
  border-bottom: 3px solid transparent;
}
.dept-list > li > a:hover, .dept-list > li:hover > a { color: var(--forest); border-bottom-color: var(--forest); }
.mega {
  display: none;
  position: absolute; left: 0; top: 100%;
  width: min(720px, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  z-index: 50;
}
.dept-list > li:hover .mega, .dept-list > li:focus-within .mega { display: grid; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.mega-links a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); }
.mega-links a:hover { color: var(--forest); }
.mega-card {
  border-radius: 16px; overflow: hidden; min-height: 180px;
  background: var(--forest) center/cover no-repeat; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.mega-card p { margin: 0; font-size: 13px; opacity: 0.9; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px;
  padding: 28px 0 10px;
}
.hero-main {
  position: relative; border-radius: 12px; overflow: hidden; min-height: 460px;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px;
  background: #004c3f center/cover no-repeat;
}
.hero-main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,40,31,0.05), rgba(6,40,31,0.72));
}
.hero-main > * { position: relative; z-index: 1; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600; margin: 0 0 10px;
}
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 0.95; margin: 0 0 14px; max-width: 12ch; }
.hero p.lede { max-width: 46ch; margin: 0 0 22px; font-size: 17px; }
.hero-side { display: grid; gap: 22px; }
.promo-card {
  border-radius: 12px; overflow: hidden; min-height: 218px; color: #fff;
  padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  background: #00674f center/cover no-repeat; position: relative;
}
.promo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6,40,31,0.7));
}
.promo-card > * { position: relative; z-index: 1; }
.promo-card h2 { font-size: 28px; margin: 0 0 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 8px; font-weight: 700; cursor: pointer;
  font-size: 15px;
}
.btn:hover { background: var(--forest-deep); }
.btn-light { background: #fff; color: var(--forest); }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-danger { background: var(--danger); color: #fff; }

/* Sections */
.section { padding: 56px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(28px, 3vw, 40px); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.cat-tile {
  position: relative; border-radius: 12px; overflow: hidden; min-height: 280px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  background: var(--forest) center/cover no-repeat;
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(6,40,31,0.78));
}
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile h3 { margin: 0 0 6px; font-size: 30px; }
.cat-tile span { font-size: 13px; opacity: 0.9; }

.subcat-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 28px; }
.chip {
  background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.chip:hover, .chip.is-on { background: var(--forest); color: #fff; border-color: var(--forest); }
.chip.danger { background: #fde8e8; color: var(--danger); border-color: transparent; }
.chip.danger:hover { background: var(--danger); color: #fff; }

.product-grid, .recipe-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.product-card, .recipe-card {
  background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; color: inherit;
}
.product-card h3 a { color: inherit; }
.product-card:hover, .recipe-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.product-card img, .recipe-card img { width: 100%; height: 220px; object-fit: contain; background: #f3f1ec; padding: 12px; }
.product-body, .recipe-card .pad { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3, .recipe-card h3 { margin: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.price { font-weight: 700; color: var(--ink); font-size: 16px; }
.product-card .btn { width: 100%; margin-top: 8px; padding: 10px 12px; font-size: 14px; }
.compare { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }

.split {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: stretch;
}
.panel {
  background: var(--forest-deep); color: #eaf6ef; border-radius: 12px; padding: 40px;
}
.panel h2 { font-size: 40px; margin: 0 0 12px; }
.store-list { display: grid; gap: 12px; }
.store-item {
  background: #fff; border-radius: 8px; padding: 18px 18px 16px; border: 1px solid var(--line);
}

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.crumbs a { color: var(--forest); font-weight: 600; }
.crumbs span { opacity: .6; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 12px 0 48px; align-items: start; }
.pdp-image { border-radius: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pdp-image img { width: 100%; height: min(560px, 70vw); object-fit: contain; padding: 36px; background: #fff; }
.pdp-info .kicker { color: var(--forest); margin-bottom: 6px; }
.pdp h1 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 10px; line-height: 1.15; }
.pdp-price { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.pdp-lead { font-size: 16px; color: var(--muted); margin: 0 0 18px; max-width: 46ch; }
.pdp-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 8px 0 18px; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty-step button { width: 40px; height: 44px; border: 0; background: var(--cream); cursor: pointer; font-size: 18px; font-weight: 700; }
.qty-step input { width: 56px; border: 0; text-align: center; font-weight: 700; padding: 10px 0; }
.pdp-buy .btn { height: 44px; min-width: 180px; font-size: 16px; }
.pdp-fulfill { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
.pdp-fulfill div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--cream); }
.pdp-fulfill strong { display: block; font-size: 13px; }
.pdp-fulfill span { font-size: 13px; color: var(--muted); }
.pdp-meta { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.pdp-acc { border-top: 1px solid var(--line); }
.pdp-acc details { border-bottom: 1px solid var(--line); }
.pdp-acc summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: "+"; color: var(--forest); font-weight: 500; }
.pdp-acc details[open] summary::after { content: "–"; }
.pdp-acc details > :not(summary) { padding: 0 0 18px; color: var(--muted); white-space: pre-wrap; }
.qty { width: 80px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); }

/* Cart / checkout / forms */
.form-grid { display: grid; gap: 14px; }
label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel],
select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; font-size: 15px;
}
textarea { min-height: 110px; resize: vertical; }
.flash {
  border-radius: 6px; padding: 12px 16px; margin: 16px 0; font-size: 14px;
}
.flash-success { background: #e5f4ea; color: #0f4f3c; }
.flash-error { background: #fde8e8; color: #9b2c2c; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--cream-2); }

#map { height: 480px; border-radius: 24px; overflow: hidden; background: var(--cream-2); }

/* Footer */
.site-footer { background: var(--forest-deep); color: #d7ebe1; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-family: var(--sans); letter-spacing: 0; font-size: 14px; text-transform: uppercase; }
.site-footer a { color: #d7ebe1; display: block; padding: 4px 0; font-size: 14px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.legal { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 16px; font-size: 13px; opacity: 0.75; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-head { padding: 28px 0 8px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 44px); }

.account-shell { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 28px 0 72px; align-items: start; }
.account-nav { background: var(--cream); border-radius: 12px; padding: 10px; position: sticky; top: 92px; }
.account-nav a, .account-nav button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.account-nav a.is-on, .account-nav a:hover, .account-nav button:hover { background: #fff; color: var(--forest); }
.account-hello { margin: 0 0 8px; font-size: clamp(28px, 3vw, 36px); }
.account-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 24px; }
.account-stat { background: var(--cream); border-radius: 10px; padding: 16px 18px; }
.account-stat span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.account-stat b { font-size: 22px; }
.account-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.account-card {
  display: block; border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; background: #fff;
}
.account-card:hover { border-color: var(--forest); box-shadow: var(--shadow); }
.account-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.account-card p { margin: 0; color: var(--muted); font-size: 13px; }
.order-card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; background: #fff;
}
.order-card .status { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--forest); }
.purchase-meta { font-size: 12px; color: var(--muted); }

.page-title { font-size: clamp(32px, 4vw, 48px); margin: 0 0 12px; line-height: 1.12; }
.shop-page, .bag-page, .check-page { padding: 28px 0 72px; }
.shop-lede { max-width: 52ch; margin: 0 0 22px; }
.empty-state { padding: 28px 0 12px; display: grid; gap: 16px; justify-items: start; }

.product-card .chip {
  border: 0; background: transparent; color: var(--forest); padding: 4px 0; border-radius: 0; align-self: flex-start;
}
.product-card .chip:hover { background: transparent; color: var(--forest-deep); text-decoration: underline; }

.bag-layout, .check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: start;
}
.bag-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.bag-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.bag-thumb {
  width: 96px; height: 96px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.bag-thumb img { width: 100%; height: 96px; object-fit: contain; padding: 8px; }
.bag-info h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.bag-info .price { margin: 6px 0 10px; }
.bag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bag-sum { font-weight: 700; font-size: 16px; }
.bag-summary {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  position: sticky;
  top: 100px;
  display: grid;
  gap: 12px;
}
.bag-summary h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 18px; letter-spacing: 0; }
.bag-summary .btn, .bag-summary .btn-ghost { width: 100%; }
.bag-summary .btn-ghost { padding: 11px 18px; border-radius: 8px; text-align: center; }
.sum-row, .sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; }
.check-form { max-width: none; }
.linkish {
  border: 0; background: none; color: var(--forest); font-weight: 600; cursor: pointer; padding: 0; font-size: 13px;
}
.linkish.danger { color: var(--danger); }
.qty-step .linkish { padding: 0 10px; }

.account-panel { border-radius: 8px; border: 1px solid var(--line); box-shadow: none; }
.account-panel h2 { margin-top: 0; font-size: 20px; }
.chat-thread {
  border: 1px solid var(--line); border-radius: 8px; padding: 16px; max-height: 420px; overflow: auto;
  display: grid; gap: 14px; background: #fff; margin-bottom: 18px;
}
.chat-msg p { margin: 6px 0 0; }
.chat-compose { max-width: 560px; }
.order-total { font-size: 18px; margin: 18px 0 28px; }
.section-sub { font-size: 22px; margin: 0 0 12px; }
.track-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.pdp-info .chip { border: 0; background: transparent; color: var(--forest); padding: 0; }
.pdp-info .chip:hover { background: transparent; text-decoration: underline; }

@media (max-width: 980px) {
  .bag-layout, .check-layout { grid-template-columns: 1fr; }
  .bag-summary { position: static; }
  .bag-line { grid-template-columns: 80px minmax(0, 1fr); }
  .bag-sum { grid-column: 2; }
}

@media (max-width: 980px) {
  .pdp, .pdp-fulfill, .account-shell, .account-cards, .account-stats { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .account-nav a, .account-nav button { width: auto; white-space: nowrap; }
}

/* Auth / install / coming soon */
.auth-shell, .install-shell, .soon-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background:
    radial-gradient(1200px 500px at 10% -10%, #cfe8d8, transparent 50%),
    radial-gradient(900px 400px at 100% 0%, #f1d6ce, transparent 45%),
    var(--cream);
}
.auth-card, .install-card {
  width: min(560px, 100%); background: #fff; border-radius: 28px; padding: 36px;
  box-shadow: var(--shadow);
}
.install-card { width: min(760px, 100%); }
.steps { display: flex; gap: 8px; margin: 0 0 24px; }
.steps span { flex: 1; height: 6px; border-radius: 99px; background: var(--cream-2); }
.steps span.on { background: var(--forest); }
.soon-card { text-align: center; width: min(640px, 100%); }
.soon-card h1 { font-size: clamp(48px, 8vw, 84px); margin: 0 0 12px; }
.req { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ok { color: var(--forest-soft); font-weight: 700; }
.bad { color: var(--danger); font-weight: 700; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px; border-radius: 999px;
  font-weight: 600; margin-bottom: 16px;
}

/* Admin */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f4f0e8; }
.admin-side {
  background: var(--forest-deep); color: #dcefe5; padding: 22px 16px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.admin-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; color: #dcefe5; font-size: 14px;
}
.admin-side a:hover, .admin-side a.is-on { background: rgba(255,255,255,0.08); color: #fff; }
.admin-side .group { margin: 18px 12px 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.admin-main { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat {
  background: #fff; border-radius: 18px; padding: 18px;
}
.stat b { display: block; font-size: 28px; font-family: var(--serif); }
.card { background: #fff; border-radius: 20px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 0 var(--line); }

.cat-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.tree-item {
  background: var(--cream); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.tree-item header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tree-children { margin: 8px 0 0 16px; border-left: 2px solid var(--leaf); padding-left: 12px; }
.color-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* PWA apps */
.pwa-shell { max-width: 480px; margin: 0 auto; background: #efe6d6; min-height: 100vh; }
.pwa-shell.pwa-wide { max-width: 1100px; }
.pwa-top { background: var(--forest); color: #fff; padding: 18px 20px; }
.job-card, .pwa-card { background: #fff; border-radius: 18px; padding: 16px; margin: 12px 16px; }
.pwa-pos-body { padding: 12px 16px 28px; display: grid; gap: 16px; }
.pwa-pos-body .card { margin: 0; }
.apps-grid {
  display: grid;
  gap: 12px;
  padding: 4px 16px 28px;
}
.apps-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
  box-shadow: 0 1px 0 var(--line);
}
.apps-card-ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--cream); color: var(--forest);
  display: grid; place-items: center;
}
.apps-card p { margin: 4px 0 0; font-size: 14px; }
.apps-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.apps-card-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.pwa-install { padding: 8px 16px 28px; display: grid; gap: 16px; }
.pwa-install-hero { text-align: center; padding: 12px 8px 4px; }
.pwa-install-hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.pwa-install-hero h2 { margin: 12px 0 8px; }
.pwa-install .howto-list { padding-left: 18px; }
.pwa-install .howto-list li { margin: 0 0 8px; }
@media (display-mode: standalone) {
  .pwa-install-link { display: none !important; }
}

.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu brand actions"
      "search search search";
    gap: 12px 16px;
  }
  .brand-logo img { height: 46px; }
  .search { display: flex; }
  .hero, .cat-grid, .product-grid, .recipe-grid, .split, .pdp, .footer-grid, .cat-admin, .stat-grid, .admin-shell, .pos-layout, .manage-grid, .cms-grid, .auth-split, .bag-layout, .check-layout {
    grid-template-columns: 1fr;
  }
  .admin-side { position: relative; height: auto; }
  .hero-main { min-height: 380px; padding: 24px; }
  .menu-toggle { display: inline-flex; }
  .dept-nav { display: none; }
  .dept-nav.open { display: block; }
  .mega { position: static; width: auto; display: none; box-shadow: none; border: 0; padding: 0 12px 12px; }
  .dept-list > li:hover .mega { display: none; }
  .dept-list > li.open .mega { display: grid; }
}
@media (max-width: 640px) {
  .brand-logo img { height: 40px; max-width: 58vw; }
  .brand-logo-lg img { height: auto; width: min(420px, 100%); max-width: 100%; }
  .brand-icon img { height: 56px; }
  .locale-menu, .locale-menu-wide { min-width: 240px; right: 0; }
  .util-links { gap: 12px; font-size: 12px; }
  .product-grid, .recipe-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-tile { min-height: 200px; }
  .util-bar .hide-sm { display: none; }
  .pdp-image img { height: 320px; }
}

.ico { flex-shrink: 0; vertical-align: middle; }
.admin-side .ico { opacity: 0.9; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline; }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.check-row { display: flex !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.check-row input { width: auto; }
.inline-manage { display: grid; gap: 6px; }
.inline-manage select { min-width: 120px; }
.grow { flex: 1; }

.manage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.manage-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 6px;
  box-shadow: 0 1px 0 var(--line);
}
.manage-card:hover { box-shadow: var(--shadow); }
.manage-ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--leaf); color: var(--forest);
  display: grid; place-items: center;
}
.stat { color: inherit; }
.stat:hover { box-shadow: var(--shadow); }

.cms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.social-admin-row {
  display: flex; align-items: end; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.social-preview {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; margin-bottom: 4px;
}
.socials a { color: inherit; }
.socials .social-ico { display: block; }

input[type=datetime-local], input[type=file] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 15px;
}

/* Auth split */
body.auth-body { min-height: 100vh; margin: 0; background: var(--cream); }
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-hero {
  background:
    radial-gradient(900px 500px at 0% 100%, rgba(207,232,216,0.18), transparent 50%),
    radial-gradient(700px 400px at 100% 0%, rgba(196,165,116,0.22), transparent 45%),
    linear-gradient(165deg, #0f4f3c, #06281f 70%);
  color: #eaf6ef;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-hero .brand-logo { justify-content: flex-start; margin-bottom: 28px; }
.auth-hero .brand-logo img { height: 56px; filter: none; }
.auth-kicker { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; opacity: 0.75; margin: 0 0 12px; }
.auth-hero h1 { font-size: clamp(36px, 4vw, 56px); margin: 0 0 16px; }
.auth-hero p { font-size: 17px; max-width: 440px; opacity: 0.9; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  background: var(--cream);
  position: relative;
}
.auth-panel-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.auth-card-flush {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-card-flush h1 { font-size: 32px; margin: 0 0 8px; }
.auth-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px;
  color: var(--forest); font-weight: 700; margin: 0 0 8px;
}
.auth-or {
  text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 16px;
  position: relative;
}
.auth-or span { background: #fff; padding: 0 10px; position: relative; z-index: 1; }
.auth-or::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--line);
}
.auth-foot { margin-top: 18px; }
.auth-foot a { color: var(--forest); font-weight: 600; }

/* POS */
.pos-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}
.pos-toolbar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pos-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px;
}
.pos-search input { border: 0; outline: none; padding: 12px 0; width: 100%; background: transparent; }
.pos-toolbar select { max-width: 220px; }
.pos-depts {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px;
}
.pos-dept {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pos-dept.is-on { background: var(--forest); color: #fff; border-color: var(--forest); }
.pos-toolbar:has(+ .pos-depts:not([hidden])) .pos-cat-select { display: none; }
.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.pos-tile {
  background: #fff; border: 0; border-radius: 16px; padding: 0;
  text-align: left; cursor: pointer; overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}
.pos-tile:hover { box-shadow: var(--shadow); }
.pos-tile img { width: 100%; height: 110px; object-fit: cover; background: var(--cream-2); }
.pos-tile div { padding: 10px 12px 12px; }
.pos-tile strong { display: block; font-size: 14px; line-height: 1.3; }
.pos-tile em { display: block; font-style: normal; font-weight: 700; color: var(--forest); margin-top: 4px; }
.pos-tile span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pos-empty-catalog { color: var(--muted); padding: 24px 4px; grid-column: 1 / -1; }
.pos-ticket { position: sticky; top: 16px; }
.pos-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.pos-ticket h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; }
.pos-clear {
  border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 13px;
}
.pos-ticket-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-ticket-fields label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pos-ticket-fields select, .pos-ticket-fields input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
}
.pos-lines { margin: 12px 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.pos-empty { color: var(--muted); margin: 18px 0; }
.pos-line {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center;
  background: var(--cream); border-radius: 12px; padding: 8px 10px; font-size: 14px;
}
.pos-line-main { min-width: 0; }
.pos-line-main strong { display: block; font-size: 14px; line-height: 1.25; }
.pos-line-main span { display: block; font-size: 12px; color: var(--muted); }
.pos-line-sum { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-line-del {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: #fde8e8; color: var(--danger); cursor: pointer; font-size: 16px;
}
.pos-qty { display: inline-flex; align-items: center; gap: 4px; }
.pos-qty button {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
}
.pos-totals { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); margin-bottom: 12px; }
.pos-total-due b { font-size: 22px; font-variant-numeric: tabular-nums; }
.pos-tenders { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.pos-tenders button {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 4px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.pos-tenders button.is-on { background: var(--forest); color: #fff; border-color: var(--forest); }
.pos-cash-block { margin-bottom: 10px; }
.pos-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.pos-pad button {
  height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  font-size: 18px; font-weight: 700; cursor: pointer;
}
.pos-change { margin: 8px 0 0; font-weight: 700; color: var(--forest); }
.pos-change.is-short { color: var(--danger); }
.pos-charge { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
.pos-howto .howto-list { padding-left: 18px; }
.pos-howto .howto-list li { margin: 0 0 10px; }
.pos-howto ul.howto-list { list-style: disc; }

/* In-store register terminal */
body.pos-term-body {
  max-width: none !important;
  margin: 0 !important;
  background: #0a1210;
  height: 100dvh;
  overflow: hidden;
  color: #e8eee9;
  font-family: var(--sans);
}
.pos-toast {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 80; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.pos-toast-ok { background: #143d2e; color: #d7f5e6; }
.pos-toast-err { background: #4a1c1c; color: #ffd4d4; }
.pos-term {
  height: 100dvh;
  display: grid;
  grid-template-rows: 52px 1fr auto;
  background: #0a1210;
}
.pos-term-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: #07110e;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pos-term-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.pos-term-brand img { border-radius: 5px; }
.pos-term-brand span { color: #8aa396; font-weight: 600; letter-spacing: 0.18em; }
.pos-term-meta {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  color: #9db5aa; font-size: 13px; font-weight: 600;
}
.pos-term-dot { width: 6px; height: 6px; border-radius: 50%; background: #3dd68c; box-shadow: 0 0 0 4px rgba(61,214,140,.12); }
#pos-clock { font-variant-numeric: tabular-nums; color: #e8eee9; min-width: 4.5ch; }
.pos-term-menu { position: relative; }
.pos-term-menu summary {
  list-style: none; cursor: pointer; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 8px; color: #d7e6de;
}
.pos-term-menu summary::-webkit-details-marker { display: none; }
.pos-term-menu summary:hover { background: rgba(255,255,255,.06); }
.pos-term-menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #14221c; border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; min-width: 200px; padding: 6px; z-index: 40;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.pos-term-menu-panel a {
  display: block; padding: 10px 12px; border-radius: 8px; color: #e8eee9; font-size: 13px; font-weight: 600;
}
.pos-term-menu-panel a:hover { background: rgba(255,255,255,.06); }
.pos-term .pos-layout {
  margin: 0; gap: 0; height: 100%; min-height: 0;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: stretch;
}
.pos-term .pos-catalog {
  padding: 14px 16px 16px;
  background: #dfe8e3;
  color: var(--ink);
  min-height: 0;
  overflow: auto;
}
.pos-term .pos-search {
  background: #fff; border: 0; border-radius: 10px; height: 48px;
  box-shadow: 0 1px 0 rgba(20,33,28,.08);
}
.pos-term .pos-search input { font-size: 16px; }
.pos-term .pos-depts { margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.pos-term .pos-dept { background: #f4f7f5; border-color: transparent; white-space: nowrap; }
.pos-term .pos-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}
.pos-term .pos-tile {
  border-radius: 12px; box-shadow: 0 1px 2px rgba(20,33,28,.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pos-term .pos-tile:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,33,28,.12); }
.pos-term .pos-tile:active { transform: scale(.98); }
.pos-term .pos-tile img { height: 92px; }
.pos-term .pos-tile strong { font-size: 13px; font-weight: 600; }
.pos-term .pos-tile em { font-size: 15px; }
.pos-term .pos-ticket {
  position: static;
  background: #101c18;
  color: #e8eee9;
  display: flex; flex-direction: column;
  min-height: 0;
  padding: 16px 16px 18px;
  border-left: 1px solid rgba(255,255,255,.06);
}
.pos-term .pos-ticket form {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
}
.pos-term .pos-ticket-head { margin-bottom: 10px; }
.pos-term .pos-ticket h2 {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700; color: #8aa396;
}
.pos-term .pos-clear { color: #c9a48a; }
.pos-term .pos-ticket-fields label { color: #8aa396; }
.pos-term .pos-ticket-fields select,
.pos-term .pos-ticket-fields input {
  background: #0c1613; color: #e8eee9; border-color: rgba(255,255,255,.1);
}
.pos-term .pos-lines {
  flex: 1; max-height: none; min-height: 120px;
}
.pos-term .pos-empty { color: #6f857c; text-align: center; padding: 32px 8px; }
.pos-term .pos-line {
  background: #182822; padding: 10px;
  grid-template-columns: 1fr auto;
  grid-template-areas: "main del" "qty sum";
}
.pos-term .pos-line-main { grid-area: main; }
.pos-term .pos-line-main span { color: #8aa396; }
.pos-term .pos-qty { grid-area: qty; }
.pos-term .pos-qty button { background: #0c1613; border-color: rgba(255,255,255,.1); color: #e8eee9; width: 32px; height: 32px; }
.pos-term .pos-line-sum { grid-area: sum; font-size: 15px; }
.pos-term .pos-line-del { grid-area: del; background: transparent; color: #c98989; }
.pos-term .pos-totals {
  border-top-color: rgba(255,255,255,.08);
  color: #8aa396; font-size: 13px; font-weight: 600;
}
.pos-term .pos-total-due { text-align: right; }
.pos-term .pos-total-due span { display: block; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.pos-term .pos-total-due b { color: #fff; font-size: 32px; font-weight: 700; line-height: 1.1; }
.pos-term .pos-tenders { grid-template-columns: repeat(5, 1fr); }
.pos-term .pos-tenders button {
  background: #182822; color: #d7e6de; border-color: transparent; height: 44px;
}
.pos-term .pos-tenders button.is-on { background: #1f8a5b; color: #fff; }
.pos-term .pos-pad button {
  background: #182822; color: #e8eee9; border-color: transparent; height: 48px;
}
.pos-term .pos-charge {
  height: 58px; border-radius: 12px; font-size: 18px; font-weight: 700;
  background: #1f8a5b; letter-spacing: 0.02em; margin-top: auto;
}
.pos-term .pos-charge:disabled { opacity: .35; cursor: not-allowed; background: #1f8a5b; }
.pos-term .pos-change { color: #3dd68c; }
.pos-term .pos-change.is-short { color: #ff9b9b; }
.pos-sale-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #143d2e; border-top: 1px solid rgba(61,214,140,.2);
}
.pos-sale-strip small { display: block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; color: #8fd9b6; }
.pos-sale-strip strong { margin-right: 10px; }
.pos-strip-btn {
  border: 0; background: #1f8a5b; color: #fff; border-radius: 8px; padding: 8px 12px;
  font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}

@media print {
  .admin-side, .pos-layout, .pos-howto, .split, .flash, .admin-top, .pwa-top, .pwa-nav,
  .pos-term-bar, .pos-catalog, .pos-ticket, .pos-sale-strip .pos-strip-btn { display: none !important; }
  .pos-receipt, .pos-sale-strip { display: block !important; box-shadow: none; color: #000; background: #fff; }
}

@media (max-width: 980px) {
  .manage-grid { grid-template-columns: 1fr 1fr; }
  .auth-hero { min-height: 280px; padding: 32px 24px; }
  .auth-panel { padding: 24px 18px 40px; }
  .pos-ticket { position: static; }
  .pos-layout { grid-template-columns: 1fr; }
  .pos-tenders { grid-template-columns: repeat(3, 1fr); }
  body.pos-term-body { height: auto; overflow: auto; }
  .pos-term { height: auto; min-height: 100vh; grid-template-rows: 52px auto auto; }
  .pos-term .pos-layout { grid-template-columns: 1fr; }
  .pos-term .pos-ticket { min-height: 70vh; }
}

.pwa-nav {
  display: flex; gap: 8px; padding: 0 16px 16px; flex-wrap: wrap;
}
.pwa-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600;
}

.shield-score {
  display: flex; align-items: center; gap: 22px;
  background: #fff; border-radius: 18px; padding: 22px;
  margin-bottom: 18px; box-shadow: 0 1px 0 var(--line);
}
.shield-meter {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: conic-gradient(var(--forest) calc(var(--pct, 0) * 1%), #e8efe9 0);
}
.shield-meter b {
  background: #fff; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
}
.shield-checks {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.shield-checks li { color: #7a8a84; }
.shield-checks li.is-on { color: var(--forest); font-weight: 600; }
.shield-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

@media (max-width: 640px) {
  .manage-grid { grid-template-columns: 1fr; }
  .shield-checks { grid-template-columns: 1fr; }
  .shield-score { flex-direction: column; align-items: flex-start; }
}

/* Fly-in */
@keyframes fly-down {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}
body.fly-ready .util-bar {
  animation: fly-down 0.45s ease both;
}
body.fly-ready .site-header {
  animation: fly-down 0.55s ease 0.05s both;
}
body.fly-ready .fly-in {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.6s cubic-bezier(.22, 1, .36, 1),
    transform 0.6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--fly-delay, 0ms);
  will-change: opacity, transform;
}
body.fly-ready .fly-in[data-fly="left"] { transform: translate3d(-32px, 0, 0); }
body.fly-ready .fly-in[data-fly="right"] { transform: translate3d(32px, 0, 0); }
body.fly-ready .fly-in[data-fly="down"] { transform: translate3d(0, -22px, 0); }
body.fly-ready .fly-in.is-in {
  opacity: 1;
  transform: none;
}
body.fly-ready .fly-in.fly-done { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  body.fly-ready .util-bar,
  body.fly-ready .site-header,
  body.fly-ready .fly-in {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
