:root {
  --primary: #2e7d1e;
  --accent: #f4c500;
  --surface: #fff;
  --text: #17240f;
  --muted: #667060;
  --line: #dfe8d8;
  --soft: #f7fbf4;
  --danger: #d93636;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcf8, #f2f6ed);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.site-brand img {
  width: 120px;
  height: 46px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header nav a,
.inline-form button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  text-decoration: none;
}

.site-header nav b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
}

.inline-form { margin: 0; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header .site-brand {
  min-width: 0;
}

.panel-actions {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.panel-icon-button,
.panel-header .inline-form .panel-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.panel-icon-button:hover,
.panel-header .inline-form .panel-icon-button:hover {
  color: var(--primary);
  border-color: rgba(46, 125, 30, .25);
  background: var(--soft);
}

.panel-icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 60px;
}

.flash-wrap {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 80;
  width: min(560px, calc(100% - 28px));
  margin: 0;
  transform: translateX(-50%);
}
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 12px 28px rgba(34, 62, 22, .14); }
.alert.success { background: #eaf7e5; color: var(--primary); }
.alert.error { background: #fdeaea; color: var(--danger); }

.page-register .flash-wrap {
  display: none;
}

.customer-hero,
.content-block,
.auth-card,
.install-card,
.empty-state,
.loyalty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(34, 62, 22, .10);
}

.customer-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.customer-hero h1 {
  margin: 0;
  font-size: 44px;
}

.customer-hero p { color: var(--muted); }
.customer-hero img { border-radius: 18px; width: 100%; height: 170px; object-fit: cover; }

.search-box input,
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.content-block,
.auth-card,
.empty-state,
.install-card,
.loyalty {
  margin-top: 16px;
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-heading h2 { margin: 0; }

.quick-products,
.product-grid,
.category-grid,
.proof-grid,
.account-grid {
  display: grid;
  gap: 10px;
}

.quick-products { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.proof-grid { grid-template-columns: repeat(3, 1fr); }
.account-grid { grid-template-columns: repeat(3, 1fr); }

.quick-product,
.product-card,
.category-grid article,
.account-grid article,
.order-row,
.cart-list article,
.prep-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.quick-product img,
.product-card img,
.category-grid img,
.proof-grid img,
.cart-list img {
  width: 100%;
  object-fit: cover;
}

.quick-product img { height: 120px; }
.product-card img { height: 190px; }
.category-grid img { height: 90px; }
.proof-grid img { height: 150px; border-radius: 14px; }

.quick-product strong,
.quick-product span,
.category-grid strong {
  display: block;
  padding: 0 10px;
}

.quick-product strong { margin-top: 8px; }
.quick-product span { color: var(--muted); font-size: 13px; }
.quick-product form { padding: 10px; }
.quick-product button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--primary); color: #fff; font-size: 22px; }

.loyalty strong,
.loyalty span { display: block; }
.loyalty span { color: var(--muted); margin: 6px 0 10px; }
.loyalty i { display: block; height: 10px; border-radius: 999px; background: #dcebd4; overflow: hidden; }
.loyalty b { display: block; height: 100%; background: var(--primary); }

.home-slide-block {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
}

.page-home .customer-hero + .home-slide-block {
  margin-top: 0;
}

.home-slide-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-slide-track::-webkit-scrollbar {
  display: none;
}

.home-slide-card {
  position: relative;
  display: block;
  min-height: 198px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  background: #172414;
  box-shadow: 0 12px 30px rgba(34, 62, 22, .12);
}

.home-slide-card img {
  width: 100%;
  height: 212px;
  object-fit: cover;
  display: block;
  opacity: .86;
}

.home-slide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 32, 14, .72), rgba(18, 32, 14, .16));
}

.home-slide-copy {
  position: absolute;
  left: 16px;
  right: 54px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.home-slide-copy strong {
  font-size: 20px;
  line-height: 1.12;
}

.home-slide-copy small {
  max-width: 340px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.3;
}

.home-slide-dots,
.announcement-slide-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 8px 0 2px;
}

.home-slide-dot,
.announcement-slide-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbdcc3;
  transition: width .18s ease, background .18s ease;
}

.home-slide-dot.active,
.announcement-slide-dot.active {
  width: 22px;
  background: var(--primary);
}

.announcements-block {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
}

.announcements-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  overflow-x: auto;
  padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.announcements-track::-webkit-scrollbar {
  display: none;
}

.announcement-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f4faee, #fff);
  box-shadow: 0 8px 22px rgba(34, 62, 22, .08);
  scroll-snap-align: start;
}

.announcement-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--primary);
  background: #edf7e8;
}

.announcement-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announcement-card strong,
.announcement-card small {
  display: block;
}

.announcement-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.announcement-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-card { position: relative; }
.product-card mark { position: absolute; top: 12px; right: 12px; border-radius: 999px; padding: 6px 9px; background: var(--accent); font-weight: 800; font-size: 12px; }
.product-card div { padding: 12px; }
.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card-info,
.product-card-action {
  display: block;
  padding: 12px;
}
.product-card-action {
  padding-top: 0;
}
.product-card strong, .product-card small { display: block; }
.product-card small, del { color: var(--muted); }
.product-price { display: block; margin: 8px 0; }
.product-card b { color: var(--primary); font-size: 20px; }
.product-card button, .button { display: inline-block; border: 0; border-radius: 12px; padding: 12px 16px; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; }

.auth-card,
.install-card,
.empty-state {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.auth-title-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-title-row h1 {
  margin: 0;
}

.auth-back-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.auth-back-button:hover {
  background: var(--soft);
  color: var(--primary);
}

.auth-card form,
.install-card form,
.checkout-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.signup-prompt {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  text-align: center;
  color: #07143f;
}

.signup-prompt a {
  color: #2400ff;
  font-weight: 600;
  text-decoration: none;
}

.signup-prompt a:hover {
  text-decoration: underline;
}

.field-error {
  display: none;
  min-height: 0;
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
}

.field-error:not(:empty) {
  display: block;
}

input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217, 54, 54, .12);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  color: var(--muted);
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible {
  color: var(--primary);
  background: #edf7e8;
}

.install-page { min-height: 100vh; display: grid; place-items: center; }
.install-card img { width: 150px; margin-bottom: 16px; }

.cart-list { display: grid; gap: 12px; }
.cart-list article, .order-row, .prep-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
}
.cart-list img { width: 72px; height: 72px; border-radius: 12px; }
.cart-list button { border: 0; border-radius: 8px; padding: 8px 10px; }
.cart-total { font-size: 20px; }

.checkout-login-required {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdf8;
}

.checkout-login-required strong {
  font-size: 18px;
}

.checkout-login-required span {
  color: var(--muted);
  line-height: 1.35;
}

.checkout-login-required .button {
  width: 100%;
  text-align: center;
}

.checkout-register-link {
  color: var(--primary);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
}

.panel-page .admin-layout {
  grid-template-columns: 1fr;
}

.admin-layout aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.panel-page .admin-layout aside {
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-layout aside a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
}

.admin-layout aside a svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.admin-layout aside a:hover { background: var(--soft); color: var(--primary); }
.admin-layout aside a.active,
.admin-layout aside a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}
.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-tab-stack {
  display: grid;
  gap: 14px;
}

