:root {
  --cg-bg: #f2ece1;
  --cg-paper: #fffdf9;
  --cg-ink: #1f2e2b;
  --cg-muted: #5a6b67;
  --cg-green-900: #0f3c34;
  --cg-green-700: #1d5f53;
  --cg-green-500: #2a7868;
  --cg-orange: #ee9304;
  --cg-orange-700: #cc7b00;
  --cg-border: #ddd2bf;
  --cg-shadow: 0 14px 36px rgba(30, 42, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--cg-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 5% -10%, rgba(238, 147, 4, 0.2), transparent 42%),
    radial-gradient(circle at 100% 10%, rgba(31, 111, 95, 0.18), transparent 40%),
    linear-gradient(180deg, #f9f4ec 0%, var(--cg-bg) 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
.brand-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin-top: 0;
  letter-spacing: 0.01em;
}

a {
  color: var(--cg-green-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 252, 246, 0.92);
  border-bottom: 1px solid var(--cg-border);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  min-width: 270px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6dcc9;
  padding: 6px;
}

.brand-stack {
  display: grid;
  gap: 0.06rem;
}

.brand-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cg-green-700);
  font-weight: 700;
}

.brand-title {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--cg-green-900);
  font-weight: 700;
}

.top-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-header-pro .top-nav {
  display: none;
}

.nav-link {
  padding: 0.5rem 0.72rem;
  border-radius: 10px;
  color: var(--cg-ink);
  font-weight: 600;
}

.nav-link:hover {
  background: #efe7d9;
  text-decoration: none;
}

.user-box {
  margin-left: auto;
  text-align: right;
  font-size: 0.9rem;
  color: var(--cg-muted);
}

.header-ribbon {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.32rem 1rem 0.56rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.81rem;
  color: #f9f2e8;
  border-top: 1px solid #e4d9c6;
  background: linear-gradient(120deg, var(--cg-green-900), #173f38 60%, var(--cg-orange-700));
}

.header-ribbon a {
  color: #fff3dd;
  font-weight: 700;
}

.container {
  max-width: 1220px;
  margin: 1.2rem auto 2.6rem;
  padding: 0 1rem;
}

.container-pro {
  max-width: 1360px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.app-sidebar {
  position: sticky;
  top: 108px;
}

.app-sidebar-card {
  background: linear-gradient(180deg, #fffdf9 0%, #f9f0df 100%);
  border: 1px solid var(--cg-border);
  border-radius: 16px;
  box-shadow: var(--cg-shadow);
  padding: 1rem;
}

.app-sidebar-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--cg-green-700);
}

.app-content {
  min-width: 0;
}

.side-nav {
  display: grid;
  gap: 0.45rem;
}

.side-item {
  display: grid;
  gap: 0.35rem;
}

.side-link {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e4d7c2;
  background: rgba(255, 255, 255, 0.7);
  color: var(--cg-green-900);
  font-weight: 700;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}

.side-link.has-children {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-link.has-children::after {
  content: "▸";
  font-size: 0.85rem;
  opacity: 0.8;
}

.side-link.has-children.is-active::after {
  content: "▾";
}

.side-link:hover {
  background: #fff7ea;
  border-color: #d6c4a2;
  text-decoration: none;
  transform: translateX(2px);
}

.side-link.is-active {
  background: linear-gradient(135deg, var(--cg-green-900), var(--cg-green-700));
  border-color: transparent;
  color: #fff7ea;
  box-shadow: 0 12px 24px rgba(15, 60, 52, 0.18);
}

.side-subnav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  padding-left: 0.75rem;
  border-left: 2px solid #dbc9a5;
  margin-left: 0.45rem;
  box-sizing: border-box;
}

.side-sublink {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.46rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--cg-green-900);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
}

.side-sublink:hover {
  background: #fff3dd;
  text-decoration: none;
}

.side-sublink.is-active {
  background: #f2e3c6;
  color: #143f36;
}

.side-sublink-arrow {
  flex: 0 0 auto;
  color: #9c6c18;
  font-size: 0.8rem;
  line-height: 1;
}

