:root {
  --orange: #f4511e;
  --orange-dark: #d93b0c;
  --orange-soft: #fff0e9;
  --cream: #fffaf5;
  --ink: #1f2529;
  --muted: #6d7478;
  --line: #eadfd6;
  --green: #24855b;
  --white: #fff;
  --shadow: 0 24px 60px rgba(73, 37, 17, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(234, 223, 214, .85);
  background: rgba(255, 250, 245, .92);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand span {
  display: grid;
}

.brand strong {
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: .04em;
}

.brand small {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #4f5558;
  font-size: .92rem;
  font-weight: 650;
}

.site-nav a {
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--orange);
}

.site-nav__logout {
  margin: 0;
}

.site-nav__logout button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  transition: color .2s ease;
}

.site-nav__logout button:hover {
  color: var(--orange);
}

.mobile-menu-toggle {
  display: none;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.language-switcher a {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

.language-switcher a.active {
  background: var(--orange);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 45%, rgba(255, 164, 80, .34), transparent 28%),
    linear-gradient(125deg, #fff7f0 0%, #fffaf5 52%, #ffe8dc 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .28;
  background-image: linear-gradient(rgba(218, 115, 63, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 115, 63, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 80px;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1,
.confirmation h1,
.admin-hero h1 {
  max-width: 680px;
  margin: 14px 0 20px;
  color: #25201d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__link,
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  color: var(--orange-dark);
  font-weight: 750;
}

.hero__mark {
  position: absolute;
  z-index: 1;
  top: 45px;
  left: max(58%, calc(50% + 150px));
  width: 440px;
  height: 440px;
  display: grid;
  place-items: center;
}

.hero__mark img {
  position: relative;
  z-index: 2;
  width: 94%;
  filter: drop-shadow(0 25px 30px rgba(184, 61, 8, .2));
  transform: rotate(3deg);
}

.hero__sun {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: #fff3dd;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, .35);
}

.order-heading {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr);
  align-items: end;
  gap: 54px;
  padding: 60px 0 12px;
}

.order-heading h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.order-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.product-search {
  width: 100%;
}

.product-search span {
  display: block;
  margin-bottom: 7px;
  color: #474d50;
  font-size: .78rem;
  font-weight: 750;
}

.product-search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1px solid #dfd6d0;
  border-radius: 12px;
  outline: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23757b7e' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E")
    no-repeat 15px center / 18px,
    #fffdfa;
}

.product-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 81, 30, .12);
}

.order-page .order-shell {
  padding-top: 36px;
}

#product-results {
  min-height: 180px;
  transition: opacity .15s ease;
}

#product-results.is-loading {
  opacity: .45;
  pointer-events: none;
}

.order-shell,
.admin-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr);
  gap: 54px;
  padding: 88px 0 110px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.checkout-card h2,
.admin-form-card h2,
.admin-list h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.fresh-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 750;
}

.fresh-badge {
  padding: 9px 13px;
  background: #e9f5ee;
  color: var(--green);
}

.fresh-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36a974;
  content: "";
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.product-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(59, 35, 21, .045);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product-card:focus-within,
.product-card:hover {
  border-color: #efb49c;
  box-shadow: 0 16px 36px rgba(75, 38, 17, .09);
  transform: translateY(-2px);
}

.product-card__image {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 60% 38%, rgba(255,255,255,.75), transparent 28%),
    linear-gradient(150deg, #ffe7d8, #ffbf8d);
}

.product-card__image span,
.product-table__letter {
  color: rgba(196, 53, 5, .72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-style: italic;
}

.product-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 10px;
}

.product-card h3 {
  margin: 0 0 3px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: .94rem;
  font-weight: 750;
}

.product-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.product-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.product-tiers span {
  padding: 3px 6px;
  border-radius: 6px;
  background: #fff2e9;
  color: var(--orange-dark);
  font-size: .58rem;
  font-weight: 700;
}

.product-card__order {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  margin-top: 6px;
}

.price {
  display: grid;
}

.price strong {
  color: var(--orange-dark);
  font-size: .9rem;
}

