:root {
  /* Brand — AJHA · Chocolate Crêpes by Ahsaine */
  --cocoa-900: #1c100a;
  --cocoa-800: #2a1810;
  --cocoa-700: #3a2415;
  --cocoa-600: #4e2f1b;
  --brand: #6b3f22;        /* warm chocolate (primary action) */
  --brand-deep: #4e2f1b;
  --gold: #c69a52;         /* foil accent */
  --gold-bright: #e2c07d;
  --caramel: #b0703a;
  --leaf: #5e6b45;         /* cocoa-leaf green */
  --cream: #f3e7d5;
  --cream-2: #efe0ca;

  /* Semantic tokens — names kept so existing var() usage recolours automatically */
  --blue: #6b3f22;         /* action colour -> chocolate */
  --navy: #2a1810;         /* main ink */
  --green: #5e6b45;        /* success / cash */
  --orange: #b0703a;       /* caramel */
  --red: #b23a2e;          /* error terracotta */
  --purple: #7a5230;       /* mocha */
  --muted: #8a6f5b;        /* warm taupe text */
  --line: #e3d4bd;         /* warm parchment border */
  --bg: #f3e7d5;           /* cream background */
  --card: #fffaf1;         /* cream card surface */
  --soft: #efe0ca;         /* soft cream */
  --text: #2a1810;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ui: "Karla", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(198, 154, 82, 0.12), transparent 60%),
    radial-gradient(120% 70% at -10% 0%, rgba(78, 47, 27, 0.08), transparent 55%),
    var(--bg);
}

h1, h2, h3, .brand {
  font-family: var(--display);
  font-optical-sizing: auto;
}

button, input, textarea, select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img, svg, canvas {
  max-width: 100%;
}

html, body {
  overflow-x: clip;
}


.dashboard > *,
.product-admin > * {
  min-width: 0;
}

.panel, .card, .product-card {
  overflow-wrap: anywhere;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  font-size: 1.1rem;
}

.logo {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--blue), #00a7ff);
  box-shadow: 0 1rem 2rem rgba(7, 91, 255, 0.2);
}

.topbar-lead {
  display: contents;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  color: white;
  background: var(--blue);
  font-weight: 800;
  box-shadow: 0 0.75rem 1.5rem rgba(7, 91, 255, 0.16);
}

.btn.secondary {
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.green { background: var(--green); }
.btn.orange { background: var(--orange); }
.btn.red { background: var(--red); }
.btn.purple { background: var(--purple); }
.btn:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 3rem;
}

.panel, .card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.06);
}