.side-sublink-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.flash {
  padding: 0.84rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--cg-shadow);
}

.flash-info {
  background: #eaf2ff;
  border: 1px solid #bfd6ff;
  color: #1a478a;
}

.flash-success {
  background: #e6f7ef;
  border: 1px solid #b9e2d0;
  color: #184f40;
}

.flash-error {
  background: #fceceb;
  border: 1px solid #f4c6c3;
  color: #9f2520;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
  background:
    linear-gradient(112deg, rgba(9, 37, 32, 0.9) 0%, rgba(14, 61, 52, 0.78) 42%, rgba(24, 52, 45, 0.45) 74%, rgba(21, 37, 33, 0.6) 100%),
    url("/assets/hero-plateau-original.jpg") center 44% / cover no-repeat;
  box-shadow: var(--cg-shadow);
  margin-bottom: 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 83% 16%, rgba(238, 147, 4, 0.38), rgba(238, 147, 4, 0.02) 34%),
    linear-gradient(180deg, rgba(14, 34, 30, 0.14) 0%, rgba(14, 34, 30, 0.24) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -18%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(238, 147, 4, 0.52), rgba(238, 147, 4, 0.04));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 2.5rem 1.7rem;
  color: #f8f5ef;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 0.55rem;
}

.kicker {
  margin-bottom: 0.44rem;
  font-size: 0.81rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: #ffd89b;
}

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

.panel {
  background: var(--cg-paper);
  border: 1px solid var(--cg-border);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: var(--cg-shadow);
  margin-bottom: 1rem;
}

.narrow {
  max-width: 660px;
}

.button {
  background: linear-gradient(180deg, var(--cg-orange), #de8300);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(222, 131, 0, 0.25);
  text-decoration: none;
}

.button-outline {
  background: transparent;
  border: 1px solid rgba(255, 250, 237, 0.8);
  color: #fff;
}

.button-outline:hover {
  background: rgba(255, 251, 242, 0.12);
  box-shadow: none;
}

.button-outline-dark {
  background: transparent;
  border: 1px solid #ccbeaa;
  color: var(--cg-green-900);
}

.button-outline-dark:hover {
  background: #f5eee2;
  box-shadow: none;
}

.button-danger {
  background: linear-gradient(180deg, #ce3c31, #b22d23);
}

.button-danger:hover {
  box-shadow: 0 8px 16px rgba(178, 45, 35, 0.25);
}

.button-small {
  font-size: 0.83rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
}

.actions-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.catalog-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(238, 147, 4, 0.14), transparent 42%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf1 100%);
}

.catalog-hero {
  padding: 0.2rem 0 1rem;
}

.catalog-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--cg-green-700);
}

.catalog-hero h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  color: var(--cg-green-900);
}

.catalog-lead {
  margin: 0;
  max-width: 860px;
  color: #334b45;
  line-height: 1.55;
}

.catalog-points {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.catalog-point {
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #d8cbb8;
  background: #fff;
  color: #23413a;
  font-size: 0.86rem;
  font-weight: 700;
}

.catalog-actions {
  margin-top: 1.2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(470px, 1fr));
  gap: 1.1rem;
  margin-top: 0.8rem;
}

.product-sheet {
  display: grid;
  grid-template-columns: minmax(230px, 250px) 1fr;
  gap: 0.8rem;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ddceb8;
  background: linear-gradient(180deg, #fffefb 0%, #fff9ef 100%);
  box-shadow: 0 10px 22px rgba(23, 49, 43, 0.09);
}

.product-media {
  padding: 0.8rem;
}

.product-main-image {
  width: 100%;
  height: 194px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6d8c5;
  background: #fff;
}

.product-gallery {
  margin-top: 0.56rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 0.4rem;
}

.product-gallery-thumb {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #e2d7c4;
  background: #fff;
}

.product-content {
  padding: 0.9rem 0.9rem 0.95rem 0;
}

.product-card-kicker {
  margin: 0;
  color: var(--cg-green-700);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.product-sheet-content h3 {
  margin: 0.16rem 0 0.35rem;
  font-size: 2rem;
  line-height: 1.04;
  color: #1a332e;
}

.product-hook {
  margin: 0;
  color: #314942;
  font-weight: 600;
  line-height: 1.5;
}

.product-highlights {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.22rem;
  color: #455c56;
}

.product-highlights li {
  line-height: 1.45;
}

.product-highlights-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 1rem;
}

.product-highlights-grid .product-highlights {
  margin: 0;
}

.product-highlights-grid .product-highlights li {
  break-inside: avoid;
}

.product-pill-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dacdb8;
  background: #fff;
  color: #2c3f39;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
}