.price span {
  color: var(--muted);
  font-size: .66rem;
}

.quantity-control {
  height: 34px;
  display: grid;
  grid-template-columns: 30px 44px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.quantity-button {
  border: 0;
  background: #fff8f3;
  color: var(--orange-dark);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.quantity-input {
  width: 100%;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  outline: 0;
  background: var(--white);
  text-align: center;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.checkout-card,
.admin-form-card {
  align-self: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.checkout-card {
  position: sticky;
  top: 102px;
}

.checkout-close,
.checkout-backdrop,
.mobile-order-bar {
  display: none;
}

.checkout-card h2,
.admin-form-card h2 {
  margin-bottom: 26px;
}

.field {
  margin-bottom: 17px;
}

.field label,
.delivery-choice legend {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #474d50;
  font-size: .78rem;
  font-weight: 750;
}

.field label small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfd6d0;
  border-radius: 10px;
  outline: 0;
  background: #fffdfa;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 81, 30, .12);
}

.field-validation-error {
  display: block;
  margin-top: 5px;
  color: #bd2c16;
  font-size: .75rem;
}

.validation-summary {
  margin-bottom: 16px;
  border-radius: 10px;
  color: #a72813;
  font-size: .82rem;
}

.validation-summary ul {
  margin: 0;
  padding: 10px 14px 10px 30px;
  background: #fff0ed;
}

.validation-summary:empty,
.validation-summary-valid {
  display: none;
}

.delivery-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0;
  border: 0;
}

.delivery-choice legend {
  grid-column: 1 / -1;
}

.delivery-choice label {
  position: relative;
  cursor: pointer;
}

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

.delivery-choice span {
  min-height: 64px;
  display: grid;
  align-content: center;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdfa;
}

.delivery-choice strong {
  font-size: .84rem;
}

.delivery-choice small {
  color: var(--muted);
  font-size: .7rem;
}

.delivery-choice input:checked + span {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.delivery-fields {
  display: none;
}

.delivery-fields.visible {
  display: block;
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.field--street {
  grid-column: 1;
}

.field--house-number {
  grid-column: 2;
}

.field--country {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

.checkout-total,
.confirmation__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.checkout-total span,
.confirmation__total span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
}

.checkout-total strong,
.confirmation__total strong {
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.server-total-note {
  margin: 5px 0 16px;
  color: #92979a;
  font-size: .68rem;
  text-align: right;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  width: 100%;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(219, 59, 9, .2);
}

.primary-button:hover:not(:disabled) {
  background: var(--orange-dark);
  color: var(--white);
  box-shadow: 0 15px 30px rgba(219, 59, 9, .27);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cancel-edit-link {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--orange-dark);
}

.empty-state {
  padding: 54px 30px;
  border: 1px dashed #dfcabc;
  border-radius: 20px;
  background: rgba(255,255,255,.55);
  text-align: center;
}

.empty-state__icon {
  display: block;
  color: var(--orange);
  font-size: 3rem;
}

.empty-state h3 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #251d19;
  color: rgba(255,255,255,.64);
}

.site-footer > div {
  width: min(1220px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
}

.site-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.confirmation {
  width: min(620px, calc(100% - 40px));
  margin: 90px auto 120px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirmation__mark {
  width: 66px;
  height: 66px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f5ee;
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 900;
}

.confirmation h1 {
  margin-inline: auto;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.confirmation > p {
  color: var(--muted);
  line-height: 1.65;
}

.order-number {
  margin: 30px 0 10px;
  padding: 20px;
  border-radius: 14px;
  background: var(--orange-soft);
}

.order-number span,
.order-number strong {
  display: block;
}

.order-number span {
  color: var(--muted);
  font-size: .75rem;
}

.order-number strong {
  margin-top: 5px;
  color: var(--orange-dark);
  font-size: 1.35rem;
  letter-spacing: .08em;
}

.confirmation .primary-button {
  margin-top: 28px;
}

.admin-hero {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 72px 0 44px;
}

.admin-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  line-height: 1.05;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-shell {
  grid-template-columns: minmax(310px, .7fr) minmax(0, 1.3fr);
  align-items: start;
  padding-top: 25px;
}

.admin-form-card {
  box-shadow: 0 18px 45px rgba(73, 37, 17, .07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.input-prefix {
  position: relative;
}

.input-prefix > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.input-prefix input {
  padding-left: 32px;
}

.price-tier-editor {
  margin: 8px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf6;
}

.price-tier-editor__heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 13px;
}

.price-tier-editor__heading > div {
  display: grid;
}

.price-tier-editor__heading strong {
  font-size: .84rem;
}

.price-tier-editor__heading small {
  color: var(--muted);
  font-size: .7rem;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.price-tier-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 28px;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price-tier-row .field {
  margin-bottom: 4px;
}

.tier-remove {
  width: 28px;
  height: 28px;
  margin-top: 25px;
  border: 0;
  border-radius: 50%;
  background: #f5e6df;
  color: #a63419;
  font-size: 1rem;
  line-height: 1;
}

.success-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e9f5ee;
  color: var(--green);
  font-size: .82rem;
  font-weight: 650;
}

.product-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.product-table article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 120px 76px 74px;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.product-table article:last-child {
  border-bottom: 0;
}

.product-table__letter {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-soft);
  font-size: 1.7rem;
}

.product-table__name,
.product-table__price {
  display: grid;
  min-width: 0;
}

.product-table__name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table__name span,
.product-table__price span {
  overflow: hidden;
  color: var(--muted);
  font-size: .74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table__price strong {
  color: var(--orange-dark);
}

.product-table__price small {
  color: var(--green);
  font-size: .67rem;
  font-weight: 750;
}

.product-table__tiers {
  display: grid;
  gap: 2px;
  margin-top: 3px;
}

.product-table__tiers small {
  white-space: nowrap;
}

.status-pill {
  justify-content: center;
  padding: 7px 9px;
  background: #f2f2f2;
  color: var(--muted);
}

.status-pill.active {
  background: #e9f5ee;
  color: var(--green);
}

.edit-product-link {
  color: var(--orange-dark);
  font-size: .75rem;
  font-weight: 800;
  text-align: right;
}

.orders-admin {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 110px;
}

.orders-hero {
  padding-bottom: 42px;
}

.order-filters {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(59, 35, 21, .04);
}

.order-filters__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-filters__heading strong {
  font-size: .86rem;
}

.order-filters__heading a {
  color: var(--orange-dark);
  font-size: .75rem;
  font-weight: 750;
}

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

.order-filters .field {
  min-width: 0;
  margin-bottom: 0;
}

.order-filters .field label {
  font-size: .7rem;
}

.order-filters .field input,
.order-filters .field select,
.order-filters__submit {
  min-height: 44px;
}

.order-filters__submit {
  padding-inline: 18px;
}

.order-statistics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.order-statistics article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.order-statistics span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.order-statistics strong {
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.admin-error-message {
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #fff0ed;
  color: #a72813;
  font-size: .85rem;
  font-weight: 700;
}

.orders-list {
  display: grid;
  gap: 20px;
}

.order-admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(59, 35, 21, .045);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.order-admin-card.is-saved {
  border-color: #72bd98;
  box-shadow: 0 10px 30px rgba(36, 133, 91, .15);
}

.order-admin-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
}

.order-admin-card__header h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
}

.order-status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0e7;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 800;
}

.order-status--completed {
  background: #e9f5ee;
  color: var(--green);
}

.order-status--cancelled {
  background: #f1f1f1;
  color: var(--muted);
}

.order-admin-card__content {
  display: grid;
  grid-template-columns: .8fr 1.35fr 1fr;
}

.order-admin-card__content > section {
  min-width: 0;
  padding: 24px;
}

.order-admin-card__content > section + section {
  border-left: 1px solid var(--line);
}

.order-admin-card__content h3 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.order-customer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-size: .84rem;
}

.order-customer__details,
.order-customer__identity,
.order-customer__delivery {
  width: 100%;
  display: grid;
  gap: 4px;
}

.order-customer__schedule {
  min-width: 0;
  margin: 6px 0 0;
}

.order-customer__schedule input {
  min-height: 42px;
}

.order-customer a {
  color: var(--orange-dark);
  font-weight: 700;
}

.order-customer address {
  margin: 10px 0 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.order-note {
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4ec;
  color: #755444;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #f0e8e2;
  font-size: .82rem;
}

.order-line > div {
  display: grid;
  gap: 2px;
}

.order-line span {
  color: var(--muted);
}

.order-line--total {
  margin-top: 5px;
  padding: 13px 11px;
  border-bottom: 0;
  border-radius: 10px;
  background: #fff0e7;
  color: var(--orange-dark);
  font-size: .9rem;
}

.order-line--total span {
  color: #7b3c26;
  font-weight: 750;
}

.order-line--total strong {
  font-size: 1.02rem;
}

.order-handling .field {
  margin-bottom: 13px;
}

.order-handling .primary-button {
  width: 100%;
}

.order-handling form.is-saving {
  opacity: .72;
}

.order-save-feedback {
  min-height: 18px;
  margin-top: 8px;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
}

.order-save-feedback:empty {
  min-height: 0;
  margin-top: 0;
}

.order-save-feedback.is-success {
  color: var(--green);
}

.order-save-feedback.is-error {
  color: #b63a18;
}

.payment-balance {
  display: flex;
  justify-content: space-between;
  margin: 17px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

.amount-due {
  color: #b63a18;
}

.amount-settled {
  color: var(--green);
}

.auth-page main {
  min-height: calc(100vh - 79px);
  display: grid;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 166, 99, .2), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(244, 81, 30, .1), transparent 28%),
    var(--cream);
}

.auth-shell {
  width: min(100% - 32px, 520px);
  margin: auto;
  padding: 54px 0 70px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 38px 42px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 70px rgba(73, 37, 17, .13);
}

.auth-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange-dark), #ff9b55);
  content: "";
}

.auth-card__heading {
  margin-bottom: 28px;
}

.auth-card__heading h1 {
  margin: 9px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 7vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}

.auth-card__heading p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .82rem;
  cursor: pointer;
}

.auth-remember input {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
}

.auth-submit {
  width: 100%;
  min-height: 50px;
}

.auth-card__links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .82rem;
}

.auth-card__links a,
.auth-back {
  color: var(--orange-dark);
  font-weight: 750;
}

.auth-back {
  width: fit-content;
  display: block;
  margin: 20px auto 0;
  font-size: .8rem;
}

@media (min-width: 1350px) {
  .order-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .order-page .product-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .order-page .product-card__body {
    padding-inline: 9px;
  }

  .order-page .quantity-control {
    grid-template-columns: 27px 34px 27px;
  }
}

@media (max-width: 1000px) {
  .hero__mark {
    left: 62%;
    opacity: .42;
  }

  .order-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }

  .admin-form-card {
    max-width: 620px;
  }

  .order-admin-card__content {
    grid-template-columns: 1fr 1fr;
  }

  .order-handling {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0 !important;
  }

  .order-page.mobile-checkout-enabled {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .order-page.mobile-checkout-enabled.checkout-open {
    overflow: hidden;
  }

  .order-page.mobile-checkout-enabled .checkout-card {
    position: fixed;
    z-index: 70;
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: min(100%, 640px);
    max-height: min(88vh, 760px);
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    visibility: hidden;
    transform: translate(-50%, 105%);
    transition: transform .25s ease, visibility .25s;
    overscroll-behavior: contain;
  }

  .order-page.mobile-checkout-enabled .checkout-card.is-open {
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .order-page.mobile-checkout-enabled .checkout-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff8f3;
    color: var(--orange-dark);
    font-size: 1.4rem;
    cursor: pointer;
  }

  .order-page.mobile-checkout-enabled .checkout-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(31, 24, 20, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    backdrop-filter: blur(2px);
  }

  .order-page.mobile-checkout-enabled .checkout-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .order-page.mobile-checkout-enabled .mobile-order-bar {
    position: fixed;
    z-index: 50;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    width: min(680px, calc(100% - 24px));
    min-height: 66px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 9px 10px 9px 16px;
    border: 1px solid rgba(226, 210, 198, .95);
    border-radius: 18px;
    background: rgba(255, 253, 250, .97);
    box-shadow: 0 16px 40px rgba(67, 34, 16, .2);
    backdrop-filter: blur(16px);
  }

  .mobile-order-bar__summary {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .mobile-order-bar__summary span {
    overflow: hidden;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-order-bar__summary strong {
    color: var(--orange-dark);
    font-size: 1rem;
  }

  .mobile-order-bar__button {
    min-height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 0;
    border-radius: 12px;
    background: var(--orange);
    color: var(--white);
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-order-bar__button:disabled {
    opacity: .45;
    cursor: not-allowed;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    position: relative;
    width: min(100% - 28px, 1220px);
    min-height: 68px;
    gap: 12px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand span {
    display: none;
  }

  .mobile-menu-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-menu-toggle__icon {
    width: 18px;
    display: grid;
    gap: 3px;
  }

  .mobile-menu-toggle__icon i {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--orange-dark);
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-menu-toggle.is-open .mobile-menu-toggle__icon i:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open .mobile-menu-toggle__icon i:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open .mobile-menu-toggle__icon i:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 250, .99);
    box-shadow: 0 18px 45px rgba(67, 34, 16, .18);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .site-nav__logout button {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: left;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav__logout button:hover,
  .site-nav__logout button:focus-visible {
    background: var(--orange-soft);
    color: var(--orange-dark);
  }

  .auth-page main {
    min-height: calc(100vh - 69px);
  }

  .auth-shell {
    width: min(100% - 20px, 480px);
    padding: 28px 0 46px;
  }

  .auth-card {
    padding: 30px 20px 26px;
    border-radius: 19px;
  }

  .auth-card__heading {
    margin-bottom: 22px;
  }

  .auth-card__heading h1 {
    font-size: 2.35rem;
  }

  .hero {
    min-height: 510px;
  }

  .hero__content {
    width: calc(100% - 32px);
    padding-top: 68px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero__mark {
    top: 250px;
    left: 45%;
    width: 280px;
    height: 280px;
  }

  .hero__sun {
    width: 210px;
    height: 210px;
  }

  .order-heading {
    width: calc(100% - 28px);
    display: block;
    padding-top: 30px;
  }

  .order-heading h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .order-heading p {
    font-size: .94rem;
    line-height: 1.55;
  }

  .product-search {
    margin-top: 20px;
  }

  .order-shell,
  .admin-shell {
    width: calc(100% - 28px);
    gap: 28px;
    padding: 30px 0 42px;
  }

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

  .product-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 15px;
  }

  .product-card__image {
    display: none;
  }

  .product-card__body {
    padding: 11px 12px;
  }

  .product-card h3 {
    margin-bottom: 2px;
    font-size: 1rem;
    line-height: 1.25;
  }

  .product-card p {
    font-size: .75rem;
    line-height: 1.35;
    -webkit-line-clamp: 1;
  }

  .product-tiers {
    gap: 4px;
    margin-top: 6px;
  }

  .product-tiers span {
    padding: 3px 6px;
    font-size: .6rem;
  }

  .product-card__order {
    align-items: center;
    margin-top: 8px;
  }

  .price strong {
    font-size: .9rem;
  }

  .quantity-control {
    height: 42px;
    grid-template-columns: 36px 38px 36px;
    border-radius: 10px;
  }

  .quantity-button {
    min-width: 36px;
    min-height: 42px;
    touch-action: manipulation;
  }

  .checkout-card,
  .admin-form-card {
    padding: 25px 20px;
    border-radius: 18px;
  }

  .admin-hero {
    width: calc(100% - 28px);
    display: block;
    padding-top: 52px;
  }

  .admin-hero .secondary-button {
    margin-top: 24px;
  }

  .orders-admin {
    width: calc(100% - 20px);
    padding-bottom: 64px;
  }

  .order-filters {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .order-filters__heading {
    margin-bottom: 9px;
  }

  .order-filters__fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .order-filters .field input,
  .order-filters .field select {
    min-height: 42px;
    padding: 9px 10px;
    font-size: .8rem;
  }

  .order-filters__submit {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .order-statistics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 18px;
  }

  .order-statistics article {
    min-width: 0;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 9px 5px;
    border-radius: 12px;
    text-align: center;
  }

  .order-statistics span {
    font-size: .64rem;
    line-height: 1.2;
  }

  .order-statistics strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 1.05rem;
    text-overflow: ellipsis;
  }

  .orders-list {
    gap: 15px;
  }

  .order-admin-card {
    border-color: #dfc8b8;
    border-radius: 15px;
    box-shadow: 0 9px 24px rgba(77, 39, 18, .11);
  }

  .order-admin-card__header {
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-bottom-color: #e9cdbb;
    background: linear-gradient(100deg, #fff3ea, #fffaf5);
  }

  .order-admin-card__header .eyebrow {
    font-size: .61rem;
    letter-spacing: .1em;
  }

  .order-admin-card__header h2 {
    margin-top: 3px;
    font-size: 1.14rem;
  }

  .order-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: .63rem;
  }

  .order-admin-card__content {
    grid-template-columns: 1fr;
  }

  .order-admin-card__content > section {
    padding: 13px 14px;
  }

  .order-admin-card__content > section + section {
    border-top: 1px solid #ead9cd;
    border-left: 0;
  }

  .order-admin-card__content h3 {
    margin-bottom: 9px;
    font-size: .65rem;
  }

  .order-customer {
    gap: 6px;
    font-size: .9rem;
  }

  .order-customer__details {
    grid-template-columns:
      minmax(0, .68fr)
      minmax(0, 1fr)
      minmax(145px, 1.05fr);
    gap: 8px;
  }

  .order-customer__identity,
  .order-customer__delivery {
    align-content: start;
  }

  .order-customer address {
    margin-top: 3px;
    line-height: 1.4;
  }

  .order-note {
    margin-top: 6px;
    padding: 7px 9px;
  }

  .order-line {
    gap: 10px;
    padding: 6px 0;
    font-size: .81rem;
  }

  .order-line--total {
    margin-top: 2px;
    padding: 10px;
    font-size: .88rem;
  }

  .order-handling {
    grid-column: auto;
  }

  .order-handling form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }

  .order-handling .field {
    min-width: 0;
    margin-bottom: 0;
  }

  .order-handling select,
  .order-handling input {
    min-width: 0;
  }

  .payment-balance,
  .order-handling .primary-button,
  .order-save-feedback {
    grid-column: 1 / -1;
  }

  .payment-balance {
    margin: 4px 0 0;
    padding-top: 10px;
  }

  .order-handling .primary-button {
    min-height: 44px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .price-tier-editor__heading {
    display: grid;
  }

  .price-tier-row {
    grid-template-columns: 1fr 28px;
  }

  .price-tier-row .field {
    grid-column: 1;
  }

  .tier-remove {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .product-table article {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding-inline: 13px;
  }

  .product-table__price {
    grid-column: 2;
  }

  .status-pill {
    grid-column: 3;
    grid-row: 1;
  }

  .edit-product-link {
    grid-column: 3;
    grid-row: 2;
  }

  .confirmation {
    margin-block: 50px 75px;
    padding: 40px 22px;
  }

  .order-page.mobile-checkout-enabled .checkout-card {
    max-height: 92vh;
    max-height: 92dvh;
    padding: 28px 18px calc(26px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .order-page.mobile-checkout-enabled .checkout-close {
    top: 14px;
    right: 14px;
  }
}

@media (min-width: 540px) and (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-filters__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-filters__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 539px) {
  .order-filters .field:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .order-customer__details {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }

  .order-customer__schedule {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .site-header__inner {
    width: calc(100% - 20px);
  }

  .language-switcher {
    gap: 1px;
  }

  .language-switcher a {
    min-width: 31px;
    padding-inline: 6px;
  }

  .order-heading,
  .order-shell {
    width: calc(100% - 20px);
  }

  .product-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card__body {
    padding-inline: 10px;
  }

  .product-card__order {
    gap: 7px;
  }

  .mobile-order-bar__button {
    padding-inline: 12px;
  }
}

.profile-page main {
  align-items: start;
}

.profile-shell {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding-block: clamp(32px, 5vw, 68px);
}

.auth-card--profile {
  width: 100%;
  padding: clamp(28px, 4vw, 48px);
}

.profile-card__header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.profile-card__badge {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid #ffc5a6;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff3ec, #ffd2b6);
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(244, 81, 30, .12);
}

.profile-card__header .auth-card__heading {
  margin: 0;
}

.profile-card__header .auth-card__heading h1 {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
}

.profile-card__header .auth-card__heading p {
  max-width: 660px;
  font-size: .98rem;
}

.profile-form {
  padding-top: 30px;
}

.profile-form > .validation-summary:empty {
  display: none;
}

.profile-form__grid {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.45fr);
  gap: 22px;
}

.profile-section--customer {
  grid-column: 1 / -1;
}

.profile-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdfa;
}

.profile-section__heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 52px;
  margin-bottom: 18px;
}

.profile-section__number {
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #fff0e7;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.profile-section__heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.profile-section__heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.profile-section .field:last-child {
  margin-bottom: 0;
}

.profile-customer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-customer-grid .field {
  margin-bottom: 0;
}

.profile-customer-grid .field:nth-child(1),
.profile-customer-grid .field:nth-child(2),
.profile-customer-grid .profile-field--street,
.profile-customer-grid .field:nth-child(6),
.profile-customer-grid .field:nth-child(7) {
  grid-column: span 2;
}

.profile-section input[readonly] {
  color: #6b6f72;
  background: #f4f1ee;
  cursor: not-allowed;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}

.profile-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-form__actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.profile-form__actions .auth-back {
  margin: 0;
}

.profile-submit {
  min-width: 210px;
}

@media (max-width: 760px) {
  .profile-form__grid {
    grid-template-columns: 1fr;
  }

  .profile-password-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .profile-customer-grid .field {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .profile-shell {
    width: min(100% - 20px, 980px);
    padding-block: 18px 34px;
  }

  .auth-card--profile {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .profile-card__header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 22px;
  }

  .profile-card__badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.2rem;
  }

  .profile-card__header .auth-card__heading h1 {
    font-size: 2rem;
  }

  .profile-form {
    padding-top: 20px;
  }

  .profile-section {
    padding: 18px 15px;
  }

  .profile-customer-grid {
    grid-template-columns: 1fr;
  }

  .profile-form__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .profile-form__actions .auth-back {
    margin-inline: auto;
  }

  .profile-submit {
    width: 100%;
  }
}

.user-management-shell {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.user-create-card,
.managed-users {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 45px rgba(91, 44, 24, .06);
}

.user-create-card {
  position: sticky;
  top: 1.5rem;
  padding: 1.75rem;
}

.user-create-card h2,
.managed-users__heading h2 {
  margin: .35rem 0 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.managed-users {
  padding: 1.75rem;
}

.managed-users__list {
  display: grid;
  gap: .85rem;
}

.managed-user-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.managed-user-card > form:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: .75rem;
  align-items: end;
}

.managed-user-card .field {
  margin: 0;
}

.managed-user-card > form:last-child {
  margin-top: .65rem;
  text-align: right;
}

.managed-user-card__identity {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.managed-user-card__identity span {
  color: var(--muted);
}

.danger-button {
  border: 0;
  background: transparent;
  color: #b42318;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .user-management-shell {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .user-create-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .managed-user-card > form:first-child {
    grid-template-columns: 1fr;
  }

  .managed-user-card__identity {
    align-items: flex-start;
    flex-direction: column;
  }
}