.panel {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-stat {
  padding: 1rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid var(--line);
}

.mini-stat b {
  display: block;
  font-size: 1.4rem;
}

.mini-stat small {
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2, .section-head h3 {
  margin: 0;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.tab {
  white-space: nowrap;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
}

.tab.active {
  color: white;
  background: var(--blue);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.product-card {
  padding: 1rem;
}

.product-img {
  width: 100%;
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #e0edff, #fef3c7);
  color: #94a3b8;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 0 0 0.35rem;
}

.muted {
  color: var(--muted);
}

.price {
  font-weight: 900;
  color: var(--blue);
}

.cart {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cart-item, .order-row, .customer-row {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  margin-bottom: 0.7rem;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.25rem;
  gap: 0.75rem;
  align-items: stretch;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-thumb {
  display: grid;
  width: 4.25rem;
  align-self: stretch;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: linear-gradient(135deg, var(--cream-2), #e7d3b6);
  border-radius: 0.75rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-order {
  padding: 0.35rem;
  border-radius: 0.65rem;
  margin-bottom: 0.3rem;
}

.compact-order-head, .compact-order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.compact-order-head strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.1;
}

.compact-order-head-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.silence-order-btn {
  font-size: 0.72rem;
  line-height: 1;
}

.compact-meta {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.2;
}

.compact-order-line {
  margin: 0.22rem 0;
  font-size: 0.66rem;
}

.info-btn {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf2ff;
  border: 1px solid #cfe1ff;
  font-weight: 900;
}

.info-btn.danger-btn {
  color: var(--red);
  background: #fee2e2;
  border-color: #fecaca;
  cursor: pointer;
}

.order-actions {
  margin-top: 0.6rem;
  gap: 0.5rem;
  align-items: center;
}

.customer-search {
  margin: 0.6rem 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.customer-pager {
  margin-top: 0.9rem;
  justify-content: space-between;
  align-items: center;
}

.compact-select {
  min-height: 1.8rem;
  padding: 0.25rem 0.35rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
}

.order-details {
  display: none;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--line);
}

.compact-order:hover .order-details,
.compact-order.show-details .order-details {
  display: grid;
}

.detail-commande,
.order-details .detail-phone,
.order-details .detail-stats,
.order-details .detail-address {
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  border-left: 3px solid transparent;
}

.detail-commande {
  background: rgba(226, 192, 125, 0.30); /* gold / amber */
  border-left-color: var(--gold);
}

.order-details .detail-phone {
  background: rgba(94, 107, 69, 0.22); /* vert leaf */
  border-left-color: var(--leaf);
}

.order-details .detail-stats {
  background: rgba(178, 58, 46, 0.16); /* terracotta / rouge */
  border-left-color: var(--red);
}

.order-details .detail-address {
  background: rgba(74, 47, 27, 0.18); /* chocolat profond */
  border-left-color: var(--brand-deep);
}

.order-items-mini {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.4rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px dashed var(--line);
}

.order-item-mini {
  display: grid;
  gap: 0.1rem;
}

.order-item-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--text);
}

.order-item-mini-total {
  font-weight: 700;
  color: var(--text);
}

.order-item-mini-opts {
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.3;
}

.order-item-mini-note {
  font-size: 0.66rem;
  color: var(--muted);
  font-style: italic;
}

.detail-line {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.compact-alert {
  padding: 0.4rem;
  border-radius: 0.55rem;
  font-size: 0.68rem;
}

.compact-map {
  min-height: 1.8rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.55rem;
  font-size: 0.7rem;
  box-shadow: none;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.icon-btn {
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  box-shadow: none;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 800;
  font-size: 0.9rem;
}

.input, .textarea, .select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: white;
  padding: 0.8rem 0.9rem;
  color: var(--navy);
}

.textarea {
  min-height: 5rem;
  resize: vertical;
}

.checkout-panel {
  padding: 1rem;
}

.checkout-panel .section-head {
  margin-bottom: 0.7rem;
}

.checkout-panel .section-head h2 {
  font-size: 1.15rem;
}

.checkout-stack {
  gap: 0.5rem;
}

.checkout-field {
  gap: 0.22rem;
}

.checkout-field > span {
  font-size: 0.84rem;
  font-weight: 800;
}

.checkout-panel .input,
.checkout-panel .select {
  min-height: 2.45rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.7rem;
}

.checkout-panel .textarea {
  min-height: 3.25rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.7rem;
}

.checkout-order-note {
  min-height: 2.8rem;
}

.checkout-name-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.checkout-name-input {
  padding-right: 2.55rem;
}

.checkout-name-action {
  position: absolute;
  right: 0.35rem;
  width: 1.85rem;
  height: 1.85rem;
  min-height: 0;
  padding: 0;
  border-radius: 0.55rem;
}

.checkout-note {
  margin: -0.12rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}


.checkout-alert {
  padding: 0.42rem 0.55rem;
  border-radius: 0.6rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 700;
}

.checkout-estimate {
  background: #e7f7ec;
  border-color: #bfe6c9;
  color: #176b3a;
}

.checkout-wa-box {
  padding: 0.4rem 0.55rem;
  border-radius: 0.6rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
}

.checkout-wa-box label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.checkout-wa-box p {
  margin: 0.15rem 0 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.wa-inline-error {
  margin: 0.2rem 0 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}

.checkout-actions {
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.checkout-actions .btn {
  min-height: 2.45rem;
  padding: 0.62rem 0.75rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 10, 20, 0.55);
}

.modal {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1rem;
}

.option-group {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px dashed #b6c5dc;
  background: #fbfdff;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 0;
}

.option-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.option-card {
  display: grid;
  grid-template-columns: auto 44px 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: white;
}

.option-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 91, 255, 0.1);
}

.option-card.disabled {
  opacity: 0.55;
}

.option-card b,
.option-card small {
  display: block;
}

.option-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}


.admin-option-preview {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.75rem;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.68rem;
  font-weight: 900;
}


.admin-option-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.choice-pill {
  min-height: 3rem;
  padding: 0.8rem;
  border-radius: 1rem;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  font-weight: 900;
}

.choice-pill.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.admin-option-file {
  padding: 0.55rem;
}

.dashboard {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.7rem;
}

.sidebar {
  position: sticky;
  top: 5.5rem;
  padding: 0.65rem;
}

.side-btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 2.25rem;
  margin-bottom: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.column {
  min-height: 360px;
  padding: 0.4rem;
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
}

.column h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.compact-order .badge {
  min-height: 1.25rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.58rem;
}

.analytics-tabs {
  margin-bottom: 1rem;
}

.analytics-custom {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fbfdff;
}

.analytics-custom-actions {
  align-items: center;
}

.analytics-grid {
  margin-bottom: 1rem;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

.analytics-table th,
.analytics-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.analytics-table th {
  background: var(--soft);
  font-size: 0.85rem;
}

.analytics-table tr:last-child td {
  border-bottom: 0;
}

.log-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.log-day {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log-day-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  color: var(--cocoa-800);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-bottom: 2px solid var(--line);
}

.log-line {
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 0.4rem 0.6rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.log-time {
  font-weight: 700;
  color: var(--cocoa-800);
}

.log-empty {
  padding: 1rem;
}

.analytics-option-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.15rem;
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.78rem;
}

.analytics-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.analytics-option-chip b {
  color: var(--blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  color: #075985;
  background: #e0f2fe;
}

.badge.green { color: #047857; background: #d1fae5; }
.badge.orange { color: #c2410c; background: #ffedd5; }
.badge.red { color: #b91c1c; background: #fee2e2; }
.badge.purple { color: #6d28d9; background: #ede9fe; }

.product-admin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.product-form-section {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fbfdff;
}

.product-form-step-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.product-form-step-num {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  font-size: 0.85rem;
}

.product-form-step-head h3 {
  margin: 0;
  font-size: 1rem;
}

.product-image-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.option-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.option-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option-type-card:hover {
  border-color: var(--blue);
  background: #eff6ff;
}

.option-type-card b {
  font-size: 0.95rem;
}

.option-type-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.option-row-simple {
  display: grid;
  grid-template-columns: 44px 1fr 130px auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: white;
  margin-bottom: 0.4rem;
}

.option-image-btn {
  font-size: 0.65rem;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 0.5rem;
  padding: 0.2rem;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.option-image-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.price-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.price-hint {
  font-size: 0.7rem;
  color: var(--muted);
}

.switch {
  display: inline-flex;
  cursor: pointer;
  position: relative;
  align-items: center;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  width: 3rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 0.15rem;
  display: flex;
  transition: background 0.2s;
}

.switch-thumb {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch input:checked + .switch-track {
  background: var(--green);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(1.4rem);
}

.store-state {
  font-weight: 700;
  font-size: 0.9rem;
  align-self: center;
}
.store-state.open { color: var(--green); }
.store-state.closed { color: #dc2626; }
.store-switch input:disabled + .switch-track { opacity: 0.7; cursor: default; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.store-badge .store-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.store-badge.open { color: var(--green); background: rgba(34,197,94,0.12); }
.store-badge.open .store-dot { background: var(--green); }
.store-badge.closed { color: #dc2626; background: rgba(220,38,38,0.12); }
.store-badge.closed .store-dot { background: #dc2626; }

.product-preview {
  max-width: 320px;
}

.product-preview .product-img {
  margin-bottom: 0.6rem;
}

.product-preview .product-img.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 0.9rem;
  aspect-ratio: 1.6;
}

.preview-option-group {
  padding: 0.4rem;
  border-radius: 0.6rem;
  background: var(--soft);
}

.preview-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.badge.secondary {
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
}

.products-list-item {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: white;
  margin-bottom: 0.45rem;
}

.products-list-item .row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.products-list-item .row > .row {
  margin-bottom: 0;
  margin-left: auto;
}

.products-list-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-list-description {
  margin: 0.15rem 0 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.products-list-item .btn {
  min-height: 2.1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  box-shadow: none;
  font-size: 0.8rem;
}

.product-list-toolbar {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.product-list-toolbar .field {
  gap: 0.3rem;
}

.product-list-pager {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.product-list-pager .btn {
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  box-shadow: none;
  font-size: 0.82rem;
}

.product-list-pager .muted {
  text-align: center;
}

.timeline {
  display: grid;
  gap: 0.5rem;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border-left: 4px solid var(--line);
  background: white;
  border-radius: 0.8rem;
  color: var(--muted);
  font-weight: 800;
}

.timeline-step.active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--navy);
}

.timeline-step.done,
.timeline-step.delivered-step {
  border-color: var(--green);
  background: #ecfdf5;
  color: #047857;
}

.timeline-step.cancel-step {
  border-color: var(--red);
  background: #fef2f2;
  color: #b91c1c;
}

.timeline-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
}

.timeline-icon.check {
  background: var(--green);
  color: white;
}

.timeline-icon.cancel {
  background: var(--red);
  color: white;
}

.timeline-icon.loader {
  border: 3px solid #bfdbfe;
  border-top-color: var(--blue);
  background: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.track-notification {
  padding: 1.2rem;
  border-radius: 0.5rem;
  text-align: center;
  margin: 1rem 0;
}

.track-notification.delivered {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.track-notification.cancelled {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.track-notification.none {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.track-notification-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: currentColor;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.track-notification-items {
  margin: 0.75rem 0;
  text-align: left;
}

.track-notification-item {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed currentColor;
  opacity: 0.9;
}

.track-notification-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  font-size: 1.05rem;
}

.alert {
  padding: 0.9rem;
  border-radius: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 700;
}

.loyalty-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--cream-2);
  color: var(--brand-deep);
  font-size: 0.82rem;
  line-height: 1.25;
}

.loyalty-chip > span {
  min-width: 0;
  flex: 1 1 10rem;
}

.loyalty-chip.has-points {
  background: #eef6e8;
  border-color: #cad8bb;
}

.loyalty-chip.no-points {
  background: #f8ebe8;
  border-color: #e6c6bf;
  color: #7a2820;
}

.loyalty-chip .mini-btn {
  flex: 0 0 auto;
  padding: 0.32rem 0.55rem;
  min-height: 0;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.modal.confirm {
  width: min(460px, 100%);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(420px, 92vw);
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  background: #052e1a;
  color: #d1fae5;
  border: 1px solid var(--green);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 900px) {
   .dashboard, .product-admin {
    grid-template-columns: 1fr;
  }

  .cart, .sidebar {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-lead {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
  }

  .topbar-lead .brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--bg);
  }

  .container {
    width: min(100% - 1rem, 1180px);
    padding: 0.75rem 0 6rem;
  }

  .topbar {
    gap: 0.7rem;
    padding: 0.75rem;
  }

  .logo {
    width: 2.3rem;
    height: 2.3rem;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .btn, .choice-pill {
    min-height: 3rem;
    padding: 0.8rem;
  }

  .panel {
    border-radius: 1.1rem;
    padding: 1rem;
  }

  .stats-grid, .two-cols, .option-row-simple, .option-type-grid {
    grid-template-columns: 1fr;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product-img {
    aspect-ratio: 1.7;
  }

  .row {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-actions, .cart-actions .btn {
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0.5rem;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 1.2rem 1.2rem 0 0;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 0.95rem;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.85rem;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.4rem;
  }

  .nav-actions .btn {
    min-height: 2.6rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.82rem;
    border-radius: 0.75rem;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .product-card {
    padding: 0.8rem;
  }

  .product-card h3 {
    font-size: 1.05rem;
  }

  .product-img {
    aspect-ratio: 4 / 3;
    margin-bottom: 0.6rem;
  }

  .option-card-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .option-card {
    grid-template-columns: auto 40px 1fr;
    padding: 0.55rem;
  }

  
  .admin-option-preview {
    width: 40px;
    height: 40px;
  }

  .modal {
    padding: 0.8rem;
  }

  .modal .section-head h2 {
    font-size: 1.1rem;
  }

  .two-cols .choice-pill {
    min-height: 2.6rem;
    font-size: 0.85rem;
    padding: 0.6rem 0.7rem;
  }

  .mode-toggle {
    width: 100%;
  }

  .tabs {
    gap: 0.35rem;
  }

  .tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }

  .section-head {
    gap: 0.5rem;
  }

  .section-head h2 {
    font-size: 1.15rem;
  }

  .btn {
    min-height: 2.6rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .topbar {
    padding: 0.5rem 0.6rem;
  }

  .brand {
    font-size: 0.85rem;
    max-width: 55vw;
  }

  .nav-actions .btn {
    font-size: 0.75rem;
    padding: 0.55rem 0.4rem;
  }

  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .panel {
    padding: 0.75rem;
    border-radius: 1rem;
  }

  .product-img {
    aspect-ratio: 1 / 1;
  }

  .option-card {
    grid-template-columns: auto 36px 1fr;
  }

  
  .admin-option-preview {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .topbar {
    padding: 0.45rem 0.5rem;
  }

  .brand {
    font-size: 0.8rem;
    max-width: 50vw;
  }

  .logo {
    width: 1.9rem;
    height: 1.9rem;
  }

  .nav-actions {
    gap: 0.3rem;
  }

  .nav-actions .btn {
    font-size: 0.72rem;
    padding: 0.5rem 0.35rem;
    min-height: 2.4rem;
  }

  .product-card h3 {
    font-size: 0.98rem;
  }

  .product-card .price {
    font-size: 1rem;
  }

  .section-head h2 {
    font-size: 1.05rem;
  }

  .modal .section-head h2 {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.82rem;
    min-height: 2.4rem;
  }
}

/* =====================================================================
   AJHA · Chocolate Crêpes — brand layer
   Visual identity only (colour, type, texture). Layout untouched so the
   existing responsive behaviour and JS hooks keep working.
   ===================================================================== */

/* --- Header: chocolate-bar wrapper --- */
.topbar {
  background: linear-gradient(180deg, #fbf3e4, var(--cream));
  border-bottom: 1px solid rgba(198, 154, 82, 0.45);
  box-shadow: 0 0.5rem 1.4rem rgba(58, 36, 21, 0.08);
  backdrop-filter: none;
}
.brand { color: var(--cocoa-800); background: transparent; padding: 0; }
.brand .logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
  color: transparent;
  box-shadow: none;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(0.88rem, 4.4vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--cocoa-800);
}
.brand-name small {
  white-space: nowrap;
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(0.46rem, 2.2vw, 0.6rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-top: 0.28rem;
}

/* --- Eyebrow label (echoes the logo's "— by Ahsaine —" rule) --- */

/* --- Display headings --- */
.section-head h2, .section-head h3, .product-card h3, .mini-stat b {
  font-family: var(--display);
}

/* --- Buttons --- */
.btn {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff7ec;
  border-radius: 0.8rem;
  font-family: var(--ui);
  box-shadow: 0 0.5rem 1.1rem rgba(78, 47, 27, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: linear-gradient(180deg, #7c4a28, var(--brand));
  box-shadow: 0 0.7rem 1.4rem rgba(78, 47, 27, 0.32);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.secondary {
  background: var(--card);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.secondary:hover { border-color: var(--gold); background: var(--cream); }
.btn.cta-commander {
  background: linear-gradient(180deg, var(--caramel), var(--brand));
  color: #fff7ec;
  border: 0;
  font-weight: 800;
  box-shadow: 0 0.5rem 1.1rem rgba(176, 112, 58, 0.35);
}
.btn.cta-commander:hover {
  background: linear-gradient(180deg, #c2823f, var(--caramel));
  box-shadow: 0 0.7rem 1.5rem rgba(176, 112, 58, 0.45);
}
.btn.green { background: linear-gradient(180deg, #6c7a4f, var(--leaf)); color: #fff; }
.btn.orange { background: linear-gradient(180deg, #c07f44, var(--caramel)); }
.btn.red { background: linear-gradient(180deg, #c24536, var(--red)); }
.btn.purple { background: linear-gradient(180deg, #8a6038, var(--purple)); }
.btn:disabled { background: #c7b39c; color: #fff; box-shadow: none; transform: none; }

/* --- Surfaces --- */
.panel, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 1.4rem 3rem rgba(58, 36, 21, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* --- Choice cards (home entry points) --- */
.icon {
  background: linear-gradient(160deg, var(--cocoa-700), var(--cocoa-900));
  color: var(--gold-bright);
  border-radius: 0.9rem;
  border: 1px solid rgba(198, 154, 82, 0.4);
  font-family: var(--display);
}

/* --- Tabs --- */
.tab { background: var(--card); border: 1px solid var(--line); color: var(--brand-deep); }
.tab:hover { border-color: var(--gold); }
.tab.active {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff7ec;
  border-color: var(--brand-deep);
}

/* --- Products --- */
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 1rem 2rem rgba(58, 36, 21, 0.12); }
.product-img { background: linear-gradient(135deg, var(--cream-2), #e7d3b6); color: var(--muted); }
.price { color: var(--caramel); font-weight: 900; }

/* --- Mini stats / rows --- */
.mini-stat { background: var(--card); border: 1px solid var(--line); }
.mini-stat b { color: var(--cocoa-800); }
.cart-item, .order-row, .customer-row { background: var(--card); border-color: var(--line); }

/* --- Badges --- */
.badge { color: var(--cocoa-800); background: var(--cream-2); }
.badge.green { color: #3f4a2c; background: #e4e7d2; }
.badge.orange { color: #7a3f17; background: #f3e1cb; }
.badge.red { color: #7a2820; background: #f1d7d1; }
.badge.purple { color: #5a3f24; background: #ece0cf; }

/* --- Alert --- */
.alert { background: var(--cream-2); border: 1px solid var(--line); color: var(--brand-deep); }

/* --- Store presentation panel (replaces the old identification card) --- */

/* --- Signature: vintage photo carousel --- */
.carousel {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cocoa-800);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1rem 2.5rem rgba(28, 16, 10, 0.20);
}
.carousel-track { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 6s ease;
}
.carousel-slide.is-active { opacity: 1; transform: scale(1); }
.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(28, 16, 10, 0.55), transparent 42%);
}
.carousel-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cocoa-900);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 0.4rem 1rem rgba(28, 16, 10, 0.25);
}
.carousel-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}
.carousel-dots .dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.carousel-dots .dot.is-active { width: 1.4rem; background: var(--gold-bright); }

/* Button system — warm, tactile and intentionally quiet */
.client-shell {
  --button-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --button-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

.client-shell button:not(:disabled) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.client-shell .btn {
  border: 1px solid rgba(94, 24, 20, 0.58);
  background: linear-gradient(180deg, #b84638 0%, var(--brand) 62%, #8b2a22 100%);
  box-shadow: inset 0 1px rgba(255, 245, 235, 0.26), 0 2px 0 #681915, 0 0.55rem 1.1rem rgba(111, 29, 27, 0.17);
  transition: transform 150ms var(--button-ease-out), box-shadow 150ms var(--button-ease-out), background-color 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.client-shell .btn.cta-commander {
  border-color: rgba(120, 54, 19, 0.58);
  background: linear-gradient(180deg, #df9d3d 0%, var(--caramel) 62%, #aa4a20 100%);
  box-shadow: inset 0 1px rgba(255, 250, 232, 0.38), 0 2px 0 #8c3518, 0 0.6rem 1.2rem rgba(172, 75, 28, 0.20);
}

.client-shell .btn.secondary {
  border-color: #e4cbb6;
  background: linear-gradient(180deg, #fffefa, #f8e9dc);
  box-shadow: inset 0 1px #fff, 0 2px 0 #e3cbb8, 0 0.4rem 0.85rem rgba(75, 29, 24, 0.07);
}

.client-shell .btn.green {
  border-color: rgba(52, 68, 34, 0.65);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 2px 0 #46502f, 0 0.55rem 1.1rem rgba(70, 80, 47, 0.18);
}

.client-shell .btn:active:not(:disabled),
.client-shell .category-row:active,
.client-shell .floating-cart:active,
.client-shell .floating-category-back:active,
.client-shell .cart-drawer-close:active,
.client-shell .mode-toggle-opt:active,
.client-shell .option-card:has(input):active {
  transform: translateY(2px) scale(0.975);
}

.client-shell .btn:active:not(:disabled) {
  box-shadow: inset 0 2px 5px rgba(72, 16, 12, 0.18), 0 0 0 rgba(111, 29, 27, 0);
}

.client-shell .btn.secondary:active:not(:disabled) {
  box-shadow: inset 0 2px 5px rgba(95, 48, 26, 0.10), 0 0 0 rgba(75, 29, 24, 0);
}

.client-shell .category-row,
.client-shell .floating-cart,
.client-shell .floating-category-back,
.client-shell .cart-drawer-close,
.client-shell .mode-toggle-opt,
.client-shell .option-card {
  transition: transform 150ms var(--button-ease-out), box-shadow 180ms var(--button-ease-out), border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.client-shell .mode-toggle-opt:active { color: var(--brand-deep); }
.client-shell .cart-drawer-close:active { background: var(--cream-2); }
.client-shell .btn:focus-visible,
.client-shell .category-row:focus-visible,
.client-shell .floating-cart:focus-visible,
.client-shell .floating-category-back:focus-visible,
.client-shell .cart-drawer-close:focus-visible,
.client-shell .mode-toggle-opt:focus-visible {
  outline: 3px solid rgba(215, 151, 59, 0.72);
  outline-offset: 3px;
}

.client-shell .btn:hover:not(:disabled),
.client-shell .category-row:hover,
.client-shell .floating-cart:hover,
.client-shell .floating-category-back:hover,
.client-shell .cart-drawer-close:hover {
  filter: none;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .client-shell .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: inset 0 1px rgba(255, 245, 235, 0.32), 0 3px 0 #681915, 0 0.75rem 1.35rem rgba(111, 29, 27, 0.21);
  }

  .client-shell .btn.cta-commander:hover:not(:disabled) {
    box-shadow: inset 0 1px rgba(255, 250, 232, 0.48), 0 3px 0 #8c3518, 0 0.8rem 1.45rem rgba(172, 75, 28, 0.24);
  }

  .client-shell .btn.secondary:hover:not(:disabled) {
    background: #fffdf9;
    border-color: var(--gold);
    box-shadow: inset 0 1px #fff, 0 3px 0 #e3cbb8, 0 0.65rem 1.1rem rgba(75, 29, 24, 0.10);
  }

  .client-shell .category-row:hover,
  .client-shell .floating-cart:hover,
  .client-shell .floating-category-back:hover,
  .client-shell .cart-drawer-close:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: opacity 0.01s linear; transform: none; }
  .carousel-slide.is-active { transform: none; }
}

/* --- Brand-layer responsive tweaks (last = authoritative) --- */
@media (max-width: 900px) {
  .carousel { aspect-ratio: 16 / 10; }
  /* mobile : la card photos + présentation passe en 1er, les boutons en 2e */
}
@media (max-width: 640px) {
  /* neutralise l'ancienne troncature ellipsis héritée de l'ancien wordmark */
  .brand { justify-content: flex-start; gap: 0.55rem; max-width: none; overflow: visible; }
  .brand span:last-child { overflow: visible; text-overflow: clip; }
  .brand .logo { width: 2.3rem; height: 2.3rem; }
  .brand-name small { letter-spacing: 0.1em; }
  .nav-actions .btn { min-width: 0; white-space: normal; }
  .carousel { aspect-ratio: 4 / 3; }
}

.printer-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.printer-panel-head,
.printer-panel-title,
.printer-queue-note,
.printer-job {
  display: flex;
  align-items: center;
}

.printer-panel-head { justify-content: space-between; gap: 1rem; }
.printer-panel-title { min-width: 0; gap: 0.75rem; }
.printer-panel-title h3 { margin: 0; font-size: 1rem; }
.printer-panel-title p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.printer-panel-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 2.7rem;
  color: var(--brand-deep);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}
.printer-main-status { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.printer-dot { width: 0.5rem; height: 0.5rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.printer-error { margin: 0; }

.print-agent-health {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.print-agent-health > div { display: grid; gap: 0.18rem; padding: 0.75rem; background: var(--soft); border: 1px solid var(--line); border-radius: 0.75rem; }
.print-agent-health span { color: var(--muted); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.print-agent-health strong { color: var(--text); font-size: 0.88rem; }
.print-agent-health strong.green { color: var(--green); }
.print-agent-health strong.red { color: var(--red); }
.print-agent-health strong.orange { color: var(--orange); }
.print-agent-health small { color: var(--muted); font-size: 0.75rem; line-height: 1.4; }

.printer-queue-note { justify-content: space-between; gap: 0.7rem; padding: 0.65rem 0.75rem; color: var(--muted); background: var(--soft); border-radius: 0.75rem; font-size: 0.76rem; }
.printer-queue-note strong { color: var(--text); }

.printer-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.printer-metrics div { display: grid; gap: 0.1rem; padding: 0.65rem; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; }
.printer-metrics strong { color: var(--text); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.printer-metrics span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }

.printer-history { border-top: 1px solid var(--line); }
.printer-history summary { display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; padding-top: 0.55rem; cursor: pointer; font-size: 0.82rem; font-weight: 900; }
.printer-history summary span { color: var(--muted); }
.printer-history summary:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.4); outline-offset: 2px; }
.printer-job-list { display: grid; gap: 0.4rem; padding-top: 0.4rem; }
.printer-job { gap: 0.55rem; min-width: 0; padding: 0.55rem; background: var(--soft); border-radius: 0.7rem; }
.printer-job-copy { display: grid; min-width: 0; flex: 1; gap: 0.12rem; }
.printer-job-copy strong { font-size: 0.78rem; overflow-wrap: anywhere; }
.printer-job-copy small { color: var(--muted); font-size: 0.75rem; line-height: 1.4; overflow-wrap: anywhere; }
.printer-retry { min-height: 2.75rem; padding: 0.5rem 0.65rem; }
.printer-empty { margin: 0; padding: 0.75rem; color: var(--muted); background: var(--soft); border-radius: 0.75rem; font-size: 0.8rem; text-align: center; }

@media (max-width: 640px) {
  .printer-panel-head { align-items: flex-start; flex-direction: column; }
  .printer-main-status { align-self: flex-start; }
  .print-agent-health { grid-template-columns: minmax(0, 1fr); }
  .printer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .printer-queue-note { align-items: flex-start; flex-direction: column; }
  .printer-job { align-items: flex-start; flex-wrap: wrap; }
  .printer-job-copy { flex-basis: calc(100% - 7rem); }
}

.wa-panel { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.wa-status { display: flex; align-items: center; gap: 0.75rem; }
.wa-status p { margin: 0.15rem 0 0; }
.wa-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.wa-dot.ok { background: var(--green, #16a34a); }
.wa-dot.off { background: #cbd5e1; }
.wa-loader { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; border: 3px solid #bfdbfe; border-top-color: var(--blue, #2563eb); animation: spin 0.8s linear infinite; }
.wa-qr { background: white; padding: 0.75rem; border-radius: 12px; border: 1px solid #e2e8f0; }
.wa-qr img { display: block; width: 220px; height: 220px; }
.wa-notify { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 0.9rem; }
.wa-notify.active { background: #f0fdf4; border-color: #bbf7d0; }
.wa-notify.pending { background: #fffbeb; border-color: #fde68a; }
.wa-notify p { margin: 0.4rem 0 0; }

/* Relevé de revenus (export PDF) */
#print-area { display: none; }
.releve { color: #1a1a1a; font-family: "Hanken Grotesk", Arial, sans-serif; max-width: 720px; margin: 0 auto; padding: 8px; }
.releve-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #111; padding-bottom: 14px; }
.releve-logo { width: 64px; height: 64px; object-fit: contain; }
.releve-resto h1 { margin: 0; font-size: 22px; }
.releve-resto p { margin: 2px 0 0; font-size: 13px; color: #444; }
.releve-title { margin: 18px 0; }
.releve-title h2 { margin: 0 0 6px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.releve-title p { margin: 2px 0; font-size: 13px; }
.releve-muted { color: #666; }
.releve-totaux { display: flex; gap: 12px; margin: 16px 0; }
.releve-totaux div { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; }
.releve-totaux span { display: block; font-size: 11px; text-transform: uppercase; color: #666; }
.releve-totaux b { font-size: 18px; }
.releve-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.releve-table th, .releve-table td { border-bottom: 1px solid #e2e2e2; padding: 8px 10px; text-align: left; }
.releve-table th { background: #f5f5f5; border-bottom: 2px solid #111; }
.releve-table .num { text-align: right; }
.releve-table tfoot td { font-weight: 700; border-top: 2px solid #111; border-bottom: none; }
.releve-empty { text-align: center; color: #888; padding: 16px; }
.releve-foot { margin-top: 24px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 11px; color: #888; text-align: center; }

@media print {
  body > #app { display: none !important; }
  #print-area { display: block !important; }
  @page { margin: 16mm; }
}

.kanban-exit-btn { display: none; }

body.kanban-fallback-open {
  overflow: hidden;
}

.kanban-wrap:fullscreen,
.kanban-wrap:-webkit-full-screen,
.kanban-wrap.is-fallback-fullscreen {
  background: var(--bg);
  overflow: auto;
  padding: 1rem;
}

.kanban-wrap.is-fallback-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  -webkit-overflow-scrolling: touch;
}

.kanban-wrap:fullscreen .kanban-exit-btn,
.kanban-wrap:-webkit-full-screen .kanban-exit-btn,
.kanban-wrap.is-fallback-fullscreen .kanban-exit-btn {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.kanban-add-btn { display: none; }

.kanban-wrap:fullscreen .kanban-add-btn,
.kanban-wrap:-webkit-full-screen .kanban-add-btn,
.kanban-wrap.is-fallback-fullscreen .kanban-add-btn {
  display: inline-block;
  margin-bottom: 0.75rem;
  margin-left: 0.5rem;
}

.kanban-wrap:fullscreen .kanban,
.kanban-wrap:-webkit-full-screen .kanban,
.kanban-wrap.is-fallback-fullscreen .kanban {
  min-height: calc(100vh - 6rem);
}

.kanban-wrap:fullscreen .column,
.kanban-wrap:-webkit-full-screen .column,
.kanban-wrap.is-fallback-fullscreen .column {
  min-height: calc(100vh - 6rem);
}

.mode-toggle {
  position: relative;
  display: flex;
  width: fit-content;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
}

.mode-toggle-thumb {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  height: calc(100% - 0.5rem);
  background: var(--blue);
  border-radius: 999px;
  transition: transform 0.25s ease;
}

.mode-toggle.right .mode-toggle-thumb {
  transform: translateX(100%);
}

.mode-toggle-opt {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  border: none;
  background: transparent;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.mode-toggle-opt.active {
  color: white;
}

/* Caisse POS - popup commande manuelle (tailles fluides clamp) */
.pos-modal {
  position: relative;
  width: min(1400px, 98vw);
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pos-modal > .section-head {
  margin: 0;
  padding: clamp(0.9rem, 2vw, 1.4rem) clamp(1rem, 2.2vw, 1.6rem) clamp(0.5rem, 1.2vw, 0.8rem);
}

.pos-modal > .section-head h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.pos-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  padding: 0 clamp(1rem, 2.2vw, 1.6rem) clamp(1rem, 2.2vw, 1.6rem);
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.pos-products {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pos-product-toolbar {
  display: grid;
  gap: 0.7rem;
  margin-top: clamp(0.75rem, 1.5vw, 1.1rem);
}

.pos-category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.5rem;
  overflow: visible;
  padding-bottom: 0;
}

.pos-category-tabs .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.pos-tab-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--brand-deep);
  font-size: 0.76em;
  line-height: 1;
}

.pos-category-tabs .tab.active .pos-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.pos-layout-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.pos-layout-control .select {
  width: auto;
  min-width: 5.5rem;
  padding: 0.55rem 0.7rem;
}

.pos-sort-note {
  color: var(--muted);
  margin-top: -0.25rem;
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
  margin-top: 0;
  padding-right: 0.35rem;
  overflow-y: auto;
  align-content: start;
}

.pos-grid.columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pos-grid.columns-9 {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.pos-card {
  padding: clamp(0.6rem, 1.2vw, 0.9rem);
  min-width: 0;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pos-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.7rem 1.6rem rgba(58, 36, 21, 0.16);
}

.pos-modal .pos-card .product-img {
  aspect-ratio: 1;
  margin-bottom: clamp(0.45rem, 1vw, 0.7rem);
}

.pos-card h4 {
  margin: 0 0 0.2rem;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pos-card .price {
  font-weight: 800;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

.pos-grid.columns-6 .pos-card,
.pos-grid.columns-9 .pos-card {
  padding: 0.45rem;
}

.pos-grid.columns-6 .pos-card h4,
.pos-grid.columns-9 .pos-card h4,
.pos-grid.columns-6 .pos-card .price,
.pos-grid.columns-9 .pos-card .price {
  font-size: clamp(0.72rem, 1vw, 0.95rem);
}

.pos-grid.columns-9 {
  gap: clamp(0.35rem, 0.6vw, 0.6rem);
}

.pos-grid.columns-9 .pos-card {
  padding: 0.3rem;
  border-radius: 0.7rem;
}

.pos-grid.columns-9 .pos-card .product-img {
  margin-bottom: 0.3rem;
  border-radius: 0.55rem;
}

.pos-grid.columns-9 .pos-card h4 {
  margin-bottom: 0.15rem;
  font-size: clamp(0.64rem, 0.75vw, 0.8rem);
  line-height: 1.1;
}

.pos-grid.columns-9 .pos-card .price {
  font-size: clamp(0.62rem, 0.7vw, 0.78rem);
  line-height: 1.1;
  white-space: nowrap;
}

.pos-ticket {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
  min-height: 0;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem, 1.6vw, 1.4rem);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.pos-ticket .field span,
.pos-ticket .checkbox-line span {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.pos-ticket .input {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  padding: 0.7rem 0.85rem;
}

.pos-ticket-items {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 0.9vw, 0.65rem);
  flex: 1;
  min-height: 70px;
  overflow-y: auto;
}

.pos-ticket-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.pos-ticket-qty { font-weight: 800; }

.pos-ticket-price { font-weight: 700; white-space: nowrap; }

.pos-ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(0.6rem, 1.2vw, 0.9rem);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.pos-submit {
  width: 100%;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  padding: clamp(0.7rem, 1.4vw, 1rem);
}

.pos-options-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 10, 20, 0.5);
}

.pos-options {
  width: min(640px, 94vw);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.8vw, 1.3rem);
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
}

.pos-options .section-head h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.pos-opt-group { display: flex; flex-direction: column; gap: clamp(0.45rem, 1vw, 0.7rem); }

.pos-opt-label { font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); }

.pos-opt-choices { display: flex; flex-wrap: wrap; gap: clamp(0.4rem, 1vw, 0.65rem); }

.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: clamp(0.5rem, 1.1vw, 0.75rem) clamp(0.8rem, 1.6vw, 1.15rem);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  cursor: pointer;
  color: var(--navy);
}

.chip small { font-weight: 500; opacity: 0.7; }

.chip.active { background: var(--blue); color: white; border-color: var(--blue); }

.qty-stepper { display: flex; align-items: center; gap: clamp(0.6rem, 1.2vw, 0.9rem); }

.qty-stepper span { font-weight: 800; min-width: 2rem; text-align: center; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

.qty-stepper .icon-btn { font-size: 1.3rem; }

.pos-options-foot { display: flex; justify-content: space-between; align-items: center; gap: clamp(0.75rem, 1.5vw, 1.1rem); }

.pos-options-foot .btn.green {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  padding: clamp(0.65rem, 1.3vw, 0.95rem) clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 760px) {
  .pos-modal { width: 96vw; max-height: 94vh; }
  .pos-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .pos-ticket { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1rem; }
  .pos-grid { max-height: 44vh; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-grid.columns-6 .pos-card,
  .pos-grid.columns-9 .pos-card { padding: 0.55rem; }
  .pos-grid.columns-6 .pos-card h4,
  .pos-grid.columns-9 .pos-card h4,
  .pos-grid.columns-6 .pos-card .price,
  .pos-grid.columns-9 .pos-card .price { font-size: clamp(0.85rem, 3.5vw, 1.05rem); }
  .pos-layout-control { justify-content: space-between; }
  .pos-options { width: 94vw; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .pos-grid.columns-6,
  .pos-grid.columns-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pos-grid.columns-6 .pos-card,
  .pos-grid.columns-9 .pos-card { padding: 0.6rem; }
  .pos-grid.columns-6 .pos-card h4,
  .pos-grid.columns-9 .pos-card h4,
  .pos-grid.columns-6 .pos-card .price,
  .pos-grid.columns-9 .pos-card .price { font-size: clamp(0.9rem, 1.5vw, 1.1rem); }
}

@media (max-width: 360px) {
  .pos-grid { grid-template-columns: 1fr; }
}

/* Client ordering flow */

.category-shelf {
  display: grid;
  gap: 0.75rem;
}

.category-row {
  display: grid;
  grid-template-columns: clamp(6.25rem, 18vw, 8rem) minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 7.75rem;
  overflow: hidden;
  padding: 0;
  color: var(--navy);
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 0.7rem 1.5rem rgba(58, 36, 21, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-row:hover,
.category-row:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0.85rem 1.7rem rgba(58, 36, 21, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.category-row-image {
  display: grid;
  place-items: center;
  min-height: 7.75rem;
  overflow: hidden;
  color: var(--brand-deep);
  background: var(--soft);
}

.category-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-row-fallback {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--card);
  background: var(--brand);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
}

.category-row-copy {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1rem;
}

.category-row-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  line-height: 1.2;
}

.category-row-copy small {
  color: var(--muted);
  font-size: 0.84rem;
}

.category-row-action {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  align-self: center;
  margin-right: 1rem;
  color: var(--brand-deep);
  background: var(--soft);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
}

.menu-products {
  margin-top: 0.25rem;
}

.checkout-order-type {
  display: grid;
  gap: 0.45rem;
}

.checkout-order-type-label {
  font-size: 0.92rem;
  font-weight: 800;
}

.checkout-order-type-toggle {
  width: min(100%, 22rem);
}

@media (max-width: 640px) {

  .category-shelf {
    gap: 0.65rem;
  }

  .category-row {
    grid-template-columns: 5.75rem minmax(0, 1fr) auto;
    min-height: 6.25rem;
  }

  .category-row-image {
    min-height: 6.25rem;
  }

  .category-row-copy {
    padding: 0.75rem;
  }

  .category-row-copy strong {
    font-size: 1rem;
  }

  .category-row-action {
    width: 2rem;
    height: 2rem;
    margin-right: 0.65rem;
    font-size: 1.05rem;
  }
}

/* Panier client flottant */

.floating-cart {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: grid;
  width: 4.9rem;
  height: 4.9rem;
  place-items: center;
  padding: 0;
  color: var(--card);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 34%),
    linear-gradient(145deg, var(--gold), var(--brand) 58%, var(--brand-deep));
  border: 1px solid rgba(255, 250, 241, 0.45);
  border-radius: 50%;
  box-shadow: 0 1rem 2.2rem rgba(58, 36, 21, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: floating-cart-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-cart:hover {
  box-shadow: 0 1.3rem 2.6rem rgba(58, 36, 21, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.025);
}

.floating-cart:active {
  transform: translateY(0) scale(0.96);
}

.floating-cart:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.floating-cart-icon {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  transform: translateY(-0.38rem);
}

.floating-cart-icon svg {
  width: 100%;
  height: 100%;
}

.floating-cart-count {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  display: grid;
  min-width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  padding: 0 0.32rem;
  color: var(--brand-deep);
  background: var(--card);
  border: 1px solid var(--gold-bright);
  border-radius: 999px;
  box-shadow: 0 0.3rem 0.75rem rgba(58, 36, 21, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
}

.floating-category-back {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.48rem 0.85rem 0.48rem 0.48rem;
  color: var(--brand-deep);
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 0.75rem 1.7rem rgba(58, 36, 21, 0.2);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  animation: floating-category-back-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-category-back.has-cart {
  bottom: calc(clamp(1rem, 3vw, 2rem) + 5.7rem);
}

.floating-category-back:hover {
  background: var(--card);
  box-shadow: 0 1rem 2rem rgba(58, 36, 21, 0.26);
  transform: translateY(-2px);
}

.floating-category-back:active {
  transform: scale(0.96);
}

.floating-category-back:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.floating-category-back-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--card);
  background: linear-gradient(145deg, var(--gold), var(--brand));
  border-radius: 50%;
}

.floating-category-back-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

@keyframes floating-category-back-in {
  from { opacity: 0; transform: translateY(0.7rem) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floating-cart-in {
  from { opacity: 0; transform: translateY(0.85rem) scale(0.82); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-end;
  background: rgba(42, 24, 16, 0.48);
  backdrop-filter: blur(3px);
  animation: cart-backdrop-in 0.2s ease-out;
}

.cart-drawer {
  width: min(27rem, 100%);
  min-height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(255, 250, 241, 0.98);
  border-left: 1px solid var(--line);
  box-shadow: -1.2rem 0 3rem rgba(42, 24, 16, 0.2);
  animation: cart-drawer-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer-handle {
  display: none;
}

.cart-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.cart-drawer-close {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand-deep);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.cart-drawer-close:hover {
  background: var(--cream);
  transform: rotate(90deg);
}

.cart-drawer-close:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

.cart-drawer .cart {
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cart-drawer .cart-actions {
  flex-wrap: nowrap;
}

.cart-drawer .cart-actions .btn {
  width: auto;
  min-height: 2.3rem;
  padding: 0.48rem 0.62rem;
}

@keyframes cart-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cart-drawer-in {
  from { opacity: 0.7; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {

  .floating-cart {
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    width: 4.45rem;
    height: 4.45rem;
  }

  .floating-category-back {
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    min-height: 2.8rem;
    padding-right: 0.75rem;
    font-size: 0.76rem;
  }

  .floating-category-back.has-cart {
    bottom: calc(0.85rem + env(safe-area-inset-bottom) + 5.1rem);
  }

  .cart-drawer-backdrop {
    align-items: flex-end;
  }

  .cart-drawer {
    width: 100%;
    min-height: 0;
    max-height: min(84dvh, 46rem);
    padding: 0.65rem 0.8rem calc(0.9rem + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -1rem 2.5rem rgba(42, 24, 16, 0.2);
    animation-name: cart-drawer-sheet-in;
  }

  .cart-drawer-handle {
    display: block;
    width: 2.6rem;
    height: 0.28rem;
    margin: 0 auto 0.55rem;
    background: var(--line);
    border-radius: 999px;
  }

  .cart-drawer-head {
    margin-bottom: 0.75rem;
  }

  .cart-drawer .cart-item {
    padding: 0.75rem;
  }

  .cart-drawer .cart-actions,
  .cart-drawer .cart-actions .btn {
    width: auto;
  }
}

@keyframes cart-drawer-sheet-in {
  from { opacity: 0.7; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cart,
  .floating-category-back,
  .cart-drawer-backdrop,
  .cart-drawer {
    animation: none;
    transition: none;
  }
}

/* Retour catégories dans l'en-tête des produits */

/* AJHA restaurant client — mobile-first ordering experience */
.client-shell {
  --brand: #a6372b;
  --brand-deep: #6f1d1b;
  --blue: #a6372b;
  --navy: #2d1714;
  --gold: #d7973b;
  --gold-bright: #f0be6a;
  --caramel: #c76727;
  --cream: #fff4e8;
  --cream-2: #f8e6d4;
  --bg: #fff8f2;
  --card: #fffdf9;
  --soft: #fff0e2;
  --line: #edd5c1;
  --text: #2d1714;
  --muted: #765e53;
  min-height: 100vh;
  background:
    radial-gradient(50rem 30rem at 100% -8%, rgba(215, 151, 59, 0.20), transparent 62%),
    radial-gradient(36rem 24rem at -8% 24%, rgba(166, 55, 43, 0.12), transparent 64%),
    var(--bg);
}

.client-shell .topbar {
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 248, 242, 0.92);
  border-bottom-color: rgba(215, 151, 59, 0.42);
  box-shadow: 0 0.65rem 1.8rem rgba(81, 30, 25, 0.07);
}

.client-shell .brand .logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  background: #fffdf9;
  box-shadow: 0 0.45rem 1rem rgba(111, 29, 27, 0.12);
}

.client-shell .brand-name { color: var(--navy); letter-spacing: 0; }
.client-shell .brand-name small { color: var(--brand); letter-spacing: 0.12em; }
.client-shell .container { padding-top: clamp(0.8rem, 2vw, 1.5rem); }

.client-shell .btn {
  min-height: 2.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(94, 24, 20, 0.58);
  background: linear-gradient(180deg, #b84638 0%, var(--brand) 62%, #8b2a22 100%);
  box-shadow: inset 0 1px rgba(255, 245, 235, 0.26), 0 2px 0 #681915, 0 0.55rem 1.1rem rgba(111, 29, 27, 0.17);
  transition: transform 150ms var(--button-ease-out), box-shadow 150ms var(--button-ease-out), background-color 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.client-shell .btn:hover { filter: none; transform: none; }
.client-shell .btn:active { transform: translateY(2px) scale(0.975); box-shadow: inset 0 2px 5px rgba(72, 16, 12, 0.18), 0 0 0 rgba(111, 29, 27, 0); }
.client-shell .btn.secondary { border-color: #e4cbb6; background: linear-gradient(180deg, #fffefa, #f8e9dc); color: var(--brand-deep); box-shadow: inset 0 1px #fff, 0 2px 0 #e3cbb8, 0 0.4rem 0.85rem rgba(75, 29, 24, 0.07); }
.client-shell .btn.secondary:active { box-shadow: inset 0 2px 5px rgba(95, 48, 26, 0.10), 0 0 0 rgba(75, 29, 24, 0); }
.client-shell .btn.cta-commander { border-color: rgba(120, 54, 19, 0.58); background: linear-gradient(180deg, #df9d3d 0%, var(--caramel) 62%, #aa4a20 100%); box-shadow: inset 0 1px rgba(255, 250, 232, 0.38), 0 2px 0 #8c3518, 0 0.6rem 1.2rem rgba(172, 75, 28, 0.20); }

.client-shell .panel,
.client-shell .card {
  border-color: rgba(237, 213, 193, 0.88);
  box-shadow: 0 1rem 2.5rem rgba(75, 29, 24, 0.08), inset 0 1px rgba(255, 255, 255, 0.8);
}

.client-shell .carousel::after { background: linear-gradient(to top, rgba(52, 15, 12, 0.64), transparent 56%); }
.client-shell .carousel-badge { color: #fffaf5; background: rgba(65, 20, 16, 0.76); backdrop-filter: blur(8px); }
.client-shell .carousel-dots { bottom: 0; gap: 0; }
.client-shell .carousel-dots .dot { position: relative; width: 2.75rem; height: 2.75rem; background: transparent; }
.client-shell .carousel-dots .dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.52); transform: translate(-50%, -50%); }
.client-shell .carousel-dots .dot.is-active { width: 2.75rem; background: transparent; }
.client-shell .carousel-dots .dot.is-active::before { width: 1.35rem; background: var(--gold-bright); }

.client-shell .category-row {
  min-height: 8.25rem;
  border-radius: 1.1rem;
  border-color: rgba(237, 213, 193, 0.92);
  box-shadow: 0 0.75rem 1.8rem rgba(75, 29, 24, 0.08);
}

.client-shell .category-row:hover,
.client-shell .category-row:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 1rem 2.1rem rgba(75, 29, 24, 0.14);
  transform: translateY(-3px);
}

.client-shell .category-row-image { min-height: 8.25rem; }
.client-shell .category-row-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(45, 23, 20, 0.18));
}

.client-shell .category-row-image { position: relative; }
.client-shell .category-row-copy strong { font-family: var(--display); font-size: 1.35rem; }
.client-shell .category-row-action { color: #fffaf5; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); }

.client-shell .product-card {
  border-radius: 1.1rem;
  border-color: rgba(237, 213, 193, 0.9);
  box-shadow: 0 0.8rem 1.8rem rgba(75, 29, 24, 0.07);
}

.client-shell .product-card:hover { transform: translateY(-4px); box-shadow: 0 1.1rem 2.2rem rgba(75, 29, 24, 0.13); }
.client-shell .product-img { border-radius: 0.85rem; background: var(--soft); }
.client-shell .product-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.client-shell .price { color: var(--brand); font-size: 1.05rem; }

.client-shell .floating-cart {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(145deg, var(--gold), #bd4938 52%, var(--brand-deep));
  box-shadow: 0 1rem 2.5rem rgba(92, 28, 23, 0.32);
}

.client-shell .floating-category-back-icon { background: linear-gradient(145deg, var(--gold), var(--brand)); }
.client-shell .cart-drawer-backdrop,
.client-shell .modal-backdrop { background: rgba(45, 23, 20, 0.58); }
.client-shell .cart-drawer { background: #fffaf5; }
.client-shell .cart-drawer-close { color: var(--brand-deep); }
.client-shell .cart-drawer-close { min-height: 2.75rem; }
.client-shell .cart-item { border-color: var(--line); background: #fffdf9; }

.client-shell .modal { border: 1px solid rgba(237, 213, 193, 0.9); background: #fffaf5; }
.client-shell .option-group { border-color: var(--line); background: #fff7ee; }
.client-shell .option-card { min-height: 4.25rem; border-color: var(--line); background: #fffdf9; }
.client-shell .option-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(166, 55, 43, 0.12); }
.client-shell .input,
.client-shell .textarea,
.client-shell .select { min-height: 3rem; border-color: var(--line); background: #fffdf9; }
.client-shell .input:focus,
.client-shell .textarea:focus,
.client-shell .select:focus { outline: 3px solid rgba(215, 151, 59, 0.28); border-color: var(--gold); }
.client-shell .mode-toggle-thumb { background: var(--brand); }


.client-shell .product-card,
.client-shell .checkout-panel {
  animation: client-lift-in 360ms both cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes client-lift-in {
  from { opacity: 0; transform: translateY(0.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .client-shell .topbar { padding: 0.72rem 1rem; }
  .client-shell .brand .logo { width: 2.45rem; height: 2.45rem; }
  .client-shell .brand-name { font-size: 1.05rem; }
  .client-shell .brand-name small { font-size: 0.52rem; }
  .client-shell .container { width: min(100% - 1.25rem, 1180px); padding-bottom: 6rem; }
  .client-shell .category-row { grid-template-columns: 6.4rem minmax(0, 1fr) auto; min-height: 6.9rem; }
  .client-shell .category-row-image { min-height: 6.9rem; }
  .client-shell .category-row-copy { padding: 0.85rem; }
  .client-shell .category-row-copy strong { font-size: 1.15rem; }

  .client-shell .products.menu-products { gap: 0.7rem; }
  .client-shell .product-card {
    display: grid;
    grid-template-columns: 7.35rem minmax(0, 1fr);
    column-gap: 0.8rem;
    align-items: start;
    padding: 0.6rem;
  }

  .client-shell .product-card .product-img { grid-row: 1 / span 3; aspect-ratio: 0.9; margin: 0; }
  .client-shell .product-card h3 { margin-top: 0.15rem; font-size: 1.12rem; }
  .client-shell .product-card .muted { display: -webkit-box; overflow: hidden; margin: 0.15rem 0 0.55rem; font-size: 0.82rem; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .client-shell .product-card .row { flex-direction: row; align-items: center; gap: 0.5rem; }
  .client-shell .product-card .row .btn { min-height: 2.75rem; padding: 0.55rem 0.72rem; font-size: 0.78rem; }

  .client-shell .floating-cart { right: 0.85rem; bottom: calc(0.85rem + env(safe-area-inset-bottom)); width: 4.6rem; height: 4.6rem; }
  .client-shell .floating-category-back { right: 0.85rem; bottom: calc(0.85rem + env(safe-area-inset-bottom)); }
  .client-shell .floating-category-back.has-cart { bottom: calc(5.95rem + env(safe-area-inset-bottom)); }
  .client-shell .cart-drawer-backdrop,
  .client-shell .modal-backdrop { z-index: 100; }
  .client-shell .cart-drawer { max-height: min(82dvh, 45rem); }
  .client-shell .cart-drawer .cart-actions .btn { min-height: 2.75rem; }
  .client-shell .modal { padding: 1rem 0.85rem calc(1rem + env(safe-area-inset-bottom)); }
  .client-shell .option-card { min-height: 4.4rem; }
  .client-shell .checkout-panel { padding: 1rem; }
  .client-shell .checkout-actions .btn { min-height: 3rem; }
}

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

/* Hover is a desktop affordance; touch uses only the press state. */
.client-shell .category-row:hover,
.client-shell .floating-cart:hover,
.client-shell .floating-category-back:hover,
.client-shell .cart-drawer-close:hover {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .client-shell .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: inset 0 1px rgba(255, 245, 235, 0.32), 0 3px 0 #681915, 0 0.75rem 1.35rem rgba(111, 29, 27, 0.21);
  }

  .client-shell .btn.cta-commander:hover:not(:disabled) {
    box-shadow: inset 0 1px rgba(255, 250, 232, 0.48), 0 3px 0 #8c3518, 0 0.8rem 1.45rem rgba(172, 75, 28, 0.24);
  }

  .client-shell .btn.secondary:hover:not(:disabled) {
    background: #fffdf9;
    border-color: var(--gold);
    box-shadow: inset 0 1px #fff, 0 3px 0 #e3cbb8, 0 0.65rem 1.1rem rgba(75, 29, 24, 0.10);
  }

  .client-shell .category-row:hover,
  .client-shell .floating-cart:hover,
  .client-shell .floating-category-back:hover,
  .client-shell .cart-drawer-close:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-shell .btn:hover:not(:disabled),
  .client-shell .category-row:hover,
  .client-shell .floating-cart:hover,
  .client-shell .floating-category-back:hover,
  .client-shell .cart-drawer-close:hover,
  .client-shell .btn:active:not(:disabled),
  .client-shell .category-row:active,
  .client-shell .floating-cart:active,
  .client-shell .floating-category-back:active,
  .client-shell .cart-drawer-close:active,
  .client-shell .mode-toggle-opt:active,
  .client-shell .option-card:has(input):active {
    transform: none;
  }
}

/* Small-phone layout: actions stay visible and checkout never widens its card. */
@media (max-width: 640px) {
  .client-shell .product-card .row {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    margin-top: 0.15rem;
  }

  .client-shell .product-card .row .btn {
    min-width: 6.25rem;
    padding-inline: 0.9rem;
    white-space: nowrap;
  }

  .client-shell .checkout-panel .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .client-shell .checkout-order-type {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .client-shell .checkout-panel .mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .client-shell .checkout-panel .mode-toggle-opt {
    min-width: 0;
    min-height: 2.85rem;
    padding: 0.55rem 0.45rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .client-shell .checkout-actions {
    align-items: stretch;
    gap: 0.65rem;
  }

  .client-shell .checkout-actions .btn {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .client-shell .product-card {
    grid-template-columns: 6.25rem minmax(0, 1fr);
  }

  .client-shell .checkout-panel .mode-toggle-opt {
    font-size: 0.78rem;
  }
}

/* =====================================================================
   AJHA · Client rebuild — street-manga editorial system
   Client only. Dashboard selectors stay outside this layer.
   ===================================================================== */

.client-shell {
  --client-ink: #2b1712;
  --client-ink-soft: #65483d;
  --client-paper: #fffaf2;
  --client-paper-strong: #fffdf9;
  --client-cream: #f7eddf;
  --client-cream-deep: #efddca;
  --client-terracotta: #a6372b;
  --client-terracotta-deep: #7f241e;
  --client-gold: #d29a3d;
  --client-olive: #5f6b45;
  --client-line: #e8d7c1;
  --client-shadow: 0 1.25rem 3rem rgba(73, 31, 23, 0.09);
  --client-ease: cubic-bezier(0.23, 1, 0.32, 1);
  min-height: 100vh;
  color: var(--client-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(210, 154, 61, 0.11), transparent 18rem),
    radial-gradient(circle at 94% 32%, rgba(166, 55, 43, 0.08), transparent 20rem),
    var(--client-cream);
}

.client-shell .client-main {
  width: min(1180px, calc(100% - 2rem));
  padding-top: clamp(1rem, 3vw, 2.25rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.client-shell .topbar.is-client {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 4.6rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(232, 215, 193, 0.9);
  box-shadow: 0 0.5rem 1.5rem rgba(73, 31, 23, 0.06);
  backdrop-filter: blur(16px);
}

.client-shell .topbar.is-client .topbar-lead {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
  min-width: 0;
}

.client-shell .brand {
  min-height: 2.9rem;
  color: var(--client-ink);
  border-radius: 0.75rem;
  transition: transform 150ms var(--client-ease), opacity 150ms ease;
}

.client-shell .brand:hover { opacity: 0.84; }
.client-shell .brand:active { transform: scale(0.98); }
.client-shell .brand:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.62); outline-offset: 4px; }

.client-shell .brand .logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  object-fit: contain;
}

.client-shell .brand-name { color: var(--client-ink); }
.client-shell .brand-name small { color: var(--client-terracotta); }

.client-shell .nav-actions {
  align-items: center;
  gap: 0.55rem;
}

.client-shell .nav-action {
  min-height: 2.8rem;
  padding-inline: 0.85rem;
  white-space: nowrap;
}

.client-shell .nav-action .ui-icon { flex: 0 0 auto; }

.client-shell .store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.38rem 0.7rem;
  color: var(--client-ink-soft);
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--client-line);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.client-shell .store-dot,
.track-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--client-gold);
  box-shadow: 0 0 0 0.2rem rgba(210, 154, 61, 0.15);
}

.client-shell .store-badge.open .store-dot,
.track-status-badge.is-live .track-status-dot {
  background: var(--client-olive);
  box-shadow: 0 0 0 0.2rem rgba(95, 107, 69, 0.15);
}

.client-shell .store-badge.closed .store-dot { background: var(--client-terracotta); }

.client-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--client-terracotta);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker-line {
  width: 1.65rem;
  height: 2px;
  flex: 0 0 auto;
  background: var(--client-gold);
  border-radius: 999px;
}

.ui-icon {
  display: block;
  flex: 0 0 auto;
}

.client-shell .btn {
  min-height: 2.75rem;
  border-radius: 0.72rem;
  transition: transform 150ms var(--client-ease), box-shadow 150ms var(--client-ease), background-color 180ms ease, border-color 180ms ease;
}

.client-shell .btn:active:not(:disabled) { transform: scale(0.97); }
.client-shell .btn:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.72); outline-offset: 3px; }
.client-shell .btn.cta-commander { background: var(--client-terracotta); border-color: var(--client-terracotta-deep); }
.client-shell .btn.cta-commander:hover:not(:disabled) { background: var(--client-terracotta-deep); }
.client-shell .btn.secondary { color: var(--client-ink); background: var(--client-paper-strong); border-color: var(--client-line); }
.client-shell .btn.secondary:hover:not(:disabled) { background: var(--client-cream); border-color: var(--client-gold); }
.client-shell .btn.green { background: var(--client-olive); border-color: #485333; }

/* Home */
.client-home { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  min-height: min(43rem, calc(100vh - 8rem));
}

.home-copy { position: relative; z-index: 1; padding-block: 1rem; }
.home-copy h1 {
  max-width: 10.5ch;
  margin: 1rem 0 1.2rem;
  color: var(--client-ink);
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.home-copy h1 em {
  display: block;
  margin-top: 0.55rem;
  color: var(--client-terracotta);
  font-style: normal;
  font-weight: 650;
}

.home-lead {
  max-width: 35rem;
  margin: 0;
  color: var(--client-ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.home-actions .btn { min-height: 3.15rem; padding-inline: 1rem; }
.home-proof { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin-top: 1.35rem; color: var(--client-ink-soft); font-size: 0.82rem; font-weight: 800; }
.home-proof span { display: inline-flex; align-items: center; gap: 0.38rem; }
.home-proof .ui-icon { color: var(--client-terracotta); }

.home-manga-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: var(--client-terracotta);
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  transform: rotate(-4deg);
}

.manga-note-line { width: 2.4rem; height: 1px; background: var(--client-terracotta); }
.manga-note-dot { width: 0.32rem; height: 0.32rem; background: var(--client-gold); border-radius: 50%; }

.home-visual { position: relative; }
.home-visual::before {
  content: "";
  position: absolute;
  inset: -1.2rem -1rem 2rem 1.4rem;
  z-index: 0;
  border: 1px solid rgba(166, 55, 43, 0.22);
  border-radius: 1.5rem 0.5rem 1.5rem 0.5rem;
  transform: rotate(3deg);
}

.home-visual .carousel {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 4.6;
  border: 0.45rem solid var(--client-paper-strong);
  border-radius: 1.3rem 0.4rem 1.3rem 0.4rem;
  box-shadow: 0 1.7rem 3.5rem rgba(73, 31, 23, 0.2);
}

.home-visual .carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 250, 242, 0.9) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

.home-visual .carousel::after { background: linear-gradient(to top, rgba(43, 23, 18, 0.65), transparent 45%); }
.home-visual .carousel-badge { top: 1rem; left: 1rem; color: var(--client-ink); background: var(--client-gold); }

.manga-stamp {
  position: absolute;
  right: 1rem;
  bottom: 1.1rem;
  z-index: 3;
  display: grid;
  width: 4.35rem;
  height: 4.35rem;
  place-items: center;
  align-content: center;
  color: var(--client-paper-strong);
  background: var(--client-terracotta);
  border: 2px solid var(--client-paper-strong);
  border-radius: 50%;
  box-shadow: 0 0.5rem 1.1rem rgba(43, 23, 18, 0.2);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  transform: rotate(8deg);
}

.manga-stamp small { margin-top: 0.22rem; font-family: var(--ui); font-size: 0.45rem; letter-spacing: 0.18em; }
.home-visual-caption { display: grid; grid-template-columns: auto 1fr; column-gap: 0.5rem; align-items: center; margin: 1rem 0 0 1.1rem; color: var(--client-ink); }
.home-visual-caption > span { grid-row: 1 / span 2; display: grid; width: 2rem; height: 2rem; place-items: center; color: var(--client-terracotta); background: var(--client-cream-deep); border-radius: 50%; }
.home-visual-caption strong { font-family: var(--display); font-size: 1.05rem; }
.home-visual-caption small { color: var(--client-ink-soft); font-size: 0.78rem; }

.home-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.home-info-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; min-height: 5.4rem; padding: 0.9rem 1rem; color: var(--client-ink); background: rgba(255, 250, 242, 0.72); border: 1px solid var(--client-line); border-radius: 0.85rem; text-decoration: none; transition: transform 150ms var(--client-ease), border-color 180ms ease, background-color 180ms ease; }
.home-info-card:hover { color: var(--client-ink); background: var(--client-paper-strong); border-color: var(--client-gold); transform: translateY(-2px); }
.home-info-card > span:nth-child(2) { display: grid; gap: 0.2rem; min-width: 0; }
.home-info-card small { color: var(--client-ink-soft); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.home-info-card strong { overflow-wrap: anywhere; font-size: 0.92rem; }
.home-info-card > .ui-icon { color: var(--client-terracotta); }
.home-info-icon { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; color: var(--client-terracotta); background: var(--client-cream-deep); border-radius: 50%; }

.home-section-heading h2 { max-width: 14ch; margin: 0.65rem 0 1.35rem; color: var(--client-ink); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.04em; line-height: 0.96; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.step-card { position: relative; min-height: 12.5rem; padding: 1.25rem; background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1rem 0.35rem 1rem 0.35rem; box-shadow: var(--client-shadow); }
.step-number { position: absolute; top: 0.9rem; right: 1rem; color: var(--client-gold); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.step-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; color: var(--client-terracotta); background: var(--client-cream); border-radius: 50%; }
.step-card h3 { margin: 1.25rem 0 0.4rem; color: var(--client-ink); font-family: var(--display); font-size: 1.45rem; }
.step-card p { margin: 0; color: var(--client-ink-soft); line-height: 1.45; }

/* Menu */
.client-menu-page { display: grid; gap: 1.5rem; }
.menu-page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.menu-page-head h1 { max-width: 15ch; margin: 0.65rem 0 0.55rem; color: var(--client-ink); font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -0.06em; line-height: 0.94; }
.menu-page-lead { max-width: 38rem; margin: 0; color: var(--client-ink-soft); font-size: 1rem; line-height: 1.5; }
.menu-back-button { flex: 0 0 auto; }
.category-shelf { display: grid; gap: 0.8rem; }
.client-shell .category-row { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) auto; align-items: stretch; min-height: 8rem; padding: 0; overflow: hidden; color: var(--client-ink); background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1.05rem 0.35rem 1.05rem 0.35rem; box-shadow: 0 0.7rem 1.6rem rgba(73, 31, 23, 0.07); text-align: left; transition: transform 150ms var(--client-ease), box-shadow 180ms ease, border-color 180ms ease; }
.client-shell .category-row:hover { border-color: var(--client-gold); box-shadow: 0 1rem 2rem rgba(73, 31, 23, 0.12); transform: translateY(-2px); }
.category-row-image { display: block; min-height: 100%; overflow: hidden; background: var(--client-cream-deep); }
.category-row-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--client-ease); }
.category-row:hover .category-row-image img { transform: scale(1.04); }
.category-row-fallback { display: grid; height: 100%; place-items: center; color: var(--client-terracotta); font-family: var(--display); font-size: 2.5rem; }
.category-row-copy { display: grid; align-content: center; gap: 0.35rem; padding: 1rem 1.2rem; }
.category-row-copy strong { color: var(--client-ink); font-size: clamp(1.35rem, 3vw, 2rem); }
.category-row-copy small { color: var(--client-ink-soft); font-size: 0.82rem; }
.client-shell .category-row-action { display: grid; width: 2.65rem; height: 2.65rem; margin: auto 1rem; place-items: center; color: var(--client-paper); background: var(--client-terracotta); border-radius: 50%; }

.category-nav { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.15rem 0 0.35rem; scrollbar-width: thin; }
.category-nav-item { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.55rem 0.85rem; flex: 0 0 auto; color: var(--client-ink-soft); background: rgba(255, 250, 242, 0.7); border: 1px solid var(--client-line); border-radius: 999px; font-weight: 800; transition: transform 150ms var(--client-ease), color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.category-nav-item small { color: var(--client-terracotta); font-size: 0.72rem; }
.category-nav-item:hover { border-color: var(--client-gold); transform: translateY(-1px); }
.category-nav-item.active { color: var(--client-paper); background: var(--client-terracotta); border-color: var(--client-terracotta); }
.category-nav-item.active small { color: var(--client-gold); }
.category-nav-item:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.62); outline-offset: 3px; }

.client-shell .products.menu-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.client-shell .client-product-card { display: grid; grid-template-rows: 1fr auto; min-width: 0; padding: 0; overflow: hidden; background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1rem 0.35rem 1rem 0.35rem; box-shadow: 0 0.75rem 1.7rem rgba(73, 31, 23, 0.07); }
.product-card-open { display: grid; grid-template-columns: minmax(8rem, 35%) minmax(0, 1fr); gap: 1rem; align-items: center; width: 100%; min-width: 0; padding: 0.75rem; color: var(--client-ink); background: transparent; text-align: left; }
.product-card-open:hover .client-product-media img { transform: scale(1.045); }
.product-card-open:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.62); outline-offset: -3px; }
.client-product-media { display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; background: var(--client-cream-deep); border-radius: 0.75rem 0.25rem 0.75rem 0.25rem; }
.client-product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 320ms var(--client-ease); }
.product-img-empty { display: grid; place-items: center; color: var(--client-terracotta); }
.product-card-copy { display: grid; gap: 0.45rem; min-width: 0; align-content: center; }
.product-card-title { color: var(--client-ink); font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 900; line-height: 1.02; }
.product-card-description { display: -webkit-box; overflow: hidden; color: var(--client-ink-soft); font-size: 0.9rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.8rem 1rem 1rem; border-top: 1px solid rgba(232, 215, 193, 0.7); }
.client-shell .product-card-footer .price { color: var(--client-terracotta); font-size: 1.1rem; }
.product-add { min-height: 2.65rem; padding-inline: 0.8rem; }
.empty-state { padding: 2rem; color: var(--client-ink-soft); background: var(--client-paper); border: 1px dashed var(--client-line); border-radius: 0.8rem; text-align: center; }

/* Cart */
.client-shell .floating-cart { display: inline-flex; align-items: center; gap: 0.65rem; width: auto; min-width: 10.5rem; height: auto; min-height: 3.7rem; padding: 0.5rem 0.7rem 0.5rem 0.55rem; color: var(--client-paper); background: var(--client-terracotta); border: 2px solid rgba(255, 250, 242, 0.86); border-radius: 999px; box-shadow: 0 0.9rem 2rem rgba(73, 31, 23, 0.27); transition: transform 150ms var(--client-ease), box-shadow 180ms ease, background-color 180ms ease; }
.client-shell .floating-cart:hover { background: var(--client-terracotta-deep); box-shadow: 0 1.1rem 2.3rem rgba(73, 31, 23, 0.33); transform: translateY(-2px); }
.floating-cart-icon { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; color: var(--client-ink); background: var(--client-gold); border-radius: 50%; transform: none; }
.floating-cart-copy { display: grid; gap: 0.08rem; min-width: 0; text-align: left; }
.floating-cart-copy small { font-size: 0.68rem; font-weight: 800; opacity: 0.78; }
.floating-cart-copy strong { font-size: 0.92rem; line-height: 1; }
.floating-cart-count { position: static; display: grid; min-width: 1.45rem; height: 1.45rem; margin-left: auto; place-items: center; padding: 0 0.25rem; color: var(--client-terracotta); background: var(--client-paper); border: 0; box-shadow: none; font-size: 0.7rem; }
.client-shell .floating-category-back { min-height: 3.2rem; border-color: var(--client-line); color: var(--client-ink); background: rgba(255, 250, 242, 0.96); transition: transform 150ms var(--client-ease), box-shadow 180ms ease, background-color 180ms ease; }
.client-shell .floating-category-back-icon { color: var(--client-paper); background: var(--client-terracotta); }
.client-shell .floating-category-back:hover { background: var(--client-paper); transform: translateY(-2px); }
.cart-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cart-title h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0; color: var(--client-ink); font-size: 1.65rem; }
.cart-title-mark { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; color: var(--client-terracotta); background: var(--client-cream); border-radius: 50%; }
.client-shell .cart { padding: 1.2rem; background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1rem 0.35rem 1rem 0.35rem; box-shadow: var(--client-shadow); }
.client-shell .cart-item { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0.8rem; align-items: stretch; margin-bottom: 0.65rem; padding: 0.65rem; background: var(--client-paper-strong); border: 1px solid var(--client-line); border-radius: 0.75rem; }
.cart-item-thumb { display: grid; width: 4.4rem; min-height: 4.4rem; place-items: center; overflow: hidden; color: var(--client-terracotta); background: var(--client-cream-deep); border-radius: 0.55rem; }
.cart-item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-item-main { min-width: 0; }
.cart-item-top, .cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.cart-item-top { align-items: start; }
.cart-item-top > div { display: grid; gap: 0.22rem; min-width: 0; }
.cart-item-top strong:first-child { overflow-wrap: anywhere; color: var(--client-ink); }
.cart-item-top small { color: var(--client-ink-soft); font-size: 0.75rem; line-height: 1.3; }
.cart-item-price { flex: 0 0 auto; color: var(--client-terracotta); font-size: 0.84rem; }
.cart-item-bottom { margin-top: 0.75rem; }
.quantity-stepper { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.2rem; padding: 0.2rem; color: var(--client-ink); background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 999px; }
.quantity-stepper > span { min-width: 1.3rem; text-align: center; font-weight: 900; }
.quantity-button { display: grid; width: 2rem; height: 2rem; place-items: center; color: var(--client-terracotta); background: transparent; border-radius: 50%; transition: transform 120ms var(--client-ease), background-color 160ms ease; }
.quantity-button:hover { background: var(--client-paper); }
.quantity-button:active { transform: scale(0.9); }
.quantity-button:focus-visible { outline: 2px solid var(--client-gold); outline-offset: 2px; }
.cart-actions { align-items: center; }
.cart-edit { min-height: 2.25rem !important; padding: 0.45rem 0.65rem !important; font-size: 0.78rem; }
.cart-remove { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; color: var(--client-terracotta); background: transparent; border: 1px solid var(--client-line); border-radius: 0.55rem; transition: transform 120ms var(--client-ease), background-color 160ms ease, border-color 160ms ease; }
.cart-remove:hover { background: #f8e6df; border-color: #d99a8f; }
.cart-remove:active { transform: scale(0.94); }
.client-shell .cart-item-bottom { flex-wrap: wrap; row-gap: 0.55rem; }
.client-shell .cart-actions { width: auto; flex: 0 0 auto; flex-wrap: nowrap; gap: 0.35rem; }
.client-shell .cart-actions .btn { width: auto; }
.client-shell .cart-edit { min-width: 5rem; min-height: 2.5rem !important; padding: 0.5rem 0.75rem !important; white-space: nowrap; }
.client-shell .cart-remove { width: 2.6rem; height: 2.6rem; }
.client-shell .cart-remove .ui-icon { width: 1.15rem; height: 1.15rem; }
.cart-summary { display: grid; gap: 0.55rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--client-line); }
.summary-line, .summary-total { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.summary-line { color: var(--client-ink-soft); font-size: 0.9rem; }
.summary-total { margin-top: 0.2rem; color: var(--client-ink); font-size: 1.12rem; }
.summary-total strong:last-child { color: var(--client-terracotta); font-size: 1.3rem; }
.cart-checkout { width: 100%; margin-top: 1rem; }
.cart-empty { margin: 0; padding: 1.1rem 0.3rem; color: var(--client-ink-soft); text-align: center; }
.client-shell .cart-drawer { background: var(--client-paper); }
.client-shell .cart-drawer-head h2 { color: var(--client-ink); }
.client-shell .cart-drawer-close { width: 2.7rem; height: 2.7rem; color: var(--client-terracotta); background: var(--client-cream); border-color: var(--client-line); transition: transform 150ms var(--client-ease), background-color 160ms ease; }
.client-shell .cart-drawer-close:hover { background: var(--client-cream-deep); transform: rotate(8deg); }

/* Product modal */
.client-modal-backdrop {
  --client-ink: #2b1712;
  --client-ink-soft: #65483d;
  --client-paper: #fffaf2;
  --client-paper-strong: #fffdf9;
  --client-cream: #f7eddf;
  --client-cream-deep: #efddca;
  --client-terracotta: #a6372b;
  --client-terracotta-deep: #7f241e;
  --client-gold: #d29a3d;
  --client-olive: #5f6b45;
  --client-line: #e8d7c1;
  z-index: 100;
  background: rgba(43, 23, 18, 0.58);
  backdrop-filter: blur(5px);
}
.client-dialog, .client-shell .product-modal { width: min(42rem, calc(100% - 1.5rem)); max-height: min(90dvh, 54rem); overflow-y: auto; padding: clamp(1rem, 3vw, 1.55rem); color: var(--client-ink); background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1.1rem 0.35rem 1.1rem 0.35rem; box-shadow: 0 1.7rem 4rem rgba(43, 23, 18, 0.27); }
.client-shell .product-modal { max-height: min(88dvh, 50rem); padding: clamp(0.9rem, 2.6vw, 1.35rem); overscroll-behavior: contain; }
.client-shell .product-modal .modal-head h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.modal-head h2 { margin: 0.45rem 0 0; color: var(--client-ink); font-size: clamp(1.6rem, 4vw, 2.35rem); letter-spacing: -0.04em; line-height: 0.98; }
.modal-close { display: grid; width: 2.7rem; height: 2.7rem; flex: 0 0 auto; place-items: center; color: var(--client-terracotta); background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 50%; transition: transform 150ms var(--client-ease), background-color 160ms ease; }
.modal-close:hover { background: var(--client-cream-deep); transform: rotate(8deg); }
.product-modal-intro { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1.2rem; padding: 0.7rem; background: var(--client-cream); border-radius: 0.8rem; }
.product-modal-intro .product-img { width: 7.5rem; height: 7.5rem; margin: 0; border-radius: 0.65rem 0.25rem 0.65rem 0.25rem; background: var(--client-cream-deep); }
.product-modal-description { margin: 0 0 0.55rem; color: var(--client-ink-soft); line-height: 1.45; }
.product-modal-base-price { color: var(--client-terracotta); font-weight: 900; }
.product-modal-form { margin-top: 1.1rem; }
.option-group { padding: 0.9rem; background: var(--client-paper-strong); border: 1px solid var(--client-line); border-radius: 0.75rem; }
.option-group-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.7rem; }
.option-group-head strong { color: var(--client-ink); }
.option-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.client-shell .option-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; align-items: center; min-height: 3.8rem; padding: 0.55rem; color: var(--client-ink); background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 0.65rem; cursor: pointer; transition: transform 120ms var(--client-ease), border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.client-shell .option-card:hover { border-color: var(--client-gold); transform: translateY(-1px); }
.client-shell .option-card.active { background: #fff5e7; border-color: var(--client-terracotta); box-shadow: 0 0 0 2px rgba(166, 55, 43, 0.1); }
.client-shell .option-card.disabled { opacity: 0.48; cursor: not-allowed; }
.option-card input { accent-color: var(--client-terracotta); }
.option-card b, .option-card small { display: block; overflow-wrap: anywhere; }
.option-card small { margin-top: 0.15rem; color: var(--client-terracotta); font-size: 0.72rem; }
.product-modal-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 1rem; padding-top: 0.2rem; }
.quantity-field { display: grid; gap: 0.4rem; color: var(--client-ink-soft); font-size: 0.78rem; font-weight: 800; }
.quantity-input { width: 2.6rem; padding: 0; color: var(--client-ink); background: transparent; border: 0; text-align: center; font-weight: 900; }
.quantity-input:focus { outline: 0; }
.quantity-input::-webkit-inner-spin-button, .quantity-input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.product-total { display: grid; justify-items: end; gap: 0.2rem; }
.product-total small { color: var(--client-ink-soft); font-size: 0.72rem; }
.product-total strong { color: var(--client-terracotta); font-size: 1.4rem; }
.product-add-submit { width: 100%; margin-top: 0.1rem; }

/* Product modal stepper */
.product-stepper { --step-count: 1; --step-progress: 0; position: relative; display: grid; grid-template-columns: repeat(var(--step-count), minmax(0, 1fr)); gap: 0.15rem; margin: 0.85rem 0 1rem; padding: 0.1rem 0; }
.product-stepper-track { position: absolute; z-index: 0; top: 1.05rem; right: calc(50% / var(--step-count)); left: calc(50% / var(--step-count)); height: 2px; overflow: hidden; background: var(--client-line); }
.product-stepper-track > span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--client-terracotta), var(--client-gold)); transform: scaleX(var(--step-progress)); transform-origin: left center; transition: transform 260ms var(--client-ease); }
.product-step { position: relative; z-index: 1; display: grid; grid-template-rows: 2.1rem auto; min-width: 0; min-height: 3.1rem; place-items: center; gap: 0.25rem; padding: 0.1rem 0.2rem; color: var(--client-ink-soft); background: transparent; border: 0; border-radius: 0.6rem; text-align: center; transition: color 180ms ease, transform 160ms var(--client-ease); }
.product-step:not(:disabled) { cursor: pointer; }
.product-step:not(:disabled):active { transform: scale(0.97); }
.product-step:disabled { cursor: not-allowed; opacity: 0.54; }
.product-step:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.72); outline-offset: 2px; }
.product-step-dot { display: grid; width: 2rem; height: 2rem; place-items: center; color: var(--client-ink-soft); background: var(--client-paper); border: 2px solid var(--client-line); border-radius: 50%; font-size: 0.75rem; font-weight: 900; transition: transform 220ms var(--client-ease), color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.product-step.complete .product-step-dot { color: #fff; background: var(--client-olive); border-color: var(--client-olive); }
.product-step.active .product-step-dot { color: #fff; background: var(--client-terracotta); border-color: var(--client-terracotta); box-shadow: 0 0 0 4px rgba(166, 55, 43, 0.12); transform: scale(1.08); }
.product-step-label { max-width: 100%; overflow: hidden; color: inherit; font-size: 0.72rem; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.product-step.active .product-step-label, .product-step.complete .product-step-label { color: var(--client-terracotta); }
.product-step-panel { --product-step-offset: 14px; opacity: 0; transform: translateX(var(--product-step-offset)); transition: opacity 220ms ease, transform 260ms var(--client-ease); }
.product-step-panel[data-step-direction="back"] { --product-step-offset: -14px; }
.product-step-panel.is-mounted { opacity: 1; transform: translateX(0); }
.product-step-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 0.8rem; }
.product-step-kicker { color: var(--client-terracotta); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.product-step-panel-head h3 { margin: 0.25rem 0 0; color: var(--client-ink); font-size: clamp(1.25rem, 4vw, 1.75rem); letter-spacing: -0.03em; line-height: 1; }
.product-step-status { flex: 0 0 auto; min-height: 1.8rem; padding: 0.35rem 0.55rem; color: var(--client-terracotta); background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 999px; font-size: 0.65rem; font-weight: 900; line-height: 1.1; text-align: center; }
.product-step-status.is-complete { color: var(--client-olive); background: rgba(95, 107, 69, 0.11); border-color: rgba(95, 107, 69, 0.28); }
.product-step-group { margin-top: 0.75rem; padding: 0.75rem; }
.product-step-group.is-invalid, .product-note-step.is-invalid { animation: product-step-validation-shake 260ms var(--client-ease); }
.product-step-error { margin: 0.5rem 0 0; color: var(--client-terracotta); font-size: 0.74rem; font-weight: 800; line-height: 1.3; }
@keyframes product-step-validation-shake { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
.client-shell .product-step-group .option-card-grid { grid-template-columns: 1fr; gap: 0.35rem; }
.client-shell .product-step-group .option-card { grid-template-columns: 1rem minmax(0, 1fr); min-height: 2.75rem; padding: 0.35rem 0.55rem; gap: 0.5rem; border-radius: 0.55rem; }
.client-shell .product-step-group .option-card input { width: 1rem; height: 1rem; margin: 0; align-self: center; }
.product-step-group .option-card-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; min-width: 0; }
.product-step-group .option-card-copy b { overflow-wrap: anywhere; font-size: 0.86rem; line-height: 1.2; }
.product-step-group .option-card-copy small { margin: 0; color: var(--client-terracotta); font-size: 0.7rem; line-height: 1.1; text-align: right; white-space: nowrap; }
.product-step-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; min-height: 2.75rem; margin-top: 0.7rem; }
.product-step-actions-spacer { flex: 1 1 auto; }
.product-step-actions-main { display: flex; flex: 1 1 auto; justify-content: flex-end; gap: 0.55rem; }
.product-step-actions .btn { min-height: 2.75rem; }
.product-final-details { margin-top: 0.8rem; }
.product-final-details .product-add-submit { min-height: 3rem; margin-top: 0.55rem; }
.product-submit-hint { margin: 0.6rem 0 0; color: var(--client-ink-soft); font-size: 0.78rem; line-height: 1.35; text-align: center; }
.product-note-step { display: grid; gap: 0.7rem; margin-top: 0.75rem; }
.product-note-field-head { display: flex; align-items: start; justify-content: space-between; gap: 0.75rem; }
.product-note-label { display: block; color: var(--client-ink); font-size: 0.8rem; font-weight: 900; }
.product-note-label small { color: var(--client-ink-soft); font-size: 0.7rem; font-weight: 700; }
.product-note-helper { margin: 0.25rem 0 0; color: var(--client-ink-soft); font-size: 0.76rem; line-height: 1.35; }
.product-note-field-input { margin: 0; }
.product-note-field-input > label { display: block; color: var(--client-ink-soft); font-size: 0.76rem; font-weight: 800; }
.product-note-input-wrap { position: relative; }
.client-shell .product-note-step .product-note-textarea { box-sizing: border-box; height: 5rem; min-height: 5rem; padding: 0.7rem; padding-bottom: 2.85rem; }
.product-note-none-choice { position: absolute; right: 0.55rem; bottom: 0.55rem; display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; min-height: 2.25rem; padding: 0.35rem 0.55rem; color: var(--client-ink-soft); background: var(--client-paper-strong); border: 1px solid var(--client-line); border-radius: 999px; font-size: 0.7rem; font-weight: 900; text-align: left; cursor: pointer; transition: transform 150ms var(--client-ease), color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.product-note-choice-icon { display: grid; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; place-items: center; color: transparent; background: var(--client-paper); border: 1.5px solid var(--client-ink-soft); border-radius: 0.25rem; }
.product-note-none-copy { min-width: 0; white-space: nowrap; }
.product-note-none-copy strong { color: currentColor; font-size: 0.82rem; line-height: 1.15; }
.product-note-none-copy small { color: var(--client-ink-soft); font-size: 0.7rem; font-weight: 700; line-height: 1.2; }
.product-note-choice-state { display: inline-flex; align-items: center; justify-content: center; min-height: 1.8rem; padding: 0.3rem 0.5rem; color: var(--client-terracotta); background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 999px; font-size: 0.63rem; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.product-note-none-choice:hover { color: var(--client-terracotta); border-color: var(--client-gold); box-shadow: 0 0 0 3px rgba(210, 154, 61, 0.1); }
.product-note-none-choice:hover .product-note-choice-icon { border-color: var(--client-gold); }
.product-note-none-choice:active { transform: scale(0.985); }
.product-note-none-choice:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.72); outline-offset: 2px; }
.product-note-none-choice.active { position: relative; right: auto; bottom: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; width: 100%; min-width: 0; min-height: 3.35rem; padding: 0.55rem 0.7rem; color: var(--client-olive); background: #eef0e5; border-color: #cbd6ae; border-radius: 0.75rem; box-shadow: 0 0 0 3px rgba(95, 107, 69, 0.1); }
.product-note-none-choice.active .product-note-choice-icon { color: #fff; background: var(--client-olive); border-color: var(--client-olive); }
.product-note-none-choice.active .product-note-none-copy { display: grid; gap: 0.12rem; white-space: normal; }
.product-note-none-choice.active .product-note-none-copy small { color: var(--client-olive); }
.product-note-none-choice.active .product-note-choice-state { color: #fff; background: var(--client-olive); border-color: var(--client-olive); }

/* Checkout */
.checkout-page { display: grid; gap: 1.6rem; }
.checkout-page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.checkout-page-head h1 { margin: 0.65rem 0 0.5rem; color: var(--client-ink); font-size: clamp(2.3rem, 5vw, 4.5rem); letter-spacing: -0.06em; line-height: 0.94; }
.checkout-page-head p { max-width: 34rem; margin: 0; color: var(--client-ink-soft); line-height: 1.5; }
.checkout-page-head .btn { flex: 0 0 auto; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr); gap: 1rem; align-items: start; }
.checkout-layout-single { grid-template-columns: minmax(0, 1fr); }
.client-shell .checkout-panel { padding: clamp(0.9rem, 2.2vw, 1.25rem); background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1rem 0.35rem 1rem 0.35rem; }
.checkout-section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding-bottom: 0.8rem; border-bottom: 1px solid var(--client-line); }
.checkout-section-head > div:first-child { display: flex; flex: 1 1 auto; min-width: 0; gap: 0.75rem; align-items: start; }
.checkout-section-head > div:first-child > div { min-width: 0; }
.checkout-section-head > .badge { flex: 0 0 auto; white-space: nowrap; }
.checkout-section-head h2, .checkout-form-title h2 { margin: 0; color: var(--client-ink); font-family: var(--display); font-size: 1.45rem; line-height: 1.05; }
.checkout-receive-title { text-wrap: balance; }
.checkout-receive-break { display: none; }
.checkout-section-head p, .checkout-form-title p { margin: 0.25rem 0 0; color: var(--client-ink-soft); font-size: 0.84rem; line-height: 1.35; }
.section-index { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; color: var(--client-paper); background: var(--client-terracotta); border-radius: 50%; font-size: 0.68rem; font-weight: 900; }
.checkout-stack { gap: 0.9rem; }
.checkout-order-type { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.65rem; padding-top: 0; }
.checkout-order-type-label { color: var(--client-ink-soft); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.checkout-order-type-toggle, .checkout-address-toggle { width: min(100%, 30rem); }
.checkout-order-type-toggle { justify-self: start; }
.client-shell .mode-toggle { background: var(--client-cream); border-color: var(--client-line); }
.client-shell .mode-toggle-thumb { background: var(--client-terracotta); }
.client-shell .mode-toggle-opt { min-height: 2.8rem; color: var(--client-ink-soft); font-weight: 800; transition: transform 120ms var(--client-ease), color 160ms ease, background-color 160ms ease; }
.client-shell .mode-toggle-opt.active { color: var(--client-paper); }
.client-shell .checkout-panel .mode-toggle-opt { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.75rem; padding: 0.35rem 0.55rem; line-height: 1.15; }
.client-shell .checkout-address-toggle .mode-toggle-opt { font-size: 0.76rem; white-space: nowrap; }
.client-shell .checkout-address-toggle .mode-toggle-opt > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.checkout-form-section { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.checkout-form-fields { display: grid; gap: 0.55rem; min-width: 0; }
.checkout-form-title { display: grid; gap: 0.05rem; margin-bottom: 0; }
.checkout-field > span { color: var(--client-ink); font-size: 0.8rem; font-weight: 900; }
.client-shell .input, .client-shell .textarea, .client-shell .select { min-height: 2.75rem; padding: 0.55rem 0.7rem; color: var(--client-ink); background: var(--client-paper-strong); border-color: var(--client-line); border-radius: 0.65rem; }
.client-shell .textarea { min-height: 4.75rem; resize: vertical; }
.client-shell .input:focus, .client-shell .textarea:focus, .client-shell .select:focus { outline: 3px solid rgba(210, 154, 61, 0.25); border-color: var(--client-gold); }
.checkout-name-wrap { display: flex; gap: 0.45rem; align-items: center; }
.checkout-name-wrap .input { min-width: 0; flex: 1; }
.checkout-name-action { display: grid; width: 3rem; height: 3rem; flex: 0 0 auto; place-items: center; color: var(--client-terracotta); background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 0.65rem; }
.checkout-name-action.is-saved { color: var(--client-olive); background: #e9eddc; border-color: #cbd6ae; }
.checkout-note { display: flex; align-items: center; gap: 0.35rem; margin: 0; color: var(--client-ink-soft); font-size: 0.78rem; line-height: 1.4; }
.checkout-note-success { color: var(--client-olive); font-weight: 800; }
.checkout-device-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; align-items: start; }
.checkout-device-alert .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.2rem; }
.alert-icon { color: var(--client-terracotta); }
.checkout-wa-box { display: grid; gap: 0.25rem; padding: 0.45rem 0.55rem; background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 0.7rem; }
.checkout-wa-label { display: flex; align-items: center; gap: 0.4rem; color: var(--client-ink); font-size: 0.8rem; font-weight: 800; line-height: 1.2; }
.checkout-wa-label input { accent-color: var(--client-terracotta); }
.checkout-wa-icon { display: grid; width: 1.6rem; height: 1.6rem; place-items: center; color: var(--client-olive); background: #e9eddc; border-radius: 50%; }
.checkout-wa-box p { margin: 0; color: var(--client-ink-soft); font-size: 0.7rem; line-height: 1.25; }
.wa-inline-error { display: flex; align-items: center; gap: 0.35rem; margin: 0; color: var(--client-terracotta); font-size: 0.82rem; font-weight: 800; }
.checkout-address-toggle { margin-top: 0; }
.location-button { justify-self: start; }
.checkout-alert { margin: 0; }
.checkout-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.65fr); gap: 0.6rem; padding-top: 0.1rem; }
.checkout-submit { min-height: 3.3rem; }
.checkout-online { display: grid; gap: 0.15rem; min-height: 3.3rem; }
.checkout-online small { font-size: 0.68rem; opacity: 0.7; }
.checkout-estimate { margin: 0; }
.loyalty-chip { display: flex; align-items: center; justify-content: space-between; gap: 0.45rem; padding: 0.45rem 0.55rem; background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 0.7rem; font-size: 0.76rem; line-height: 1.25; }
.client-shell .loyalty-chip.has-points { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; }
.client-shell .loyalty-chip.has-points .loyalty-copy { display: grid; gap: 0.1rem; min-width: 0; line-height: 1.15; }
.client-shell .loyalty-chip.has-points .loyalty-copy b { font-size: 0.74rem; }
.client-shell .loyalty-chip.has-points .loyalty-copy small { overflow-wrap: anywhere; color: var(--client-ink-soft); font-size: 0.68rem; line-height: 1.15; }
.client-shell .loyalty-chip.has-points .mini-btn { min-height: 2.75rem; padding: 0.25rem 0.55rem; }

/* Tracking */
.track-page { display: grid; gap: 1.35rem; max-width: 920px; margin: 0 auto; }
.track-page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.track-page-head h1 { margin: 0.65rem 0 0.5rem; color: var(--client-ink); font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -0.06em; line-height: 0.94; }
.track-page-head p { max-width: 35rem; margin: 0; color: var(--client-ink-soft); line-height: 1.5; }
.track-status-badge { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2rem; padding: 0.45rem 0.7rem; color: var(--client-ink-soft); background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 999px; font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.track-search-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem; align-items: end; padding: 1rem; background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1rem 0.35rem 1rem 0.35rem; box-shadow: var(--client-shadow); }
.track-search-card > .track-notification, .track-search-card > .track-alert { grid-column: 1 / -1; }
.track-search-card .btn { min-height: 3rem; }
.track-alert { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.track-orders-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.track-orders-head h2 { margin: 0; color: var(--client-ink); font-size: 1.55rem; }
.track-refresh { min-height: 2.45rem; }
.track-orders { display: grid; gap: 0.9rem; }
.track-empty { display: grid; justify-items: center; gap: 0.55rem; padding: 3rem 1rem; color: var(--client-ink-soft); background: rgba(255, 250, 242, 0.64); border: 1px dashed var(--client-line); border-radius: 1rem; text-align: center; }
.track-empty h2 { margin: 0.4rem 0 0; color: var(--client-ink); font-family: var(--display); }
.track-empty p { margin: 0; }
.tracked-order { padding: clamp(1rem, 3vw, 1.45rem); background: var(--client-paper); border: 1px solid var(--client-line); border-radius: 1rem 0.35rem 1rem 0.35rem; box-shadow: var(--client-shadow); }
.tracked-order-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.tracked-order-head h2 { margin: 0.45rem 0 0; color: var(--client-ink); font-size: 1.8rem; }
.tracked-order-meta { margin: 0.55rem 0 1rem; color: var(--client-ink-soft); font-size: 0.85rem; }
.track-estimate, .track-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0 0 0.9rem; }
.track-estimate > span:last-child, .track-ready > span:last-child { color: var(--client-ink-soft); }
.track-alert-icon { display: grid; place-items: center; color: var(--client-terracotta); }
.track-ready { color: var(--client-olive); background: #eef0e5; border-color: #d6ddbf; }
.track-ready > span:first-child { display: grid; place-items: center; }
.timeline { display: grid; gap: 0.5rem; }
.client-shell .timeline-step { min-height: 3.1rem; padding: 0.7rem 0.8rem; color: var(--client-ink-soft); background: var(--client-cream); border-left: 3px solid var(--client-line); border-radius: 0.55rem; }
.client-shell .timeline-step.active { color: var(--client-ink); background: #fff3e1; border-color: var(--client-terracotta); }
.client-shell .timeline-step.done, .client-shell .timeline-step.delivered-step { color: var(--client-olive); background: #eef0e5; border-color: var(--client-olive); }
.client-shell .timeline-step.cancel-step { color: var(--client-terracotta); background: #fae8e3; border-color: var(--client-terracotta); }
.timeline-icon { display: grid; width: 1.85rem; height: 1.85rem; flex: 0 0 auto; place-items: center; color: var(--client-ink-soft); background: var(--client-paper); border-radius: 50%; }
.timeline-step.active .timeline-icon { color: var(--client-paper); background: var(--client-terracotta); }
.timeline-step.done .timeline-icon, .timeline-step.delivered-step .timeline-icon { color: var(--client-paper); background: var(--client-olive); }
.timeline-step.cancel-step .timeline-icon { color: var(--client-paper); background: var(--client-terracotta); }
.timeline-sub { margin-left: auto; font-size: 0.78rem; }
.wa-notify { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: start; margin-top: 1rem; padding: 0.85rem; background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 0.7rem; }
.wa-notify > span:last-child { display: grid; min-width: 0; gap: 0.35rem; }
.wa-notify strong { color: var(--client-ink); overflow-wrap: normal; word-break: normal; hyphens: none; }
.wa-notify small, .wa-notify p { color: var(--client-ink-soft); font-size: 0.78rem; line-height: 1.4; }
.wa-notify p { margin: 0.2rem 0 0; }
.wa-notify-icon { display: grid; width: 2rem; height: 2rem; place-items: center; color: var(--client-olive); background: #e9eddc; border-radius: 50%; }
.wa-notify .btn { max-width: 100%; justify-self: start; margin-top: 0.15rem; line-height: 1.35; text-align: left; white-space: normal; }
.wa-notify .btn span { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.wa-notify .btn:disabled { opacity: 0.58; cursor: not-allowed; box-shadow: none; }
.wa-notify.restricted { grid-template-columns: minmax(0, 1fr); margin-inline: -1rem; padding: 0.5rem; }
.wa-notify-heading { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; gap: 0.65rem; }
.wa-notify-heading > strong { min-width: 0; flex: 1 1 8rem; }
.wa-notify.active { background: #eef0e5; border-color: #d6ddbf; }
.wa-notify.pending { background: #fff3e1; }
.status-pulse { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.35rem; vertical-align: middle; background: var(--client-gold); border-radius: 50%; box-shadow: 0 0 0 0.22rem rgba(210, 154, 61, 0.15); }
.track-notification { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 0.7rem; align-items: center; padding: 0.9rem; background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 0.75rem; }
.track-notification-icon { display: grid; width: 2.6rem; height: 2.6rem; grid-row: 1 / span 4; place-items: center; color: var(--client-paper); background: var(--client-terracotta); border-radius: 50%; }
.track-notification.delivered .track-notification-icon { background: var(--client-olive); }
.track-notification.none .track-notification-icon { color: var(--client-terracotta); background: var(--client-cream-deep); }
.track-notification > strong { color: var(--client-ink); }
.track-notification > p { margin: 0; }
.track-notification-items { display: grid; gap: 0.3rem; margin-top: 0.25rem; padding-top: 0.45rem; border-top: 1px solid var(--client-line); }
.track-notification-item, .track-notification-total { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; }
.track-notification-total { padding-top: 0.45rem; border-top: 1px solid var(--client-line); }

/* Modal helpers are mounted on body, outside .client-shell. */
.client-dialog .client-kicker { color: var(--client-terracotta); }
.client-dialog .modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.client-dialog .modal-code-row { display: flex; align-items: center; gap: 0.7rem; margin: 0.8rem 0; padding: 0.7rem; background: var(--client-cream); border: 1px solid var(--client-line); border-radius: 0.7rem; }
.device-check-code { flex: 1; color: var(--client-terracotta); font-size: 1.4rem; font-weight: 900; letter-spacing: 0.18em; }
.client-dialog .modal-close { border: 1px solid var(--client-line); }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .home-copy { order: 1; }
  .home-visual { order: 0; max-width: 42rem; width: 100%; margin: 0 auto; }
  .home-visual .carousel { aspect-ratio: 16 / 10; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .client-shell .client-main { width: min(100% - 1.25rem, 1180px); }
  .client-shell .topbar.is-client { min-height: 4.1rem; padding-inline: 0.75rem; }
  .client-shell .topbar.is-client .topbar-lead { gap: 0.55rem; }
  .client-shell .brand .logo { width: 2.45rem; height: 2.45rem; }
  .client-shell .brand-name { font-size: 1.02rem; }
  .client-shell .brand-name small { font-size: 0.48rem; letter-spacing: 0.08em; }
  .client-shell .store-badge { padding-inline: 0.55rem; font-size: 0.66rem; }
  .client-shell .nav-actions { gap: 0.35rem; }
  .client-shell .nav-action { min-height: 2.55rem; padding-inline: 0.62rem; font-size: 0.8rem; }
  .client-shell .nav-action span { display: none; }
  .client-shell .nav-action .ui-icon { width: 1.1rem; height: 1.1rem; }
  .home-copy h1 { max-width: 9ch; font-size: clamp(3rem, 15vw, 5rem); }
  .home-visual::before { inset: -0.6rem -0.35rem 1.2rem 0.45rem; }
  .home-visual .carousel { aspect-ratio: 4 / 3.5; border-width: 0.3rem; }
  .home-info-grid, .steps-grid { grid-template-columns: 1fr; }
  .home-info-card { min-height: 4.75rem; }
  .menu-page-head, .checkout-page-head, .track-page-head { display: grid; align-items: start; }
  .menu-page-head .btn, .checkout-page-head .btn { justify-self: start; }
  .client-shell .products.menu-products { grid-template-columns: 1fr; }
  .product-card-open { grid-template-columns: 7.2rem minmax(0, 1fr); }
  .client-shell .floating-cart { right: 0.7rem; bottom: calc(0.7rem + env(safe-area-inset-bottom)); min-width: 9.8rem; }
  .client-shell .floating-category-back { right: 0.7rem; bottom: calc(0.7rem + env(safe-area-inset-bottom)); }
  .client-shell .floating-category-back.has-cart { bottom: calc(5.45rem + env(safe-area-inset-bottom)); }
  .client-shell .cart-drawer { max-height: min(86dvh, 48rem); }
  .option-card-grid { grid-template-columns: 1fr; }
  .product-modal-intro { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .product-modal-intro .product-img { width: 5.5rem; height: 5.5rem; }
  .client-shell .product-modal { width: min(100% - 1rem, 42rem); max-height: min(90dvh, 48rem); padding: 0.85rem 0.75rem calc(0.9rem + env(safe-area-inset-bottom)); }
  .product-modal-intro { gap: 0.7rem; margin-top: 0.75rem; padding: 0.55rem; }
  .product-modal-description { font-size: 0.88rem; line-height: 1.35; }
  .product-stepper { margin: 0.7rem -0.1rem 0.85rem; }
  .product-step-label { font-size: 0.66rem; }
  .product-step-panel-head { gap: 0.55rem; }
  .product-step-status { max-width: 7.5rem; font-size: 0.6rem; }
  .product-step-group { padding: 0.65rem; }
  .product-step-actions { align-items: stretch; flex-wrap: wrap; }
  .product-step-actions-main { flex-wrap: wrap; }
  .checkout-actions { grid-template-columns: 1fr; }
  .checkout-form-section { grid-template-columns: auto minmax(0, 1fr); }
  .checkout-section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .checkout-section-head > div:first-child { flex: none; }
  .checkout-section-head > .badge { justify-self: start; margin-left: 2.75rem; }
  .checkout-receive-title { font-size: clamp(1.08rem, 5.4vw, 1.35rem); line-height: 1.08; }
  .checkout-receive-break { display: block; }
  .track-search-card { grid-template-columns: 1fr; }
  .track-search-card .btn { width: 100%; }
  .track-status-badge { justify-self: start; }
}

@media (max-width: 430px) {
  .client-shell .store-badge { max-width: 5.3rem; overflow: hidden; text-overflow: ellipsis; }
  .home-actions { display: grid; }
  .home-actions .btn { width: 100%; }
  .product-card-open { grid-template-columns: 6.3rem minmax(0, 1fr); gap: 0.7rem; }
  .product-card-title { font-size: 1.25rem; }
  .product-card-description { font-size: 0.82rem; }
  .product-card-footer { padding-inline: 0.75rem; }
  .product-add { padding-inline: 0.65rem; }
  .product-add span { display: none; }
  .client-shell .cart-item { grid-template-columns: 3.7rem minmax(0, 1fr); }
  .cart-item-thumb { width: 3.7rem; min-height: 3.7rem; }
  .cart-item-bottom { align-items: end; }
  .cart-actions { gap: 0.25rem; }
  .cart-edit { padding-inline: 0.5rem !important; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .tracked-order-head { display: grid; }
  .tracked-order-head .badge { justify-self: start; }
  .timeline-step { align-items: start; }
  .timeline-sub { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .client-shell *, .client-shell *::before, .client-shell *::after,
  .client-modal-backdrop *, .client-modal-backdrop *::before, .client-modal-backdrop *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .product-step-panel, .product-step-panel.is-mounted { opacity: 1; transform: none; }
}

/* Final client corrections: readable navigation and product titles. */
.client-shell .nav-action span {
  display: inline;
}

.client-shell .brand .client-logo {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  object-fit: contain;
}

.client-shell .client-product-card,
.client-shell .product-card-open,
.client-shell .product-card-title,
.client-shell .product-card-description {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.client-shell .product-card-title {
  min-width: 0;
  white-space: normal;
}

@media (max-width: 680px) {
  .client-shell .topbar.is-client {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .client-shell .topbar.is-client .topbar-lead {
    flex: 1 1 auto;
    min-width: 0;
  }

  .client-shell .topbar.is-client .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    flex: 1 0 100%;
  }

  .client-shell .nav-action {
    width: 100%;
    min-width: 0;
    padding-inline: 0.7rem;
  }

  .client-shell .nav-action span {
    display: inline;
  }

  .client-shell .brand .client-logo {
    width: 2.3rem;
    height: 2.3rem;
  }
}

/* Product cards: reset legacy mobile grid rules and keep the price row clear. */
.client-shell .client-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-auto-flow: row;
  column-gap: 0;
  row-gap: 0;
  height: auto;
  align-items: stretch;
  border: 1px solid rgba(166, 55, 43, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0.75rem 1.7rem rgba(73, 31, 23, 0.07);
}

.client-shell .client-product-card > .product-card-open {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-height: 0;
}

.client-shell .client-product-card > .product-card-footer {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 3.45rem;
  flex-wrap: nowrap;
}

.client-shell .client-product-card .product-card-copy {
  min-width: 0;
  overflow: hidden;
}

.client-shell .client-product-card .product-card-title,
.client-shell .client-product-card .product-card-description {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.client-shell .client-product-card .product-card-description {
  -webkit-line-clamp: 2;
}

.client-shell .client-product-card .product-card-footer .price {
  flex: 0 0 auto;
  white-space: nowrap;
}

.client-shell .client-product-card .product-add {
  flex: 0 0 auto;
}

/* Home presentation: compact vertical rhythm without removing hierarchy. */
.client-shell .client-home {
  gap: clamp(1.5rem, 3.2vw, 2.75rem);
}

.client-shell .home-hero {
  gap: clamp(1.25rem, 3vw, 2.75rem);
  min-height: auto;
}

.client-shell .home-copy {
  padding-block: 0;
}

.client-shell .home-copy h1 {
  margin: 0.7rem 0 0.9rem;
}

.client-shell .home-copy h1 em {
  margin-top: 0.3rem;
}

.client-shell .home-actions {
  margin-top: 1.1rem;
}

.client-shell .home-proof {
  margin-top: 0.85rem;
}

.client-shell .home-manga-note {
  margin-top: 1.5rem;
}

.client-shell .home-section-heading h2 {
  margin-bottom: 0.9rem;
}

@media (max-width: 900px) {
  .client-shell .home-hero {
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .client-shell .client-home {
    gap: 2rem;
  }

  .client-shell .home-copy h1 {
    margin-top: 0.35rem;
  }

  .client-shell .home-manga-note {
    margin-top: 1.1rem;
  }
}

/* Dashboard brand alignment: same visual language as the client site. */
.dashboard-shell {
  --dashboard-ink: #2b1712;
  --dashboard-ink-soft: #65483d;
  --dashboard-paper: #fffaf2;
  --dashboard-paper-strong: #fffdf9;
  --dashboard-cream: #f7eddf;
  --dashboard-cream-deep: #efddca;
  --dashboard-terracotta: #a6372b;
  --dashboard-terracotta-deep: #7f241e;
  --dashboard-gold: #d29a3d;
  --dashboard-gold-bright: #f0be6a;
  --dashboard-caramel: #c76727;
  --dashboard-olive: #5f6b45;
  --dashboard-line: #e8d7c1;

  --cocoa-900: var(--dashboard-ink);
  --cocoa-800: var(--dashboard-ink);
  --cocoa-700: var(--dashboard-ink-soft);
  --cocoa-600: var(--dashboard-terracotta-deep);
  --brand: var(--dashboard-terracotta);
  --brand-deep: var(--dashboard-terracotta-deep);
  --gold: var(--dashboard-gold);
  --gold-bright: var(--dashboard-gold-bright);
  --caramel: var(--dashboard-caramel);
  --leaf: var(--dashboard-olive);
  --cream: var(--dashboard-cream);
  --cream-2: var(--dashboard-cream-deep);
  --blue: var(--dashboard-terracotta);
  --navy: var(--dashboard-ink);
  --green: var(--dashboard-olive);
  --orange: var(--dashboard-caramel);
  --red: var(--dashboard-terracotta);
  --purple: var(--dashboard-terracotta-deep);
  --muted: var(--dashboard-ink-soft);
  --line: var(--dashboard-line);
  --bg: var(--dashboard-cream);
  --card: var(--dashboard-paper);
  --soft: var(--dashboard-cream-deep);
  --text: var(--dashboard-ink);

  min-height: 100vh;
  color: var(--dashboard-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(210, 154, 61, 0.11), transparent 18rem),
    radial-gradient(circle at 94% 32%, rgba(166, 55, 43, 0.08), transparent 20rem),
    var(--dashboard-cream);
}

.dashboard-shell h1,
.dashboard-shell h2,
.dashboard-shell h3,
.dashboard-shell h4 {
  color: var(--dashboard-ink);
}

.dashboard-shell .topbar.is-dashboard {
  background: rgba(255, 250, 242, 0.92);
  border-bottom-color: rgba(232, 215, 193, 0.9);
  box-shadow: 0 0.5rem 1.5rem rgba(73, 31, 23, 0.06);
  backdrop-filter: blur(16px);
}

.dashboard-shell .brand {
  min-height: 2.9rem;
  color: var(--dashboard-ink);
  border-radius: 0.75rem;
  transition: transform 150ms ease, opacity 150ms ease;
}

.dashboard-shell .brand:hover { opacity: 0.84; }
.dashboard-shell .brand:active { transform: scale(0.98); }
.dashboard-shell .brand:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.62); outline-offset: 4px; }

.dashboard-shell .brand .logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  object-fit: contain;
  background: var(--dashboard-paper-strong);
  box-shadow: 0 0.45rem 1rem rgba(111, 29, 27, 0.12);
}

.dashboard-shell .brand-name { color: var(--dashboard-ink); }
.dashboard-shell .brand-name small { color: var(--dashboard-terracotta); }
.dashboard-shell .nav-actions { align-items: center; gap: 0.55rem; }

.dashboard-shell .btn {
  border: 1px solid rgba(94, 24, 20, 0.58);
  background: linear-gradient(180deg, #b84638 0%, var(--dashboard-terracotta) 62%, #8b2a22 100%);
  color: #fffaf2;
  box-shadow: inset 0 1px rgba(255, 245, 235, 0.26), 0 2px 0 #681915, 0 0.55rem 1.1rem rgba(111, 29, 27, 0.17);
}

.dashboard-shell .btn:hover {
  background: linear-gradient(180deg, #c45748 0%, var(--dashboard-terracotta) 62%, #8b2a22 100%);
  box-shadow: inset 0 1px rgba(255, 245, 235, 0.3), 0 2px 0 #681915, 0 0.65rem 1.25rem rgba(111, 29, 27, 0.22);
}

.dashboard-shell .btn:active { transform: translateY(2px) scale(0.975); }
.dashboard-shell .btn:focus-visible { outline: 3px solid rgba(210, 154, 61, 0.62); outline-offset: 3px; }
.dashboard-shell .btn.secondary { border-color: #e4cbb6; background: linear-gradient(180deg, #fffefa, #f8e9dc); color: var(--dashboard-terracotta-deep); box-shadow: inset 0 1px #fff, 0 2px 0 #e3cbb8, 0 0.4rem 0.85rem rgba(75, 29, 24, 0.07); }
.dashboard-shell .btn.secondary:hover { border-color: var(--dashboard-gold); background: var(--dashboard-cream); }
.dashboard-shell .btn.green { background: linear-gradient(180deg, #6c7a4f, var(--dashboard-olive)); color: #fff; }
.dashboard-shell .btn.orange { background: linear-gradient(180deg, #c07f44, var(--dashboard-caramel)); }
.dashboard-shell .btn.red { background: linear-gradient(180deg, #c24536, var(--dashboard-terracotta)); }
.dashboard-shell .btn.purple { background: linear-gradient(180deg, #a05a45, var(--dashboard-terracotta-deep)); }
.dashboard-shell .btn:disabled { background: #c7b39c; color: #fff; box-shadow: none; transform: none; }

.dashboard-shell .panel,
.dashboard-shell .card,
.dashboard-shell .product-card,
.dashboard-shell .pos-card {
  background: var(--dashboard-paper);
  border-color: rgba(232, 215, 193, 0.9);
  box-shadow: 0 1rem 2.5rem rgba(75, 29, 24, 0.08), inset 0 1px rgba(255, 255, 255, 0.8);
}

.dashboard-shell .sidebar,
.dashboard-shell .column,
.dashboard-shell .analytics-custom,
.dashboard-shell .product-form-section,
.dashboard-shell .option-type-card,
.dashboard-shell .option-row-simple,
.dashboard-shell .products-list-item {
  background: var(--dashboard-paper-strong);
  border-color: var(--dashboard-line);
}

.dashboard-shell .column { background: rgba(255, 253, 249, 0.86); }
.dashboard-shell .order-row,
.dashboard-shell .customer-row,
.dashboard-shell .cart-item,
.dashboard-shell .mini-stat { background: var(--dashboard-paper-strong); border-color: var(--dashboard-line); }
.dashboard-shell .analytics-table { background: var(--dashboard-paper-strong); border-color: var(--dashboard-line); }
.dashboard-shell .analytics-table th { background: var(--dashboard-cream-deep); color: var(--dashboard-ink); }
.dashboard-shell .analytics-option-chip { color: var(--dashboard-ink); background: var(--dashboard-cream-deep); }
.dashboard-shell .analytics-option-chip b { color: var(--dashboard-terracotta); }

.dashboard-shell .input,
.dashboard-shell .textarea,
.dashboard-shell .select {
  color: var(--dashboard-ink);
  background: var(--dashboard-paper-strong);
  border-color: var(--dashboard-line);
}

.dashboard-shell .input:focus,
.dashboard-shell .textarea:focus,
.dashboard-shell .select:focus {
  outline: 3px solid rgba(210, 154, 61, 0.25);
  border-color: var(--dashboard-gold);
}

.dashboard-shell .muted { color: var(--dashboard-ink-soft); }
.dashboard-shell .price { color: var(--dashboard-caramel); }
.dashboard-shell .badge { color: var(--dashboard-ink); background: var(--dashboard-cream-deep); }
.dashboard-shell .badge.green { color: #3f4a2c; background: #e4e7d2; }
.dashboard-shell .badge.orange { color: #7a3f17; background: #f3e1cb; }
.dashboard-shell .badge.red { color: #7a2820; background: #f1d7d1; }
.dashboard-shell .badge.purple { color: #5a3f24; background: #ece0cf; }
.dashboard-shell .alert { color: var(--dashboard-terracotta-deep); background: var(--dashboard-cream-deep); border-color: var(--dashboard-line); }
.dashboard-shell .info-btn { color: var(--dashboard-terracotta); background: #f8e6d4; border-color: #e8c9a8; }
.dashboard-shell .info-btn.danger-btn { color: var(--dashboard-terracotta-deep); background: #f1d7d1; border-color: #e6b9ae; }

.dashboard-shell .timeline-step.active { color: var(--dashboard-ink); background: #f8e6d4; border-color: var(--dashboard-terracotta); }
.dashboard-shell .timeline-step.done,
.dashboard-shell .timeline-step.delivered-step { color: #3f4a2c; background: #e4e7d2; border-color: var(--dashboard-olive); }
.dashboard-shell .timeline-step.cancel-step { color: #7a2820; background: #f1d7d1; border-color: var(--dashboard-terracotta); }
.dashboard-shell .timeline-icon { color: var(--dashboard-ink-soft); background: var(--dashboard-cream-deep); }
.dashboard-shell .timeline-icon.check { background: var(--dashboard-olive); }
.dashboard-shell .timeline-icon.cancel { background: var(--dashboard-terracotta); }
.dashboard-shell .timeline-icon.loader { border-color: var(--dashboard-cream-deep); border-top-color: var(--dashboard-terracotta); }

.dashboard-shell .switch-track { background: var(--dashboard-cream-deep); }
.dashboard-shell .switch input:checked + .switch-track { background: var(--dashboard-olive); }
.dashboard-shell .switch-thumb { background: var(--dashboard-paper-strong); }
.dashboard-shell .store-state.open { color: var(--dashboard-olive); }
.dashboard-shell .store-state.closed { color: var(--dashboard-terracotta); }
.dashboard-shell .store-badge.open { color: var(--dashboard-olive); background: rgba(95, 107, 69, 0.12); }
.dashboard-shell .store-badge.open .store-dot { background: var(--dashboard-olive); }
.dashboard-shell .store-badge.closed { color: var(--dashboard-terracotta); background: rgba(166, 55, 43, 0.12); }
.dashboard-shell .store-badge.closed .store-dot { background: var(--dashboard-terracotta); }

.dashboard-shell .modal-backdrop { background: rgba(45, 23, 20, 0.58); }
.dashboard-shell .wa-loader { border-color: var(--dashboard-cream-deep); border-top-color: var(--dashboard-terracotta); }
.dashboard-shell .wa-dot.off { background: #d8c4b0; }
.dashboard-shell .wa-qr { background: var(--dashboard-paper-strong); border-color: var(--dashboard-line); }
.dashboard-shell .wa-notify { background: #f8e6d4; border-color: #e8c9a8; }
.dashboard-shell .wa-notify.active { background: #e4e7d2; border-color: #cad8bb; }
.dashboard-shell .wa-notify.pending { background: #f3e1cb; border-color: #e5c08a; }
.dashboard-shell .option-type-card:hover { border-color: var(--dashboard-gold); background: var(--dashboard-cream); }
.dashboard-shell .product-img { background: linear-gradient(135deg, var(--dashboard-cream-deep), #e7d3b6); color: var(--dashboard-ink-soft); }
.dashboard-shell .toast { background: var(--dashboard-terracotta-deep); color: #fffaf2; border-color: var(--dashboard-gold); }

.cashier-profiles-admin {
  display: grid;
  gap: 1rem;
}

.cashier-profile-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.cashier-profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.cashier-profile-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--dashboard-line);
  border-left: 0.35rem solid var(--actor-color);
  border-radius: 1rem;
  background: var(--dashboard-paper-strong);
}

.cashier-profile-head,
.cashier-profile-head > div,
.copy-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cashier-profile-head {
  justify-content: space-between;
}

.cashier-profile-head h3 { margin: 0; }
.cashier-profile-dot { width: 0.8rem; height: 0.8rem; flex: 0 0 auto; border-radius: 50%; background: var(--actor-color); }
.generate-field { display: flex; align-items: center; gap: 0.45rem; }
.generate-field .input { min-width: 0; flex: 1; }
.generate-btn { width: 2.7rem; flex: 0 0 2.7rem; padding: 0; font-size: 1.15rem; }
.copy-field .input { min-width: 0; flex: 1; }
.copy-field .btn { flex: 0 0 auto; }
.cashier-profile-actions { justify-content: flex-end; }
.cashier-profile-banner { margin-bottom: 0.75rem; color: var(--dashboard-terracotta-deep); }

.history-actor {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  color: var(--actor-color);
  border-left: 0.2rem solid var(--actor-color);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 0.3rem;
  font-family: inherit;
  font-weight: 800;
}

@media (max-width: 720px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
  .side-btn { margin-bottom: 0; }
  .copy-field { align-items: stretch; flex-direction: column; }
  .copy-field .btn { width: 100%; }
}

/* Availability, live operations and cashier controls */
.client-product-media { position: relative; }
.client-product-card.is-unavailable { border-style: dashed; }
.client-product-card.is-unavailable .client-product-media img {
  opacity: 0.42;
  filter: grayscale(0.45) saturate(0.65);
}
.client-product-card.is-unavailable .product-card-open:hover .client-product-media img { transform: none; }
.product-unavailable-label {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: calc(100% - 0.5rem);
  padding: 0.42rem 0.62rem;
  color: #fffaf1;
  background: rgba(78, 47, 27, 0.9);
  border: 1px solid rgba(255, 250, 241, 0.72);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.client-product-card .product-add:disabled,
.product-add-submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.product-modal-intro.is-unavailable .product-img { opacity: 0.48; filter: grayscale(0.4); }
.product-modal-unavailable {
  display: block;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.3rem 0.55rem;
  color: #fffaf1;
  background: var(--brand-deep);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-shell .order-timing {
  margin: 0.55rem 0;
  padding: 0.48rem 0.58rem;
  color: var(--dashboard-ink);
  background: var(--dashboard-cream-deep);
  border-left: 0.28rem solid var(--dashboard-gold);
  border-radius: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.dashboard-shell .order-timing.countdown { border-left-color: #376c8c; background: #e2edf3; }
.dashboard-shell .order-timing.early,
.dashboard-shell .order-timing.on-time { border-left-color: var(--dashboard-olive); background: #e7ead9; }
.dashboard-shell .order-timing.late { border-left-color: var(--dashboard-terracotta); background: #f7dfd8; }

.order-alarm-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.9rem;
  margin-bottom: 0.8rem;
  padding: 0.65rem 1rem;
  color: #fffaf2;
  background: var(--dashboard-terracotta-deep);
  border: 2px solid var(--dashboard-gold);
  border-radius: 0.75rem;
  font-weight: 800;
  animation: order-alarm-pulse 1.6s ease-in-out infinite;
}
@keyframes order-alarm-pulse { 50% { box-shadow: 0 0 0 0.42rem rgba(210, 154, 61, 0.2); } }

.dashboard-shell .delivery-availability {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem;
}
.delivery-mode-row { gap: 1rem; flex-wrap: wrap; }
.delivery-availability [hidden] { display: none !important; }
.delivery-availability .btn { width: fit-content; }
.pos-product-search { width: min(100%, 34rem); margin: 0; }
.manual-payment-choice { display: grid; gap: 0.55rem; padding: 0.75rem; background: var(--dashboard-cream); border: 1px solid var(--dashboard-line); border-radius: 0.7rem; }

.cashier-product-search { max-width: 34rem; }
.cashier-product-list { display: grid; gap: 0.65rem; }
.cashier-product-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.8rem;
  padding: 0.65rem;
  background: var(--dashboard-paper-strong);
  border: 1px solid var(--dashboard-line);
  border-radius: 0.8rem;
}
.cashier-product-row.is-disabled { background: var(--dashboard-cream); }
.cashier-product-row .product-img { width: 4rem; height: 4rem; margin: 0; }
.cashier-product-row > div { display: grid; gap: 0.2rem; }
.cashier-product-row small { color: var(--dashboard-ink-soft); }

.manual-stats-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  color: var(--dashboard-ink);
  background: var(--dashboard-cream);
  border: 1px solid var(--dashboard-line);
  border-left: 0.35rem solid var(--dashboard-terracotta);
  border-radius: 0.85rem;
}
.manual-stats-overview > div { display: grid; gap: 0.15rem; min-width: 11rem; }
.manual-stats-overview small { color: var(--dashboard-ink-soft); font-weight: 800; }
.manual-stats-overview strong { color: var(--dashboard-terracotta-deep); font-size: clamp(2rem, 5vw, 3rem); font-variant-numeric: tabular-nums; line-height: 1; }
.manual-stats-overview p { max-width: 44rem; margin: 0; color: var(--dashboard-ink-soft); line-height: 1.5; }
.manual-stats-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.9rem; }
.manual-stats-card { min-width: 0; overflow: visible; padding: 1rem; background: var(--dashboard-paper-strong); border: 1px solid var(--dashboard-line); border-radius: 0.85rem; }
.manual-stats-card-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
.manual-stats-card-head > div { min-width: 0; }
.manual-stats-card-head small { color: var(--dashboard-terracotta-deep); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.manual-stats-card-head h3 { margin: 0.15rem 0 0; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; }
.manual-stats-card-head > span { display: block; width: fit-content; max-width: 100%; box-sizing: border-box; padding: 0.3rem 0.5rem; color: var(--dashboard-ink-soft); background: var(--dashboard-cream); border-radius: 0.4rem; font-size: 0.75rem; font-weight: 800; line-height: 1.4; text-align: left; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; }
.manual-stats-list { display: grid; gap: 0.9rem; margin-top: 1rem; }
.manual-stat-row { display: grid; gap: 0.45rem; }
.manual-stat-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1rem; }
.manual-stat-head > span { min-width: 0; line-height: 1.4; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: pretty; }
.manual-stat-head strong { display: inline-flex; align-items: baseline; gap: 0.4rem; flex-shrink: 0; color: var(--dashboard-terracotta-deep); font-variant-numeric: tabular-nums; }
.manual-stat-head strong small { color: var(--dashboard-ink-soft); font-size: 0.75rem; }
.manual-stat-track { height: 0.72rem; overflow: hidden; background: var(--dashboard-cream-deep); border: 1px solid var(--dashboard-line); border-radius: 999px; }
.manual-stat-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--dashboard-terracotta), var(--dashboard-gold)); border-radius: inherit; }
.manual-stats-empty { margin: 1rem 0 0; text-align: center; }
.dashboard-shell .option-type-card:disabled { opacity: 0.5; cursor: not-allowed; background: var(--dashboard-cream-deep); }

@media (max-width: 720px) {
  .cashier-product-row { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
  .cashier-product-row .product-img { width: 3.4rem; height: 3.4rem; }
  .cashier-product-row > .badge { grid-column: 2; width: fit-content; }
  .cashier-product-row > .switch { grid-column: 3; grid-row: 1 / span 2; }
  .delivery-availability .btn { width: 100%; }
  .manual-stats-overview { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .order-alarm-unlock { animation: none; }
  .client-product-media img { transition: none; }
}