.product-pill-price {
  border-color: #e8bf72;
  background: #fff6e1;
  color: #865200;
}

.product-allergens {
  margin-top: 0.64rem;
}

.product-allergens-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.product-allergens-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2f4e46;
}

.allergen-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.allergen-badges-compact {
  gap: 0.25rem;
}

.allergen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.2rem 0.42rem;
  border: 1px solid #ddcfba;
  border-radius: 999px;
  background: #fff;
}

.allergen-badge-compact {
  padding: 0;
  border: 0;
  background: transparent;
}

.allergen-badge-compact .allergen-logo {
  width: 30px;
  height: 30px;
  font-size: 0.63rem;
}

.allergen-badge-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f463f;
}

.allergen-empty {
  font-size: 0.85rem;
  color: var(--cg-muted);
}

.allergen-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #ccbca5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #f4ecdf;
  color: #293c36;
}

.allergen-logo-gluten {
  background: #f7e4c2;
  border-color: #d7b47b;
  color: #7c5319;
}

.allergen-logo-crustaces {
  background: #ffe2d7;
  border-color: #d9a189;
  color: #844229;
}

.allergen-logo-oeufs {
  background: #fff0b7;
  border-color: #d2bc6d;
  color: #6d5815;
}

.allergen-logo-poisson {
  background: #dcedff;
  border-color: #9cb8d6;
  color: #2a4f75;
}

.allergen-logo-arachides {
  background: #f6dfcf;
  border-color: #c8a389;
  color: #71452f;
}

.allergen-logo-soja {
  background: #dff2d3;
  border-color: #a5c48f;
  color: #355c2a;
}

.allergen-logo-lait {
  background: #eef5ff;
  border-color: #b9c9de;
  color: #3f5874;
}

.allergen-logo-fruits_coque {
  background: #efdbc6;
  border-color: #c5a88a;
  color: #6f4924;
}

.allergen-logo-celeri {
  background: #e0f6e5;
  border-color: #9fcaab;
  color: #2d5f3d;
}

.allergen-logo-moutarde {
  background: #f9ebae;
  border-color: #cfba62;
  color: #725f14;
}

.allergen-logo-sesame {
  background: #f2e2c7;
  border-color: #ceb184;
  color: #6c4f2a;
}

.allergen-logo-sulfites {
  background: #f2ddf7;
  border-color: #c2a1cc;
  color: #5f3a6f;
}

.allergen-logo-lupin {
  background: #e3ecf8;
  border-color: #afc2de;
  color: #375178;
}

.allergen-logo-mollusques {
  background: #ffe7d9;
  border-color: #d9ae96;
  color: #844634;
}

.allergen-logo-custom {
  background: #ece9f7;
  border-color: #c3bbde;
  color: #4b4567;
}

.product-details {
  margin-top: 0.62rem;
  border-top: 1px dashed #ddcfba;
  padding-top: 0.5rem;
}

.product-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cg-green-700);
}

.product-details summary:hover {
  text-decoration: underline;
}

.product-full-list {
  margin: 0.5rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.2rem;
  color: #465e58;
}

.product-full-list-2col {
  column-count: 2;
  column-gap: 1.2rem;
  display: block;
}

.product-full-list-2col li {
  break-inside: avoid;
  margin-bottom: 0.2rem;
}

.product-actions {
  margin-top: 0.78rem;
}

.product-meta {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.25rem;
}

