:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #10201a;
  background: #f5f7f4;
  --green: #1f7a51;
  --green-strong: #145c3c;
  --ink: #10201a;
  --muted: #63736b;
  --line: #d9e1da;
  --surface: #ffffff;
  --soft: #eef4ef;
  --warn: #fff4d8;
  --shadow: 0 16px 42px rgba(20, 45, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f5f7f4;
}

body:has(.mobile-bottom-nav) {
  padding-bottom: 0;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto minmax(200px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 208px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #17211c;
  color: #fff;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.brand-logo.brand-logo-7cig {
  padding: 0;
  object-fit: cover;
  object-position: center 51%;
}

.brand strong,
.brand small,
.metric span,
.metric strong {
  display: block;
}

.brand small,
.eyebrow,
.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a,
.nav button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.nav a.router-link-active,
.nav button.is-active,
.nav a:hover,
.nav button:hover {
  background: var(--soft);
  color: var(--green-strong);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.search span {
  white-space: nowrap;
}

.top-actions,
.row-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.primary,
.ghost,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  padding: 0 16px;
}

.ghost,
.button,
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.compact {
  min-height: 36px;
  padding: 0 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e0f2e9;
  color: var(--green-strong);
  font-weight: 900;
}

.hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 54px 24px;
  background:
    linear-gradient(90deg, rgba(12, 24, 17, 0.82), rgba(12, 24, 17, 0.42)),
    url("https://images.unsplash.com/photo-1512699355324-f07e3106dae5?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #fff;
}

.commerce-hero {
  min-height: 450px;
  display: grid;
  align-items: end;
  padding: 54px 24px;
  background:
    linear-gradient(90deg, rgba(12, 24, 17, 0.86), rgba(12, 24, 17, 0.5)),
    url("https://images.unsplash.com/photo-1512699355324-f07e3106dae5?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #fff;
}

.commerce-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: end;
}

.hero-copy-block {
  min-width: 0;
}

.commerce-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.commerce-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.commerce-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
}

.payment-hero-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.payment-hero-card h2 {
  margin: 0;
  font-size: 24px;
}

.payment-hero-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

.payment-card-head {
  display: grid;
  gap: 8px;
}

.payment-card-head strong {
  font-size: 26px;
  line-height: 1.18;
}

.pay-flow {
  display: grid;
  gap: 8px;
}

.pay-flow article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.pay-flow b {
  display: grid;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #132019;
}

.hero-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-category-row button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
}

.hero-category-row span {
  color: #ffe7b9;
}

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

.hero-shelf a {
  display: grid;
  grid-template-rows: 48px auto;
  gap: 10px;
  min-height: 106px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.16);
}

.shelf-thumb {
  width: 100%;
  height: 48px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.hero-shelf strong,
.hero-shelf small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-shelf small {
  color: #ffe7b9;
  font-weight: 900;
}

.hero-inner,
.page,
.section {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.intl-topbar {
  grid-template-columns: 1fr auto 1fr;
  min-height: 60px;
  padding: 8px 30px;
}

.intl-topbar .top-actions {
  grid-column: 3;
  justify-content: end;
}

.intl-topbar .brand {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  gap: 0;
}

.intl-topbar .brand-mark,
.intl-topbar .brand-logo {
  display: none;
}

.intl-topbar .brand strong {
  font-size: 28px;
  letter-spacing: 12px;
  font-weight: 900;
}

.intl-topbar .brand small {
  display: none;
}

.intl-page {
  min-height: calc(100vh - 72px);
  background: #fff;
  color: #050505;
}

.intl-page .primary {
  min-height: 44px;
  border-color: #050505;
  background: #050505;
  color: #fff;
  padding: 0 20px;
  text-transform: uppercase;
  font-size: 13px;
}

.intl-hero {
  min-height: clamp(560px, 72vh, 780px);
  display: grid;
  align-items: center;
  padding: 70px 8vw;
  background-position: center;
  background-size: cover;
  color: #050505;
}

.intl-hero-inner {
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 680px) minmax(260px, 1fr);
  gap: 30px;
  align-items: end;
}

.intl-copy {
  width: min(680px, 100%);
}

.intl-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.intl-copy p:not(.eyebrow) {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
}

.intl-page .eyebrow {
  color: #050505;
  font-size: 13px;
}

.intl-lookbook {
  justify-self: end;
  width: min(320px, 100%);
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.intl-lookbook span,
.intl-lookbook strong,
.intl-lookbook p {
  display: block;
}

.intl-lookbook span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intl-lookbook strong {
  margin-top: 8px;
  font-size: 22px;
}

.intl-lookbook p {
  margin: 8px 0 0;
  color: #3e4742;
  line-height: 1.55;
}

.intl-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 30px 0 8px;
  border-bottom: 1px solid #ececec;
}

.intl-info-grid article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid #ececec;
  font-weight: 900;
}

.intl-info-grid article:last-child {
  border-right: 0;
}

.intl-info-grid span {
  color: #4f5752;
}

.intl-info-grid strong {
  font-size: 22px;
}

.intl-showcase {
  padding: 28px 0 16px;
}

.intl-showcase .section-head {
  align-items: end;
  margin: 18px 0 22px;
}

.intl-showcase h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
}

.intl-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.intl-product-card {
  min-width: 0;
}

.intl-product-image {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background-color: #f1f1f1;
  background-position: center;
  background-size: cover;
}

.intl-product-body {
  display: grid;
  gap: 6px;
  padding: 12px 2px 6px;
}

.intl-product-body span {
  color: #69716c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intl-product-body strong {
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
}

.intl-product-body small {
  color: #69716c;
}

.intl-product-body p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 0;
}

.intl-product-body b {
  font-size: 18px;
}

.intl-product-body del {
  color: #8a928d;
}

.intl-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 24px 0 52px;
}

.intl-panel article {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  line-height: 1.65;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.strip,
.grid,
.product-layout,
.admin-grid {
  display: grid;
  gap: 16px;
}

.strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 24px 0;
}

.compact-strip .metric {
  min-height: 86px;
}

.metric,
.panel,
.product-card,
.filter,
.photo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric,
.panel-body,
.filter {
  padding: 16px;
}

.metric strong {
  margin-top: 8px;
  font-size: 24px;
}

.product-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  padding: 16px 0 36px;
}

.filter {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
}

.filter button {
  display: flex;
  justify-content: space-between;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  align-items: center;
}

.filter button.is-active {
  border-color: var(--green);
  color: var(--green-strong);
  font-weight: 900;
}

.product-toolbar,
.inline-field {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-toolbar select,
.inline-field select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 18px 0;
}

.section-head h2,
.panel h2,
.feedback-head h1 {
  margin: 0;
}

.panel h2 {
  white-space: nowrap;
}

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

.smoke-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
}

