:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --ink: #111111;
  --text: #111111;
  --muted: #5c5c5c;
  --line: rgba(17, 17, 17, 0.12);
  --champagne: #df2418;
  --rose: #df2418;
  --coral: #df2418;
  --green: #087f3f;
  --danger: #df2418;
  --shadow: 0 14px 28px rgba(17, 17, 17, 0.06);
  --zid-header: #f2f2f2;
  --zid-strip: #eef0f3;
  font-family: Changa, "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", Arial, ui-sans-serif, sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  min-height: 44px;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell {
  width: min(100%, 1280px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 calc(94px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 7px clamp(14px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
  background: var(--zid-header);
}

.brand,
.top-actions,
.section-heading,
.toolbar,
.product-meta,
.line-item,
.stock-row,
.account-summary {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-logo {
  display: block;
  width: 96px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

.brand span:last-child,
.toolbar div:first-child,
.product-copy,
.account-summary div,
.stock-edit span {
  display: grid;
  gap: 2px;
}

.brand small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.top-actions {
  gap: 10px;
}

.language-select {
  width: 48px;
  height: 48px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  outline: none;
  background: #ffffff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(50% + 12px) 50%,
    calc(50% + 17px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.icon-button[hidden] {
  display: none;
}

.icon-button:hover,
.language-select:hover {
  transform: translateY(-1px);
}

.storefront {
  margin: 0 0 32px;
}

.page-heading,
.checkout-grid,
.account-hero,
.account-grid,
.management-grid,
#app > .summary-card {
  margin-right: clamp(14px, 6vw, 84px);
  margin-left: clamp(14px, 6vw, 84px);
}

.store-utility,
.store-header,
.store-category-nav,
.breadcrumb-bar,
.catalog-controls,
.catalog-grid {
  padding-right: clamp(14px, 6vw, 84px);
  padding-left: clamp(14px, 6vw, 84px);
}

.store-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.utility-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 124px;
  min-height: 30px;
  padding: 5px 16px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
}

.account-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0 19%, transparent 20%),
    radial-gradient(circle at 50% 88%, #ffffff 0 27%, transparent 28%),
    var(--ink);
}

.store-header {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) 90px;
  gap: clamp(18px, 6vw, 74px);
  align-items: center;
  min-height: 130px;
  background: var(--zid-header);
}

.store-logo img {
  display: block;
  width: 96px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.store-search {
  position: relative;
  display: block;
  color: var(--muted);
}

.store-search span {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--ink);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.store-search input {
  height: 40px;
  padding-left: 48px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
}

.store-search small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.store-cart {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  justify-self: end;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}

.store-cart span,
.store-cart span::before,
.store-cart span::after {
  display: block;
  content: "";
}

.store-cart span {
  position: relative;
  width: 27px;
  height: 19px;
  border: 3px solid var(--ink);
  border-top: 0;
  transform: skewX(-8deg);
}

.store-cart span::before {
  position: absolute;
  top: -10px;
  left: -5px;
  width: 24px;
  height: 3px;
  background: var(--ink);
  transform: rotate(16deg);
}

.store-cart span::after {
  position: absolute;
  right: -1px;
  bottom: -13px;
  width: 24px;
  height: 7px;
  background:
    radial-gradient(circle at 4px 4px, var(--ink) 0 3px, transparent 3.5px),
    radial-gradient(circle at 20px 4px, var(--ink) 0 3px, transparent 3.5px);
}

.store-cart b {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #ffffff;
  font-size: 0.66rem;
  line-height: 1;
}

.promo-strip {
  display: block;
  padding: 20px clamp(14px, 5vw, 72px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f3f0 100%);
}

.promo-slideshow {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 18 / 7;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: #111111;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  isolation: isolate;
}

.promo-slideshow:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 0, 25, 0.18);
  box-shadow: 0 26px 52px rgba(17, 17, 17, 0.18);
}

.promo-slideshow::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.16)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 34%, transparent 68%, rgba(255, 255, 255, 0.12));
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.045) translateX(1.2%);
  filter: saturate(0.94) contrast(0.96) brightness(0.98);
  transition: opacity 1.15s ease, transform 8s ease, filter 1.15s ease;
  z-index: 1;
}

.promo-slide.active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1.05) contrast(1);
  z-index: 2;
}