.price {
  margin: 0;
  font-weight: 700;
  color: var(--cg-orange-700);
}

.gallery-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.gallery-mini-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e3d8c5;
  background: #fff;
}

.gallery-mini img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.gallery-remove-form {
  position: absolute;
  top: 6px;
  right: 6px;
  margin: 0;
}

.gallery-remove-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #d93025;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.gallery-remove-btn:hover {
  background: #b42318;
}

.agrements-panel {
  background:
    radial-gradient(circle at 100% 10%, rgba(238, 147, 4, 0.15), transparent 35%),
    linear-gradient(140deg, #fffdf8 0%, #fff9ee 100%);
}

.agrements-panel h2 {
  margin-bottom: 0.6rem;
}

.agrements-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agrements-grid article {
  border: 1px solid #eadfcd;
  border-left: 5px solid var(--cg-orange);
  border-radius: 11px;
  background: #fffcf6;
  padding: 0.72rem;
}

.agrements-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--cg-green-900);
}

.agrements-grid p {
  margin: 0;
  color: var(--cg-muted);
  font-size: 0.94rem;
}

.agrements-note {
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: var(--cg-muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: #f1eadd;
}

th,
td {
  border: 1px solid var(--cg-border);
  padding: 0.54rem;
  vertical-align: top;
}

th {
  color: #20322f;
}

.thumb {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
}

.product-inline-media {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 180px;
}

.product-inline-thumb {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #dfd2bf;
  background: #fffaf2;
  flex: 0 0 auto;
}

.product-inline-copy {
  display: grid;
  gap: 0.18rem;
}

.product-inline-copy strong {
  color: var(--cg-green-900);
}

.product-inline-copy span {
  color: var(--cg-muted);
  font-size: 0.86rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.allergen-selector-popup {
  margin: 0;
  padding: 0.72rem;
  border: 1px solid #ddcfb9;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ec 100%);
}

.allergen-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.allergen-selector-title {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cg-green-700);
}

.allergen-selector-preview {
  margin-top: 0.52rem;
}

.allergen-selector-preview .allergen-empty {
  display: inline-block;
  padding: 0.26rem 0;
}

.allergen-selector-count {
  margin-top: 0.42rem;
  margin-bottom: 0;
}

.allergen-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 70;
}

.allergen-modal.is-open {
  display: block;
}

.allergen-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 21, 0.55);
}

.allergen-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  margin: 1.2rem auto;
  border: 1px solid #ddcfb9;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 20px 45px rgba(18, 27, 25, 0.35);
  padding: 0.95rem;
}

.allergen-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.allergen-modal-top h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--cg-green-900);
}

.allergen-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #cdbfa8;
  border-radius: 999px;
  background: #fff;
  color: #3d4b47;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.allergen-modal-close:hover {
  background: #f4eee2;
}

.allergen-modal-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.modal-open {
  overflow: hidden;
}

.allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.42rem;
}

.allergen-option {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid #e1d5c2;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.allergen-option:hover {
  border-color: #d5b37a;
}

.allergen-option input {
  width: auto;
  margin: 0;
  accent-color: var(--cg-orange);
}

.allergen-option input:checked + .allergen-logo {
  box-shadow: 0 0 0 2px rgba(238, 147, 4, 0.25);
}

.allergen-option input:checked ~ .allergen-option-text {
  color: #133f35;
  font-weight: 800;
}

.allergen-option-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #2c413b;
}