.admin-tab-stack > .content-block {
  margin-top: 0;
}

.admin-form { grid-template-columns: repeat(2, 1fr); }
.admin-table { display: grid; gap: 10px; }
.admin-table article { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }

.announcement-admin-form {
  margin-bottom: 18px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label input {
  width: auto;
}

.announcement-admin-list {
  display: grid;
  gap: 10px;
}

.home-slide-form {
  margin-top: 12px;
}

.home-slide-admin-list {
  display: grid;
  gap: 10px;
}

.home-slide-admin-list article {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.home-slide-admin-list > article > img {
  width: 132px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.slide-row-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.slide-row-info strong,
.slide-row-info span,
.slide-row-info small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-row-info span,
.slide-row-info small {
  color: var(--muted);
}

.admin-create-disclosure {
  margin-top: 10px;
}

#announcements > .content-block:nth-of-type(1),
#announcements > .content-block:nth-of-type(5) {
  display: none;
}

.admin-create-disclosure > summary,
.row-edit-details > summary {
  list-style: none;
  cursor: pointer;
}

.admin-create-disclosure > summary::-webkit-details-marker,
.row-edit-details > summary::-webkit-details-marker {
  display: none;
}

.admin-create-disclosure > summary {
  margin-left: auto;
}

.admin-section-head {
  flex-wrap: wrap;
}

.admin-head-disclosure {
  display: grid;
  justify-items: end;
  margin: 0 0 0 auto;
}

.admin-head-disclosure[open] {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 8px;
}

.admin-head-disclosure[open] > summary {
  margin-bottom: 8px;
}

.row-edit-details {
  display: grid;
  justify-items: end;
}

.row-edit-details[open] {
  grid-column: 1 / -1;
  justify-items: stretch;
}

.row-edit-details[open] > summary {
  justify-self: end;
  margin-bottom: 8px;
}

.home-slide-row-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-slide-row-form .button {
  align-self: end;
}

.home-slide-delete-form {
  align-self: start;
}

.trust-admin-form {
  margin-top: 12px;
}

.trust-admin-list {
  display: grid;
  gap: 10px;
}

.trust-admin-list article {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.trust-admin-list > article > img {
  width: 132px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.trust-row-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trust-row-form .button {
  align-self: end;
}

.trust-delete-form {
  align-self: start;
}

.showcase-admin-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.showcase-admin-list article {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.showcase-admin-list img {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.showcase-admin-list strong {
  min-width: 0;
}

.showcase-product-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.showcase-product-info span {
  color: var(--muted);
  font-size: 14px;
}

.showcase-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-flags small {
  color: #c62828;
  font-weight: 800;
}

.legacy-update-plan {
  display: none;
}

.super-admin-list {
  display: grid;
  gap: 12px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-section-head h2 {
  margin: 0;
}

.icon-only-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.icon-only-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.icon-only-button:hover {
  filter: brightness(.95);
}

.danger-icon-button {
  background: #fff;
  border-color: #f3b7b7;
  color: #c62828;
}

.danger-icon-button:hover {
  background: #fff2f2;
}

.solid-icon-button {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-card-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.admin-delete-form {
  display: inline-flex;
}

.admin-edit-button {
  justify-self: end;
}

.admin-modal {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.admin-create-modal {
  width: min(620px, calc(100vw - 28px));
}

#productEditDialog {
  width: min(820px, calc(100vw - 28px));
}

.admin-modal::backdrop {
  background: rgba(12, 24, 12, .46);
  backdrop-filter: blur(4px);
}

.admin-modal-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(31, 55, 20, .22);
}

.admin-create-modal-card {
  max-height: min(78vh, 680px);
  overflow: auto;
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-modal-header h2 {
  margin: 0 0 3px;
}

.admin-modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.25;
}

.admin-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-active-toggle {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-weight: 800;
}

.admin-modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-close:hover {
  background: var(--soft);
  color: var(--primary);
}

.product-modal-card {
  gap: 10px;
}

.product-modal-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-modal-fields {
  display: grid;
  gap: 10px;
}

.product-image-uploader {
  display: grid;
  gap: 8px;
}

.product-image-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.product-image-picker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.product-image-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 84px));
  gap: 8px;
}

.product-image-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: grab;
}

.product-image-preview.dragging {
  opacity: .62;
  outline: 2px solid var(--primary);
}

.product-image-preview:first-child::after {
  position: absolute;
  left: 5px;
  bottom: 5px;
  content: "Ana";
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

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

.product-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(198, 40, 40, .96);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.product-image-drag {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  pointer-events: none;
}

.product-options-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdf8;
}

.product-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-options-head h3 {
  margin: 0;
  font-size: 16px;
}

.product-option-list {
  display: grid;
  gap: 8px;
}

.product-option-row {
  display: grid;
  grid-template-columns: minmax(112px, 1.2fr) minmax(78px, .75fr) minmax(78px, .75fr) auto auto;
  gap: 6px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.product-option-row label {
  display: grid;
  gap: 4px;
}

.product-option-row input {
  min-height: 34px;
  padding: 7px 8px;
}

.compact-checkbox {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.compact-checkbox input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.product-modal-footer {
  display: grid;
  grid-template-columns: minmax(0, .45fr) minmax(0, 1fr);
  gap: 10px;
}

.button.button-muted {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
}

.super-admin-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.super-admin-list article > .admin-info {
  display: grid;
  gap: 4px;
}

.super-admin-list small,
.super-admin-list span {
  color: var(--muted);
}

.super-update-panel {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.super-update-panel .admin-section-head {
  margin-bottom: 0;
}

.super-update-panel .admin-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.update-upload-form .full-field {
  grid-column: 1 / -1;
}

.update-log-list {
  display: grid;
  gap: 10px;
}

.update-log-list h3 {
  margin: 4px 0 0;
}

.update-log-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.update-log-list small,
.update-log-list p {
  color: var(--muted);
}

.update-log-list small {
  display: block;
  margin-top: 3px;
}

.update-log-list span {
  align-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e9f6e5;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.update-log-list p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.35;
}

.reset-password-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.announcement-admin-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.announcement-row-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.announcement-row-form .button {
  align-self: end;
}

.announcement-delete-form {
  align-self: start;
}

@media (max-width: 850px) {
  .site-header,
  .customer-hero,
  .admin-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .quick-products,
  .product-grid,
  .category-grid,
  .proof-grid,
  .account-grid,
  .admin-form,
  .announcement-row-form,
  .super-admin-list article,
  .reset-password-form,
  .showcase-admin-list article,
  .trust-admin-list article,
  .announcement-admin-list article {
    grid-template-columns: 1fr 1fr;
  }

  .home-slide-admin-list article,
  .trust-admin-list article {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .home-slide-row-form,
  .trust-row-form {
    grid-template-columns: 1fr 1fr;
  }

  .home-slide-delete-form,
  .trust-delete-form {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 850px) {
  .panel-header {
    flex-direction: row;
    align-items: center;
  }

  .panel-actions {
    margin-left: auto;
  }

  .panel-page .site-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .panel-page .site-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .panel-page .site-brand img {
    width: 72px;
    height: 42px;
  }

  .panel-page .site-brand span {
    overflow: hidden;
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .panel-page .panel-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .panel-page .panel-icon-button,
  .panel-page .panel-header .inline-form .panel-icon-button {
    width: 40px;
    height: 40px;
  }

  .panel-page .page {
    width: 100%;
    margin: 12px auto 28px;
    padding: 0 14px;
  }

  .panel-page .admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 118px;
  }

  .panel-page .admin-layout aside {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 42;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    align-items: stretch;
    width: 100%;
    overflow: visible;
    padding: 6px 8px 10px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 34px rgba(34, 62, 22, .12);
    scrollbar-width: auto;
    scroll-snap-type: none;
  }

  .panel-page .admin-layout aside::-webkit-scrollbar {
    display: none;
  }

  .panel-page .admin-layout aside strong {
    display: none;
  }

  .panel-page .admin-layout aside a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 5px 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    scroll-snap-align: none;
  }

  .panel-page .admin-layout aside a svg {
    width: 18px;
    height: 18px;
  }

  .panel-page .admin-layout aside a.active,
  .panel-page .admin-layout aside a[aria-current="page"] {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }

  .panel-page .content-block,
  .panel-page .auth-card,
  .panel-page .install-card,
  .panel-page .empty-state {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
  }

  .panel-page .content-block h1,
  .panel-page .auth-card h1 {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.1;
  }

  .panel-page .content-block h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  .panel-page .admin-form,
  .panel-page .announcement-row-form,
  .panel-page .reset-password-form,
  .panel-page .trust-row-form,
  .panel-page .announcement-admin-list article,
  .panel-page .trust-admin-list article,
  .panel-page .admin-table article {
    grid-template-columns: 1fr;
  }

  .panel-page .trust-admin-list > article > img {
    width: 100%;
    height: 126px;
  }

  .panel-page .showcase-admin-list article {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
  }

  .panel-page .admin-section-head {
    align-items: center;
    flex-direction: row;
  }

  .panel-page .admin-modal-card {
    padding: 14px;
  }

  .panel-page .product-modal-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panel-page .product-image-preview-list {
    grid-template-columns: repeat(4, minmax(0, 72px));
  }

  .panel-page .product-option-row {
    grid-template-columns: minmax(104px, 1.2fr) minmax(74px, .75fr) minmax(74px, .75fr) auto auto;
    align-items: center;
    overflow-x: auto;
  }

  .panel-page .product-option-row .icon-only-button {
    justify-self: end;
  }

  .panel-page .showcase-admin-list img {
    width: 72px;
    height: 58px;
  }

  .panel-page .admin-table article {
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .panel-page .admin-layout {
    padding-bottom: 156px;
  }

  .panel-page .admin-layout aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .quick-products,
  .product-grid,
  .category-grid,
  .proof-grid,
  .account-grid,
  .cart-list article,
  .order-row,
  .prep-row,
  .announcement-row-form,
  .reset-password-form,
  .announcement-admin-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .panel-page .announcement-admin-list article {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .panel-page .announcement-row-form {
    grid-template-columns: 1fr 1fr;
  }

  .panel-page .announcement-delete-form {
    grid-column: auto;
    justify-self: end;
  }
}

/* Customer PWA shell */
.customer-page {
  min-height: 100vh;
  padding-bottom: 92px;
  background: linear-gradient(180deg, #fbfdf8, #f1f6ed);
}

.customer-page .site-header {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 14px 18px 0;
  min-height: 50px;
  border-bottom: 0;
  background: #fff;
}

.customer-page .site-brand {
  gap: 8px;
  min-width: 0;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.customer-page .site-brand img {
  width: 58px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.customer-page .site-brand span {
  display: block;
  overflow: hidden;
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.customer-page .app-header .icon-button {
  width: 38px;
  height: 38px;
  background: transparent;
}

.customer-page .app-header .app-actions {
  flex: 0 0 auto;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #111;
  text-decoration: none;
  border-radius: 50%;
  background: #fff;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button b,
.bell-dot {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.bell-dot {
  min-width: 9px;
  width: 9px;
  height: 9px;
  background: #df3535;
}

.customer-page .page {
  width: 100%;
  margin: 0 auto;
  padding: 0 14px 20px;
}

.customer-page:not(.page-home) .page {
  padding-top: 24px;
}

.customer-page .flash-wrap {
  width: calc(100% - 28px);
}

.customer-page .customer-hero,
.customer-page .content-block,
.customer-page .loyalty,
.customer-page .auth-card,
.customer-page .empty-state {
  border-radius: 18px;
  border-color: #dfe8d8;
  box-shadow: 0 10px 34px rgba(34, 62, 22, .08);
}

.customer-page .customer-hero {
  position: relative;
  grid-template-columns: 1fr 190px;
  gap: 8px;
  align-items: end;
  padding: 10px 18px 18px;
  overflow: hidden;
}

.customer-page .customer-hero h1 {
  margin-top: 8px;
  font-size: 42px;
  line-height: 1;
}

.customer-page .customer-hero h1 i {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 0 80% 0 80%;
  background: var(--primary);
  transform: rotate(-18deg);
}

.customer-page .customer-hero p {
  margin: 10px 0 18px;
  font-size: 14px;
}

.customer-page .customer-hero > img {
  align-self: start;
  width: 190px;
  height: 118px;
  margin-top: 4px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: none;
}

.customer-page .search-box {
  grid-column: 1 / -1;
}

.customer-page .search-box input {
  height: 54px;
  border-radius: 20px;
  padding-left: 46px;
  background:
    radial-gradient(circle at 24px 50%, transparent 0 8px, var(--primary) 9px 10px, transparent 11px),
    linear-gradient(#fff, #fff);
  box-shadow: 0 8px 24px rgba(34, 62, 22, .08);
}

.page-home .app-header {
  display: none;
}

.page-home .page {
  padding-top: 8px;
}

.page-home .customer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-template-rows: auto min-content min-content auto;
  align-items: start;
  gap: 0 10px;
  margin: 0 -14px 0;
  padding: 6px 18px 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.page-home .hero-topline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
}

.page-home .hero-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--primary);
  text-decoration: none;
}

.page-home .hero-brand img {
  width: 58px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.page-home .hero-brand strong {
  overflow: hidden;
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-home .hero-topline .app-actions {
  flex: 0 0 auto;
}

.page-home .hero-topline .icon-button {
  width: 38px;
  height: 38px;
  background: transparent;
}

.page-home .hero-copy {
  grid-column: 1;
  grid-row: 2 / 4;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.page-home .customer-hero h1 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1;
}

.page-home .customer-hero h1 i {
  width: 20px;
  height: 20px;
  margin-left: 6px;
}

.page-home .customer-hero p {
  margin: 4px 0 8px;
  color: #1f2b18;
  font-size: 13px;
}

.page-home .customer-hero > img:not(.hero-image) {
  display: none;
}

.page-home .hero-image {
  grid-column: 2;
  grid-row: 2 / 4;
  justify-self: end;
  align-self: start;
  width: 190px;
  height: 88px;
  margin: -6px 0 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.page-home .hero-copy .search-box {
  position: relative;
  z-index: 2;
  width: calc(100vw - 36px);
  max-width: calc(100vw - 36px);
  margin: 8px 0 0;
}

.page-home .hero-copy .search-box input {
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 23px 50%, transparent 0 8px, var(--primary) 9px 10px, transparent 11px),
    linear-gradient(#fff, #fff);
  box-shadow: 0 8px 20px rgba(34, 62, 22, .12);
}

.customer-page .content-block,
.customer-page .loyalty {
  margin-top: 18px;
  padding: 16px;
}

.page-home .customer-hero + .content-block {
  margin-top: 10px;
}

.customer-page .section-heading {
  margin-bottom: 12px;
}

.customer-page .section-heading h2 {
  font-size: 22px;
  color: var(--primary);
}

.section-icon {
  margin-right: 6px;
}

.customer-page .quick-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-page .quick-product {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(34, 62, 22, .07);
}

.customer-page .quick-product img {
  height: 92px;
}

.customer-page .quick-product strong {
  min-height: 32px;
  margin-top: 8px;
  font-size: 12px;
}

.customer-page .quick-product span {
  font-size: 11px;
}

.customer-page .quick-product form {
  display: flex;
  justify-content: flex-end;
  padding: 7px;
}

.customer-page .quick-product button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.customer-page .loyalty {
  background: linear-gradient(135deg, #f4faee, #fff);
}

.customer-page .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-fixed-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-page .product-card {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(34, 62, 22, .08);
}

.customer-page .product-card img {
  height: 150px;
}

.customer-page .product-card div,
.customer-page .product-card-info,
.customer-page .product-card-action {
  padding: 10px;
}

.customer-page .product-card-action {
  padding-top: 0;
}

.customer-page .product-card strong {
  min-height: 36px;
  font-size: 14px;
}

.customer-page .product-card small {
  font-size: 12px;
}

.customer-page .product-card p {
  margin: 8px 0;
}

.customer-page .product-card b {
  font-size: 18px;
}

.customer-page .product-card button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
}

.page-home .home-fixed-three-grid .product-card {
  min-width: 0;
}

.page-home .home-fixed-three-grid .product-card img {
  height: 108px;
}

.page-home .home-fixed-three-grid .product-card div,
.page-home .home-fixed-three-grid .product-card-info,
.page-home .home-fixed-three-grid .product-card-action {
  padding: 8px;
}

.page-home .home-fixed-three-grid .product-card-action {
  padding-top: 0;
}

.page-home .home-fixed-three-grid .product-card mark {
  top: 8px;
  right: 8px;
  padding: 5px 7px;
  font-size: 10.5px;
}

.page-home .home-fixed-three-grid .product-card strong {
  min-height: 32px;
  font-size: 12px;
  line-height: 1.2;
}

.page-home .home-fixed-three-grid .product-card small {
  font-size: 11px;
}

.page-home .home-fixed-three-grid .product-card p {
  margin: 6px 0;
}

.page-home .home-fixed-three-grid .product-card del {
  display: block;
  font-size: 11px;
}

.page-home .home-fixed-three-grid .product-card b {
  font-size: 15px;
}

.page-home .home-fixed-three-grid .product-card button {
  min-height: 34px;
  margin-top: 6px;
  padding: 8px 5px;
  font-size: 12px;
}

@media (max-width: 560px) {
  .home-slide-admin-list article {
    grid-template-columns: 1fr;
  }

  .home-slide-admin-list > article > img {
    width: 100%;
    height: 120px;
  }

  .home-slide-row-form {
    grid-template-columns: 1fr;
  }

  .home-slide-delete-form {
    grid-column: auto;
    justify-self: end;
  }

  .home-slide-card {
    min-height: 176px;
  }

  .home-slide-card img {
    height: 184px;
  }

  .home-slide-copy {
    left: 14px;
    right: 48px;
    bottom: 12px;
  }

  .home-slide-copy strong {
    font-size: 18px;
  }

  .home-slide-copy small {
    font-size: 12px;
  }

  .page-home .home-fixed-three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .page-home .home-fixed-three-grid .product-card img {
    height: 92px;
  }

  .page-home .home-fixed-three-grid .product-card div,
  .page-home .home-fixed-three-grid .product-card-info,
  .page-home .home-fixed-three-grid .product-card-action {
    padding: 7px;
  }

  .page-home .home-fixed-three-grid .product-card-action {
    padding-top: 0;
  }

  .page-home .home-fixed-three-grid .product-card strong {
    font-size: 11px;
  }

  .page-home .home-fixed-three-grid .product-card b {
    font-size: 13px;
  }

  .page-home .home-fixed-three-grid .product-card button {
    font-size: 11px;
  }
}

.customer-page .category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.customer-page .category-grid article {
  text-align: center;
  border-radius: 12px;
}

.customer-option-modal {
  width: min(92vw, 420px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(18, 32, 14, .22);
}

.customer-option-modal::backdrop {
  background: rgba(18, 32, 14, .45);
}

.customer-option-card {
  padding: 16px;
  background: #fff;
}

.customer-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.customer-option-head h2 {
  margin: 0;
  font-size: 20px;
}

.customer-option-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.customer-option-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.customer-option-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdf8;
}

.customer-option-row input {
  justify-self: start;
  width: 16px;
  height: 16px;
  margin: 0;
}

.customer-option-row span,
.customer-option-row small {
  display: block;
  min-width: 0;
}

.customer-option-row strong {
  display: block;
  line-height: 1.18;
}

.customer-option-row small {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  line-height: 1.25;
}

.customer-option-row del {
  margin-right: 0;
}

.customer-option-row b {
  color: var(--primary);
}

.customer-option-card .button {
  width: 100%;
}

.customer-preorder-card {
  display: grid;
  gap: 10px;
}

.preorder-mini-note,
.preorder-price-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fcf5;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.preorder-price-note b {
  color: var(--primary);
  font-size: 18px;
}

.preorder-price-note span,
.preorder-price-note small {
  color: var(--muted);
}

.preorder-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preorder-field {
  display: grid;
  gap: 5px;
  font-weight: 700;
}

.preorder-field input,
.preorder-field textarea {
  min-height: 38px;
  font-weight: 400;
}

.preorder-field textarea {
  resize: vertical;
}

.product-detail-screen {
  display: grid;
  gap: 14px;
}

.product-detail-gallery,
.product-detail-info,
.product-evidence-strip {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.product-detail-main-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
}

.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.product-detail-thumbs img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.product-detail-info h1 {
  margin: 0 0 4px;
  font-size: 26px;
}

.product-detail-info small {
  color: var(--muted);
}

.product-detail-order {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-option-pill {
  position: relative;
  display: block;
  min-width: 120px;
  flex: 1 1 120px;
}

.detail-option-pill input {
  position: absolute;
  opacity: 0;
}

.detail-option-pill span {
  display: block;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.detail-option-pill input:checked + span {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.detail-option-pill b,
.detail-option-pill em {
  display: block;
}

.detail-option-pill em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.product-detail-order button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.customer-page .category-grid img {
  height: 56px;
}

.customer-page .category-grid strong {
  min-height: 34px;
  padding: 7px 5px 9px;
  font-size: 11px;
}

.customer-page .trust-block p {
  color: var(--muted);
}

.trust-showcase .section-heading {
  align-items: center;
  margin-bottom: 10px;
}

.trust-showcase .section-heading h2 {
  order: 1;
  color: #111;
}

.trust-see-all {
  order: 2;
  margin-left: auto;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.trust-showcase > p {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

.customer-page .proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.customer-page .proof-grid img {
  width: 100%;
  height: 92px;
  min-width: 120px;
  border-radius: 8px;
  object-fit: cover;
}

.customer-page .trust-proof-grid {
  align-items: stretch;
}

.trust-proof-card {
  position: relative;
  display: block;
  min-width: 120px;
  min-height: 92px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: #1b2716;
}

.trust-proof-card img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
  display: block;
}

.trust-proof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .62));
}

.trust-proof-card span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.trust-proof-card strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-proof-card small {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.customer-page .trust-showcase .trust-footer {
  display: none !important;
}

.trust-footer p {
  margin: 0;
  color: #1d2418;
  font-size: 14px;
  line-height: 1.35;
}

.trust-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.trust-button span {
  font-size: 22px;
  line-height: 1;
}

.story-preview-block .section-heading {
  align-items: center;
  margin-bottom: 10px;
}

.story-preview-grid,
.story-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.story-preview-card,
.story-list-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.story-preview-card img,
.story-list-card img {
  width: 92px;
  height: 70px;
  border-radius: 7px;
  object-fit: cover;
}

.story-preview-card span,
.story-list-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.story-preview-card strong,
.story-list-card strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-preview-card small,
.story-list-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.story-detail-card {
  padding: 12px;
}

.story-detail-image {
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: cover;
}

.story-detail-body {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.story-detail-body h2,
.story-detail-body p {
  margin: 0;
}

.story-source-button {
  width: max-content;
  min-width: 160px;
}

.story-rich-content {
  display: grid;
  gap: 8px;
  color: var(--text);
  line-height: 1.55;
}

.story-rich-content p,
.story-rich-content ul,
.story-rich-content ol,
.story-rich-content blockquote,
.story-rich-content h2,
.story-rich-content h3 {
  margin: 0;
}

.story-rich-content ul,
.story-rich-content ol {
  padding-left: 20px;
}

.story-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.story-detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.story-empty-card {
  color: var(--muted);
}

.page-account .content-block {
  display: none;
}

.account-screen {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 16px;
}

.account-titlebar {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 42px;
  margin-bottom: 10px;
}

.account-titlebar a {
  color: #111;
  font-size: 32px;
  line-height: 1;
  text-decoration: none;
}

.account-titlebar h1 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.1;
}

.account-welcome,
.account-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 62, 22, .06);
}

.account-welcome {
  display: grid;
  grid-template-columns: 52px 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
}

.account-avatar svg,
.account-menu-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-avatar svg {
  fill: currentColor;
  stroke: none;
}

.account-welcome small,
.account-welcome strong {
  display: block;
}

.account-welcome small {
  margin-bottom: 3px;
  color: #111;
  font-size: 13px;
}

.account-welcome strong {
  font-size: 15px;
}

.account-welcome b,
.account-menu b {
  color: #333;
  font-size: 26px;
  font-weight: 300;
}

.account-menu {
  display: grid;
  margin-top: 12px;
  overflow: hidden;
}

.page-account .account-menu a:nth-child(1),
.page-account .account-menu a:nth-child(3) {
  display: none;
}

.page-account .account-menu a:nth-child(4) {
  order: 1;
}

.page-account .account-menu a:nth-child(2) {
  order: 2;
}

.page-account .account-menu a:nth-child(5) {
  order: 3;
}

.account-menu a {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.account-menu a:last-child {
  border-bottom: 0;
}

.account-menu-icon {
  display: grid;
  place-items: center;
  color: #111;
}

.account-menu strong {
  font-size: 14px;
  font-weight: 500;
}

.account-logout {
  margin-top: 20px;
}

.account-logout button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e46b6b;
  border-radius: 8px;
  background: #fff;
  color: #c71f1f;
  font-weight: 700;
}

.account-recent-orders {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-section-title h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.account-empty-orders,
.account-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 62, 22, .06);
}

.account-empty-orders {
  padding: 16px;
  color: var(--muted);
}

.account-order-card {
  padding: 12px;
}

.account-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.account-order-head strong {
  font-size: 13px;
}

.account-order-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.account-order-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.account-order-status span {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
}

.account-order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.account-order-products {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.account-order-products img {
  width: 64px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.account-order-body b {
  padding-bottom: 4px;
  font-size: 13px;
}

.account-order-card button {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.profile-detail-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 62, 22, .06);
}

.profile-detail-card div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-detail-card div:last-child {
  border-bottom: 0;
}

.profile-detail-card small {
  color: var(--muted);
  font-size: 13px;
}

.profile-detail-card strong {
  color: var(--text);
  font-size: 16px;
}

.category-page-head {
  padding: 0 4px 6px;
}

.category-page-head h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.category-page-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.product-list-block {
  margin-top: 14px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.category-strip a {
  position: relative;
  min-height: 102px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(34, 62, 22, .07);
}

.category-strip a:first-child {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f4faee, #fff);
}

.category-strip img {
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.category-strip span {
  display: block;
  min-height: 36px;
  padding: 6px 5px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.category-strip b {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}

.category-products-block {
  margin-top: 16px;
}

.category-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.category-sort-form {
  margin-left: auto;
}

.category-sort-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.category-sort-form select {
  width: 126px;
  min-height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.category-empty-state {
  margin: 4px 0 0;
  padding: 18px;
}

.category-strip .active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46, 125, 30, .12), 0 8px 24px rgba(34, 62, 22, .08);
}

.bottom-app-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  transform: translateX(-50%);
  padding: 8px 12px 14px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 34px rgba(34, 62, 22, .10);
  backdrop-filter: blur(12px);
}

.bottom-app-nav a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #3d4537;
  text-decoration: none;
  font-size: 12px;
}

.bottom-app-nav span {
  font-size: 23px;
  line-height: 1;
}

.bottom-app-nav .bottom-nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.bottom-app-nav .bottom-nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-app-nav b {
  position: absolute;
  top: 0;
  right: calc(50% - 25px);
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}

.bottom-app-nav .active {
  color: var(--primary);
  font-weight: 800;
}

/* Address, delivery and order flow */
.titlebar-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff !important;
  font-size: 24px !important;
}

.address-list,
.orders-list,
.delivery-zone-list,
.order-detail-items,
.confirm-items {
  display: grid;
  gap: 10px;
}

.address-card,
.delivery-zone-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.address-card.is-default { border-color: var(--primary); }
.address-card-head,
.address-card-actions,
.checkout-section-head,
.admin-subsection .admin-section-head,
.form-button-row,
.address-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.address-card-head span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.address-card p { margin: 8px 0 5px; }
.address-card small { display: block; color: var(--muted); }
.address-card-actions { justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.address-card-actions form { margin: 0; }
.address-card-actions a,
.address-card-actions button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
}
.address-card-actions .danger { color: var(--danger); }

.compact-form-grid,
.checkout-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.compact-form-grid .full-field { grid-column: 1 / -1; }
.address-form { display: grid; gap: 12px; margin-bottom: 12px; }
.address-form label,
.checkout-form label { display: grid; gap: 5px; }
.address-form-actions { flex-wrap: wrap; }
.address-location-tools {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.address-location-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.address-location-head > div { display: grid; gap: 2px; }
.address-location-head small,
.address-location-status { color: var(--muted); font-size: 12px; }
.address-location-status { margin: 0; line-height: 1.35; }
.address-map {
  width: 100%;
  height: 230px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #e8eee4;
  z-index: 0;
}
/* Leaflet'in temel yerleşimi yerelde tutulur; CDN stili engellense de harita bozulmaz. */
.address-map.leaflet-container { position: relative; overflow: hidden; outline-offset: 1px; }
.address-map .leaflet-pane,
.address-map .leaflet-tile,
.address-map .leaflet-marker-icon,
.address-map .leaflet-marker-shadow,
.address-map .leaflet-tile-container,
.address-map .leaflet-map-pane svg,
.address-map .leaflet-map-pane canvas,
.address-map .leaflet-zoom-box {
  position: absolute;
  top: 0;
  left: 0;
}
.address-map .leaflet-map-pane,
.address-map .leaflet-pane { width: 100%; height: 100%; }
.address-map .leaflet-map-pane { z-index: 400; }
.address-map .leaflet-tile-pane { z-index: 200; }
.address-map .leaflet-overlay-pane { z-index: 400; }
.address-map .leaflet-shadow-pane { z-index: 500; }
.address-map .leaflet-marker-pane { z-index: 600; }
.address-map .leaflet-tooltip-pane { z-index: 650; }
.address-map .leaflet-popup-pane { z-index: 700; }
.address-map .leaflet-tile { visibility: hidden; }
.address-map .leaflet-tile-loaded { visibility: inherit; }
.address-map .leaflet-zoom-animated { transform-origin: 0 0; }
.address-map .leaflet-marker-icon,
.address-map .leaflet-marker-shadow { display: block; user-select: none; -webkit-user-drag: none; }
.address-map .leaflet-interactive { cursor: pointer; }
.address-map .leaflet-marker-draggable { cursor: move; cursor: grab; }
.address-map .leaflet-marker-draggable:active { cursor: grabbing; }
.address-map .leaflet-control-container { position: relative; z-index: 800; }
.address-map .leaflet-top,
.address-map .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.address-map .leaflet-top { top: 0; }
.address-map .leaflet-right { right: 0; }
.address-map .leaflet-bottom { bottom: 0; }
.address-map .leaflet-left { left: 0; }
.address-map .leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
.address-map .leaflet-top .leaflet-control { margin-top: 10px; }
.address-map .leaflet-left .leaflet-control { margin-left: 10px; }
.address-map .leaflet-right .leaflet-control { margin-right: 10px; }
.address-map .leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.address-map .leaflet-control-zoom { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.address-map .leaflet-control-zoom a { display: grid; width: 30px; height: 30px; place-items: center; color: #172612; text-decoration: none; font-size: 20px; line-height: 1; }
.address-map .leaflet-control-zoom a + a { border-top: 1px solid var(--line); }
.address-map .leaflet-control-attribution { padding: 2px 5px; border-radius: 4px 0 0; background: rgba(255,255,255,.82); }
.address-map .leaflet-control-attribution { font-size: 9px; }
.address-map .leaflet-tile-pane { background: #eef2eb; }
.address-map .leaflet-tile { width: 256px !important; height: 256px !important; max-width: none !important; }
.service-location-marker { background: transparent !important; border: 0 !important; }
.service-location-marker > span {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(20, 45, 18, .35);
  transform: rotate(-45deg);
}
.service-location-marker > span::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}
.service-location-marker > span i { display: none; }
.service-location-marker.leaflet-drag-target > span { box-shadow: 0 7px 16px rgba(20, 45, 18, .45); }
.location-button { width: auto; min-height: 36px; padding: 7px 11px; white-space: nowrap; }
@media (max-width: 520px) {
  .address-location-head { align-items: flex-start; }
  .address-location-head small { max-width: 190px; }
  .location-button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
  .address-map { height: 210px; }
}
.checkbox-label { display: flex !important; align-items: center; gap: 7px; }
.service-areas-section { display: grid; gap: 12px; }
.service-area-form { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.service-field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: end;
}
.service-field-with-action label { min-width: 0; }
.service-add-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.service-add-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.custom-location-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.custom-location-add input { min-width: 0; height: 40px; }
.custom-location-add .button { width: auto; min-height: 40px; padding: 8px 12px; white-space: nowrap; }
.custom-location-list { display: grid; gap: 7px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.custom-location-list > strong { font-size: 15px; }
.custom-location-list article { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; }
.custom-location-list article div { display: grid; gap: 2px; min-width: 0; }
.custom-location-list article small { color: var(--muted); }
.custom-location-list form { margin: 0; }
.compact-confirm-card {
  max-width: 420px;
  gap: 14px;
}
.compact-confirm-card .admin-modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.button-danger {
  border: 1px solid #e67676;
  background: var(--danger);
  color: #fff;
}
.button-danger:hover { filter: brightness(.96); }
@media (max-width: 480px) {
  .custom-location-add { grid-template-columns: 1fr; }
  .custom-location-add .button { width: 100%; }
}
.service-area-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.service-area-list { display: grid; gap: 8px; }
.service-area-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.service-area-list article > div { display: grid; gap: 3px; }
.service-area-list article span { color: var(--muted); font-size: 13px; }
.service-area-list form { margin: 0; }
.service-area-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.service-rule-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.service-rule-panel[hidden] { display: none; }
.service-rule-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.service-rule-head div { display: grid; gap: 2px; }
.service-rule-head strong { font-size: 15px; }
.service-rule-head span { color: var(--muted); font-size: 12px; font-weight: 700; }
.service-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}
.service-rule-grid label { min-width: 0; }
.service-rule-active {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}
@media (max-width: 720px) {
  .service-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-rule-active { grid-column: span 2; }
}
@media (max-width: 460px) {
  .service-rule-grid { grid-template-columns: 1fr; }
  .service-rule-active { grid-column: auto; }
}
.service-area-warning { margin: 0; padding: 10px; border: 1px solid #efc0c0; border-radius: 8px; color: var(--danger); background: #fff7f7; }
.neighborhood-picker { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.neighborhood-picker[hidden] { display: none; }
.neighborhood-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.neighborhood-picker-head strong { display: grid; gap: 2px; }
.neighborhood-picker-head strong span { color: var(--muted); font-size: 11px; font-weight: 700; }
.neighborhood-picker-head > div { display: flex; gap: 5px; }
.neighborhood-picker-head button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.neighborhood-check-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.neighborhood-check {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafcf9;
}
.neighborhood-check:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.neighborhood-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
}
.neighborhood-check input { width: auto; flex: 0 0 auto; }
.neighborhood-check span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.neighborhood-add-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px dashed var(--primary);
  border-radius: 7px;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.neighborhood-add-tile svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.neighborhood-add-tile:hover { background: #fff; }
.neighborhood-hide-button {
  width: 24px;
  height: 24px;
  border: 1px solid #f1b9b9;
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.neighborhood-hide-button:hover { background: #fff5f5; }
@media (max-width: 520px) {
  .neighborhood-picker-head { align-items: flex-start; }
  .neighborhood-picker-head > div { flex-wrap: wrap; }
  .neighborhood-check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-page #settings > .admin-form,
  .panel-page #settings > .admin-form > .settings-image-field {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }
}
.checkbox-label input { width: auto; }
.form-button-row > * { flex: 1; text-align: center; }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--primary); }
.compact-empty { padding: 18px; text-align: center; }

.panel-page .admin-form label:has(input[name="hero_image_path"]),
.panel-page .admin-form label:has(select[name="theme"]) {
  display: none !important;
}

.settings-image-field {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.panel-page #settings > .admin-form {
  display: block;
}

.settings-tab-panel {
  min-width: 0;
}

.panel-page #settings .settings-tab-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel-page #settings .settings-tab-panel[hidden] {
  display: none;
}

.panel-page #settings .settings-tab-panel > label,
.panel-page #settings .settings-tab-panel > fieldset,
.panel-page #settings .settings-tab-panel > button,
.panel-page #settings .settings-tab-panel > .service-areas-section {
  grid-column: 1 / -1;
}

.panel-page #settings .settings-tab-panel > .settings-image-field {
  grid-column: auto;
}

.settings-inner-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-image-field > span,
.theme-choice-field > legend {
  font-weight: 700;
  color: var(--text);
}

.settings-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.settings-image-preview img {
  max-width: 100%;
  width: 100%;
  height: 74px;
  object-fit: contain;
  border-radius: 7px;
}

.settings-image-preview.wide img {
  height: 86px;
  object-fit: cover;
}

.settings-image-clear {
  position: absolute;
  top: 28px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid #f1b9b9;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--danger);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.theme-choice-field {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-choice {
  position: relative;
  display: grid !important;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.theme-choice.active {
  border-color: var(--primary);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.theme-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-choice b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 24px;
  overflow: hidden;
  border-radius: 6px;
}

.theme-swatches i:nth-child(1) { background: #2b7c21; }
.theme-swatches i:nth-child(2) { background: #8fc46b; }
.theme-swatches i:nth-child(3) { background: #f6fbf2; }
.theme-swatches.theme-warm_yellow i:nth-child(1) { background: #f3aa18; }
.theme-swatches.theme-warm_yellow i:nth-child(2) { background: #ffe1a1; }
.theme-swatches.theme-warm_yellow i:nth-child(3) { background: #fff8e7; }
.theme-swatches.theme-modern_blue i:nth-child(1) { background: #1d6fc8; }
.theme-swatches.theme-modern_blue i:nth-child(2) { background: #8bbdf2; }
.theme-swatches.theme-modern_blue i:nth-child(3) { background: #eef6ff; }
.theme-swatches.theme-minimal_black i:nth-child(1) { background: #111; }
.theme-swatches.theme-minimal_black i:nth-child(2) { background: #595959; }
.theme-swatches.theme-minimal_black i:nth-child(3) { background: #f3f3f3; }
.theme-swatches.theme-soft_pink i:nth-child(1) { background: #e86b83; }
.theme-swatches.theme-soft_pink i:nth-child(2) { background: #ffc4d0; }
.theme-swatches.theme-soft_pink i:nth-child(3) { background: #fff2f5; }

@media (max-width: 520px) {
  .theme-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-inner-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-page #settings .settings-tab-panel,
  .panel-page #settings .settings-tab-panel > .settings-image-field {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }
}

.checkout-form { display: grid; gap: 14px; margin-top: 14px; }
.checkout-form h2,
.checkout-section-head h2 { margin: 0; font-size: 18px; }
.checkout-section-head a { color: var(--primary); font-weight: 800; text-decoration: none; }
.checkout-address-list,
.payment-method-cards { display: grid; gap: 8px; }
.checkout-address-card,
.payment-method-cards label {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.checkout-address-card:has(input:checked),
.payment-method-cards label:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.checkout-address-card input,
.payment-method-cards input { width: auto; }
.checkout-address-card span,
.payment-method-cards span { display: grid; gap: 3px; }
.checkout-address-card small,
.payment-method-cards small { color: var(--muted); }
.checkout-address-card em { color: var(--danger); font-size: 12px; font-style: normal; }
.checkout-address-card.is-unavailable,
.payment-method-cards .is-disabled { opacity: .55; }
.checkout-address-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.receipt-field { padding: 12px; border: 1px dashed var(--primary); border-radius: 8px; }
.receipt-field[hidden] { display: none; }
.checkout-live-summary,
.confirm-total,
.order-totals { display: grid; gap: 7px; padding: 12px; border-radius: 8px; background: var(--soft); }
.checkout-live-summary span,
.checkout-live-summary strong,
.confirm-total span,
.confirm-total strong,
.order-totals span,
.order-totals strong { display: flex; justify-content: space-between; gap: 12px; }
.checkout-form > .button[disabled] { opacity: .5; }

.all-orders-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.order-filter-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-filter-tabs a { padding: 10px 4px; color: var(--muted); text-align: center; text-decoration: none; font-size: 13px; }
.order-filter-tabs a.active { border-bottom: 2px solid var(--primary); color: var(--primary); font-weight: 800; }
.order-card-link { color: inherit; text-decoration: none; }
.orders-list .account-order-card form { margin: 0; }
.order-detail-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.order-detail-summary div { display: grid; gap: 4px; }
.order-detail-summary small { color: var(--muted); }
.status-text { color: var(--primary); }
.order-detail-items article,
.confirm-items article { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-detail-items article:last-child,
.confirm-items article:last-child { padding-bottom: 0; border-bottom: 0; }
.order-detail-items img,
.confirm-items img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.order-detail-items article div,
.confirm-items article div { display: grid; gap: 4px; }
.order-detail-items span,
.confirm-items span { color: var(--muted); font-size: 13px; }
.full-button { width: 100%; text-align: center; }
.confirm-address span,
.confirm-payment span { display: block; margin-top: 7px; color: var(--muted); }

.admin-subsection { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.delivery-zone-list { margin-top: 12px; }
.delivery-zone-list article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.delivery-zone-list article div { display: grid; gap: 4px; }
.delivery-zone-list span,
.delivery-zone-list small { color: var(--muted); }
.paytr-frame-wrap { min-height: 520px; background: #fff; }
.paytr-frame-wrap iframe { width: 100%; min-height: 520px; }
.payment-error-card { text-align: center; }
.admin-table .admin-order-row { grid-template-columns: 1fr auto; align-items: start; gap: 10px; }
.admin-order-row > div { display: grid; gap: 4px; }
.admin-order-row small { color: var(--muted); }
.receipt-link { color: var(--primary); font-weight: 800; }
.admin-order-update-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.admin-order-update-form .button { padding: 9px 12px; }
@media (max-width: 560px) { .admin-order-update-form { grid-template-columns: 1fr; } }
.admin-inner-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin: 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.admin-inner-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.admin-inner-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.admin-inner-tabs.settings-inner-tabs {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.admin-inner-tabs.settings-inner-tabs button,
.admin-inner-tabs.admins-inner-tabs button,
.admin-inner-tabs.sharing-inner-tabs button {
  min-height: 36px;
  padding: 0 6px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-inner-tabs.sharing-inner-tabs {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.admin-inner-tabs.admins-inner-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-inner-tab-panel[hidden] { display: none; }
.admin-inner-tab-panel.active { display: block; }
.admin-muted-text { margin: 4px 0 12px; color: var(--muted); }

@media (max-width: 560px) {
  .compact-form-grid,
  .checkout-schedule-grid { grid-template-columns: 1fr; }
  .compact-form-grid .full-field { grid-column: auto; }
  .order-detail-summary { grid-template-columns: 1fr 1fr; }
  .account-order-head { align-items: flex-start; }
}

@media (max-width: 560px) {
  .preorder-form-grid,
  .product-preorder-fields {
    grid-template-columns: 1fr;
  }

  .customer-page .site-header {
    padding: 14px 18px 0;
    flex-direction: row;
    align-items: center;
  }

  .customer-page .site-brand {
    min-width: 0;
  }

  .customer-page .site-brand span {
    font-size: 24px;
  }

  .customer-page .customer-hero {
    grid-template-columns: 1fr 150px;
  }

  .page-home .customer-hero {
    grid-template-columns: minmax(0, 1fr) 178px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .customer-page .customer-hero h1 {
    font-size: 36px;
  }

  .page-home .customer-hero h1 {
    font-size: 27px;
  }

  .customer-page .customer-hero > img {
    width: 150px;
    height: 104px;
  }

  .page-home .hero-image {
    width: 178px;
    height: 86px;
  }

  .page-home .hero-brand strong {
    font-size: 24px;
  }

  .customer-page .quick-products,
  .customer-page .category-grid {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .category-strip a {
    min-height: 102px;
  }

  .category-strip img {
    height: 64px;
  }

  .trust-footer {
    grid-template-columns: 1fr;
  }

  .trust-button {
    width: 100%;
  }
}

/* Compact admin row actions */
.panel-page .home-slide-admin-list article,
.panel-page .trust-admin-list article {
  grid-template-columns: 132px minmax(0, 1fr) 42px 42px;
}

.panel-page .announcement-admin-list article {
  grid-template-columns: minmax(0, 1fr) 42px 42px;
}

.panel-page .home-slide-admin-list .row-edit-details,
.panel-page .trust-admin-list .row-edit-details,
.panel-page .announcement-admin-list .row-edit-details,
.panel-page .home-slide-delete-form,
.panel-page .trust-delete-form,
.panel-page .announcement-delete-form {
  grid-row: 1;
  align-self: center;
  justify-self: end;
}

.panel-page .home-slide-admin-list .row-edit-details,
.panel-page .trust-admin-list .row-edit-details {
  grid-column: 3;
}

.panel-page .home-slide-delete-form,
.panel-page .trust-delete-form {
  grid-column: 4;
}

.panel-page .announcement-admin-list .row-edit-details {
  grid-column: 2;
}

.panel-page .announcement-delete-form {
  grid-column: 3;
}

.panel-page .row-edit-details[open] {
  display: contents;
  justify-items: initial;
}

.panel-page .row-edit-details[open] > summary {
  grid-row: 1;
  margin-bottom: 0;
  justify-self: end;
}

.panel-page .home-slide-admin-list .row-edit-details[open] > summary,
.panel-page .trust-admin-list .row-edit-details[open] > summary {
  grid-column: 3;
}

.panel-page .announcement-admin-list .row-edit-details[open] > summary {
  grid-column: 2;
}

.panel-page .row-edit-details[open] > form {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.story-editor-field {
  display: grid;
  gap: 6px;
}

.story-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-editor-toolbar button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.story-editor-toolbar [data-story-color]::before {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--editor-color);
  content: "";
}

.story-rich-editor {
  min-height: 128px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  line-height: 1.45;
  outline: none;
}

.story-rich-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46, 125, 30, 0.12);
}

.story-gallery-existing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-gallery-chip {
  position: relative;
  display: inline-block;
  width: 92px;
  height: 70px;
}

.story-gallery-chip img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.story-gallery-chip button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border: 1px solid #ffd2d2;
  border-radius: 999px;
  background: #d94141;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 850px) {
  .panel-page .home-slide-admin-list article,
  .panel-page .trust-admin-list article {
    grid-template-columns: 112px minmax(0, 1fr) 40px 40px;
  }

  .panel-page .home-slide-admin-list > article > img,
  .panel-page .trust-admin-list > article > img {
    width: 112px;
    height: 76px;
  }

  .panel-page .announcement-admin-list article {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }
}

@media (max-width: 560px) {
  .panel-page .home-slide-admin-list article,
  .panel-page .trust-admin-list article {
    grid-template-columns: 88px minmax(0, 1fr) 38px 38px;
  }

  .panel-page .home-slide-admin-list > article > img,
  .panel-page .trust-admin-list > article > img {
    width: 88px;
    height: 70px;
  }

  .panel-page .announcement-admin-list article {
    grid-template-columns: minmax(0, 1fr) 38px 38px;
  }

  .panel-page .home-slide-row-form,
  .panel-page .trust-row-form,
  .panel-page .announcement-row-form {
    grid-template-columns: 1fr;
  }
}

.panel-page #product-showcase > .admin-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px 10px;
  align-items: start;
}

.panel-page #product-showcase > .admin-section-head > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.panel-page #product-showcase > .admin-section-head h2,
.panel-page #product-showcase > .admin-section-head p {
  margin: 0;
}

.panel-page #product-showcase > .admin-section-head > .icon-only-button {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.product-preorder-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdf8;
}

.product-preorder-toggle {
  font-weight: 800;
}

.product-preorder-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-preorder-fields .full-field {
  grid-column: 1 / -1;
}

.preorder-summary-list,
.preorder-admin-list {
  display: grid;
  gap: 8px;
}

.preorder-summary-list {
  margin-bottom: 12px;
}

.preorder-summary-list article,
.preorder-admin-list article {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.preorder-summary-list article {
  grid-template-columns: 58px minmax(0, 1fr);
}

.preorder-summary-list img {
  width: 58px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
}

.preorder-admin-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.preorder-summary-list strong,
.preorder-admin-list strong,
.preorder-summary-list span,
.preorder-admin-list span,
.preorder-admin-list small {
  display: block;
  min-width: 0;
}

.preorder-summary-list span,
.preorder-admin-list span,
.preorder-admin-list small {
  color: var(--muted);
  font-size: 13px;
}

.preorder-admin-list b {
  color: var(--primary);
  white-space: nowrap;
}

/* Panel bottom navigation */
.panel-page .admin-layout {
  padding-bottom: 104px;
}

.panel-page .admin-layout aside {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 42;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
  width: 100%;
  padding: 6px 8px 10px;
  transform: none;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -12px 34px rgba(34, 62, 22, .12);
  backdrop-filter: blur(12px);
}

.panel-page .admin-layout aside strong {
  display: none;
}

.panel-page .admin-layout aside a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  padding: 5px 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #26331f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.panel-page .admin-layout aside a svg {
  width: 18px;
  height: 18px;
}

.panel-page .admin-layout aside a.active,
.panel-page .admin-layout aside a[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
