:root {
  --green-950: #173e31;
  --green-900: #1f4d3c;
  --green-800: #29624d;
  --green-100: #e8f0e8;
  --cream: #f7f3e8;
  --paper: #fffdf8;
  --orange: #ed6b3a;
  --orange-dark: #d65326;
  --yellow: #f2c94c;
  --ink: #19362c;
  --muted: #6d7d76;
  --line: #dfe6df;
  --shadow: 0 18px 55px rgba(23, 62, 49, 0.14);
  --radius: 22px;
  --script-font: "Baguet Script", "Baguette Script", "Brush Script MT", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 76px);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(31, 77, 60, 0.12);
  backdrop-filter: blur(14px);
}
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--green-950);
  text-align: left;
}
.brand-mark {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 22px rgba(31, 77, 60, 0.12);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-wordmark {
  flex: 0 1 auto;
  display: block;
  min-width: 0;
  width: clamp(175px, 19vw, 255px);
}
.brand-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}
.main-nav { display: flex; gap: 8px; }
.nav-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 17px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.nav-link.active { color: var(--green-900); background: var(--green-100); }
.cart-button {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--green-900);
  font-weight: 600;
}
.cart-button svg, .search-box svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.cart-button b {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 99px;
  color: var(--green-950);
  background: var(--yellow);
  font-size: 12px;
}

.view { display: none; }
.view.active { display: block; }
.client-app .main-nav,
.shop-app .main-nav,
.display-app .main-nav,
.client-route .main-nav { display: none; }
.shop-app .cart-button,
.display-app .cart-button,
.shop-route .cart-button,
.display-route .cart-button,
.shopkeeper-active .cart-button,
.display-active .cart-button { display: none; }
.shop-route .topbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.hero {
  min-height: 545px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  color: white;
  background: var(--green-900);
}
.hero-content {
  align-self: center;
  padding: 70px 7vw;
  z-index: 2;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}