.allergen-custom {
  margin-top: 0.62rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdbfa8;
  border-radius: 10px;
  padding: 0.55rem 0.66rem;
  font: inherit;
  background: #fff;
  color: var(--cg-ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(238, 147, 4, 0.3);
  border-color: var(--cg-orange);
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
  justify-content: center;
  align-items: stretch;
}

.reporting-period-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
  justify-content: center;
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(190, 165, 122, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(238, 147, 4, 0.08), transparent 40%),
    linear-gradient(180deg, #fffefb 0%, #fff8ef 100%);
}

.reporting-period-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.reporting-period-field select,
.reporting-period-field input {
  width: 100%;
}

.reporting-period-preset {
  min-width: 210px;
}

.reporting-period-company {
  min-width: 240px;
}

.reporting-period-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.reporting-period-custom.is-hidden {
  display: none;
}

.reporting-period-actions {
  display: flex;
  align-items: end;
}

.reporting-period-summary {
  margin-top: -0.35rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.panel-grid {
  display: grid;
  gap: 1rem;
}

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

.metric-card {
  margin: 0;
  border: 1px solid var(--cg-border);
  background:
    radial-gradient(circle at top right, rgba(238, 147, 4, 0.12), transparent 42%),
    linear-gradient(180deg, #fffefb 0%, #fff8ef 100%);
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  min-height: 0;
  display: grid;
  gap: 0.3rem;
  align-content: center;
  justify-items: center;
  text-align: center;
  box-shadow: 0 14px 26px rgba(24, 63, 52, 0.06);
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.metric-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.metric-card-link:hover {
  text-decoration: none;
}

.metric-card-link:hover .metric-card {
  background:
    radial-gradient(circle at top right, rgba(238, 147, 4, 0.18), transparent 45%),
    linear-gradient(180deg, #fffdf8 0%, #fff4e4 100%);
  border-color: #d8c39c;
  box-shadow: 0 18px 30px rgba(24, 63, 52, 0.1);
  transform: translateY(-2px);
}

.metric-card-label {
  margin: 0;
  color: var(--cg-muted);
  font-size: 0.95rem;
  line-height: 1.35;
  max-width: 14ch;
}

.metric-card-value {
  display: block;
  margin-top: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cg-green-900);
  text-wrap: balance;
}

.inline-form {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.option-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.option-pill-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--cg-border);
  border-radius: 999px;
  background: #fffaf2;
  font-weight: 600;
  color: var(--cg-green-900);
}

.option-pill-check input {
  width: auto;
  margin: 0;
}

.pricing-company-focus {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pricing-company-summary,
.pricing-company-existing {
  border: 1px solid var(--cg-border);
  background: #fffdf9;
  border-radius: 14px;
  padding: 1rem;
}

.pricing-company-summary h3,
.pricing-company-existing h3 {
  margin-bottom: 0.35rem;
}

.pricing-company-existing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.pricing-company-existing-head .hint {
  max-width: 430px;
  margin: 0;
}

.pricing-block-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2d6d5a;
}

.table-actions-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.table-actions-inline .inline-form {
  margin: 0;
}

.order-product-cell {
  display: grid;
  gap: 0.55rem;
}

.order-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-order-filter {
  margin-bottom: 1rem;
  align-items: end;
}

.admin-order-card-list {
  display: grid;
  gap: 1rem;
}

.admin-order-card {
  border: 1px solid var(--cg-border);
  border-radius: 18px;
  background: #fffdf9;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 1rem;
}

.admin-order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-order-card-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-order-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-order-card-body {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1rem;
}

.admin-order-product {
  display: grid;
  gap: 0.7rem;
}

.admin-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.admin-order-meta-grid > div {
  display: grid;
  gap: 0.28rem;
}

.admin-order-meta-grid > div strong {
  font-size: 0.9rem;
  color: var(--cg-green-700);
}

.admin-order-meta-grid > div span {
  color: var(--cg-text);
}

.admin-order-meta-grid > div small {
  display: block;
  margin-top: 0.15rem;
  color: var(--cg-muted);
  font-size: 0.88rem;
}

.admin-order-meta-grid .span-2 {
  grid-column: 1 / -1;
}

.admin-order-card-actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cg-border);
}

.admin-order-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.admin-order-status-form select,
.admin-order-status-form input {
  width: auto;
  min-width: 180px;
}

.admin-order-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.admin-summary-card-list {
  display: grid;
  gap: 1rem;
}

.admin-summary-card {
  border: 1px solid var(--cg-border);
  border-radius: 18px;
  background: #fffdf9;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.admin-summary-card-invoice {
  padding: 0.8rem 0.95rem;
  gap: 0.65rem;
}

.admin-summary-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-summary-card-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.admin-summary-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.admin-summary-meta-grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-summary-card-invoice .admin-summary-meta-grid {
  gap: 0.55rem 0.8rem;
}

.admin-summary-meta-grid > div {
  display: grid;
  gap: 0.28rem;
}

.admin-summary-meta-grid > div strong {
  font-size: 0.9rem;
  color: var(--cg-green-700);
}

.admin-summary-meta-grid > div span {
  color: var(--cg-text);
}

.admin-summary-meta-grid > div small {
  display: block;
  margin-top: 0.15rem;
  color: var(--cg-muted);
  font-size: 0.88rem;
}

.admin-summary-multi-line {
  display: grid;
  gap: 0.5rem;
}

.admin-summary-multi-line > div {
  display: grid;
  gap: 0.18rem;
}

.admin-company-card {
  gap: 1rem;
}

.admin-company-card-head h3 {
  margin-bottom: 0;
}

.admin-company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.admin-company-panel {
  border: 1px solid rgba(212, 195, 165, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.95rem;
  display: grid;
  gap: 0.85rem;
}

.admin-company-panel-head {
  display: grid;
  gap: 0.18rem;
}

.admin-company-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cg-green-700);
}