.product-image {
  position: relative;
  display: block;
  height: 210px;
  background: linear-gradient(135deg, #24362c, #7e9165);
  background-size: cover;
  background-position: center;
}

.product-badge,
.stock-pill {
  position: absolute;
  top: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.product-badge {
  left: 12px;
  background: #fff;
  color: var(--green-strong);
}

.stock-pill {
  right: 12px;
  background: #e8f5ed;
  color: var(--green-strong);
}

.stock-pill.warning {
  background: #fff1d2;
  color: #8a570a;
}

.stock-pill.danger {
  background: #ffe2df;
  color: #8b1d13;
}

.product-card .body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.product-card .body > strong {
  min-height: 44px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}

.price-row small {
  color: var(--muted);
  font-weight: 800;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--green-strong);
}

.home-catalog {
  padding-top: 22px;
}

.home-catalog-head {
  align-items: center;
}

.catalog-banner,
.payment-focus {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 13px 14px;
}

.catalog-banner strong {
  font-size: 18px;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.catalog-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.mobile-catalog-controls,
.mobile-card-actions,
.catalog-sheet-layer {
  display: none;
}

.variant-pills,
.variant-selector {
  display: grid;
  gap: 8px;
}

.variant-pills {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.variant-pills button,
.variant-selector button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.variant-pills button {
  min-height: 34px;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-pills button.is-active,
.variant-selector button.is-active {
  border-color: var(--green);
  background: var(--soft);
  color: var(--green-strong);
}

.variant-selector {
  margin: 4px 0;
}

.variant-selector button {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.variant-selector button span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.variant-selector button.is-disabled {
  opacity: 0.55;
}

.payment-focus {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-top: 24px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(31, 122, 81, 0.1), rgba(209, 138, 29, 0.08)),
    #fff;
}

.payment-focus h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.12;
}

.payment-focus-steps {
  display: grid;
  gap: 10px;
}

.payment-focus-steps article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(16, 32, 26, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.payment-focus-steps strong {
  display: grid;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #10201a;
  color: #fff;
}

.delivery-band {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  margin: 12px auto 44px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.delivery-grid,
.feedback-grid,
.form-grid,
.metrics {
  display: grid;
  gap: 14px;
}

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

.delivery-grid article {
  padding: 14px;
  border-radius: 8px;
  background: #f2f5f1;
}

.feedback-page {
  padding: 28px 0 48px;
}

.feedback-head {
  padding: 26px 0 18px;
}

.feedback-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.photo-card {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-page,
.checkout-page {
  padding: 28px 0 48px;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.product-detail-image {
  min-height: 520px;
  background-size: cover;
  background-position: center;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
}

.notice {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #ead3a4;
  border-radius: 8px;
  background: var(--warn);
  color: #7a520a;
  font-weight: 800;
}

.checkout-shell .panel-body {
  display: grid;
  gap: 14px;
}

.checkout-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.checkout-form-block,
.checkout-payment-card,
.discount-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.checkout-form-block,
.checkout-payment-card {
  padding: 14px;
}

.checkout-payment-card {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(31, 122, 81, 0.09), transparent 160px),
    #fff;
}

.checkout-payment-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.checkout-total-lines {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.checkout-total-lines span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f2f5f1;
  color: var(--muted);
  font-weight: 800;
}

.checkout-total-lines strong {
  color: var(--ink);
}

.discount-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
}

.discount-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.discount-box input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.discount-box .muted {
  grid-column: 1 / -1;
}

.search-input {
  min-height: 42px;
  min-width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.track-search {
  display: grid;
  grid-template-columns: minmax(280px, 620px) auto;
  gap: 10px;
  justify-content: start;
  align-items: center;
}

.track-search .search-input {
  width: 100%;
  min-width: 0;
}

.track-login-link {
  margin-top: 10px;
}

.track-result-list {
  display: grid;
  gap: 8px;
}

.track-result-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.8fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.track-result-list > button:hover,
.track-result-list > button.is-active {
  border-color: var(--green);
  background: var(--soft);
}

.track-result-list span,
.track-result-list strong,
.track-result-list small {
  display: block;
  min-width: 0;
}

.track-result-list small,
.track-customer-line {
  color: var(--muted);
}

.track-result-list .status {
  display: inline-flex;
  justify-self: end;
}

.track-customer-line {
  margin: 0 0 12px;
  font-weight: 800;
}

.cart-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: none;
  justify-content: end;
  background: rgba(11, 19, 15, 0.36);
}

.cart-drawer-layer.is-open {
  display: flex;
}

.cart-drawer {
  width: min(460px, 100vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -24px 0 60px rgba(16, 32, 26, 0.18);
}

.cart-drawer header,
.cart-drawer footer {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-drawer header strong,
.cart-drawer header span,
.cart-added strong,
.cart-added small {
  display: block;
}

.cart-drawer header span,
.cart-added span,
.cart-added small,
.cart-drawer-items span,
.cart-drawer-items small {
  color: var(--muted);
}

.cart-added {
  margin: 12px 16px 0;
  padding: 12px;
  border: 1px solid rgba(31, 122, 81, 0.22);
  border-radius: 8px;
  background: var(--soft);
}

.cart-added span {
  font-size: 12px;
  font-weight: 900;
}

.cart-drawer-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

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

.cart-drawer-items strong,
.cart-drawer-items span,
.cart-drawer-items small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 30px 32px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qty-control button {
  min-height: 32px;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.qty-control b {
  text-align: center;
}

.cart-drawer footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-drawer footer span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.cart-drawer footer strong {
  color: var(--ink);
  font-size: 22px;
}

.timeline {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.form-grid textarea {
  min-height: 96px;
  padding: 12px;
}

.form-grid .code-textarea {
  min-height: 190px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.form-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.form-message.is-error {
  border-color: #e3b7b7;
  background: #fff1f1;
  color: #922f2f;
}

.form-message.is-success {
  border-color: #b8d8c6;
  background: #edf8f1;
  color: #17603f;
}

.product-form-message {
  margin: 12px 16px 0;
}

.wide {
  grid-column: 1 / -1;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  background: var(--warn);
  color: #7a520a;
  padding: 4px 9px;
  font-weight: 900;
}

.status.warning {
  background: #fff1d2;
  color: #8a570a;
}

.status.danger {
  background: #ffe2df;
  color: #8b1d13;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sidebar .brand {
  min-width: 0;
  margin-bottom: 22px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  padding: 0 12px;
  text-decoration: none;
  font-weight: 800;
}

.sidebar-nav a.router-link-active {
  background: var(--soft);
  color: var(--green-strong);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

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

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

.panel {
  margin-bottom: 16px;
}

.panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.photo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.category-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.category-manager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.category-admin-grid article {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.category-admin-grid article.is-muted {
  opacity: 0.66;
  background: #f1f3f0;
}

.category-admin-grid span {
  color: var(--muted);
  font-size: 13px;
}

.category-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.category-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.category-editor input,
.category-editor select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-filter-bar input,
.admin-filter-bar select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.order-ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.order-ops-strip article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

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

.order-ops-strip span {
  color: var(--muted);
  font-weight: 800;
}

.order-ops-strip strong {
  margin-top: 8px;
  font-size: 22px;
}

.promo-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

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

.discount-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.discount-list article.is-muted {
  opacity: 0.62;
}

.discount-list strong,
.discount-list span {
  display: block;
}

.discount-list span,
.discount-list p {
  color: var(--muted);
}

.discount-list p {
  grid-column: 1 / -1;
  margin: 0;
}

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

.discount-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.discount-editor input,
.discount-editor select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.photo-admin-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.photo-admin-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  background: #eef1ed;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(11, 19, 15, 0.54);
}

.modal-layer.is-open {
  display: grid;
}

.photo-modal {
  max-width: min(900px, 96vw);
  max-height: 88vh;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.photo-modal img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}

.store-alert {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  min-height: 38px;
  padding: 8px 18px;
  background: #f25b3d;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.store-alert span {
  opacity: 0.92;
  font-weight: 700;
}

.store-alert a {
  min-height: 24px;
  border-radius: 999px;
  background: #fff;
  color: #d94128;
  padding: 2px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.recent-viewed {
  margin-top: 18px;
}

.recent-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.recent-strip button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.recent-strip button:hover {
  border-color: rgba(31, 122, 81, 0.4);
  background: #f8faf7;
}

.recent-thumb {
  height: 54px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.recent-strip strong,
.recent-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.quick-view-layer {
  z-index: 62;
}

.quick-view-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  width: min(920px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.quick-view-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.quick-view-image {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.quick-view-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
}

.quick-view-copy h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.quick-view-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  min-height: 74px;
  border-radius: 8px;
  background: #f5f7f4;
  padding: 14px;
}

.quick-view-price strong {
  font-size: 28px;
}

.quick-view-price span {
  color: var(--muted);
  font-weight: 800;
}

.compact-variants {
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.quick-view-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-view-actions .primary,
.quick-view-actions .ghost {
  min-height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.batch-toolbar span {
  color: var(--muted);
  font-weight: 800;
  margin-right: auto;
}

.batch-toolbar button:disabled,
.quick-view-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mobile-order-page {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 122, 81, 0.12), transparent 34%),
    #eef2ed;
  padding: 18px;
}

.mo-app {
  position: relative;
  width: min(430px, 100%);
  min-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(19, 32, 25, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(19, 32, 25, 0.18);
}

.mo-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.mo-brand {
  display: inline-flex;
  gap: 9px;
  min-width: 0;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.mo-brand img {
  width: 50px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.mo-brand strong,
.mo-brand small,
.mo-cart-summary strong,
.mo-cart-summary small,
.mo-copy span,
.mo-copy small,
.mo-sheet-product small {
  display: block;
}

.mo-brand small,
.mo-copy span,
.mo-copy small,
.mo-products-head span,
.mo-products-head small,
.mo-cart-summary small,
.mo-sheet-product small,
.mo-variant-list small {
  color: var(--muted);
}

.mo-track {
  align-self: center;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.mo-search {
  grid-column: 1 / -1;
  position: relative;
}

.mo-search span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mo-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9f6;
  padding: 0 14px 0 52px;
  color: var(--ink);
  font-weight: 800;
}

.mo-store {
  display: grid;
  gap: 12px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(135deg, rgba(20, 34, 27, 0.92), rgba(31, 122, 81, 0.74)),
    url("https://images.unsplash.com/photo-1512699355324-f07e3106dae5?auto=format&fit=crop&w=900&q=80") center / cover;
  color: #fff;
}

.mo-store p,
.mo-store h1 {
  margin: 0;
}

.mo-store p {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.mo-store h1 {
  font-size: 24px;
  line-height: 1.15;
}

.mo-store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mo-store-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.mo-menu {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  padding-bottom: 92px;
}

.mo-categories {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 1px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  background: #edf2ed;
  scrollbar-width: none;
}

.mo-categories button {
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 8px 8px 10px;
  text-align: left;
  font-weight: 900;
}

.mo-categories button.is-active {
  border-left-color: var(--green);
  background: #fff;
  color: var(--ink);
}

.mo-categories b {
  color: var(--green);
  font-size: 12px;
}

.mo-products {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px 10px 0;
}

.mo-products-head {
  position: sticky;
  top: 102px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.mo-products-head strong {
  display: block;
  font-size: 18px;
}

.mo-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 98px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mo-thumb {
  width: 74px;
  height: 78px;
  border: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  padding: 5px;
  display: flex;
  align-items: flex-start;
}

.mo-thumb span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5f2e9;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.mo-thumb span.warning {
  background: #fff4d8;
  color: #8a5a00;
}

.mo-thumb span.danger {
  background: #fee2e2;
  color: #b42318;
}

.mo-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mo-title {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.mo-copy span,
.mo-copy small,
.mo-cart-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mo-price-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mo-price-row strong {
  color: var(--green);
  font-size: 14px;
}

.mo-price-row em {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mo-add {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(31, 122, 81, 0.22);
}

.mo-add:disabled {
  opacity: 0.45;
}

.mo-cart-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  width: min(398px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(19, 32, 25, 0.12);
  border-radius: 999px;
  background: #132019;
  color: #fff;
  box-shadow: 0 18px 42px rgba(19, 32, 25, 0.34);
  transform: translateX(-50%);
}

.mo-cart-bar.is-empty {
  background: #6c766f;
}

.mo-cart-summary {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.mo-cart-summary b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
}

.mo-cart-summary span {
  min-width: 0;
}

.mo-cart-summary small {
  max-width: 170px;
  color: rgba(255, 255, 255, 0.66);
}

.mo-checkout {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.mo-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(19, 32, 25, 0.36);
}

.mo-variant-sheet {
  position: relative;
  width: min(430px, 100%);
  max-height: 78vh;
  display: grid;
  gap: 12px;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  background: #fff;
  padding: 16px;
  box-shadow: 0 -24px 56px rgba(19, 32, 25, 0.22);
}

.mo-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.mo-sheet-product {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 42px;
}

.mo-sheet-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.mo-variant-list {
  display: grid;
  gap: 8px;
}

.mo-variant-list button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.mo-variant-list button.is-active {
  border-color: var(--green);
  background: var(--soft);
}

.mo-variant-list button.is-disabled {
  opacity: 0.5;
}

.mo-variant-list b {
  color: var(--green);
}

.mo-sheet-add {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.mo-sheet-add:disabled {
  opacity: 0.5;
}

.support-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.mobile-bottom-nav,
.admin-mobile-nav {
  display: none;
}

.age-nudge {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 44;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: min(560px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.age-nudge .primary {
  flex: 0 0 auto;
}

.age-nudge strong,
.age-nudge span {
  display: block;
}

.age-nudge span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.support-fab {
  min-width: 118px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.support-panel {
  display: none;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-widget.is-open .support-panel {
  display: grid;
}

.support-panel header,
.support-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.support-panel header span,
.support-message span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.support-messages {
  display: grid;
  max-height: 430px;
  min-height: 240px;
  gap: 10px;
  overflow: auto;
  padding: 12px;
  background: #f8faf7;
}

.support-message {
  max-width: 82%;
}

.support-message.is-customer {
  justify-self: end;
}

.support-message p {
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff;
  line-height: 1.5;
}

.support-message.is-customer p {
  background: var(--green);
  color: #fff;
}

.support-message img {
  display: block;
  max-width: min(300px, 100%);
  max-height: 260px;
  border-radius: 8px;
  object-fit: cover;
}

.support-compose {
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.support-compose input {
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.support-admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
}

.support-thread-list {
  display: grid;
  gap: 6px;
  max-height: 690px;
  overflow: auto;
}

.support-thread-list button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.support-thread-list button.is-active {
  border-color: var(--green);
  background: var(--soft);
}

.support-thread-list span,
.support-thread-list small,
.support-admin-meta span {
  color: var(--muted);
  font-size: 12px;
}

.support-admin-meta {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.support-order-section {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.support-order-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.support-order-box header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.support-order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.support-order-grid div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f2f5f1;
}

.support-order-grid span,
.support-order-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-thread {
  max-height: 410px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-list {
  display: grid;
  gap: 14px;
}

.bar {
  height: 12px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 999px;
  background: #edf1ea;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.login-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
}

body:has(.admin-shell),
body:has(.login-wrap) {
  background:
    linear-gradient(180deg, rgba(31, 122, 81, 0.06), transparent 320px),
    #eef2ed;
}

.admin-shell {
  grid-template-columns: 258px minmax(0, 1fr);
  background: #eef2ed;
}

.admin-shell .sidebar {
  border-right: 0;
  background: linear-gradient(180deg, #111a15 0%, #16231c 100%);
  color: #fff;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.admin-shell .sidebar .brand {
  width: 100%;
  color: #fff;
}

.admin-shell .sidebar .brand-mark {
  background: #f7f2e7;
  color: #132019;
}

.admin-shell .sidebar .brand-logo {
  width: 64px;
  height: 46px;
  padding: 2px 4px;
  background: #f7f2e7;
}

.admin-shell .sidebar .brand small {
  color: rgba(255, 255, 255, 0.58);
}

.admin-store-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-store-card span {
  grid-row: 1 / 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d18a1d;
  box-shadow: 0 0 0 4px rgba(209, 138, 29, 0.12);
}

.admin-store-card strong,
.admin-store-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-store-card small {
  color: rgba(255, 255, 255, 0.58);
}

.admin-shell .sidebar-nav {
  gap: 4px;
}

.admin-shell .sidebar-nav a {
  justify-content: space-between;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 10px;
}

.admin-shell .sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-shell .sidebar-nav a.router-link-active {
  background: #eaf4ed;
  color: #123f2b;
}

.admin-shell .sidebar-nav b {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 12px;
}

.admin-shell .sidebar-nav a.router-link-active b {
  background: #cfe8d9;
}

.admin-main {
  padding: 22px 26px 40px;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 18;
  margin: -22px -26px 18px;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(16, 32, 26, 0.08);
  background: rgba(248, 250, 247, 0.9);
  backdrop-filter: blur(16px);
}

.admin-top h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.admin-top .eyebrow {
  margin-bottom: 5px;
  color: #6f7d75;
}

.admin-top-status {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.admin-top-status span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 122, 81, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 122, 81, 0.12), rgba(209, 138, 29, 0.08)),
    #fff;
  box-shadow: 0 12px 30px rgba(20, 45, 31, 0.08);
}

.admin-hero-panel h2 {
  margin: 0;
  font-size: 28px;
}

.admin-hero-panel p:not(.eyebrow) {
  max-width: 660px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-hero-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.admin-shell .panel,
.admin-shell .metric,
.admin-store-card,
.admin-hero-panel {
  box-shadow: 0 12px 30px rgba(20, 45, 31, 0.07);
}

.admin-shell .panel {
  overflow: hidden;
  border-color: rgba(16, 32, 26, 0.11);
  background: rgba(255, 255, 255, 0.96);
}

.admin-shell .panel header {
  min-height: 58px;
  background: #fbfcfa;
}

.admin-shell .panel h2 {
  font-size: 20px;
}

.admin-metrics {
  margin-bottom: 14px;
}

.admin-metrics .metric {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border-color: rgba(16, 32, 26, 0.1);
}

.admin-metrics .metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--green);
}

.admin-metrics .metric span {
  color: var(--muted);
  font-weight: 800;
}

.admin-metrics .metric strong {
  margin-top: 10px;
  font-size: 28px;
}

.admin-metrics .metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.metric-sales::before {
  background: #1f7a51;
}

.metric-orders::before {
  background: #355f9f;
}

.metric-pay::before {
  background: #c47b16;
}

.metric-live::before {
  background: #7a4fa3;
}

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

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

.queue-list a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--ink);
  text-decoration: none;
}

.queue-list a:hover {
  border-color: rgba(31, 122, 81, 0.38);
  background: #eef7f0;
}

.queue-list strong {
  display: grid;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #10201a;
  color: #fff;
}

.queue-list span {
  color: var(--muted);
  font-weight: 800;
}

.admin-shell .table th {
  background: #f5f7f4;
  color: #526159;
  font-size: 12px;
  font-weight: 900;
}

.admin-shell .table td {
  background: #fff;
}

.admin-shell .table tr:hover td {
  background: #fbfcfa;
}

.dense-table th,
.dense-table td {
  padding: 9px 10px;
}

.admin-shell .primary {
  box-shadow: 0 8px 18px rgba(31, 122, 81, 0.16);
}

.admin-shell .ghost,
.admin-shell .button,
.admin-shell .icon-button {
  background: #fff;
}

.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 1060px) {
  .recent-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-view-card {
    grid-template-columns: minmax(220px, 0.75fr) minmax(300px, 1.25fr);
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .search {
    display: none;
  }

  .strip,
  .delivery-band,
  .product-layout,
  .product-detail-shell,
  .category-manager,
  .support-admin-grid,
  .admin-shell,
  .metrics {
    grid-template-columns: 1fr;
  }

  .commerce-hero .hero-inner {
    grid-template-columns: 1fr;
  }

  .payment-hero-card {
    max-width: 560px;
  }

  .filter {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter strong {
    grid-column: 1 / -1;
  }

  .table {
    display: block;
  }

  .table thead {
    display: none;
  }

  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .table td[data-label] {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
  }

  .product-detail-image {
    min-height: 320px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 22;
    height: auto;
    padding: 12px 16px;
  }

  .sidebar .brand {
    margin-bottom: 10px;
  }

  .sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 11px;
  }

  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .store-alert {
    flex-wrap: wrap;
    gap: 6px 10px;
    min-height: 46px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .store-alert span {
    flex-basis: 100%;
    order: 3;
  }

  .recent-strip {
    display: flex;
    overflow-x: auto;
    margin: 0 -14px;
    padding: 0 14px 4px;
    scrollbar-width: none;
  }

  .recent-strip button {
    flex: 0 0 235px;
  }

  .quick-view-card {
    grid-template-columns: 1fr;
    width: min(100%, 94vw);
    max-height: 86vh;
  }

  .quick-view-image {
    min-height: 170px;
  }

  .quick-view-copy {
    gap: 9px;
    padding: 14px;
  }

  .quick-view-copy h2 {
    font-size: 22px;
  }

  .quick-view-price {
    min-height: 58px;
    padding: 10px 12px;
  }

  .quick-view-price strong {
    font-size: 24px;
  }

  .compact-variants {
    max-height: 190px;
  }

  .compact-variants .variant-button {
    padding: 8px 10px;
  }

  .compact-variants .variant-button span {
    font-size: 12px;
  }

  .quick-view-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .batch-toolbar span {
    grid-column: 1 / -1;
  }

  body:has(.mobile-bottom-nav),
  body:has(.admin-mobile-nav) {
    padding-bottom: 72px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 12px;
    min-height: 62px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 52px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .nav {
    margin: 0 -2px;
  }

  .nav a,
  .nav button {
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .top-actions {
    gap: 6px;
    justify-content: end;
  }

  .top-actions .ghost {
    display: none;
  }

  .top-actions .language-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    padding: 0 9px;
  }

  .intl-topbar {
    grid-template-columns: auto 1fr auto;
    min-height: 58px;
    padding: 8px 14px;
  }

  .intl-topbar .brand {
    grid-column: 2;
  }

  .intl-topbar .brand strong {
    font-size: 22px;
    letter-spacing: 8px;
  }

  .intl-topbar .top-actions {
    grid-column: 3;
  }

  .intl-hero {
    min-height: 560px;
    padding: 42px 18px;
    background-position: 62% center;
  }

  .intl-hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .intl-copy h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .intl-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .intl-lookbook {
    justify-self: start;
    width: min(100%, 300px);
    padding: 14px;
  }

  .intl-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 18px;
  }

  .intl-info-grid article {
    border-right: 0;
    border-bottom: 1px solid #ececec;
    padding: 14px 10px;
  }

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

  .intl-product-body strong {
    min-height: 58px;
    font-size: 14px;
  }

  .intl-product-body b {
    font-size: 16px;
  }

  .hero-inner,
  .page,
  .section {
    width: min(100% - 28px, 1440px);
  }

  .hero,
  .commerce-hero {
    min-height: auto;
    padding: 24px 14px 18px;
  }

  .hero h1,
  .commerce-hero h1 {
    max-width: 100%;
    font-size: 36px;
    line-height: 1.08;
  }

  .commerce-hero p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-all;
  }

  .payment-hero-card {
    padding: 12px;
  }

  .payment-hero-card h2 {
    font-size: 18px;
  }

  .compact-strip,
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0;
  }

  .metric {
    min-height: 74px;
    padding: 12px;
  }

  .metric strong {
    font-size: 19px;
    overflow-wrap: anywhere;
  }

  .product-layout {
    padding-top: 8px;
  }

  .filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -14px;
    padding: 0 14px 8px;
    border: 0;
    background: transparent;
    scrollbar-width: none;
  }

  .filter::-webkit-scrollbar {
    display: none;
  }

  .filter strong {
    display: none;
  }

  .filter button {
    flex: 0 0 auto;
    min-height: 36px;
    gap: 8px;
    white-space: nowrap;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    margin: 10px 0 12px;
  }

  .section-head .ghost,
  .section-head .button,
  .section-head select {
    width: 100%;
  }

  .product-toolbar,
  .inline-field {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-image {
    height: 230px;
  }

  .product-card .body {
    gap: 8px;
    padding: 12px;
  }

  .row-actions {
    gap: 7px;
  }

  .row-actions .primary,
  .row-actions .ghost,
  .row-actions .button,
  .row-actions .icon-button {
    flex: 1 1 auto;
  }

  .product-detail-image {
    min-height: 300px;
  }

  .detail-copy h1 {
    font-size: 32px;
  }

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

  .auth-page,
  .checkout-page,
  .feedback-page {
    padding: 16px 0 24px;
  }

  .admin-top,
  .support-order-box header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel header {
    padding: 12px;
  }

  .panel-body,
  .filter {
    padding: 12px;
  }

  .delivery-band {
    padding: 14px;
    margin-bottom: 22px;
  }

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

  .support-widget {
    left: auto;
    right: 12px;
    bottom: 82px;
    width: 86px;
    max-width: 86px;
    justify-items: end;
  }

  .support-widget:not(.is-open) {
    display: none;
  }

  .support-widget.is-open {
    display: grid;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    justify-items: stretch;
  }

  .support-fab {
    width: 86px;
    min-height: 46px;
    font-size: 16px;
  }

  .support-panel {
    width: 100%;
  }

  .age-nudge {
    display: none;
  }

  .age-nudge strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .age-nudge span {
    display: none;
  }

  .age-nudge .primary {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .support-messages {
    max-height: 48vh;
    min-height: 210px;
  }

  .support-compose {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .support-compose .primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mobile-bottom-nav,
  .admin-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 62px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .admin-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button,
  .admin-mobile-nav a {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-bottom-nav a.router-link-active,
  .admin-mobile-nav a.router-link-active {
    color: var(--green-strong);
    background: var(--soft);
  }

  .admin-shell {
    display: block;
  }

  .sidebar {
    padding: 10px 12px;
  }

  .sidebar-nav {
    display: none;
  }

  .admin-main {
    padding: 14px 12px 22px;
  }

  .admin-top {
    gap: 10px;
    margin-bottom: 12px;
  }

  .admin-top h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
  }

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

  .support-admin-grid {
    gap: 10px;
  }

  .support-thread-list {
    max-height: 230px;
  }

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

  .admin-thread {
    max-height: 300px;
  }

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

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar .brand {
    min-width: 0;
  }

  .topbar .brand strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions .compact {
    min-height: 34px;
    padding: 0 8px;
  }

  .intl-topbar .brand strong {
    max-width: none;
    font-size: 20px;
    letter-spacing: 6px;
  }

  .intl-hero {
    min-height: 520px;
    background-position: 68% center;
  }

  .intl-copy h1 {
    font-size: 36px;
  }

  .intl-product-grid {
    gap: 10px;
  }

  .hero h1,
  .commerce-hero h1 {
    font-size: 32px;
  }

  .hero-actions .primary,
  .hero-actions .ghost {
    flex: 1 1 130px;
  }

  .payment-hero-card {
    gap: 10px;
    padding: 10px;
  }

  .payment-hero-card ol {
    padding-left: 18px;
    font-size: 13px;
  }

  .strip,
  .compact-strip,
  .metrics {
    gap: 8px;
  }

  .metric {
    padding: 10px;
  }

  .metric strong {
    font-size: 17px;
  }

  .product-image {
    height: 210px;
  }

  .feedback-grid,
  .photo-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1060px) {
  .admin-top {
    margin: -18px -18px 14px;
    padding: 14px 18px;
  }

  .dashboard-grid,
  .admin-hero-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    display: grid;
  }
}

@media (max-width: 640px) {
  .admin-shell .sidebar {
    background: #111a15;
  }

  .admin-store-card,
  .admin-top-status {
    display: none;
  }

  .admin-top {
    margin: -14px -12px 12px;
    padding: 12px;
  }

  .admin-top h1 {
    font-size: 28px;
  }

  .admin-hero-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .admin-hero-panel h2 {
    font-size: 22px;
  }

  .admin-hero-actions {
    width: 100%;
  }

  .admin-hero-actions .primary,
  .admin-hero-actions .ghost {
    flex: 1 1 0;
  }

  .admin-metrics .metric {
    min-height: 94px;
  }

  .admin-metrics .metric strong {
    font-size: 20px;
  }

  .queue-list a {
    min-height: 52px;
  }
}

@media (max-width: 1060px) {
  .home-catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-focus,
  .checkout-columns,
  .promo-admin {
    grid-template-columns: 1fr;
  }

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

  .admin-filter-bar,
  .order-ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body:has(.mobile-order-page) {
    padding-bottom: 0;
    background: #fff;
  }

  .mobile-order-page {
    display: block;
    padding: 0;
    background: #fff;
  }

  .mo-app {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mo-header {
    padding-top: 10px;
  }

  .mo-menu {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .mo-categories,
  .mo-products-head {
    top: 101px;
  }

  .mo-categories button {
    min-height: 54px;
    padding-left: 8px;
    font-size: 13px;
  }

  .mo-products {
    padding: 8px 8px 0;
  }

  .mo-item {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 90px;
    padding: 8px;
  }

  .mo-thumb {
    width: 66px;
    height: 72px;
  }

  .mo-title {
    font-size: 14px;
  }

  .mo-add {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .mo-cart-bar {
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .mo-cart-summary small {
    max-width: 145px;
  }

  .mo-variant-sheet {
    width: 100%;
  }

  .hero-category-row {
    gap: 6px;
  }

  .hero-category-row button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .pay-flow article,
  .hero-shelf a {
    min-height: 52px;
  }

  .hero-shelf {
    grid-template-columns: 1fr;
  }

  .hero-shelf a {
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .shelf-thumb {
    width: 50px;
    height: 42px;
  }

  .home-catalog {
    padding-top: 14px;
  }

  .catalog-banner,
  .payment-focus {
    align-items: stretch;
  }

  .catalog-banner {
    display: grid;
  }

  .payment-focus {
    padding: 16px;
  }

  .payment-focus-steps article {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 62px;
    padding: 10px;
  }

  .payment-focus-steps strong {
    height: 38px;
  }

  .discount-box,
  .catalog-filters,
  .admin-filter-bar,
  .order-ops-strip {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    width: 100vw;
  }

  .cart-drawer-items article {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .qty-control {
    width: max-content;
  }

  .checkout-payment-card h3 {
    font-size: 20px;
  }

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

/* 7Cig visual reset: one brand system across storefront and admin. */
:root {
  color: #071522;
  background: #f3f6f8;
  --navy: #071522;
  --navy-2: #10283c;
  --navy-3: #173751;
  --silver: #eef2f5;
  --silver-2: #f7f9fa;
  --green: #0f8b5f;
  --green-strong: #076645;
  --gold: #c9942f;
  --ink: #071522;
  --muted: #65737f;
  --line: #dce4ea;
  --surface: #ffffff;
  --soft: #f2f6f7;
  --warn: #fff3d6;
  --shadow: 0 18px 44px rgba(7, 21, 34, 0.1);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(238, 242, 245, 0.85), rgba(247, 249, 250, 0.72) 420px),
    #f5f7f9;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.topbar {
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  min-height: 70px;
  padding: 10px 28px;
  border-bottom: 1px solid rgba(7, 21, 34, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(7, 21, 34, 0.06);
}

.brand {
  gap: 12px;
  min-width: 230px;
}

.brand-logo {
  width: 64px;
  height: 46px;
  padding: 2px 5px;
  border: 1px solid rgba(7, 21, 34, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(7, 21, 34, 0.08);
}

.brand strong {
  font-size: 20px;
  color: var(--navy);
}

.brand small {
  color: #75818a;
}

.nav {
  gap: 6px;
}

.nav a,
.nav button {
  min-height: 38px;
  padding: 0 13px;
  color: #4f5f68;
}

.nav a.router-link-active,
.nav button.is-active,
.nav a:hover,
.nav button:hover {
  background: #edf5f3;
  color: var(--green-strong);
}

.search {
  min-height: 46px;
  border-color: rgba(7, 21, 34, 0.14);
  border-radius: 8px;
  background: #f9fbfc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.primary {
  border-color: var(--green);
  background: linear-gradient(180deg, #15996b, var(--green));
  box-shadow: 0 10px 22px rgba(15, 139, 95, 0.22);
}

.primary:hover {
  background: linear-gradient(180deg, #12a873, #08724d);
}

.ghost,
.button,
.icon-button {
  border-color: rgba(7, 21, 34, 0.14);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(7, 21, 34, 0.02);
}

.ghost:hover,
.button:hover,
.icon-button:hover {
  border-color: rgba(15, 139, 95, 0.35);
  background: #f5faf8;
  color: var(--green-strong);
}

.badge {
  background: #eaf6f1;
  color: var(--green-strong);
}

.mobile-order-link {
  display: none !important;
}

.desktop-order-link {
  display: inline-flex;
}

.store-alert {
  min-height: 42px;
  border-bottom-color: rgba(201, 148, 47, 0.2);
  background: linear-gradient(90deg, #081827, #10283c);
  color: #fff;
}

.store-alert span {
  color: rgba(255, 255, 255, 0.72);
}

.store-alert a {
  color: #ffe0a3;
}

.commerce-hero {
  min-height: 420px;
  align-items: center;
  padding: 42px 28px;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, 0.94), rgba(16, 40, 60, 0.82) 48%, rgba(15, 139, 95, 0.42)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.commerce-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: 30px;
  align-items: center;
}

.commerce-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.04;
}

.commerce-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.commerce-hero .eyebrow {
  color: #d7e3ea;
}

.hero-actions {
  margin-top: 18px;
}

.hero-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.hero-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-category-row {
  gap: 10px;
  margin-top: 22px;
}

.hero-category-row button {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-category-row span {
  color: #ffd887;
}

.payment-hero-card {
  gap: 14px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(7, 21, 34, 0.52);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.payment-card-head strong {
  font-size: 22px;
}

.pay-flow {
  gap: 7px;
}

.pay-flow article {
  min-height: 42px;
  grid-template-columns: 30px minmax(0, 1fr);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.pay-flow b {
  height: 30px;
  border-radius: 8px;
  color: var(--navy);
}

.hero-shelf {
  gap: 7px;
}

.hero-shelf a {
  min-height: 88px;
  grid-template-rows: 42px auto;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.shelf-thumb,
.recent-thumb,
.product-image,
.product-detail-image,
.mo-thumb,
.mo-sheet-image {
  position: relative;
  isolation: isolate;
}

.shelf-thumb[style*="linear-gradient"]::after,
.recent-thumb[style*="linear-gradient"]::after,
.product-image[style*="linear-gradient"]::after,
.product-detail-image[style*="linear-gradient"]::after,
.mo-thumb[style*="linear-gradient"]::after,
.mo-sheet-image[style*="linear-gradient"]::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 10%;
  z-index: 0;
  width: 32%;
  min-width: 42px;
  max-width: 92px;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 36%, rgba(7, 21, 34, 0.24)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    -18px 8px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(7, 21, 34, 0.25);
}

.product-badge,
.stock-pill,
.mo-thumb span {
  z-index: 1;
}

.page,
.section,
.hero-inner {
  width: min(1500px, calc(100% - 56px));
}

.home-catalog {
  padding-top: 30px;
}

.section-head {
  margin: 22px 0 16px;
}

.section-head h2,
.panel h2,
.feedback-head h1 {
  color: var(--navy);
}

.product-grid {
  gap: 18px;
}

.smoke-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.metric,
.panel,
.product-card,
.filter,
.photo-card,
.catalog-banner,
.payment-focus {
  border-color: rgba(7, 21, 34, 0.11);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(7, 21, 34, 0.06);
}

.product-card {
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 139, 95, 0.28);
  box-shadow: 0 20px 44px rgba(7, 21, 34, 0.1);
}

.product-image {
  height: 188px;
  background-color: #13283b;
  box-shadow: inset 0 -70px 70px rgba(7, 21, 34, 0.22);
}

.product-badge,
.stock-pill {
  top: 10px;
  min-height: 26px;
  border: 1px solid rgba(7, 21, 34, 0.08);
  box-shadow: 0 8px 20px rgba(7, 21, 34, 0.08);
}

.product-badge {
  color: var(--navy);
}

.stock-pill {
  color: var(--green-strong);
}

.product-card .body {
  gap: 8px;
  padding: 13px;
}

.product-card .body > strong {
  min-height: auto;
  color: var(--navy);
  font-size: 17px;
}

.price {
  color: var(--green-strong);
}

.price-row small {
  color: #7c8790;
}

.variant-pills button,
.variant-selector button {
  border-color: rgba(7, 21, 34, 0.12);
}

.variant-pills button.is-active,
.variant-selector button.is-active {
  border-color: rgba(15, 139, 95, 0.45);
  background: #eff8f5;
  color: var(--green-strong);
}

.catalog-banner {
  padding: 12px 14px;
  background: linear-gradient(90deg, #f7fafb, #fff);
}

.catalog-filters label,
.form-grid label {
  color: #52626d;
}

.catalog-filters select,
.form-grid input,
.form-grid textarea,
.form-grid select,
.admin-filter-bar input,
.admin-filter-bar select,
.checkout-form-block input,
.checkout-form-block select,
.checkout-form-block textarea {
  border-color: rgba(7, 21, 34, 0.14);
  background: #fbfcfd;
  color: var(--navy);
}

.filter {
  top: 92px;
  gap: 9px;
  background: #fbfcfd;
}

.filter button {
  border-color: rgba(7, 21, 34, 0.12);
  color: #4f5f68;
}

.filter button.is-active {
  border-color: rgba(15, 139, 95, 0.55);
  background: #eff8f5;
}

.payment-focus {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 28px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(7, 21, 34, 0.96), rgba(16, 40, 60, 0.94)),
    #071522;
  color: #fff;
}

.payment-focus h2 {
  color: #fff;
}

.payment-focus .eyebrow,
.payment-focus span {
  color: rgba(255, 255, 255, 0.72);
}

.payment-focus-steps article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.payment-focus-steps strong {
  color: #ffd887;
}

.cart-drawer {
  border-left: 1px solid rgba(7, 21, 34, 0.1);
  background: #fbfcfd;
  box-shadow: -24px 0 60px rgba(7, 21, 34, 0.18);
}

.cart-drawer header,
.cart-drawer footer {
  background: #fff;
}

.support-fab {
  background: linear-gradient(180deg, #15996b, var(--green));
  box-shadow: 0 16px 36px rgba(15, 139, 95, 0.28);
}

.support-panel {
  border-color: rgba(7, 21, 34, 0.12);
  box-shadow: 0 24px 56px rgba(7, 21, 34, 0.18);
}

.support-panel header {
  background: #071522;
  color: #fff;
}

.support-panel header span {
  color: rgba(255, 255, 255, 0.68);
}

.support-message p {
  border-color: rgba(7, 21, 34, 0.08);
}

.support-message.is-customer p {
  background: var(--green);
}

body:has(.mobile-order-page) {
  background: #e9eef2;
}

.mobile-order-page {
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.08), transparent 300px),
    #e9eef2;
}

.mo-app {
  border-color: rgba(7, 21, 34, 0.12);
  border-radius: 18px;
  background: #f7f9fa;
  box-shadow: 0 30px 90px rgba(7, 21, 34, 0.18);
}

.mo-header {
  border-bottom-color: rgba(7, 21, 34, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.mo-brand img {
  width: 54px;
  height: 40px;
  border: 1px solid rgba(7, 21, 34, 0.08);
}

.mo-brand strong {
  color: var(--navy);
}

.mo-track {
  border-color: rgba(15, 139, 95, 0.26);
  background: #f0faf6;
  color: var(--green-strong);
}

.mo-search input {
  border-color: rgba(7, 21, 34, 0.13);
  background: #f7f9fa;
}

.mo-store {
  padding: 16px 14px;
  background:
    linear-gradient(135deg, rgba(7, 21, 34, 0.96), rgba(16, 40, 60, 0.86), rgba(15, 139, 95, 0.62)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=900&q=80") center / cover;
}

.mo-store h1 {
  font-size: 26px;
}

.mo-store-tags span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.mo-menu {
  grid-template-columns: 82px minmax(0, 1fr);
}

.mo-categories {
  background: #e9eef2;
}

.mo-categories button {
  border-left-width: 3px;
  color: #63717b;
}

.mo-categories button.is-active {
  border-left-color: var(--green);
  background: #fff;
  color: var(--navy);
}

.mo-products {
  gap: 8px;
}

.mo-products-head {
  border-bottom: 1px solid rgba(7, 21, 34, 0.06);
}

.mo-products-head strong {
  color: var(--navy);
}

.mo-item {
  min-height: 92px;
  border-color: rgba(7, 21, 34, 0.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 21, 34, 0.05);
}

.mo-thumb {
  overflow: hidden;
  border: 1px solid rgba(7, 21, 34, 0.08);
  background-size: cover;
}

.mo-title {
  color: var(--navy);
}

.mo-price-row strong {
  color: var(--green-strong);
}

.mo-add,
.mo-checkout {
  background: linear-gradient(180deg, #15996b, var(--green));
}

.mo-cart-bar {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #10283c, #071522);
}

.mo-cart-bar.is-empty {
  background: linear-gradient(180deg, #73808a, #58636b);
}

.mo-cart-summary b {
  color: var(--green-strong);
}

.mo-variant-sheet {
  border: 1px solid rgba(7, 21, 34, 0.08);
  background: #fff;
}

body:has(.admin-shell),
body:has(.login-wrap) {
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.06), transparent 320px),
    #f3f6f8;
}

.login-card {
  width: min(430px, calc(100% - 28px));
  box-shadow: 0 24px 70px rgba(7, 21, 34, 0.14);
}

.admin-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  background: #f3f6f8;
}

.admin-shell .sidebar {
  background:
    linear-gradient(180deg, #071522 0%, #10283c 70%, #0b1d2d 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.admin-shell .sidebar .brand {
  min-width: 0;
}

.admin-shell .sidebar .brand-logo {
  background: #fff;
}

.admin-store-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.admin-store-card span {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 148, 47, 0.13);
}

.admin-shell .sidebar-nav a {
  min-height: 42px;
  border-radius: 8px;
}

.admin-shell .sidebar-nav a.router-link-active {
  background: linear-gradient(90deg, #ffffff, #eaf6f1);
  color: var(--navy);
}

.admin-main {
  padding: 20px 24px 38px;
}

.admin-top {
  margin: -20px -24px 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(7, 21, 34, 0.05);
}

.admin-top h1 {
  font-size: 28px;
  color: var(--navy);
}

.admin-top-status span {
  border-color: rgba(7, 21, 34, 0.11);
  background: #f9fbfc;
}

.admin-hero-panel {
  border-color: rgba(7, 21, 34, 0.08);
  background:
    linear-gradient(135deg, rgba(7, 21, 34, 0.98), rgba(16, 40, 60, 0.92)),
    #071522;
  color: #fff;
}

.admin-hero-panel h2 {
  color: #fff;
}

.admin-hero-panel p:not(.eyebrow),
.admin-hero-panel .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.admin-shell .panel,
.admin-shell .metric {
  border-color: rgba(7, 21, 34, 0.1);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(7, 21, 34, 0.06);
}

.admin-shell .panel header {
  min-height: 54px;
  border-bottom-color: rgba(7, 21, 34, 0.08);
  background: #fbfcfd;
}

.admin-shell .panel h2 {
  font-size: 19px;
}

.admin-metrics {
  gap: 12px;
}

.admin-metrics .metric {
  min-height: 102px;
  padding: 14px 14px 14px 18px;
}

.admin-metrics .metric::before {
  width: 4px;
}

.admin-metrics .metric strong {
  margin-top: 7px;
  font-size: 25px;
  color: var(--navy);
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
}

.queue-list a {
  min-height: 54px;
  border-color: rgba(7, 21, 34, 0.1);
  background: #fbfcfd;
}

.queue-list strong {
  background: var(--navy);
}

.admin-shell .table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-shell .table th {
  background: #f1f5f7;
  color: #5b6872;
}

.admin-shell .table td {
  border-bottom-color: rgba(7, 21, 34, 0.07);
}

.status {
  border-color: rgba(7, 21, 34, 0.1);
  background: #f1f5f7;
  color: var(--navy);
}

.status.warning {
  background: #fff4d8;
  color: #8a570a;
}

.status.danger {
  background: #fee8e5;
  color: #9d2016;
}

.admin-filter-bar {
  gap: 10px;
}

.support-admin-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
}

.support-thread-list {
  max-height: calc(100vh - 270px);
}

.admin-thread {
  min-height: 360px;
  max-height: calc(100vh - 360px);
}

.support-order-box {
  border-color: rgba(7, 21, 34, 0.1);
  background: #fbfcfd;
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .commerce-hero .hero-inner,
  .payment-focus,
  .dashboard-grid,
  .support-admin-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body {
    background: #f7f9fa;
  }

  .store-alert {
    display: none;
  }

  .topbar {
    min-height: 60px;
    padding: 8px 12px;
    box-shadow: 0 8px 22px rgba(7, 21, 34, 0.06);
  }

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

  .brand strong {
    font-size: 18px;
  }

  .nav {
    gap: 6px;
    padding-bottom: 3px;
    max-width: 100%;
    min-width: 0;
  }

  .nav a,
  .nav button {
    min-height: 34px;
    background: #f4f7f8;
  }

  .mobile-order-link,
  .nav .mobile-order-link {
    display: inline-flex !important;
  }

  .desktop-order-link {
    display: none !important;
  }

  .hero-inner,
  .page,
  .section {
    width: min(100% - 24px, 1500px);
  }

  .hero,
  .commerce-hero {
    padding: 22px 12px 16px;
    background-position: 52% center;
  }

  .commerce-hero h1 {
    font-size: 34px;
  }

  .commerce-hero p {
    word-break: normal;
  }

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

  .hero-actions .primary {
    grid-column: 1 / -1;
  }

  .payment-hero-card {
    background: rgba(7, 21, 34, 0.66);
  }

  .hero-shelf {
    grid-template-columns: 1fr;
  }

  .home-catalog {
    padding-top: 18px;
  }

  .product-layout {
    gap: 10px;
    min-width: 0;
  }

  .product-layout > section,
  .product-layout > aside {
    min-width: 0;
  }

  .product-layout .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: end;
  }

  .product-layout .section-head .product-toolbar {
    width: auto;
    align-items: end;
  }

  .product-layout .section-head .product-toolbar .muted {
    display: none;
  }

  .product-layout .section-head .inline-field {
    width: 132px;
    gap: 4px;
  }

  .product-layout .section-head select {
    width: 100%;
    min-height: 36px;
  }

  .filter {
    position: sticky;
    top: 108px;
    z-index: 8;
    margin: 0 -12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(7, 21, 34, 0.08);
    background: rgba(247, 249, 250, 0.95);
    backdrop-filter: blur(12px);
    width: calc(100% + 24px);
    max-width: calc(100% + 24px);
    min-width: 0;
  }

  .filter button {
    min-height: 34px;
    background: #fff;
  }

  .product-layout .catalog-banner {
    display: none;
  }

  .product-layout .catalog-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -12px 10px;
    padding: 0 12px 4px;
    width: calc(100% + 24px);
    max-width: calc(100% + 24px);
    min-width: 0;
    scrollbar-width: none;
  }

  .product-layout .catalog-filters::-webkit-scrollbar {
    display: none;
  }

  .product-layout .catalog-filters label {
    flex: 0 0 132px;
    font-size: 12px;
  }

  .product-layout .catalog-filters select {
    min-height: 36px;
    padding: 0 8px;
  }

  .product-layout .catalog-filters .ghost {
    flex: 0 0 82px;
    min-height: 36px;
    align-self: end;
  }

  .product-grid,
  .smoke-product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 132px;
  }

  .product-card:hover {
    transform: none;
  }

  .product-image {
    height: 100%;
    min-height: 132px;
  }

  .product-badge,
  .stock-pill {
    top: 8px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 11px;
  }

  .product-badge {
    left: 8px;
  }

  .stock-pill {
    right: 8px;
  }

  .product-card .body {
    align-content: start;
    min-width: 0;
  }

  .product-card .body > strong {
    font-size: 15px;
  }

  .price-row {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .price {
    font-size: 18px;
  }

  .product-card .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-card .row-actions .primary {
    grid-column: 1 / -1;
  }

  .payment-focus {
    padding: 16px;
  }

  body:has(.mobile-order-page) {
    background: #f7f9fa;
  }

  .mobile-order-page {
    background: #f7f9fa;
  }

  .mo-app {
    border-radius: 0;
    background: #f7f9fa;
  }

  .mo-header {
    padding: 10px 12px 9px;
  }

  .mo-menu {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .mo-categories,
  .mo-products-head {
    top: 100px;
  }

  .mo-categories button {
    min-height: 52px;
  }

  .mo-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    min-height: 88px;
  }

  .mo-thumb {
    width: 64px;
    height: 70px;
  }

  .mo-cart-bar {
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .admin-main {
    padding: 12px 12px 80px;
  }

  .admin-top {
    margin: -12px -12px 12px;
    padding: 12px;
  }

  .admin-top h1 {
    font-size: 24px;
  }

  .admin-hero-panel {
    padding: 14px;
  }

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

  .admin-metrics .metric {
    min-height: 88px;
  }

  .admin-metrics .metric strong {
    font-size: 19px;
  }

  .admin-mobile-nav {
    box-shadow: 0 -12px 30px rgba(7, 21, 34, 0.08);
  }
}

@media (max-width: 420px) {
  .commerce-hero h1 {
    font-size: 31px;
  }

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

  .product-image {
    min-height: 126px;
  }

  .product-card .row-actions .ghost:not(:last-child) {
    display: none;
  }

  .mo-brand img {
    width: 48px;
  }

  .mo-store h1 {
    font-size: 24px;
  }
}

/* Direct homepage notice hero. */
.commerce-hero {
  min-height: 520px;
  padding: 58px 28px;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, 0.86), rgba(7, 21, 34, 0.58) 48%, rgba(15, 139, 95, 0.28)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1900&q=80") center / cover;
}

.commerce-hero .hero-direct {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 404px;
}

.hero-notice {
  width: min(1180px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
  color: #fff;
  text-align: center;
}

.hero-notice h1 {
  max-width: 100%;
  margin: 0 0 2px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

.hero-notice p {
  max-width: 1080px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 1.55vw, 27px);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-direct-actions {
  justify-content: center;
  margin-top: 12px;
}

.hero-direct-actions .primary,
.hero-direct-actions .ghost {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 17px;
}

@media (max-width: 820px) {
  .commerce-hero {
    min-height: auto;
    padding: 36px 16px 32px;
  }

  .commerce-hero .hero-direct {
    min-height: 0;
  }

  .hero-notice {
    gap: 13px;
    text-align: left;
    justify-items: start;
  }

  .hero-notice h1 {
    font-size: 30px;
  }

  .hero-notice p {
    font-size: 16px;
    line-height: 1.5;
  }

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

  .hero-direct-actions .primary,
  .hero-direct-actions .ghost {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .commerce-hero {
    padding: 24px 14px 18px;
  }

  .hero-notice {
    gap: 8px;
  }

  .hero-notice h1 {
    font-size: 27px;
    line-height: 1.06;
  }

  .hero-notice p {
    font-size: 13.5px;
    line-height: 1.36;
  }

  .hero-direct-actions {
    gap: 7px;
    margin-top: 8px;
  }

  .hero-direct-actions .primary,
  .hero-direct-actions .ghost {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13.5px;
  }
}

.product-editor-simple .product-simple-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.simple-form-main {
  display: grid;
  gap: 14px;
}

.simple-form-section,
.advanced-product-settings,
.simple-image-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.simple-form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.simple-form-section h3,
.simple-section-title h3 {
  margin: 0;
  font-size: 17px;
}

.simple-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.simple-product-grid {
  grid-template-columns: 1.4fr minmax(140px, 180px) minmax(120px, 170px) minmax(110px, 140px);
}

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

.simple-variant-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) minmax(130px, 1fr) minmax(150px, 1.15fr) repeat(3, minmax(82px, 100px)) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(7, 21, 34, 0.08);
  border-radius: 8px;
  background: #f8faf8;
}

.simple-variant-row label {
  min-width: 0;
}

.simple-variant-row input,
.simple-variant-row select,
.simple-image-box input {
  width: 100%;
  min-width: 0;
}

.simple-variant-row .ghost {
  min-height: 40px;
}

.advanced-product-settings {
  padding: 0 14px 14px;
}

.advanced-product-settings summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
}

.simple-image-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  position: sticky;
  top: 18px;
}

.simple-image-preview {
  min-height: 190px;
  border-radius: 8px;
  background: linear-gradient(135deg, #24362c, #7e9165);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(7, 21, 34, 0.1);
}

/* Keep every product image surface square across storefront and admin. */
.product-image,
.product-detail-image,
.quick-view-image,
.intl-product-image,
.mo-thumb,
.mo-sheet-image,
.recent-thumb,
.simple-image-preview {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  background-size: cover;
  background-position: center;
}

.product-image,
.product-detail-image,
.quick-view-image,
.intl-product-image,
.simple-image-preview {
  width: 100%;
  align-self: start;
}

.hero-shelf a {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
}

.shelf-thumb {
  width: 42px;
  height: 42px;
  aspect-ratio: 1 / 1;
}

@media (max-width: 1100px) {
  .product-editor-simple .product-simple-form {
    grid-template-columns: 1fr;
  }

  .simple-image-box {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar:not(.intl-topbar) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .topbar:not(.intl-topbar) .brand {
    min-width: 0;
  }

  .topbar:not(.intl-topbar) .top-actions {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
  }

  .topbar:not(.intl-topbar) .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
  }

  .topbar:not(.intl-topbar) .top-actions .language-toggle {
    display: inline-grid;
  }

  .topbar:not(.intl-topbar) .top-actions .icon-button {
    white-space: nowrap;
  }

  .track-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .track-result-list > button {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .track-result-list > button > span:nth-child(2) {
    text-align: right;
  }

  .track-result-list .status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .category-editor {
    grid-template-columns: 1fr;
  }

  .simple-product-grid,
  .simple-variant-row {
    grid-template-columns: 1fr;
  }
}

/* Focused support workspace and destructive actions. */
.danger-action {
  border-color: #e8b4ae !important;
  color: #a52a20 !important;
}

.danger-action:hover {
  border-color: #c93c30 !important;
  background: #fff1ef !important;
}

.product-primary-price {
  display: grid;
  gap: 3px;
  margin: 4px 0 8px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: #f3f7f4;
}

.product-primary-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-primary-price strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}

.support-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-section-title h3 {
  margin: 0;
}

.support-order-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(420px, 1fr);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
}

@media (min-width: 1061px) {
  .support-admin-grid {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    height: calc(100dvh - 122px);
    min-height: 560px;
  }

  .support-admin-grid > .panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .support-admin-grid > .panel > .panel-body {
    min-height: 0;
  }

  .support-admin-grid > .panel:first-child .support-thread-list {
    height: 100%;
    max-height: none;
  }

  .support-admin-grid > .panel:last-child > .panel-body {
    display: grid;
    grid-template-rows: auto auto minmax(220px, 1fr) auto;
    gap: 8px;
    overflow: hidden;
  }

  .support-admin-meta,
  .support-order-section {
    margin-bottom: 0;
  }

  .support-order-section {
    gap: 6px;
    max-height: 190px;
    overflow: hidden;
  }

  .support-order-box {
    gap: 6px;
    padding: 8px;
  }

  .support-order-grid div {
    padding: 6px 8px;
  }

  .admin-thread {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 1060px) {
  .support-admin-grid {
    height: auto;
    min-height: 0;
  }

  .support-admin-grid > .panel {
    display: block;
    overflow: visible;
  }

  .support-order-list {
    grid-auto-columns: minmax(320px, 86vw);
  }
}

@media (max-width: 640px) {
  .mobile-bottom-nav {
    z-index: 70;
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bottom-nav button.is-active {
    color: var(--green-strong);
    background: var(--soft);
  }

  .cart-drawer-layer {
    inset: 0 0 calc(62px + env(safe-area-inset-bottom, 0px));
    z-index: 64;
  }

  .cart-drawer {
    height: 100%;
  }

  body:has(.cart-drawer-layer.is-open),
  body:has(.support-widget.is-open) {
    overflow: hidden;
  }

  .support-widget.is-open {
    inset: 0 0 calc(62px + env(safe-area-inset-bottom, 0px));
    z-index: 64;
    display: block;
    width: auto;
    max-width: none;
  }

  .support-widget.is-open .support-fab {
    display: none;
  }

  .support-widget.is-open .support-panel {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .support-widget.is-open .support-messages {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .support-widget.is-open .support-compose {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .support-widget.is-open .support-compose .primary {
    grid-column: auto;
    width: auto;
  }

  .product-primary-price strong {
    font-size: 26px;
  }
}

/* Resizable support workspace. */
.support-splitter {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  touch-action: none;
}

.support-splitter::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  background: #d5ded9;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.support-splitter::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  background: #87978f;
  opacity: .75;
  transition: background 140ms ease, opacity 140ms ease;
}

.support-splitter:hover::before,
.support-splitter:focus-visible::before,
body.support-is-resizing .support-splitter::before {
  background: #b8d8ca;
  box-shadow: 0 0 0 3px rgba(18, 143, 102, .1);
}

.support-splitter:hover::after,
.support-splitter:focus-visible::after,
body.support-is-resizing .support-splitter::after {
  background: var(--green-strong);
  opacity: 1;
}

.support-splitter:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.support-splitter-vertical {
  width: 12px;
  cursor: col-resize;
}

.support-splitter-vertical::before {
  width: 2px;
  height: 100%;
}

.support-splitter-vertical::after {
  width: 4px;
  height: 44px;
}

.support-splitter-horizontal {
  width: 100%;
  height: 12px;
  cursor: row-resize;
}

.support-splitter-horizontal::before {
  width: 100%;
  height: 2px;
}

.support-splitter-horizontal::after {
  width: 44px;
  height: 4px;
}

body.support-is-resizing {
  user-select: none;
}

@media (min-width: 1061px) {
  .support-admin-grid {
    grid-template-columns: var(--support-list-width, 300px) 12px minmax(0, 1fr);
    gap: 0;
  }

  .support-admin-grid > .panel:first-child {
    grid-column: 1;
  }

  .support-admin-grid > .support-splitter-vertical {
    grid-column: 2;
  }

  .support-admin-grid > .panel:last-child {
    grid-column: 3;
  }

  .support-admin-grid > .panel:last-child > .support-detail-body {
    grid-template-rows: auto minmax(220px, 1fr) auto;
  }

  .support-admin-grid > .panel:last-child > .support-detail-body.has-orders {
    grid-template-rows: auto var(--support-orders-height, 142px) 12px minmax(220px, 1fr) auto;
  }

  .support-detail-body .support-order-section {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .support-detail-body .support-order-list {
    height: 100%;
    min-height: 0;
    overflow: auto;
  }

  .support-detail-body .support-order-box {
    gap: 4px;
    padding: 7px;
    font-size: 13px;
  }

  .support-detail-body .support-order-grid div {
    padding: 5px 7px;
  }
}

@media (max-width: 1060px) {
  .support-splitter {
    display: none;
  }

  .support-detail-body,
  .support-detail-body.has-orders {
    display: block !important;
  }

  .support-detail-body .support-order-section {
    height: auto;
    margin-bottom: 10px;
  }
}

.support-list-summary,
.support-thread-title,
.support-order-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.support-thread-title,
.support-order-actions {
  justify-content: space-between;
}

.support-thread-list button.has-unread {
  border-color: rgba(195, 55, 42, .35);
  box-shadow: inset 3px 0 0 #c3372a;
}

.sidebar-nav b.nav-unread,
.admin-top-status .has-unread {
  border-color: rgba(195, 55, 42, .2);
  background: #fff0ee;
  color: #a72c22;
}

.unread-summary,
.thread-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c3372a;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
}

.support-paid-action {
  min-height: 28px;
  padding-inline: 9px;
  font-size: 12px;
}

.support-paid-action.is-paid {
  border-color: #b9d8ca;
  background: #eaf6f1;
  color: var(--green-strong);
}

/* Mobile catalogue: compact two-column shopping with focused filter sheets. */
@media (max-width: 640px) {
  body.catalog-sheet-open {
    overflow: hidden;
  }

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

  .desktop-product-toolbar,
  .desktop-catalog-filters {
    display: none !important;
  }

  .product-layout .section-head {
    display: block;
    margin: 12px 0 10px;
  }

  .product-layout .section-head h2 {
    font-size: 24px;
  }

  .mobile-catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .mobile-catalog-controls > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-catalog-controls > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(242px, 68vw);
  }

  .mobile-catalog-controls button {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 13px;
  }

  .mobile-catalog-controls button b {
    display: inline-flex;
    min-width: 20px;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
  }

  .mobile-catalog-controls button small {
    max-width: 64px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-layout .filter {
    top: 96px;
  }

  .product-layout .smoke-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-layout .smoke-product-grid .product-card {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
  }

  .product-layout .smoke-product-grid .product-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  .product-layout .smoke-product-grid .product-badge {
    display: none;
  }

  .product-layout .smoke-product-grid .stock-pill {
    top: 8px;
    right: 8px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .product-layout .smoke-product-grid .product-card .body {
    display: flex;
    min-width: 0;
    height: auto;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .product-layout .smoke-product-grid .product-card .body > strong {
    display: -webkit-box;
    min-height: 39px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-layout .smoke-product-grid .product-meta,
  .product-layout .smoke-product-grid .variant-pills,
  .product-layout .smoke-product-grid .stock-summary,
  .product-layout .smoke-product-grid .desktop-card-actions {
    display: none;
  }

  .product-layout .smoke-product-grid .price-row {
    min-height: 39px;
    margin-top: auto;
    justify-content: flex-start;
  }

  .product-layout .smoke-product-grid .price {
    font-size: 17px;
    line-height: 1.2;
  }

  .product-layout .smoke-product-grid .mobile-card-actions {
    display: block;
  }

  .product-layout .smoke-product-grid .mobile-card-actions > * {
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }

  .catalog-sheet-layer {
    position: fixed;
    z-index: 69;
    inset: 0 0 calc(62px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: flex-end;
    background: rgba(7, 21, 34, 0.46);
  }

  .catalog-sheet {
    display: grid;
    width: 100%;
    max-height: min(74vh, 620px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    background: #fff;
    box-shadow: 0 -18px 48px rgba(7, 21, 34, 0.18);
  }

  .catalog-sheet header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 12px 16px;
  }

  .catalog-sheet header > div {
    display: grid;
    gap: 2px;
  }

  .catalog-sheet header strong {
    font-size: 18px;
  }

  .catalog-sheet header span {
    color: var(--muted);
    font-size: 12px;
  }

  .catalog-sheet header .icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-size: 22px;
  }

  .catalog-sheet-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .catalog-sheet-fields label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .catalog-sheet-fields select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 10px;
  }

  .catalog-sort-options {
    display: grid;
    padding: 8px 16px 16px;
  }

  .catalog-sort-options button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 0 4px;
    text-align: left;
  }

  .catalog-sort-options button.is-active {
    color: var(--green-strong);
    font-weight: 900;
  }

  .catalog-sheet footer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 12px 16px;
  }

  .catalog-sheet footer button {
    min-height: 44px;
  }
}

/* 7Cig brand palette: metallic red accents, graphite structure, silver surfaces. */
:root {
  --brand-red: #c70b18;
  --brand-red-dark: #97000c;
  --brand-red-soft: #fff0f1;
  --navy: #17181a;
  --navy-2: #26282b;
  --navy-3: #383b3f;
  --silver: #eceef0;
  --silver-2: #f7f7f8;
  --green: var(--brand-red);
  --green-strong: var(--brand-red-dark);
  --gold: #9da3aa;
  --ink: #191a1c;
  --muted: #6b7076;
  --line: #dfe1e4;
  --surface: #ffffff;
  --soft: #f5f5f6;
  --shadow: 0 18px 44px rgba(20, 21, 23, 0.1);
}

body,
body:has(.admin-shell),
body:has(.login-wrap) {
  background:
    linear-gradient(180deg, rgba(228, 230, 233, 0.78), rgba(248, 248, 249, 0.72) 420px),
    #f4f5f6;
  color: var(--ink);
}

.topbar {
  border-bottom-color: rgba(23, 24, 26, 0.12);
  box-shadow: 0 10px 34px rgba(23, 24, 26, 0.07);
}

.brand strong,
.section-head h2,
.panel h2,
.feedback-head h1,
.admin-top h1,
.admin-metrics .metric strong {
  color: var(--navy);
}

.nav a.router-link-active,
.nav button.is-active,
.nav a:hover,
.nav button:hover,
.filter button.is-active,
.variant-pills button.is-active,
.variant-selector button.is-active,
.mobile-bottom-nav a.router-link-active,
.mobile-bottom-nav button.is-active {
  border-color: rgba(199, 11, 24, 0.36);
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
}

.primary,
.support-fab,
.mo-add,
.mo-checkout {
  border-color: var(--brand-red);
  background: linear-gradient(180deg, #dd1725, var(--brand-red));
  box-shadow: 0 10px 22px rgba(199, 11, 24, 0.22);
}

.primary:hover,
.support-fab:hover,
.mo-add:hover,
.mo-checkout:hover {
  background: linear-gradient(180deg, #e5202e, var(--brand-red-dark));
}

.ghost:hover,
.button:hover,
.icon-button:hover {
  border-color: rgba(199, 11, 24, 0.32);
  background: #fff7f7;
  color: var(--brand-red-dark);
}

.badge {
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
}

.store-alert {
  border-bottom-color: rgba(199, 11, 24, 0.34);
  background: linear-gradient(90deg, #151618, #292b2e 72%, #3a1115);
}

.store-alert a,
.hero-category-row span,
.payment-focus-steps strong {
  color: #ffb8bd;
}

.commerce-hero {
  background:
    linear-gradient(90deg, rgba(17, 18, 20, 0.95), rgba(34, 35, 38, 0.86) 50%, rgba(199, 11, 24, 0.5)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.payment-hero-card,
.support-panel header {
  background: rgba(20, 21, 23, 0.9);
}

.product-card:hover {
  border-color: rgba(199, 11, 24, 0.3);
  box-shadow: 0 20px 44px rgba(23, 24, 26, 0.11);
}

.product-image {
  background-color: #242629;
  box-shadow: inset 0 -70px 70px rgba(17, 18, 20, 0.24);
}

.price,
.catalog-sort-options button.is-active {
  color: var(--brand-red-dark);
}

.stock-pill {
  background: #f0f1f2;
  color: #34373a;
}

.stock-pill.warning {
  background: #fff1d2;
  color: #8a570a;
}

.stock-pill.danger {
  background: #ffe2df;
  color: #8b1d13;
}

.catalog-banner {
  background: linear-gradient(90deg, #f4f5f6, #fff);
}

.payment-focus,
.admin-hero-panel {
  background:
    linear-gradient(135deg, rgba(20, 21, 23, 0.98), rgba(47, 49, 53, 0.94) 72%, rgba(124, 8, 16, 0.92)),
    #17181a;
}

.support-message.is-customer p {
  background: var(--brand-red);
}

.mo-track {
  border-color: rgba(199, 11, 24, 0.26);
  background: #fff4f5;
  color: var(--brand-red-dark);
}

.mo-store {
  background:
    linear-gradient(135deg, rgba(18, 19, 21, 0.96), rgba(46, 48, 51, 0.88), rgba(199, 11, 24, 0.6)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=900&q=80") center / cover;
}

.mo-cart-bar {
  background: linear-gradient(180deg, #2b2d30, #17181a);
}

.admin-shell {
  background: #f2f3f4;
}

.admin-shell .sidebar {
  background: linear-gradient(180deg, #111214 0%, #242629 70%, #18191b 100%);
}

.admin-shell .sidebar .brand strong {
  color: #ffffff;
}

.admin-shell .sidebar .brand small {
  color: #b7bcc2;
}

.admin-store-card span {
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(199, 11, 24, 0.16);
}

.admin-shell .sidebar-nav a.router-link-active {
  background: linear-gradient(90deg, #ffffff, #fff0f1);
  color: var(--brand-red-dark);
}

.queue-list strong {
  background: var(--navy);
}

.catalog-sheet-layer {
  background: rgba(18, 19, 21, 0.5);
}