.language-switcher label {
  color: #d9e8d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.language-switcher select {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 34px 0 12px;
  color: var(--green-950);
  background: white;
  font-weight: 700;
  outline: 0;
}
.language-flags { gap: 7px; padding-right: 9px; }
.language-flags > span { margin-right: 3px; color: #d9e8d7; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.language-flags button { display: grid; place-items: center; width: 36px; height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.1); font-size: 20px; line-height: 1; cursor: pointer; transition: .18s ease; }
.language-flags button:hover { transform: translateY(-2px); background: rgba(255,255,255,.22); }
.language-flags button.active { border-color: var(--yellow); background: white; box-shadow: 0 0 0 2px rgba(242,201,76,.35); transform: scale(1.08); }
.language-flags button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.eyebrow {
  color: #d9e8d7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.eyebrow.dark { color: var(--orange); }
h1, h2, h3 { font-family: "Fraunces", serif; }
.hero h1 {
  margin: 18px 0;
  font-size: clamp(46px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.04em;
}
.hero h1 em { color: var(--yellow); font-weight: 600; }
.hero p { max-width: 520px; color: #d5e1dc; font-size: 17px; line-height: 1.65; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 23px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(237, 107, 58, .2);
  font-weight: 700;
}
.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.primary-button.compact { min-height: 46px; margin: 0; }
.primary-button.full { width: 100%; }
.hero-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, #fff2cc 0 26%, transparent 27%),
    linear-gradient(145deg, #dbe9d8 0%, #8fb79d 100%);
  clip-path: ellipse(74% 84% at 70% 50%);
}
.client-hero-art { display: grid; place-items: center; padding: 42px clamp(24px,4vw,64px); background: linear-gradient(145deg,#f8f3e7,#dce9dd); }
.client-hero-image { position: relative; z-index: 2; width: min(100%,680px); max-height: 590px; object-fit: contain; border-radius: 34px; filter: drop-shadow(0 26px 28px rgba(23,62,49,.2)); }
@media (max-width: 980px) { .client-hero-art { min-height: 470px; padding: 32px 24px; clip-path: none; } .client-hero-image { max-height: 410px; } }
@media (max-width: 640px) { .client-hero-art { min-height: 360px; padding: 24px 18px; } .client-hero-image { max-height: 330px; border-radius: 24px; } .language-flags { flex-wrap: wrap; border-radius: 18px; } }
.sun {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  left: 25%;
  top: 17%;
  background: rgba(255, 238, 181, .75);
}
.category-orbit {
  position: absolute;
  inset: 8% 6% 5% 9%;
  z-index: 2;
}
.produce {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: rgba(255, 251, 238, .54);
  box-shadow: 0 20px 30px rgba(39, 58, 40, .16);
  backdrop-filter: blur(2px);
}
.emoji-icon {
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 66px;
  line-height: 1;
  filter: drop-shadow(0 14px 10px rgba(39, 58, 40, .22));
}
.produce-fruit { left: 13%; top: 48%; transform: rotate(-10deg) scale(1.3); }
.produce-vegetables { left: 22%; top: 15%; transform: rotate(10deg) scale(1.2); }
.produce-pasta { left: 44%; top: 24%; transform: rotate(-18deg) scale(1.65); }
.produce-salami { left: 17%; top: 72%; transform: rotate(15deg) scale(1.05); }
.produce-dairy { left: 48%; top: 67%; transform: rotate(8deg) scale(1.35); }
.produce-cans { left: 72%; top: 55%; transform: rotate(-7deg) scale(.9); }
.produce-preserves { left: 67%; top: 14%; transform: rotate(12deg) scale(.88); }
.produce-wine { left: 79%; top: 28%; transform: rotate(8deg) scale(.95); }
.leaf {
  position: absolute;
  width: 120px;
  height: 55px;
  border-radius: 100% 0 100% 0;
  background: #477f59;
  transform: rotate(34deg);
}
.leaf-one { left: 8%; top: 17%; }
.leaf-two { right: 4%; bottom: 10%; transform: rotate(-26deg); }
.quality-stamp {
  position: absolute;
  right: 9%;
  top: 10%;
  display: grid;
  place-items: center;
  width: 105px;
  height: 105px;
  border: 2px dashed var(--green-900);
  border-radius: 50%;
  color: var(--green-900);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  transform: rotate(9deg);
}

.catalog-section { max-width: 1320px; margin: auto; padding: 78px clamp(20px, 5vw, 70px) 100px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
}
.section-heading h2, .dashboard-header h1 {
  margin: 9px 0 0;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -.03em;
}
.search-box {
  width: min(330px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.search-box input { width: 100%; height: 46px; border: 0; outline: 0; color: var(--ink); }
.category-list { display: flex; gap: 9px; margin: 38px 0 28px; overflow-x: auto; padding-bottom: 4px; }
.category-list button, .status-tabs button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 600;
}
.category-list button.active, .status-tabs button.active {
  color: white;
  border-color: var(--green-900);
  background: var(--green-900);
}
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gift-section{padding:80px 7vw;background:linear-gradient(145deg,#f8f3e7,#e4eee2)}
.gift-section-copy{max-width:720px;margin-bottom:32px}.gift-section-copy h2{margin:10px 0 12px;font-size:clamp(36px,4vw,56px)}.gift-section-copy p{color:var(--muted);font-size:16px;line-height:1.65}
.gift-package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.gift-package-card{display:flex;flex-direction:column;align-items:flex-start;min-height:285px;padding:25px;border:1px solid rgba(31,77,60,.12);border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 14px 34px rgba(23,62,49,.08)}
.gift-package-icon{display:grid;place-items:center;width:76px;height:76px;margin-bottom:18px;border-radius:50%;background:#f1e5bd;font-size:42px}.gift-package-card h3{margin:0 0 8px;font-size:23px}.gift-package-card p{min-height:44px;margin:0 0 10px;color:var(--muted);font-size:13px;line-height:1.55}.gift-package-card small{display:block;color:var(--green-900);font-weight:700}.gift-package-card .primary-button{margin-top:auto}
.gift-package-icon{overflow:hidden}.gift-package-icon img{width:100%;height:100%;object-fit:cover}.gift-builder-summary>span img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.gift-builder-modal{width:min(1040px,calc(100% - 32px));max-height:92vh;overflow:auto}.gift-builder-modal>h2{font-size:38px}.gift-builder-summary{display:flex;align-items:center;gap:16px;margin:18px 0 25px;padding:18px;border-radius:18px;background:#e4eee2}.gift-builder-summary>span{font-size:42px}.gift-builder-summary>div{flex:1}.gift-builder-summary strong,.gift-builder-summary small{display:block}.gift-builder-summary small{margin-top:4px;color:var(--muted)}.gift-weight-bar{height:9px;margin:8px 0 6px;overflow:hidden;border-radius:99px;background:rgba(31,77,60,.14)}.gift-weight-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--green-800),var(--orange));transition:width .25s ease}
.gift-builder-step{display:flex;align-items:center;gap:13px;margin:25px 0 14px}.gift-builder-step>b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:var(--orange)}.gift-builder-step h3,.gift-builder-step p{margin:0}.gift-builder-step p{color:var(--muted);font-size:13px}
.gift-product-search{width:100%;margin:0 0 15px;background:#fff}.gift-catalog-empty{margin:12px 0 20px;padding:18px;border-radius:14px;color:var(--muted);background:#f7f3e8;text-align:center;font-weight:700}
.gift-product-search input{min-height:50px;font-size:16px;line-height:1.35}
.gift-product-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:390px;overflow:auto;padding:4px}.gift-product-choice{position:relative;display:grid;grid-template-columns:55px 1fr;align-items:center;gap:4px 10px;padding:10px;border:1px solid var(--line);border-radius:15px;background:#fff;cursor:pointer}.gift-product-choice:has(input:checked){border-color:var(--orange);box-shadow:0 0 0 2px rgba(237,107,58,.18)}.gift-product-choice input{position:absolute;right:8px;top:8px}.gift-product-choice>span{grid-row:1/3;display:grid;place-items:center;width:52px;height:52px;overflow:hidden;border-radius:12px;background:#edf2eb;font-size:28px}.gift-product-photo{width:100%;height:100%;object-fit:cover}.gift-product-choice b{padding-right:18px;font-size:12px}.gift-product-choice small{color:var(--muted);font-size:10px}
.gift-catalog-card{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}.gift-catalog-visual{display:grid;place-items:center;height:125px;overflow:hidden;background:#e9efe7;font-size:58px}.gift-catalog-visual .product-photo{width:100%;height:100%;object-fit:cover}.gift-catalog-card>div:last-child{position:relative;padding:13px}.gift-catalog-card small{color:var(--orange);font-size:9px;font-weight:800;text-transform:uppercase}.gift-catalog-card h3{margin:4px 34px 5px 0;font-size:15px}.gift-catalog-card p{min-height:34px;margin:0 0 8px;color:var(--muted);font-size:10px;line-height:1.45}.gift-catalog-card strong{font-size:12px}.gift-catalog-card .add-button{position:absolute;right:10px;top:10px;width:34px;height:34px}
.gift-selected-items{display:grid;gap:8px;margin:-10px 0 20px}.gift-selected-items article{display:grid;grid-template-columns:46px 1fr auto 32px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:#fff}.gift-selected-items article>span{display:grid;place-items:center;width:44px;height:44px;overflow:hidden;border-radius:10px;background:#edf2eb;font-size:24px}.gift-selected-items img{width:100%;height:100%;object-fit:cover}.gift-selected-items b,.gift-selected-items small{display:block}.gift-selected-items small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.35}.gift-selected-items article>button{width:30px;height:30px;border:0;border-radius:9px;color:#a43e2b;background:#f9e2dc;font-size:18px}
.gift-admin-card{padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff}.gift-admin-row{display:grid;grid-template-columns:55px 1.4fr 1fr 1fr auto auto;align-items:end;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}.gift-admin-row>span{align-self:center;font-size:35px}.gift-admin-row label{font-size:11px;font-weight:700}.gift-admin-row input:not([type=checkbox]){width:100%;height:42px;margin-top:6px;padding:0 11px;border:1px solid var(--line);border-radius:10px}.gift-admin-card>.primary-button{margin-top:22px}
.gift-admin-preview{display:grid;place-items:center;width:52px;height:52px;overflow:hidden;border-radius:13px;background:#edf2eb}.gift-admin-preview img{width:100%;height:100%;object-fit:cover}.gift-photo-control{grid-column:2/4}.gift-photo-control input{display:block;width:100%;margin-top:6px;font-size:11px}.gift-photo-control small{display:block;margin-top:4px;color:var(--muted)}
@media(max-width:1050px){.gift-package-grid,.gift-product-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.gift-admin-row{grid-template-columns:45px 1fr 1fr}.gift-admin-row .checkbox-label{grid-column:2/4}}
@media(max-width:640px){.gift-section{padding:60px 20px}.gift-package-grid,.gift-product-picker{grid-template-columns:1fr}.gift-package-card{min-height:240px}.gift-admin-row{grid-template-columns:1fr}.gift-admin-row>span,.gift-admin-row .checkbox-label{grid-column:1}.gift-builder-modal{padding:24px 18px}.gift-builder-modal .field-row{grid-template-columns:1fr}}
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 205px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgba(255,255,255,.85) 0 26%, transparent 27%),
    var(--card-color, #e9efe7);
}
.product-visual:has(.product-photo) {
  background: #eef2ec;
}
.product-visual::before, .product-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 90px;
  height: 40px;
  border-radius: 100% 0;
  background: rgba(39, 95, 64, .12);
  transform: rotate(35deg);
}
.product-visual::before { left: -10px; top: 22px; }
.product-visual::after { right: -16px; bottom: 20px; }
.product-emoji { z-index: 1; font-size: 84px; filter: drop-shadow(0 12px 10px rgba(40, 50, 40, .18)); }
.product-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  z-index: 2;
  left: 13px;
  top: 13px;
  padding: 6px 9px;
  border-radius: 99px;
  color: var(--green-900);
  background: rgba(255,255,255,.88);
  font-size: 10px;
  font-weight: 700;
}
.product-info { padding: 18px; }
.product-info small { color: var(--orange); font-weight: 700; text-transform: uppercase; }
.product-info h3 { margin: 6px 0 7px; font-size: 20px; }
.product-info p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { font-size: 19px; font-weight: 700; }
.price span { color: var(--muted); font-size: 12px; font-weight: 500; }
.add-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--green-900);
  font-size: 23px;
}
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state span { font-size: 48px; }
.empty-state h3 { color: var(--ink); }

.shopkeeper-view.active { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 86px); }
.dashboard-sidebar {
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
  padding: 42px 24px 25px;
  color: white;
  background: var(--green-950);
}
.dashboard-label { color: #9fb7ac; font-size: 10px; letter-spacing: .18em; }
.dashboard-sidebar h2 { margin: 8px 0 40px; font-size: 27px; }
.dashboard-sidebar nav { display: grid; gap: 8px; }
.side-link {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 11px;
  color: #c3d3cc;
  background: transparent;
  text-align: left;
  font-weight: 600;
}
.side-link.active { color: white; background: rgba(255,255,255,.1); }
.side-link b { min-width: 22px; padding: 3px 6px; border-radius: 99px; background: var(--orange); text-align: center; font-size: 10px; }
.logout-link {
  margin-top: 8px;
  color: #ffd9cc;
  background: rgba(237, 107, 58, .12);
}
.logout-link:hover {
  color: white;
  background: rgba(237, 107, 58, .22);
}
.back-to-shop { margin-top: auto; padding: 12px; border: 0; color: #b9cbc3; background: transparent; text-align: left; }
.dashboard-content { min-width: 0; padding: 55px clamp(24px, 5vw, 70px); background: #f6f7f3; }
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }
.dashboard-header { margin-bottom: 34px; }
.dashboard-header.inline { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.dashboard-header p { margin: 8px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.stats-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.stats-grid span, .stats-grid small { display: block; color: var(--muted); font-size: 12px; }
.stats-grid strong { display: block; margin: 7px 0 2px; font: 700 31px "Fraunces", serif; }
.stats-grid .accent-stat { color: white; border-color: var(--green-900); background: var(--green-900); }
.stats-grid .accent-stat span, .stats-grid .accent-stat small { color: #c7d8d0; }
.orders-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  overflow-x: visible;
}
.status-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 100%;
}
.order-cleanup {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.order-cleanup label {
  display: block;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.order-cleanup select {
  width: min(260px, 58vw);
  padding: 9px 11px;
  border-radius: 10px;
}
.orders-list { display: grid; gap: 13px; }

.display-route body,
.display-app {
  background: #f3f6ef;
}
.display-view.active {
  display: block;
  min-height: calc(100vh - 86px);
  padding: clamp(18px, 3vw, 42px);
  background: #f3f6ef;
}
.display-shell {
  display: grid;
  gap: 22px;
  max-width: 1480px;
  margin: 0 auto;
}
.display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.display-header h1 {
  margin: 4px 0 0;
  color: var(--green-950);
  font: 700 clamp(36px, 5vw, 72px) "Fraunces", serif;
}
.display-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
#display-clock {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  color: white;
  background: var(--green-900);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
}
.display-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.display-summary article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.display-summary span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}
.display-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--green-950);
  font: 700 clamp(34px, 5vw, 64px) "Fraunces", serif;
}
.display-orders {
  display: grid;
  gap: 16px;
}
.display-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  padding: clamp(18px, 2.5vw, 30px);
  border: 2px solid rgba(31, 77, 60, .12);
  border-left-width: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 36px rgba(23, 62, 49, .08);
}
.display-order-card.status-new { border-left-color: var(--orange); }
.display-order-card.status-progress { border-left-color: var(--yellow); }
.display-order-card.status-ready { border-left-color: var(--green-800); }
.display-order-main h2 {
  margin: 10px 0 4px;
  color: var(--green-950);
  font: 700 clamp(28px, 4vw, 52px) "Fraunces", serif;
}
.display-order-main p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
}
.display-checklist-progress {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-weight: 900;
}
.display-order-main li.checked {
  color: var(--muted);
  text-decoration: line-through;
}
.display-order-main ul {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
}
.display-order-side {
  display: grid;
  align-content: start;
  gap: 10px;
}
.display-order-side strong {
  color: var(--green-950);
  font-size: clamp(28px, 3vw, 42px);
}
.display-order-side small {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}
.display-action {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--green-900);
  font-weight: 900;
}
.display-action.view { background: var(--green-700); }
.display-action.ready { background: var(--orange); }
.display-action.completed { background: #31483d; }
.display-empty {
  display: grid;
  place-items: center;
  min-height: 50vh;
  padding: 30px;
  border: 2px dashed var(--line);
  border-radius: 22px;
  text-align: center;
  background: white;
}
.display-empty span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: white;
  background: var(--green-900);
  font-size: 52px;
}
.display-empty h2 {
  margin: 18px 0 6px;
  color: var(--green-950);
  font: 700 clamp(30px, 4vw, 52px) "Fraunces", serif;
}
@media (max-width: 760px) {
  .display-header,
  .display-status { align-items: stretch; flex-direction: column; }
  .display-summary,
  .display-order-card { grid-template-columns: 1fr; }
  .display-order-side { grid-template-columns: 1fr; }
}

.order-card {
  display: grid;
  grid-template-columns: minmax(155px, .7fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(200px, 220px);
  align-items: center;
  gap: 20px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.order-card > * { min-width: 0; }
.order-number strong { display: block; overflow-wrap: anywhere; word-break: break-word; font: 700 18px/1.15 "Fraunces", serif; }
.order-number small, .order-customer small { color: var(--muted); }
.order-customer small { display: block; overflow-wrap: anywhere; }
.order-customer strong { display: block; }
.order-summary { color: var(--muted); font-size: 13px; line-height: 1.45; }
.order-summary b { color: var(--ink); }
.order-actions { display: flex; min-width: 0; width: 100%; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.status-select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; }
.order-actions .status-select {
  flex: 0 1 190px;
  width: 190px;
  min-width: 0;
  max-width: 100%;
}
.detail-button { padding: 9px 12px; border: 0; border-radius: 9px; color: var(--green-900); background: var(--green-100); font-weight: 700; }
a.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.detail-button.contact {
  color: var(--green-950);
  background: #edf5ef;
}
.detail-button.contact:hover {
  background: #dcebe1;
}
.detail-button.delete {
  color: #b74229;
  background: #ffe8df;
}
.detail-button.delete:hover {
  background: #ffd9cc;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 9px;
  color: white;
  background: #25d366;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.whatsapp-button:hover { background: #1fb457; }
.status-pill { display: inline-block; margin-top: 6px; padding: 4px 7px; border-radius: 99px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-new { color: #9c3a1d; background: #ffdfd2; }
.status-progress { color: #7a5b00; background: #fff0b7; }
.status-ready { color: #166045; background: #d5f1e6; }
.status-completed { color: #66716c; background: #e8ecea; }

.admin-products { display: grid; gap: 12px; }
.admin-product {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 17px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
.admin-product-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 13px; background: var(--green-100); font-size: 34px; }
.admin-product-photo {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.admin-product h3 { margin: 0 0 4px; font-size: 17px; }
.admin-product p { margin: 0; color: var(--muted); font-size: 12px; }
.availability { padding: 6px 9px; border-radius: 99px; color: #176249; background: #d9f0e7; font-size: 10px; font-weight: 700; }
.availability.off { color: #777; background: #eceeed; }
.admin-actions { display: flex; gap: 7px; }
.admin-actions button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.admin-actions .delete { color: #b74229; }

.pickup-slots-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}
.pickup-slots-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.pickup-slots-help p { margin: 0; color: var(--muted); font-size: 13px; }
.pickup-slots-list { display: grid; gap: 10px; }
.pickup-slot-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.pickup-slot-row.disabled { opacity: .68; background: #f3f4f2; }
.pickup-slot-time { display: flex; align-items: center; gap: 13px; }
.pickup-slot-time > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: white;
  background: var(--green-900);
  font-size: 24px;
}
.pickup-slot-time strong { display: block; font-size: 17px; }
.pickup-slot-time small { display: block; margin-top: 3px; color: var(--muted); }
.pickup-enabled { margin: 4px 0 22px; }

.opening-hours-admin{padding:24px;border:1px solid var(--line);border-radius:20px;background:white}
.opening-hours-admin-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:24px 0 12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.opening-hours-admin-head small{color:var(--muted)}
.opening-hours-admin-days{display:grid;gap:10px;margin-bottom:22px}
.opening-day-row{display:grid;grid-template-columns:120px 120px repeat(4,minmax(110px,1fr));align-items:end;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.opening-day-row>strong{align-self:center}.opening-day-row .checkbox-label{align-self:center;margin:0}.opening-day-row label:not(.checkbox-label){font-size:11px}.opening-day-row input[type="time"]{margin-top:5px}.opening-day-row.closed{opacity:.58;background:#f0f1ef}.opening-day-row.closed input[type="time"]{pointer-events:none}
@media(max-width:1100px){.opening-day-row{grid-template-columns:110px 110px repeat(2,minmax(120px,1fr))}.opening-day-row label:nth-last-child(-n+2){grid-column:auto}}
@media(max-width:700px){.opening-hours-admin{padding:16px}.opening-hours-admin-head{align-items:flex-start;flex-direction:column}.opening-day-row{grid-template-columns:1fr 1fr}.opening-day-row>strong{grid-column:1 / -1}.opening-day-row label:not(.checkbox-label){grid-column:auto}}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) 1.15fr;
  gap: 18px;
}
.customer-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.customer-card h2 {
  margin: 0 0 6px;
  font-size: 25px;
}
.muted-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.product-frequency-list,
.customers-list,
.customer-order-history {
  display: grid;
  gap: 10px;
}
.frequency-row,
.customer-row,
.customer-order-history article {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcf8;
}
.frequency-row {
  grid-template-columns: 26px 44px 1fr;
}
.frequency-row > b {
  color: var(--orange);
  font: 700 18px "Fraunces", serif;
}
.frequency-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--green-100);
  font-size: 24px;
}
.frequency-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.frequency-row strong,
.customer-row h3,
.customer-order-history strong {
  display: block;
  margin: 0;
}
.frequency-row small,
.customer-row p,
.customer-row small,
.customer-order-history small,
.customer-order-history p {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.customer-row {
  grid-template-columns: 1fr auto;
}
.customer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
.customer-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.customer-detail-grid h3 {
  margin: 0 0 12px;
}
.empty-state.compact {
  padding: 24px 12px;
}
.empty-state.compact span {
  font-size: 34px;
}
.empty-state.compact h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.social-stats {
  margin-bottom: 22px;
}
.instagram-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
}
.instagram-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.instagram-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.instagram-card h2 {
  margin: 0 0 6px;
  font-size: 25px;
}
.compact-tabs {
  flex-wrap: wrap;
  justify-content: end;
}
.compact-tabs button {
  padding: 8px 11px;
  font-size: 12px;
}
.instagram-posts,
.api-checklist {
  display: grid;
  gap: 11px;
}
.instagram-post {
  display: grid;
  grid-template-columns: 95px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf8;
}
.instagram-date {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 12px;
  color: var(--green-950);
  background: var(--green-100);
  text-align: center;
}
.instagram-date strong {
  display: block;
  font: 700 25px "Fraunces", serif;
}
.instagram-date span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.instagram-post h3 {
  margin: 0 0 5px;
  font-size: 19px;
}
.instagram-post p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.instagram-post small {
  display: block;
  margin-top: 7px;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 800;
}
.instagram-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}
.social-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.social-draft { color: #7d6450; background: #f1e5d7; }
.social-scheduled { color: #176249; background: #d9f0e7; }
.social-published { color: #66716c; background: #e8ecea; }
.api-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcf8;
}
.api-item input {
  width: auto;
  margin-top: 3px;
}
.api-item strong {
  display: block;
  font-size: 13px;
}
.api-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.api-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  color: white;
  background: var(--green-900);
}
.api-note strong {
  display: block;
  font-size: 13px;
}
.api-note p {
  margin: 6px 0 0;
  color: #d5e1dc;
  font-size: 12px;
  line-height: 1.5;
}
.whatsapp-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
}
.whatsapp-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.whatsapp-card h2 {
  margin: 0 0 6px;
  font-size: 25px;
}
.whatsapp-campaigns,
.whatsapp-recipients {
  display: grid;
  gap: 11px;
}
.whatsapp-campaign,
.whatsapp-recipient {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf8;
}
.whatsapp-campaign {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.whatsapp-campaign h3,
.whatsapp-recipient h3 {
  margin: 0 0 5px;
  font-size: 18px;
}
.whatsapp-campaign p,
.whatsapp-recipient p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.whatsapp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}
.whatsapp-recipient {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.whatsapp-recipient small {
  display: block;
  margin-top: 5px;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 800;
}
.ai-layout {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(320px, 1.05fr);
  gap: 18px;
}
.ai-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.ai-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}
.ai-generator {
  display: grid;
  align-content: start;
  gap: 16px;
}
.ai-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ai-actions .secondary-button {
  grid-column: auto;
}
.ai-output-card {
  display: grid;
  align-content: start;
  gap: 14px;
}
.ai-output-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.ai-output-header h2 {
  margin-bottom: 6px;
}
#ai-output {
  min-height: 360px;
  resize: vertical;
  color: var(--green-950);
  background: #fbfcf8;
  line-height: 1.55;
}
.ai-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.ai-insight {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf8;
}
.ai-insight strong {
  display: block;
  color: var(--green-950);
  font-size: 13px;
}
.ai-insight p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  background: rgba(13, 35, 28, .54);
  backdrop-filter: blur(3px);
  transition: .2s;
}
.overlay.open { visibility: visible; opacity: 1; }
.drawer {
  position: fixed;
  z-index: 60;
  right: 0;
  top: 0;
  width: min(440px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper);
  transform: translateX(101%);
  transition: transform .25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 5px 0 0; font-size: 35px; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: var(--green-100); font-size: 25px; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 2px; }
.cart-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.cart-empty span { font-size: 52px; }
.cart-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-item-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--green-100); font-size: 28px; }
.cart-item-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.cart-item h4 { margin: 0 0 3px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 11px; }
.cart-item strong { display: block; margin-top: 5px; }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.cart-footer { padding-top: 18px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 19px; }
.cart-total strong { font-size: 24px; }
.cart-footer p { color: var(--muted); font-size: 10px; line-height: 1.4; }

.modal {
  position: fixed;
  z-index: 70;
  left: 50%;
  top: 50%;
  visibility: hidden;
  width: min(650px, calc(100% - 30px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -46%) scale(.97);
  transition: .2s;
}
.modal.open { visibility: visible; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; right: 20px; top: 20px; }
.modal h2 { margin: 8px 0 24px; font-size: 34px; }
.success-modal { text-align: center; }
.success-modal h2 { margin-bottom: 10px; }
.success-modal p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 999px;
  color: white;
  background: var(--green-900);
  box-shadow: 0 14px 30px rgba(31, 77, 60, .2);
  font-size: 42px;
  font-weight: 800;
}
.translation-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf4;
}
.translation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.translation-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.translation-actions .secondary-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
}
.translation-box > div span {
  display: block;
  color: var(--green-950);
  font-weight: 800;
}
.translation-box > div small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.translation-box details {
  border: 1px solid rgba(31, 77, 60, .12);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}
.translation-box summary {
  padding: 12px 14px;
  color: var(--green-900);
  font-weight: 800;
  cursor: pointer;
}
.translation-box details[open] {
  padding-bottom: 14px;
}
.translation-box details[open] summary {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.translation-box details > .field-row,
.translation-box details > label {
  margin: 0 14px;
}
.translation-box details > label + label,
.translation-box details > .field-row + label {
  margin-top: 12px;
}
.food-information-admin {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 2px 0;
  padding: 20px;
  border: 1px solid #cad7cf;
  border-radius: 18px;
  background: #fbfaf4;
}
.food-information-admin legend {
  padding: 0 8px;
  color: var(--green-950);
  font-size: 17px;
  font-weight: 800;
}
.food-information-admin legend span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.food-information-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.allergen-admin {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(31, 77, 60, .16);
  border-radius: 14px;
  background: white;
}
.allergen-toggle,
.organic-toggle {
  min-height: 24px;
  margin: 0;
  font-size: 13px;
  cursor: pointer;
}
.food-information-admin .checkbox-label input,
.allergen-checkbox-grid .checkbox-label input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  min-height: 19px;
  margin: 0;
  padding: 0;
  accent-color: var(--green-900);
}
.allergen-fields {
  display: grid;
  gap: 13px;
}
.allergen-fields[hidden] {
  display: none;
}
.food-field-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.allergen-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}
.allergen-checkbox-grid .checkbox-label {
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.food-translation-fields {
  display: grid;
  gap: 12px;
  margin: 12px 14px 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.food-translation-fields::before {
  content: "Informazioni alimentari tradotte (facoltative)";
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.product-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: 25px; }
.detail-visual { display: grid; place-items: center; min-height: 310px; border-radius: 17px; background: var(--green-100); font-size: 120px; }
.detail-visual img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  border-radius: inherit;
  object-fit: cover;
}
.detail-copy h2 { margin: 7px 0; }
.detail-copy > p { color: var(--muted); line-height: 1.6; }
.option-group { margin: 18px 0; }
.option-group > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.option-buttons button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; }
.option-buttons button.active { color: var(--green-900); border-color: var(--green-900); background: var(--green-100); }
.detail-add { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.detail-add .primary-button { flex: 1; margin: 0; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ced8d1;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: white;
  font-weight: 400;
}
input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--green-900);
}
input:focus, select:focus, textarea:focus { border-color: var(--green-800); box-shadow: 0 0 0 3px rgba(41, 98, 77, .1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-row.three { grid-template-columns: 1fr 1fr .7fr; }
.choice-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcf8;
}
.choice-box > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.purchase-box {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(237, 107, 58, .22);
  border-radius: 13px;
  background: #fff8f2;
}
.purchase-box > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.purchase-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.consent-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(41, 98, 77, .2);
  border-radius: 13px;
  background: #f4f8f2;
}
.remember-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(237, 107, 58, .2);
  border-radius: 13px;
  background: #fff8f2;
}
.remember-box .secondary-button {
  grid-column: auto;
}
.remember-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.consent-box > span {
  color: var(--green-900);
  font-size: 12px;
  font-weight: 800;
}
.consent-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.consent-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0;
}
.consent-flags span {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.consent-flags .ok {
  color: #166045;
  background: #d5f1e6;
}
.consent-flags .no {
  color: #7d6450;
  background: #f1e5d7;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
.radio-label input {
  width: auto;
}
.emoji-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed #c8d4cb;
  border-radius: 15px;
  background: #fbfcf8;
}
.emoji-picker > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 8px;
}
.emoji-picker-grid button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  font-size: 23px;
  transition: .15s ease;
}
.emoji-picker-grid button:hover,
.emoji-picker-grid button.active {
  border-color: var(--green-900);
  background: var(--green-100);
  transform: translateY(-1px);
}
.delivery-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #c8d4cb;
  border-radius: 15px;
  background: #fbfcf8;
}
.location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.location-row .secondary-button {
  grid-column: auto;
}
.location-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.location-row a {
  color: var(--green-900);
  font-weight: 800;
}
.photo-field {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px dashed #c8d4cb;
  border-radius: 15px;
  background: #fbfcf8;
}
.photo-field input[type="file"] {
  padding: 10px;
}
.photo-field small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.photo-preview {
  display: grid;
  place-items: center;
  height: 118px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--green-100);
  text-align: center;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview span { font-size: 30px; }
.photo-preview p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.secondary-button {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green-900);
  background: white;
  font-weight: 700;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; }