.admin-company-section-subtitle {
  margin: 0;
  color: var(--cg-muted);
  font-size: 0.92rem;
}

.admin-company-section-hint {
  margin: 0;
}

.company-admin-list {
  display: grid;
  gap: 0.7rem;
}

.company-admin-empty {
  border: 1px dashed rgba(212, 195, 165, 0.9);
  border-radius: 14px;
  padding: 0.9rem;
  color: var(--cg-muted);
  background: rgba(255, 255, 255, 0.7);
}

.company-admin-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid rgba(212, 195, 165, 0.72);
  border-radius: 14px;
  background: #fffdf9;
}

.company-admin-ident {
  display: grid;
  gap: 0.28rem;
}

.company-admin-role-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  background: rgba(16, 92, 80, 0.1);
  color: var(--cg-green-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-admin-name {
  font-size: 1.05rem;
  line-height: 1.2;
}

.company-admin-email {
  font-size: 0.92rem;
  color: var(--cg-muted);
  word-break: break-word;
}

.company-admin-controls {
  display: grid;
  gap: 0.55rem;
  justify-items: stretch;
}

.company-admin-role-form {
  display: grid;
  gap: 0.5rem;
}

.company-admin-field {
  display: grid;
  gap: 0.25rem;
}

.company-admin-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.company-admin-role-form select {
  min-width: 0;
  width: 100%;
}

.company-admin-reset-form {
  margin: 0;
}

.company-admin-reset-form .button,
.company-admin-role-form .button {
  width: 100%;
}

.admin-company-stats-grid {
  display: grid;
  gap: 0.7rem;
}

.admin-company-stat {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(212, 195, 165, 0.7);
  border-radius: 14px;
  background: #fffdf9;
  padding: 0.85rem 0.9rem;
}

.admin-company-stat strong {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cg-muted);
}

.admin-company-stat span {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 700;
  color: var(--cg-green-700);
}

.admin-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cg-border);
}

.admin-summary-inline-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-summary-inline-block-grow {
  flex: 1 1 520px;
  min-width: 0;
}

.admin-summary-actions-invoice {
  align-items: flex-start;
  gap: 0.45rem;
  padding-top: 0.55rem;
}

.admin-summary-edit {
  order: 5;
}

.admin-summary-edit summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.admin-summary-edit summary::-webkit-details-marker {
  display: none;
}

.admin-summary-edit[open] {
  flex: 1 1 100%;
  order: 10;
  border-top: 1px solid var(--cg-border);
  padding-top: 0.55rem;
}

.invoice-edit-form {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.invoice-edit-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--cg-text);
}

.invoice-edit-form .actions-row {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
}

.invoice-upload-form {
  width: 100%;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(140px, 180px) auto;
  gap: 0.45rem;
  align-items: center;
}

