:root {
  --bg: #f6f2ec;
  --bg-soft: #fbf8f3;
  --surface: #ffffff;
  --surface-soft: #fdfaf5;
  --ink: #1f1a15;
  --ink-soft: #5f554b;
  --border: #e7dfd4;
  --border-strong: #d8cab7;
  --accent: #b69a6a;
  --accent-ink: #7f6540;
  --shadow-soft: 0 12px 28px rgba(46, 37, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(182, 154, 106, 0.09), transparent 48%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
}

.top-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand-mark__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-mark__tag {
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 999px;
  transition: color 120ms ease, background 120ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: #f3ede4;
}

.nav-logout-form {
  margin: 0;
}

.nav-link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.nav-link--highlight {
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.site-main {
  padding: 34px 0 56px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  padding: 16px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer__brand {
  font-weight: 600;
}

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

.site-footer__links a {
  color: inherit;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.flash-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.flash-list li {
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8f6f2;
  color: #3f382f;
}

.flash-list .success {
  border-left-color: #4f9b6c;
}

.flash-list .error {
  border-left-color: #bd5b4d;
}

.flash-list .info {
  border-left-color: #6583ad;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #17120f;
  border-color: #17120f;
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 18, 15, 0.2);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-secondary {
  background: #f7f1e8;
  border-color: var(--border-strong);
  color: var(--ink);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 154, 106, 0.16);
}

.page-hero {
  margin-bottom: 24px;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 90% 15%, rgba(182, 154, 106, 0.2), transparent 45%);
  box-shadow: var(--shadow-soft);
}

.page-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 700;
}

.page-hero__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-hero__subtitle {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.page-hero__actions {
  margin-top: 20px;
}

.section-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.section-card + .section-card {
  margin-top: 18px;
}

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

.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.section-subtitle {
  margin: 0;
  color: var(--ink-soft);
}

.story-copy {
  margin: 0;
  color: #433a31;
  line-height: 1.75;
}

.catalog-toolbar {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.toolbar-grid--compact {
  grid-template-columns: minmax(240px, 1fr) auto auto;
}

.toolbar-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.results-note {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.results-note.error {
  color: #9f3939;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.product-grid--catalog {
  grid-template-columns: repeat(4, minmax(0, 256px));
  gap: 16px;
  justify-content: start;
  align-items: start;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 7px 14px rgba(40, 31, 23, 0.05);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(40, 31, 23, 0.09);
}

.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100% - 10px, 312px);
  margin: 7px auto 0;
  padding: 4px;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbf9f5, #fefcf9);
  text-decoration: none;
  color: #6d665d;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(216, 202, 183, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-card__media img {
  max-width: 81%;
  max-height: 81%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-card__image {
  max-width: 81%;
  max-height: 81%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 160ms ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.015);
}

.product-card__placeholder {
  font-size: 0.86rem;
  color: #7a7065;
}

.product-card__body {
  padding: 9px 11px 11px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.product-card__brand {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  line-height: 1.2;
}

.product-card__name {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.32;
  color: var(--ink);
  min-height: calc(1.32em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__name-link {
  color: inherit;
  text-decoration: none;
}

.product-card__name-link:hover {
  color: var(--accent-ink);
}

.product-card__footer {
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__price-block {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-card__price {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.01rem;
  line-height: 1.2;
}

.product-card__eta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.25;
}

.price-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-original {
  color: #8a7b6b;
  text-decoration: line-through;
  font-size: 0.86rem;
  line-height: 1.15;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(182, 154, 106, 0.55);
  background: #f9f2e6;
  color: #7f6540;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(216, 202, 183, 0.75);
  background: #fbf7f1;
  color: #6b573a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-left: auto;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.product-card__link:hover {
  border-color: rgba(151, 123, 81, 0.7);
  background: #f4ede1;
  color: #513f27;
}

.product-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.product-card__wishlist-form {
  margin: 0;
}

.product-card__wishlist-btn,
.product-card__wishlist-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(216, 202, 183, 0.75);
  background: #fff;
  color: #6b573a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.product-card__wishlist-btn:hover,
.product-card__wishlist-link:hover {
  border-color: rgba(151, 123, 81, 0.7);
  background: #f4ede1;
  color: #513f27;
}

.product-card__wishlist-btn--active {
  border-color: #9f7d50;
  background: #f9f2e6;
  color: #6a4f2e;
}

.product-favorite-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-favorite-form {
  margin: 0;
}

.brand-chip-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  text-decoration: none;
  color: #493f35;
  font-weight: 600;
  font-size: 0.9rem;
}

.brand-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.brand-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.brand-tile__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f4efe8, #f9f5ee);
  color: #746b60;
}

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

.brand-tile__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.brand-tile__name {
  margin: 0;
  font-size: 1.08rem;
}

.brand-tile__link {
  text-decoration: none;
  color: var(--accent-ink);
  font-weight: 700;
}

.brand-banner {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.brand-banner__media {
  width: 100%;
  aspect-ratio: 16 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f4eee5, #f9f4ec);
  color: #776e64;
}

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

.brand-banner__content {
  padding: 20px;
}

.brand-banner__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.brand-banner__description {
  margin: 8px 0 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: #fdfaf6;
  padding: 24px;
  text-align: center;
}

.empty-state__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.empty-state__text {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.empty-state__actions {
  margin-top: 14px;
}

.pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: #3f352b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-link:hover {
  border-color: var(--accent);
}

.page-link.active {
  border-color: #1c1612;
  background: #1c1612;
  color: #fff;
}

.page-link.disabled {
  color: #9d9388;
  background: #f7f1e9;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.back-link:hover {
  color: var(--ink);
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-gallery-column {
  min-width: 0;
}

.product-gallery {
  display: block;
}

.product-gallery__frame {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.product-main-image {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f9f5ef, #fdfaf6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(216, 202, 183, 0.35);
  color: #73695f;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.product-main-image img {
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.product-thumbnail-btn {
  display: inline-flex;
  padding: 0;
  border: 1px solid rgba(216, 202, 183, 0.55);
  border-radius: 10px;
  background: #fbf8f4;
  width: 72px;
  height: 72px;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  overflow: hidden;
}

.product-thumbnail-btn:hover {
  border-color: #1f1a15;
  transform: translateY(-1px);
}

.product-thumbnail-btn.is-active {
  border-color: #1f1a15;
  box-shadow: 0 6px 14px rgba(31, 26, 21, 0.16);
  background: #fff;
}

.product-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #faf7f2;
  padding: 7px;
  border-radius: 0;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(216, 202, 183, 0.35);
  background: linear-gradient(180deg, #f9f5ef, #fdfaf6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.detail-main-image img {
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.detail-thumbs img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(216, 202, 183, 0.55);
  background: #fbf8f4;
  padding: 7px;
  object-fit: contain;
}

.product-info {
  max-width: 500px;
  display: grid;
  gap: 14px;
}

.product-brand {
  margin: 0;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.16;
}

.product-price {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 22px;
  font-weight: 600;
  color: #2f251d;
}

.product-price__prefix {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.price-current {
  color: #2f251d;
  font-weight: 700;
}

.product-short-description {
  margin: 0;
  color: #4b4137;
  line-height: 1.7;
}

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

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-option {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  background: #fff;
  min-width: 210px;
}

.variant-option:hover {
  border-color: black;
}

.variant-option__title {
  margin: 0;
  font-weight: 700;
  color: #2f251d;
}

.variant-option__meta {
  margin: 4px 0 0;
  color: #5a4e42;
  font-size: 0.92rem;
}

.variant-price-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.variant-price-current {
  color: #2f251d;
  font-weight: 700;
  font-size: 0.98rem;
}

.variant-option__form {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 84px auto;
  align-items: center;
  gap: 8px;
}

.variant-option__form label {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.variant-option__form input[type="number"] {
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}

.product-detail--premium {
  align-items: start;
  gap: 24px;
}

.surface-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.product-detail__visual {
  padding: 18px;
}

.product-detail__content {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-image-preview {
  width: 84px;
  height: 84px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
  object-fit: contain;
  padding: 6px;
}

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

.detail-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-divider {
  color: #9e917f;
}

.detail-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.2;
}

.detail-price {
  margin: 0;
  color: #2f251d;
  font-weight: 700;
  font-size: 1.28rem;
}

.detail-summary {
  margin: 0;
  color: #463c32;
  line-height: 1.75;
}

.detail-description-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fefbf6;
  padding: 14px;
}

.detail-block {
  margin-top: 14px;
}

.detail-block__title {
  margin: 0 0 4px;
  color: #2d251d;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-block__text {
  margin: 0;
  color: #51473d;
  white-space: pre-wrap;
}

.variant-stack {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.variant-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fdf9f3;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.variant-panel__header {
  display: grid;
  gap: 4px;
}

.variant-panel__hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.variant-grid {
  display: grid;
  gap: 10px;
}

.variant-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.variant-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.variant-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fefcf8;
}

.variant-name {
  margin: 0;
  font-weight: 700;
}

.variant-price {
  margin: 0;
  font-weight: 700;
  color: #2d241b;
}

.variant-meta {
  margin: 0;
  color: #4d4339;
  font-size: 0.92rem;
}

.variant-card__actions {
  display: grid;
  grid-template-columns: auto 88px auto;
  align-items: center;
  gap: 8px;
}

.variant-card__actions label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.variant-card__actions input[type="number"] {
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px 8px;
  font: inherit;
}

.variant-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-actions label {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.variant-actions input[type="number"] {
  width: 86px;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 8px;
}

.variant-login {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
}

.variant-login:hover {
  text-decoration: underline;
}

.detail-cta-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  color: #584d42;
  background: #f9f4ec;
  font-size: 0.92rem;
}

.detail-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.detail-attribute {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfaf5;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
}

.detail-attribute__label {
  margin: 0;
  color: #6d6051;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.detail-attribute__value {
  margin: 0;
  color: #3f342a;
  white-space: pre-wrap;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.flow-main {
  min-width: 0;
}

.flow-side {
  min-width: 0;
}

.stack-sm {
  display: grid;
  gap: 10px;
}

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

.btn-block {
  width: 100%;
}

.btn-danger {
  background: #fff;
  border-color: #d7a8a2;
  color: #9d2d20;
}

.btn-danger:hover {
  border-color: #c57f76;
}

.summary-total {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #2e241a;
}

.summary-total strong {
  font-size: 1.2rem;
}

.muted-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cart-item-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
}

.cart-item-card__main {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
}

.cart-item-card__media {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f6f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #72685d;
  font-size: 0.8rem;
}

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

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

.cart-item-card__name {
  margin: 0;
  font-size: 1rem;
}

.cart-item-card__name a {
  text-decoration: none;
}

.cart-item-card__name a:hover {
  color: var(--accent-ink);
}

.cart-item-card__meta {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cart-item-card__side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
}

.cart-item-card__qty {
  margin: 0;
  color: #4b4136;
  font-size: 0.9rem;
}

.cart-item-card__subtotal {
  margin: 0;
  font-weight: 700;
  font-size: 1.12rem;
  color: #2c231a;
}

.cart-item-card__actions {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.cart-item-card__form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-card__form label {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.cart-item-card__form input[type="number"] {
  width: 80px;
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 8px;
}

.address-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 5px;
}

.address-card--selectable {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.address-card__control {
  padding-top: 2px;
}

.address-card__content {
  display: grid;
  gap: 4px;
}

.address-card__control input {
  margin: 0;
}

.address-card__top {
  margin: 0;
  color: #3f352a;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.address-card__line {
  margin: 0;
  color: var(--ink-soft);
  word-break: break-word;
}

.checkout-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.order-summary-card {
  display: grid;
  gap: 10px;
}

.order-summary-list {
  display: grid;
  gap: 10px;
}

.order-summary-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfaf5;
  padding: 10px 12px;
}

.order-summary-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.order-summary-item__head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.order-summary-item__head p {
  margin: 0;
  font-weight: 700;
}

.order-summary-item__meta {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.status-pill--default {
  background: #eff6ff;
  border-color: #c7d9ef;
  color: #365b80;
}

.status-pill--pending {
  background: #fff7e8;
  border-color: #f0d8aa;
  color: #8b6315;
}

.status-pill--paid {
  background: #ecfdf5;
  border-color: #bde8ce;
  color: #1f6f4a;
}

.status-pill--preparing {
  background: #fff8ea;
  border-color: #efd9ad;
  color: #825d16;
}

.status-pill--shipped {
  background: #eef2ff;
  border-color: #ccd4fb;
  color: #4454b2;
}

.status-pill--delivered {
  background: #e9fbf2;
  border-color: #bfe7d4;
  color: #226b53;
}

.status-pill--cancelled {
  background: #fff1f1;
  border-color: #efc9c9;
  color: #9f3939;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdf9f3;
  padding: 12px;
}

.stat-card__label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stat-card__value {
  margin: 4px 0 0;
  font-size: 1.38rem;
  font-weight: 700;
}

.actions-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.order-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.order-row__meta {
  display: grid;
  gap: 4px;
}

.order-row__meta--main {
  align-content: start;
}

.order-row__meta--side {
  justify-items: end;
  align-content: start;
  gap: 8px;
}

.order-row__header {
  display: grid;
  gap: 2px;
}

.order-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.order-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.order-row__title {
  margin: 0;
  font-weight: 700;
}

.order-row__sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.history-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfaf5;
  padding: 14px;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.history-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.history-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.history-item__title {
  margin: 0;
  color: #352b21;
  font-weight: 700;
}

.history-item__meta {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.order-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-fact {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfaf5;
  padding: 10px 12px;
}

.order-fact__label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-fact__value {
  margin: 6px 0 0;
  font-weight: 700;
  color: #2f261d;
}

.order-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.order-doc-item {
  margin: 0;
}

.reviews-section {
  margin-top: 18px;
}

.review-summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdf9f3;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-summary__score {
  margin: 0;
  min-width: 54px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  color: #2f251d;
}

.review-summary__details {
  display: grid;
  gap: 4px;
}

.review-stars {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.review-star {
  color: #d4c7b3;
  font-size: 1rem;
}

.review-star.is-filled {
  color: #b49053;
}

.review-summary__count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.review-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.review-form__grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px);
  gap: 10px;
}

.review-rating-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.review-rating-legend {
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-rating-hint {
  margin: 0;
  color: #6b5f52;
  font-size: 0.86rem;
}

.rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 2px;
}

.rating-stars input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rating-stars label {
  cursor: pointer;
  color: #d4c7b3;
  font-size: 1.55rem;
  line-height: 1;
  transition: color 120ms ease, transform 120ms ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #c7a267;
  transform: translateY(-1px);
}

.rating-stars input[type="radio"]:checked ~ label {
  color: #b49053;
}

.rating-stars input[type="radio"]:focus-visible + label {
  outline: 2px solid rgba(180, 144, 83, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.review-login-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.review-login-note a {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
}

.review-login-note a:hover {
  text-decoration: underline;
}

.reviews-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfaf5;
  padding: 12px;
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-card__author {
  margin: 0;
  color: #342a20;
  font-weight: 700;
}

.review-card__meta {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.review-card__comment {
  margin: 10px 0 0;
  color: #473d33;
  white-space: pre-wrap;
}

.review-card__comment--empty {
  color: var(--ink-soft);
  font-style: italic;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(1180px, 100% - 26px);
  }

  .top-nav {
    min-height: 72px;
  }

  .page-hero {
    padding: 24px;
  }

  .toolbar-grid--compact {
    grid-template-columns: 1fr;
  }

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

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-main-image {
    max-width: 100%;
  }

  .product-info {
    max-width: 100%;
  }

  .variant-option {
    width: 100%;
  }

  .variant-option__form {
    grid-template-columns: 1fr;
  }

  .product-detail__visual,
  .product-detail__content {
    padding: 16px;
  }

  .variant-card__actions {
    grid-template-columns: 1fr;
  }

  .variant-card__actions input[type="number"] {
    width: 100%;
  }

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

  .cart-item-card {
    grid-template-columns: 1fr;
  }

  .cart-item-card__side {
    justify-items: start;
  }

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

  .review-form__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1200px) {
  .product-grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 256px));
  }
}

@media (max-width: 900px) {
  .product-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 256px));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .product-grid--catalog {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: #17120f;
  border-color: #17120f;
  color: #fff;
}

.account-panel {
  display: grid;
  gap: 12px;
}

.account-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

.address-list__item {
  display: grid;
  gap: 8px;
}

.address-list__actions {
  display: flex;
  justify-content: flex-end;
}

.form-panel {
  max-width: 760px;
  margin: 0 auto;
}

.auth-panel--sm {
  max-width: 520px;
}

.auth-panel--md {
  max-width: 620px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.form-grid__full {
  grid-column: 1 / -1;
}

.field-help {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.checkbox-field__label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.checkbox-field__label input {
  margin-top: 2px;
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .page-shell {
    width: min(1180px, 100% - 20px);
  }

  .site-main {
    padding: 22px 0 40px;
  }

  .top-nav {
    min-height: 64px;
    position: relative;
    gap: 12px;
  }

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

  .brand-mark__tag {
    font-size: 0.66rem;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 35;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 8px;
    gap: 6px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .js .nav-links.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .js .nav-link,
  .js .nav-link-button {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 0.96rem;
  }

  .js .nav-logout-form {
    width: 100%;
  }

  .section-card,
  .surface-card,
  .catalog-toolbar {
    padding: 16px;
    border-radius: 14px;
  }

  .page-hero {
    padding: 18px 16px;
    margin-bottom: 16px;
  }

  .page-hero__title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .page-hero__subtitle {
    margin-top: 10px;
    font-size: 0.96rem;
  }

  .section-title {
    font-size: 1.28rem;
  }

  .btn {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .brand-chip {
    min-height: 44px;
  }

  .page-link {
    min-width: 44px;
    height: 44px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .toolbar-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .toolbar-actions .btn {
    width: 100%;
  }

  .product-grid {
    gap: 12px;
  }

  .product-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card__media {
    width: calc(100% - 12px);
    margin-top: 6px;
  }

  .product-card__body {
    padding: 10px;
    gap: 6px;
  }

  .product-card__name {
    min-height: 0;
  }

  .product-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-card__price-block {
    width: 100%;
  }

  .product-card__link {
    min-height: 44px;
    font-size: 0.8rem;
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .product-card__actions {
    width: 100%;
    justify-content: stretch;
  }

  .product-card__wishlist-form {
    width: 100%;
  }

  .product-card__wishlist-btn,
  .product-card__wishlist-link {
    min-height: 44px;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }

  .product-thumbnails {
    margin-top: 8px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-thumbnail-btn {
    flex: 0 0 auto;
  }

  .product-thumbnail-btn {
    width: 68px;
    height: 68px;
  }

  .product-info {
    gap: 12px;
  }

  .product-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .product-price {
    font-size: 1.32rem;
  }

  .detail-attributes {
    grid-template-columns: 1fr;
  }

  .variant-option {
    padding: 12px;
    border-radius: 14px;
    min-width: 0;
  }

  .variant-option__form input[type="number"],
  .variant-card__actions input[type="number"],
  .cart-item-card__form input[type="number"] {
    min-height: 44px;
    width: 100%;
  }

  .variant-option__form button,
  .variant-card__actions button {
    min-height: 44px;
    width: 100%;
  }

  .flow-grid--side-first-mobile .flow-side {
    order: -1;
  }

  .flow-grid--side-first-mobile .flow-main {
    order: 1;
  }

  .actions-row {
    margin-top: 10px;
    display: grid;
    gap: 8px;
  }

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

  .cart-item-card {
    padding: 12px;
    gap: 10px;
  }

  .cart-item-card__main {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }

  .cart-item-card__media {
    width: 78px;
    height: 78px;
  }

  .cart-item-card__actions {
    gap: 8px;
  }

  .cart-item-card__actions > form {
    width: 100%;
  }

  .cart-item-card__form {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cart-item-card__form .btn,
  .cart-item-card__actions > form .btn {
    width: 100%;
  }

  .checkout-actions .btn {
    min-height: 44px;
  }

  .address-card--selectable {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .address-card__control input {
    width: 18px;
    height: 18px;
  }

  .order-row__meta:last-child {
    justify-items: start;
    gap: 6px;
  }

  .order-row__meta--side {
    justify-items: start;
  }

  .order-row__actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .review-summary {
    padding: 10px;
    gap: 10px;
  }

  .rating-stars label {
    font-size: 1.75rem;
  }

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

  .section-header {
    align-items: flex-start;
  }

  .account-panel__header {
    align-items: flex-start;
  }

  .account-panel__header .inline-actions {
    width: 100%;
  }

  .address-list__actions {
    justify-content: stretch;
  }

  .address-list__actions .btn {
    width: 100%;
  }

  .order-summary-item__head {
    align-items: flex-start;
  }

  .order-summary-item__head h3 {
    min-width: 0;
    word-break: break-word;
  }

  .order-summary-item__head p {
    margin-left: auto;
  }

  .form-panel form > .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(1180px, 100% - 16px);
  }

  .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
  }

  .section-header .btn {
    width: 100%;
  }

  .inline-actions {
    width: 100%;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .inline-actions .btn {
    width: 100%;
  }

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

  .brand-mark__tag {
    display: none;
  }
}