.order-detail-list { display: grid; gap: 10px; margin: 20px 0; }
.order-detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px; border-radius: 10px; background: var(--cream); }
.order-check-row {
  align-items: center;
  cursor: pointer;
}
.order-check-row input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  accent-color: var(--green-900);
}
.order-check-row.checked {
  background: #e3ecdf;
}
.order-check-row.checked span {
  color: var(--muted);
  text-decoration: line-through;
}
.order-detail-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.order-detail-row small {
  flex-basis: 100%;
  margin-left: 31px;
}
.inline-product-photo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 25px;
  visibility: hidden;
  padding: 13px 20px;
  border-radius: 99px;
  color: white;
  background: var(--green-950);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 15px);
  transition: .2s;
}
.toast.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.order-alert {
  position: fixed;
  z-index: 110;
  right: 24px;
  top: 106px;
  width: min(430px, calc(100% - 32px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(237, 107, 58, .35);
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 55px rgba(23, 62, 49, .22);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(.98);
  transition: .22s ease;
}
.order-alert.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: orderPulse 1.1s ease 2;
}
.order-alert h3 {
  margin: 5px 0 4px;
  font-size: 24px;
}
.order-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.order-alert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.order-alert-actions .secondary-button {
  grid-column: auto;
}
.order-alert-actions .icon-button {
  margin-left: auto;
}
.secondary-button:disabled {
  opacity: .58;
  cursor: default;
}
@keyframes orderPulse {
  0%, 100% { box-shadow: 0 20px 55px rgba(23, 62, 49, .22); }
  50% { box-shadow: 0 20px 65px rgba(237, 107, 58, .42); }
}

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
.order-card { grid-template-columns: minmax(145px, .7fr) minmax(0, 1fr) minmax(200px, 220px); }
  .order-summary { display: none; }
  .customer-layout, .customer-detail-grid, .instagram-layout, .whatsapp-layout, .ai-layout { grid-template-columns: 1fr; }
  .shopkeeper-view.active { display: block; }
  .shopkeeper-view .dashboard-sidebar {
    position: sticky;
    top: 86px;
    z-index: 24;
    height: auto;
    padding: 12px clamp(18px, 4vw, 34px);
  }
  .shopkeeper-view .dashboard-sidebar > div,
  .shopkeeper-view .back-to-shop {
    display: none;
  }
  .shopkeeper-view .dashboard-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .shopkeeper-view .dashboard-sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .shopkeeper-view .side-link {
    flex: 0 0 auto;
    width: auto;
    min-width: 126px;
    grid-template-columns: 22px auto auto;
    padding: 11px 12px;
    white-space: nowrap;
  }
  .shopkeeper-view .logout-link {
    margin-top: 0;
  }
  .shopkeeper-view .dashboard-content {
    padding: 36px clamp(18px, 4vw, 44px);
  }
}
@media (max-width: 800px) {
  body { padding-bottom: 76px; }
  body.client-app { padding-bottom: 0; }
  body.shop-app { padding-bottom: 0; }
  .topbar { height: 86px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 62px; height: 62px; border-radius: 18px; }
  .brand-wordmark { width: min(190px, calc(100vw - 150px)); }
  .cart-button span { display: none; }
  .cart-button { padding: 10px 12px; }
  .main-nav {
    position: fixed;
    z-index: 45;
    left: 14px;
    right: 14px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(31, 77, 60, .12);
    border-radius: 18px;
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 12px 35px rgba(23, 62, 49, .16);
    backdrop-filter: blur(14px);
  }
  .client-app .main-nav,
  .shop-app .main-nav,
  .client-route .main-nav { display: none; }
  .nav-link {
    padding: 12px 10px;
    font-size: 13px;
  }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 65px 25px 55px; }
  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }
  .hero-art { min-height: 350px; clip-path: ellipse(92% 87% at 60% 80%); }
  .category-orbit {
    inset: 22px 10px 18px;
    display: block;
  }
  .produce {
    position: absolute;
    width: 76px;
    height: 76px;
  }
  .emoji-icon {
    font-size: 50px;
  }
  .produce-fruit { left: 10%; top: 50%; transform: rotate(-10deg) scale(.95); }
  .produce-vegetables { left: 13%; top: 18%; transform: rotate(10deg) scale(.85); }
  .produce-pasta { left: 42%; top: 25%; transform: rotate(-18deg) scale(1.12); }
  .produce-salami { left: 15%; top: 72%; transform: rotate(15deg) scale(.78); }
  .produce-dairy { left: 43%; top: 68%; transform: rotate(8deg) scale(.9); }
  .produce-cans { left: 71%; top: 58%; transform: rotate(-7deg) scale(.68); }
  .produce-preserves { left: 66%; top: 19%; transform: rotate(12deg) scale(.66); }
  .produce-wine { left: 78%; top: 31%; transform: rotate(8deg) scale(.7); }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shopkeeper-view.active { display: block; }
  .dashboard-sidebar {
    position: sticky;
    top: 86px;
    z-index: 24;
    height: auto;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(23, 62, 49, .14);
  }
  .dashboard-sidebar > div, .back-to-shop { display: none; }
  .dashboard-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .dashboard-sidebar nav::-webkit-scrollbar { display: none; }
  .side-link {
    flex: 0 0 auto;
    min-width: 118px;
    grid-template-columns: 21px auto auto;
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .side-link b {
    min-width: 19px;
    padding: 2px 5px;
  }
  .dashboard-content { padding: 26px 14px 34px; }
  .dashboard-header { margin-bottom: 22px; }
  .dashboard-header h1 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.02;
  }
  .dashboard-header p {
    font-size: 13px;
    line-height: 1.45;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stats-grid article {
    min-height: 112px;
    padding: 14px;
  }
  .stats-grid strong {
    font-size: 27px;
  }
  .orders-toolbar {
    flex-direction: column;
    overflow-x: visible;
  }
  .status-tabs {
    flex: 1 1 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .order-cleanup {
    flex: 1 1 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .order-cleanup select {
    width: 100%;
  }
  
.order-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }
  .order-summary {
    display: block;
  }
  .order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }
  .order-actions .detail-button,
  .order-actions .whatsapp-button {
    width: 100%;
    min-height: 40px;
  }
  .order-actions .status-select {
    justify-self: start;
    min-height: 40px;
  }
  .admin-product {
    align-items: start;
  }
  .admin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .admin-actions button {
    min-height: 38px;
    padding: 8px 7px;
    font-size: 12px;
  }
  .customer-card,
  .instagram-card,
  .whatsapp-card,
  .ai-card {
    padding: 16px;
    border-radius: 14px;
  }
  .instagram-card-header {
    display: grid;
  }
  .compact-tabs {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .instagram-post { grid-template-columns: 1fr; }
  .instagram-date {
    min-height: auto;
    justify-items: start;
    padding: 12px;
  }
  .instagram-actions { justify-content: start; }
  .instagram-actions,
  .whatsapp-actions,
  .customer-actions,
  .ai-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .instagram-actions .detail-button,
  .whatsapp-actions .detail-button,
  .customer-actions .detail-button,
  .customer-actions .whatsapp-button,
  .ai-actions .secondary-button {
    width: 100%;
  }
  .whatsapp-campaign,
  .whatsapp-recipient {
    grid-template-columns: 1fr;
  }
  .whatsapp-actions {
    justify-content: start;
  }
  .ai-insights {
    grid-template-columns: 1fr;
  }
  #ai-output {
    min-height: 270px;
  }
  .product-detail { grid-template-columns: 1fr; }
  .detail-visual { min-height: 200px; }
  .detail-visual img { min-height: 200px; }
}
@media (max-width: 390px) {
  .topbar { padding: 0 12px; }
  .brand-mark { width: 52px; height: 52px; border-radius: 15px; }
  .brand-wordmark { width: min(158px, calc(100vw - 132px)); }
  .cart-button { padding: 9px 10px; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { height: 190px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid article { padding: 15px; }
  .dashboard-header.inline { align-items: stretch; flex-direction: column; }
  .admin-product { grid-template-columns: 55px 1fr; }
  .admin-product-icon { width: 55px; height: 55px; }
  .availability, .admin-actions { grid-column: 2; }
  .pickup-slots-help { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pickup-slot-row { grid-template-columns: 1fr; }
  .pickup-slot-row .availability,
  .pickup-slot-row .admin-actions { grid-column: 1; }
  .pickup-slot-row .admin-actions { grid-template-columns: repeat(3, 1fr); }
  .admin-actions {
    grid-template-columns: 1fr;
  }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .translation-heading,
  .translation-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .translation-actions .secondary-button {
    width: 100%;
  }
  .food-information-admin {
    padding: 16px;
  }
  .allergen-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .customer-row { grid-template-columns: 1fr; }
  .customer-actions { justify-content: start; }
  .instagram-actions,
  .whatsapp-actions,
  .customer-actions,
  .ai-actions,
  .order-actions {
    grid-template-columns: 1fr;
  }
  .photo-field { grid-template-columns: 1fr; }
  .order-alert {
    left: 16px;
    right: 16px;
    top: 86px;
    width: auto;
  }
  .modal {
    width: min(100% - 18px, 650px);
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
    padding: 28px 18px;
    border-radius: 18px;
  }
  .modal h2 {
    padding-right: 42px;
    font-size: 29px;
    line-height: 1.05;
  }
  .modal-close {
    right: 14px;
    top: 14px;
  }
}

/* Configuratore cesti: impaginazione ottimizzata per iPhone */
@media (max-width: 640px) {
  input[type="search"],
  .gift-product-search input {
    min-height: 52px;
    font-size: 17px;
    line-height: 1.35;
    touch-action: manipulation;
  }
  .gift-builder-modal,
  .gift-builder-modal.open {
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 24px 16px 42px;
    border-radius: 0;
    transform: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .gift-builder-modal > h2 { padding-right: 44px; font-size: 30px; }
  .gift-builder-summary { align-items: flex-start; margin-bottom: 18px; padding: 14px; }
  .gift-builder-summary > span { flex: 0 0 48px; width: 48px; height: 48px; font-size: 32px; }
  .gift-product-picker {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
    gap: 12px;
  }
  .gift-catalog-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    width: 100%;
    min-height: 138px;
    flex: 0 0 auto;
    border-radius: 16px;
  }
  .gift-catalog-visual { width: 104px; height: 100%; min-height: 138px; font-size: 48px; }
  .gift-catalog-card > div:last-child { min-width: 0; padding: 14px 52px 14px 14px; }
  .gift-catalog-card h3 { margin-right: 0; font-size: 17px; line-height: 1.15; }
  .gift-catalog-card p { min-height: 0; margin-bottom: 9px; font-size: 12px; }
  .gift-catalog-card strong { display: block; font-size: 13px; }
  .gift-catalog-card .add-button {
    z-index: 4;
    right: 10px;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    touch-action: manipulation;
  }
  .gift-selected-items article { grid-template-columns: 42px minmax(0, 1fr) 32px; }
  .gift-selected-items article > strong { grid-column: 2; }
  .gift-selected-items article > button { grid-column: 3; grid-row: 1 / 3; }
}

.security-admin-card { display: grid; gap: 16px; max-width: 760px; padding: 24px; border: 1px solid #cad7cf; border-radius: 16px; background: #fff; }
.security-admin-card label { font-size: 14px; }
.security-admin-card small { color: var(--muted); line-height: 1.5; }
.security-note { padding: 14px 16px; border-left: 4px solid var(--green-800); border-radius: 10px; background: var(--green-100); }
.security-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.security-form-status { min-height: 22px; margin: 0; color: #9b2f24; font-weight: 800; }
.security-form-status.success { color: #1f6a3b; }
@media (max-width: 620px) {
  .security-admin-card { padding: 18px; }
  .security-admin-card .field-row { grid-template-columns: 1fr; }
}
.settings-admin { display: grid; gap: 20px; max-width: 1050px; }
.settings-admin fieldset { margin: 0; padding: 20px; border: 1px solid #cad7cf; border-radius: 16px; background: #fff; }
.settings-admin legend { padding: 0 8px; color: #173f32; font-weight: 800; }
.settings-admin label { display: grid; gap: 7px; margin: 10px 0; font-weight: 700; }
.settings-admin .checkbox-label { display: flex; }
.weekday-checkboxes { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 14px 0; }
.weekday-checkboxes > span { flex-basis: 100%; font-weight: 800; }
.weekday-checkboxes label { display: flex; align-items: center; gap: 5px; margin: 0; }
.settings-warning { padding: 12px; border-left: 4px solid #b55d20; background: #fff4df; color: #56300e; }
.publish-confirmation { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid rgba(119,64,24,.24); border-radius: 14px; background: rgba(255,246,222,.74); }
.settings-publication-status { margin: .75rem 0 0; color: #8a3d25; font-weight: 750; }
.settings-publication-status.published { color: #256c3c; }
.order-preparation-item { margin: 12px 0; padding: 12px; border: 1px solid #d6dfd9; border-radius: 14px; background: #fff; }
.order-preparation-item.checked { border-color: #9bc4a7; background: #f4fbf5; }
.order-preparation-item.nested { margin-left: 18px; background: #fcfaf3; }
.order-prepared-check { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 750; }
.order-preparation-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.order-preparation-controls label { display: grid; gap: 5px; font-size: .86rem; font-weight: 700; }
.order-preparation-controls input,
.order-preparation-controls select { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #b8c8be; border-radius: 9px; background: #fff; font: inherit; }
.order-preparation-controls .checkbox-label { display: flex; align-items: center; }
.order-preparation-controls .checkbox-label input { width: 22px; min-height: 22px; }
.gift-preparation-items { margin-top: 12px; padding-top: 4px; border-top: 1px dashed #c6d1ca; }
.gift-preparation-items > p { margin: 8px 0; }
.weight-variance { padding: 10px 12px; border-radius: 10px; background: #eef6ef; }
.weight-variance.warning { color: #6d2d19; background: #fff0e8; }
.weight-confirmation { padding: 12px; border: 1px solid #d9a78f; border-radius: 12px; background: #fff7f1; font-weight: 800; }
@media (max-width: 620px) {
  .order-preparation-item.nested { margin-left: 7px; }
  .order-detail-row { align-items: flex-start; }
  .order-preparation-controls { grid-template-columns: 1fr; }
}