.invoice-upload-form input[type="file"],
.invoice-upload-form input[name="amount_ht"] {
  width: 100%;
  min-width: 0;
}

.admin-summary-card-invoice .button.button-small {
  font-size: 0.76rem;
  padding: 0.32rem 0.55rem;
}

.admin-summary-card-invoice .inline-form {
  margin-bottom: 0;
  gap: 0.35rem;
}

.admin-summary-card-invoice input[type="file"],
.admin-summary-card-invoice input[type="text"],
.admin-summary-card-invoice input[type="datetime-local"],
.admin-summary-card-invoice select {
  padding: 0.48rem 0.65rem;
}

@media (max-width: 720px) {
  .invoice-edit-form {
    grid-template-columns: 1fr;
  }

  .invoice-upload-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .admin-summary-meta-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-summary-meta-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reporting-period-bar,
  .reporting-period-custom {
    flex-direction: column;
    align-items: stretch;
  }

  .reporting-period-field,
  .reporting-period-preset,
  .reporting-period-company {
    min-width: 0;
  }

  .company-admin-entry {
    grid-template-columns: 1fr;
  }

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

.pricing-company-picker {
  margin-bottom: 1rem;
  align-items: end;
}

.pricing-company-picker-action {
  display: flex;
  align-items: end;
}

.pricing-company-current {
  border: 1px solid var(--cg-border);
  border-radius: 14px;
  background: #fffdf9;
  padding: 1rem;
}

.pricing-company-current-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.pricing-company-current-head h3 {
  margin-bottom: 0.2rem;
}

.pricing-company-current-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--cg-muted);
  font-size: 0.92rem;
}

.pricing-company-meta-grid {
  display: grid;
  gap: 0.45rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.pricing-company-meta-grid p {
  margin: 0;
}

.pricing-product-simple-list {
  display: grid;
  gap: 0.9rem;
}

.pricing-product-item {
  border: 1px solid var(--cg-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.pricing-product-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
}

.pricing-product-item summary::-webkit-details-marker {
  display: none;
}

.pricing-product-summary-line {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, auto) auto;
  gap: 0.8rem;
  align-items: center;
}

.pricing-product-summary-line strong {
  color: var(--cg-green-900);
}

.pricing-product-summary-line span {
  color: var(--cg-muted);
  font-size: 0.92rem;
}

.pricing-option-tag-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pricing-option-tag-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cg-green-700);
}

.pricing-option-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 154, 28, 0.3);
  background: #fff7e8;
  color: var(--cg-green-900);
  font-size: 0.88rem;
  font-weight: 700;
}

.pricing-option-tag.is-empty {
  border-color: var(--cg-border);
  background: #f5f4ee;
  color: var(--cg-muted);
  font-weight: 600;
}

.pricing-product-summary-line .badge {
  color: inherit;
}

.pricing-row-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 92px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--cg-border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--cg-green-900);
  background: #fffaf2;
}

.pricing-product-edit {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--cg-border);
}

.pricing-product-form {
  gap: 0.75rem;
}

.pricing-product-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.pricing-product-card-head h4 {
  margin-bottom: 0.25rem;
}

.pricing-product-card-head .hint {
  margin: 0;
}

.pricing-product-form {
  gap: 0.75rem;
}

.pricing-active-check {
  display: grid;
  gap: 0.4rem;
}

.pricing-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.pricing-inline-check input {
  width: auto;
  margin: 0;
}

.inline-upload-form input[type="file"] {
  width: auto;
  max-width: 200px;
  font-size: 0.78rem;
  padding: 0.35rem;
}

.badge {
  display: inline-block;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-neutral {
  background: #e5e6e8;
  color: #364245;
}

.badge-pending {
  background: #fff4da;
  color: #8d5e03;
}

.badge-progress {
  background: #dceeff;
  color: #154c91;
}

.badge-done {
  background: #daf4e8;
  color: #0f664c;
}

.badge-refused {
  background: #ffdfd9;
  color: #8f251e;
}

.hint {
  color: var(--cg-muted);
  font-size: 0.9rem;
}

.order-form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.order-product-preview {
  border: 1px solid var(--cg-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff5e7 100%);
  overflow: hidden;
  box-shadow: var(--cg-shadow);
}

.order-product-preview-image {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #f6efe4;
}

.order-product-preview-copy {
  padding: 1rem;
}

.order-product-preview-copy h3 {
  margin-bottom: 0.45rem;
}

.order-product-preview-section {
  margin-top: 0.85rem;
}

.order-product-preview-label {
  margin: 0 0 0.38rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cg-green-900);
}