.promo-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.promo-arrow span {
  display: block;
  margin-top: -3px;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.promo-arrow:hover,
.promo-arrow:focus-visible {
  border-color: rgba(229, 0, 25, 0.34);
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.promo-arrow:focus-visible {
  outline: 3px solid rgba(229, 0, 25, 0.24);
  outline-offset: 3px;
}

.promo-arrow-left {
  left: 14px;
}

.promo-arrow-right {
  right: 14px;
}

.promo-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 3px;
  background: linear-gradient(90deg, #e50019, #f6b24b, #ffffff);
  box-shadow: 0 -6px 18px rgba(229, 0, 25, 0.22);
  transform: scaleX(0);
  transform-origin: left center;
}

.promo-progress.running {
  animation: promoProgress 15s linear both;
}

@keyframes promoProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-slide {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .promo-slide.active {
    transform: none;
  }

  .promo-progress.running {
    animation: none;
    transform: scaleX(1);
  }
}

.store-category-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  scrollbar-width: none;
}

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

.store-category-nav button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.store-category-nav button.active,
.store-category-nav button:hover {
  border-color: var(--rose);
  color: var(--rose);
  box-shadow: none;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  background: var(--zid-strip);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumb-bar span {
  color: var(--rose);
}

.breadcrumb-bar b {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 18px;
  align-items: stretch;
  min-height: 420px;
  padding: 42px 0 18px;
}

.hero > div:first-child {
  display: grid;
  align-content: end;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-logo {
  display: block;
  width: min(100%, 560px);
  height: clamp(120px, 18vw, 210px);
  object-fit: contain;
  object-position: left center;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 20%, rgba(223, 36, 24, 0.14), transparent 20%),
    linear-gradient(145deg, #ffffff, #f5f5f5 64%);
  box-shadow: var(--shadow);
}

.hero-visual span {
  position: absolute;
  display: block;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.42), transparent 16%),
    linear-gradient(140deg, color-mix(in srgb, var(--tone), white 14%), var(--tone));
  box-shadow:
    inset 0 24px 34px rgba(255, 255, 255, 0.18),
    inset 0 -26px 42px rgba(0, 0, 0, 0.18),
    0 20px 45px rgba(17, 17, 17, 0.18);
}

.hero-visual span:nth-child(1) {
  right: 12%;
  bottom: 14%;
}

.hero-visual span:nth-child(2) {
  top: 15%;
  left: 14%;
}

.hero-visual span:nth-child(3) {
  right: 24%;
  top: 26%;
  width: 24%;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

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

.toolbar,
.summary-card,
.auth-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.toolbar {
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 900;
}

.category-tabs button.active {
  border-color: rgba(223, 36, 24, 0.55);
  background: rgba(223, 36, 24, 0.08);
  color: var(--text);
}

.catalog-controls {
  display: grid;
  grid-template-columns: 132px 142px 1fr;
  gap: 30px;
  align-items: end;
  margin: 28px 0 34px;
}

.control-field {
  display: grid;
  gap: 9px;
}

.control-field small {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.control-button,
.control-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.control-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.control-field select {
  appearance: auto;
}

.product-total {
  justify-self: end;
  align-self: center;
  color: var(--rose);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.product-total span {
  margin: 0 6px;
  color: var(--rose);
  font-size: 0.9rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 28px;
}

.product-card {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.product-card.selected {
  outline: 1px solid rgba(223, 36, 24, 0.42);
  outline-offset: 8px;
}

.product-surface {
  position: relative;
  display: grid;
  width: 100%;
  gap: 14px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.product-pan {
  display: grid;
  min-height: 126px;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 16%),
    linear-gradient(140deg, color-mix(in srgb, var(--swatch), white 16%), var(--swatch));
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background: #f8f8f8;
  object-fit: contain;
}

.product-image-empty {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background:
    linear-gradient(135deg, rgba(223, 36, 24, 0.03), transparent 36%),
    #fbfbfb;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card:hover .product-image,
.product-card:hover .product-image-empty {
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.08);
}

.shipping-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 14px;
  border: 1px solid rgba(8, 127, 63, 0.18);
  border-radius: 999px;
  background: rgba(235, 250, 243, 0.94);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
}

.product-pan span,
.swatch {
  display: block;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 12px 18px rgba(255, 255, 255, 0.2), inset 0 -12px 18px rgba(0, 0, 0, 0.25);
}

.product-pan span {
  width: 74px;
  height: 74px;
}

.swatch {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.product-copy small,
.product-meta,
.stock-row,
.line-item small,
.account-summary small,
.stock-edit small {
  color: var(--muted);
  font-size: 0.75rem;
}

.product-copy strong {
  min-height: 2.8em;
  color: #363636;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
}

.product-copy em {
  color: var(--champagne);
  font-size: 0.82rem;
  font-style: normal;
}

.product-meta,
.stock-row {
  gap: 8px;
  padding: 0;
}

.product-meta {
  align-items: flex-start;
  justify-content: space-between;
}

.price-stack {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.price-stack small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.product-meta strong {
  color: var(--rose);
  font-size: 1rem;
  white-space: nowrap;
}

.stock-row {
  justify-content: space-between;
  margin: 3px 0 10px;
  color: var(--muted);
}

.low-stock {
  color: var(--danger);
}

.product-card > button:last-child {
  min-height: 38px;
  border-radius: 3px;
}

.primary-button,
.secondary-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  border: 0;
  background: var(--rose);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.language-select:hover,
.category-tabs button:hover {
  border-color: rgba(223, 36, 24, 0.55);
  box-shadow: 0 10px 24px rgba(223, 36, 24, 0.12);
}

.compact-button {
  width: auto;
  min-width: 118px;
  padding: 10px 14px;
}

.link-button {
  display: grid;
  min-height: 44px;
  place-items: center;
}

.page-heading {
  padding: 22px 0 14px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  align-items: start;
}

.summary-card,
.auth-card {
  padding: 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(223, 36, 24, 0.28);
  border-radius: 999px;
  background: rgba(223, 36, 24, 0.08);
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 900;
}

.line-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.line-item strong {
  display: block;
  margin-bottom: 2px;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 34px 28px 34px;
  align-items: center;
  gap: 4px;
}

.qty-stepper button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 900;
}

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

.total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

input:focus,
textarea:focus {
  border-color: rgba(223, 36, 24, 0.68);
  box-shadow: 0 0 0 3px rgba(223, 36, 24, 0.1);
}

textarea {
  margin-bottom: 12px;
  resize: vertical;
}

.notice {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px;
}

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

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 14px;
  align-items: stretch;
  padding: 22px 0 14px;
}

.account-hero > div:first-child,
.account-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.account-hero > div:first-child {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 28px;
}

.account-hero p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-gate {
  min-height: min(620px, calc(100vh - 160px));
}

.otp-setup {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.otp-setup code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 0.95rem/1.35 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.otp-setup p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.account-status-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 22px;
}

.account-status-card img {
  width: min(100%, 210px);
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.account-status-card strong {
  font-size: 1.18rem;
}

.account-status-card small {
  line-height: 1.35;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: 14px;
  align-items: start;
}

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

.promo-admin-card {
  margin-bottom: 22px;
}

.promo-admin-card textarea {
  min-height: 180px;
  margin-bottom: 0;
  background: #fbfbfb;
  font: 0.9rem/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.capability-list,
.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability-list span,
.permission-check {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.capability-list span {
  padding: 7px 12px;
}

.permission-check {
  padding: 7px 10px;
}

.permission-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--champagne);
}

.admin-team-form,
.profile-editor {
  display: grid;
  gap: 14px;
}

.admin-directory {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.import-control {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-weight: 800;
}

.import-control input {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.auth-card {
  display: grid;
  gap: 14px;
}

.form-heading h2 {
  margin-bottom: 0;
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.password-rules span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.password-rules span.pass {
  border-color: rgba(114, 195, 138, 0.45);
  background: rgba(114, 195, 138, 0.12);
  color: var(--green);
}

.account-summary {
  gap: 12px;
  margin-bottom: 14px;
}

.profile-card .account-summary {
  margin-bottom: 18px;
}

.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #ffffff;
  font-weight: 900;
}

.security-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--text);
  list-style: none;
  line-height: 1.45;
}

.security-list li,
.readiness-list span,
.account-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.security-list li {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.security-list span,
.readiness-list small,
.account-metrics small {
  color: var(--muted);
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.account-metrics span {
  display: grid;
  gap: 4px;
  min-height: 78px;
  align-content: center;
  padding: 12px;
}

.account-metrics strong {
  overflow-wrap: anywhere;
}

.account-actions {
  margin-top: 0;
}

.fidelity-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223, 36, 24, 0.08), transparent 42%),
    #ffffff;
}

.fidelity-card.active {
  border-color: rgba(223, 36, 24, 0.42);
}

.fidelity-balance {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(223, 36, 24, 0.28);
  border-radius: 8px;
  background: rgba(223, 36, 24, 0.08);
}

.fidelity-balance strong {
  color: var(--champagne);
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 0.9;
}

.fidelity-balance span {
  color: var(--muted);
  font-weight: 900;
}

.delivery-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

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

.delivery-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.delivery-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-detail-card {
  display: block;
}

.order-detail-card summary {
  cursor: pointer;
  list-style: none;
}

.order-detail-card summary::-webkit-details-marker {
  display: none;
}

.order-detail-lines {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

.readiness-list span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 12px;
}

.readiness-list b {
  display: grid;
  grid-row: span 2;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 36, 24, 0.08);
  color: var(--champagne);
}

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

.stock-edit {
  grid-template-columns: 1fr 120px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.stock-edit input {
  text-align: right;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 14px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 28px), 720px);
  margin: auto;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.13);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
}

.bottom-nav a span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.bottom-nav a[data-route="shop"] span {
  box-shadow: inset 7px 0 0 transparent;
}

.bottom-nav a[data-route="cart"] span {
  border-top: 0;
  border-radius: 2px 2px 6px 6px;
}

.bottom-nav a[data-route="cart"] span::before,
.bottom-nav a[data-route="stock"] span::before,
.bottom-nav a[data-route="stock"] span::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.bottom-nav a[data-route="cart"] span::before {
  top: -7px;
  left: 1px;
  width: 15px;
  height: 2px;
  transform: rotate(14deg);
}

.bottom-nav a[data-route="account"] span {
  border-radius: 50%;
}

.bottom-nav a[data-route="account"] span::before {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 4px;
  height: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.bottom-nav a[data-route="stock"] span {
  border: 0;
}

.bottom-nav a[data-route="stock"] span::before,
.bottom-nav a[data-route="stock"] span::after {
  left: 2px;
  width: 14px;
  height: 2px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.bottom-nav a[data-route="stock"] span::after {
  display: none;
}

.bottom-nav a.active {
  background: rgba(223, 36, 24, 0.1);
  color: var(--rose);
  box-shadow: inset 0 0 0 1px rgba(223, 36, 24, 0.12);
}

.bottom-nav a:hover {
  color: var(--rose);
  transform: translateY(-1px);
}

dialog {
  width: min(calc(100% - 28px), 520px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px);
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.toggle-row span {
  display: grid;
  gap: 4px;
}

#toast {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 98px;
  left: 18px;
  max-width: 420px;
  margin: auto;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .store-header {
    grid-template-columns: 120px 1fr 58px;
    gap: 16px;
    min-height: 104px;
  }

  .store-category-nav {
    justify-content: flex-start;
    min-height: 58px;
  }

  .promo-strip {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .promo-slideshow {
    aspect-ratio: 16 / 9;
  }

  .promo-arrow {
    width: 38px;
    height: 38px;
  }

  .promo-arrow span {
    font-size: 1.75rem;
  }

  .promo-arrow-left {
    left: 8px;
  }

  .promo-arrow-right {
    right: 8px;
  }

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

  .product-total {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero,
  .checkout-grid,
  .account-hero,
  .account-grid,
  .management-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .app-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .topbar {
    padding-top: 10px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand {
    font-size: 0.78rem;
  }

  .brand-logo {
    width: 104px;
    height: 34px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .language-select {
    width: 52px;
    height: 38px;
    font-size: 0.72rem;
  }

  .top-actions {
    gap: 8px;
  }

  .top-actions .icon-button,
  .top-actions .language-select {
    width: 42px;
    height: 42px;
    font-size: 0.74rem;
  }

  .top-actions .language-select {
    padding-right: 14px;
    background-position:
      calc(50% + 10px) 50%,
      calc(50% + 15px) 50%;
  }

  .store-utility,
  .store-header,
  .promo-strip,
  .store-category-nav,
  .breadcrumb-bar,
  .catalog-controls,
  .catalog-grid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .store-utility {
    display: none;
  }

  .store-header {
    grid-template-columns: 88px 1fr 46px;
    min-height: 92px;
  }

  .store-logo img {
    width: 78px;
    height: 46px;
  }

  .store-search input {
    height: 38px;
    padding-left: 38px;
  }

  .store-search small {
    font-size: 0.62rem;
  }

  .store-search span {
    left: 12px;
  }

  .catalog-controls {
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .hero > div:first-child,
  .account-hero > div:first-child,
  .account-status-card,
  .summary-card,
  .auth-card {
    padding: 14px;
  }

  .account-hero > div:first-child {
    min-height: 220px;
  }

  .account-metrics {
    grid-template-columns: 1fr;
  }

  .account-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-visual {
    min-height: 220px;
  }

  .hero-logo {
    height: 118px;
  }

  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .line-item {
    grid-template-columns: auto 1fr;
  }

  .qty-stepper {
    grid-column: 1 / -1;
  }

  .stock-edit {
    grid-template-columns: 1fr;
  }
}