.order-product-preview-label-muted {
  color: #7a817d;
  font-size: 0.92rem;
  font-style: italic;
}

.order-product-preview-list {
  display: grid;
  gap: 0.35rem;
}

.order-product-preview-list-muted {
  gap: 0.28rem;
}

.order-product-preview-line {
  color: #30403c;
  line-height: 1.5;
  font-size: 0.98rem;
}

.order-product-preview-line-option {
  color: #5f665f;
  font-size: 0.94rem;
}

.order-product-preview-line.is-empty {
  color: var(--cg-muted);
  font-style: italic;
}

.order-form-fields {
  align-content: start;
}

.product-admin-list {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid #decfb9;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffefb 0%, #fff9ef 100%);
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(23, 49, 43, 0.06);
}

.product-admin-media {
  display: flex;
  align-items: flex-start;
}

.product-admin-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2d5c3;
  background: #fff;
}

.product-admin-body {
  display: grid;
  gap: 0.8rem;
}

.product-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.product-admin-head h3 {
  margin: 0.15rem 0 0;
  color: var(--cg-green-900);
}

.product-admin-status {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.product-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: #425650;
}

.product-admin-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.product-admin-summary p {
  margin: 0;
  color: #2e403b;
}

.product-admin-highlights {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.22rem;
  color: #566a64;
}

.product-admin-subtitle {
  margin: 0 0 0.38rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2d6d5a;
}

.product-admin-actions {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid #eadcc8;
}

.product-admin-upload .hint,
.product-admin-delete-hint {
  margin: 0;
}

@media (max-width: 1080px) {
  .site-header-pro .top-nav {
    display: flex;
  }

  .brand {
    min-width: 0;
  }

  .site-header-pro .top-nav,
  .top-nav {
    width: 100%;
    order: 3;
  }

  .user-box {
    margin-left: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .order-form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .grid-3,
  .agrements-grid,
  .panel-grid-2,
  .form-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .header-inner {
    flex-wrap: wrap;
  }

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

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .user-box {
    margin-left: 0;
    text-align: left;
  }

  .hero-content {
    padding: 1.9rem 1.1rem;
  }

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

  .product-sheet {
    grid-template-columns: 1fr;
  }

  .product-content {
    padding: 0 0.8rem 0.9rem;
  }

  .product-sheet-content h3 {
    font-size: 1.7rem;
  }

  .catalog-point {
    font-size: 0.8rem;
  }

  .product-highlights-grid {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .product-full-list-2col {
    column-count: 1;
  }

  .product-main-image {
    height: 210px;
  }

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

  .allergen-selector-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-allergens-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .allergen-modal-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
  }

  .pricing-company-existing-head {
    flex-direction: column;
  }

  .pricing-company-meta-grid {
    grid-template-columns: 1fr;
  }

  .pricing-company-current-head {
    flex-direction: column;
  }

  .pricing-company-current-stats {
    flex-direction: column;
    gap: 0.2rem;
  }

  .admin-order-card-body,
  .admin-summary-meta-grid {
    grid-template-columns: 1fr;
  }

  .pricing-product-summary-line {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .product-admin-card {
    grid-template-columns: 1fr;
  }

  .product-admin-thumb {
    max-width: 180px;
  }

  .product-admin-head {
    flex-direction: column;
  }

  .product-admin-status {
    justify-items: start;
  }

  .pricing-product-card-head {
    flex-direction: column;
  }
}

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

  .allergen-modal-actions {
    flex-direction: column;
  }

  .allergen-modal-actions .button {
    width: 100%;
  }
}
