:root {
  color-scheme: light;
  --ink: #20201e;
  --muted: #68645d;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #ded9cf;
  --accent: #0f766e;
  --accent-strong: #134e4a;
  --coral: #c45a3d;
  --gold: #b8872c;
  --forest: #29483f;
  --shadow: 0 20px 60px rgba(32, 32, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.cart-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(222, 217, 207, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: end;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

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

.customer-signin-link {
  min-height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  padding: 0 14px;
}

.customer-signin-link:hover {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.16);
  color: var(--accent-strong);
}

.header-link svg {
  display: none;
  width: 18px;
  height: 18px;
}

.header-link[hidden],
.account-chip[hidden] {
  display: none !important;
}

.account-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  max-width: min(420px, 48vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 8px 0 12px;
  box-shadow: 0 8px 20px rgba(32, 32, 30, 0.06);
}

.account-chip > svg {
  width: 17px;
  height: 17px;
  color: var(--accent-strong);
}

.account-chip span {
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.account-chip button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f4f1eb;
  color: var(--muted);
  cursor: pointer;
}

.account-chip button:hover {
  color: var(--coral);
}

.account-chip button svg {
  width: 15px;
  height: 15px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg,
.primary-button svg,
.checkout-button svg,
.add-button svg,
.search-field svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(20, 24, 23, 0.78), rgba(20, 24, 23, 0.28) 52%, rgba(20, 24, 23, 0.1)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(24px, 5vw, 58px);
  align-items: end;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 21, 13, 0.88), rgba(82, 43, 21, 0.5) 54%, rgba(15, 118, 110, 0.16)),
    url("/assets/mella-african-fashion-hero.png") center/cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(15vw, 164px);
  background:
    repeating-linear-gradient(45deg, rgba(242, 195, 111, 0.7) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(196, 90, 61, 0.72) 0 9px, transparent 9px 18px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.72), rgba(126, 65, 29, 0.72));
  opacity: 0.28;
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 0;
  width: min(36vw, 470px);
  height: 46%;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.hero-copy {
  width: min(650px, 100%);
  color: #fff;
  padding-bottom: clamp(18px, 8vh, 74px);
}

.home-hero .hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c36f;
}

.hero h1,
.section-heading h2,
.checkout-band h2,
.cart-header h2,
.status-card h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(3.8rem, 9vw, 8rem);
  max-width: 820px;
}

.home-hero h1 {
  font-size: clamp(4.2rem, 10vw, 9.4rem);
}

.hero p {
  max-width: 570px;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.home-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.primary-button,
.checkout-button,
.add-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  border: 0;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-link,
.primary-button,
.checkout-button,
.add-button {
  background: var(--accent);
  color: #fff;
}

.primary-link:hover,
.primary-button:hover,
.checkout-button:hover,
.add-button:hover {
  background: var(--accent-strong);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
}

.hero-feature {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  align-self: end;
  margin-bottom: clamp(20px, 8vh, 84px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 18px;
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-feature span {
  color: #f2c36f;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-feature strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.18;
  overflow-wrap: break-word;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.brand-strip div {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 255, 255, 0.98));
  color: var(--forest);
  font-weight: 900;
  text-align: center;
}

.brand-strip svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.editorial-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 54px);
  background:
    linear-gradient(135deg, #fffaf2 0%, #f8efe0 46%, #eef7f3 100%);
  overflow: hidden;
}

.editorial-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, #c45a3d 0 24px, #f2c36f 24px 48px, #0f766e 48px 72px, #20201e 72px 96px);
  opacity: 0.9;
}

.editorial-section > * {
  position: relative;
  z-index: 1;
}

.editorial-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.editorial-copy p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.editorial-grid article {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #ebe5dc;
}

.editorial-grid article:first-child {
  grid-row: span 2;
  min-height: 536px;
}

.editorial-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.editorial-grid article:hover img {
  transform: scale(1.04);
}

.editorial-grid span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 12px;
  color: var(--forest);
  font-weight: 900;
}

.shop-section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 54px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 440px);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2,
.checkout-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading > p,
.checkout-band > p {
  margin: 0;
  color: var(--muted);
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr minmax(280px, auto);
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-tabs button,
.sort-field select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.category-tabs button {
  padding: 0 15px;
  cursor: pointer;
  white-space: nowrap;
}

.category-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sort-field select {
  padding: 0 12px;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(222, 217, 207, 0.9);
  border-radius: 8px;
  background: var(--surface);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ebe5dc;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.035);
}

.product-card.is-sold-out .product-image-wrap::after {
  content: "Sold out";
  position: absolute;
  inset: auto 12px 12px 12px;
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 6px;
  background: rgba(32, 32, 30, 0.88);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card.is-sold-out .product-image-wrap img {
  filter: grayscale(0.82);
  opacity: 0.68;
  transform: none;
}

.product-card.is-sold-out:hover .product-image-wrap img {
  transform: none;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
}

.sold-out-badge {
  background: rgba(32, 32, 30, 0.94);
  color: #fff;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 15px;
}

.product-category {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.25;
}

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

.price-row strong {
  font-size: 1.04rem;
}

.price-row span {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: line-through;
}

.product-description {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stock-note {
  margin: -4px 0 0;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.stock-note[data-stock="low"] {
  color: var(--coral);
}

.stock-note[data-stock="sold-out"] {
  color: var(--muted);
}

.product-options {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

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

.page-hero {
  display: grid;
  min-height: 320px;
  align-items: end;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 54px);
  background:
    linear-gradient(90deg, rgba(23, 27, 25, 0.82), rgba(23, 27, 25, 0.28)),
    url("/assets/mella-african-fashion-hero.png") center/cover;
  color: #fff;
}

.page-hero > div {
  max-width: 780px;
}

.page-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.shop-page-hero {
  background:
    linear-gradient(90deg, rgba(23, 27, 25, 0.82), rgba(23, 27, 25, 0.26)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.contact-page-hero {
  background:
    linear-gradient(90deg, rgba(23, 27, 25, 0.82), rgba(23, 27, 25, 0.3)),
    url("https://images.unsplash.com/photo-1516762689617-e1cffcef479d?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.market-overview,
.home-products-section,
.home-shelves,
.home-service-strip {
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 54px);
}

.market-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(220px, 0.55fr);
  gap: 20px;
  align-items: end;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.market-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.02;
}

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

.market-stats div,
.category-rail a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 16px;
}

.market-stats strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.market-stats span,
.category-rail span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-rail a {
  display: grid;
  gap: 5px;
  min-height: 94px;
  align-content: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-rail a:hover {
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateY(-2px);
}

.category-rail strong {
  color: var(--forest);
  font-size: 1.04rem;
}

.home-products-section {
  background: var(--paper);
}

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

.home-product-card .product-image-wrap {
  display: block;
}

.home-product-card .product-action-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-product-card .product-action-stack a {
  min-height: 40px;
}

.home-shelves {
  display: grid;
  gap: 28px;
  background: #fff;
}

.product-shelf {
  display: grid;
  gap: 16px;
}

.shelf-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.shelf-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

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

.home-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.home-service-strip a {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--forest);
  font-weight: 900;
  text-align: center;
}

.home-service-strip svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.storefront-home {
  background: #f2f3f0;
}

.marketplace-home {
  display: grid;
  gap: 16px;
  padding: 16px clamp(14px, 4vw, 54px) clamp(34px, 6vw, 76px);
}

.market-search-band {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.market-search {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(222, 217, 207, 0.95);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px 0 16px;
  box-shadow: 0 10px 26px rgba(32, 32, 30, 0.06);
}

.market-search svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.market-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.market-search button,
.market-card-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 0 15px;
  font-weight: 900;
  cursor: pointer;
}

.market-help-links {
  display: inline-flex;
  gap: 8px;
  justify-self: end;
}

.market-help-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 900;
}

.market-help-links svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.mall-top-grid {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) minmax(190px, 260px);
  gap: 14px;
}

.mall-menu,
.mall-hero-deal,
.mall-side-promos,
.deal-section,
.market-shelf {
  border: 1px solid rgba(222, 217, 207, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 32, 30, 0.06);
}

.mall-menu {
  overflow: hidden;
}

.mall-panel-title {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  color: var(--forest);
  font-weight: 900;
}

.mall-panel-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.mall-menu nav {
  display: grid;
}

.mall-menu a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(222, 217, 207, 0.72);
  padding: 7px 12px 7px 14px;
}

.mall-menu a:hover {
  background: #f7f7f2;
}

.mall-menu span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.mall-menu small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.75rem;
}

.mall-menu a svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.mall-hero-deal {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(250px, 1.1fr);
  min-height: 390px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #fff8ed 0%, #eef7f3 55%, #fff 100%);
}

.hero-deal-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.deal-kicker {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(196, 90, 61, 0.12);
  color: var(--coral);
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-deal-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.hero-deal-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

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

.hero-price-row strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.hero-price-row span {
  color: var(--muted);
  font-weight: 800;
  text-decoration: line-through;
}

.hero-deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-deal-actions .secondary-link {
  border-color: var(--line);
  color: var(--ink);
}

.hero-deal-image {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 250, 242, 0.98), rgba(238, 247, 243, 0.94));
  isolation: isolate;
  padding: clamp(8px, 1.6vw, 18px);
}

.hero-deal-image::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.06);
  opacity: 0.34;
  transform: scale(1.06);
}

.hero-deal-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.52), rgba(238, 247, 243, 0.5)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 62%);
}

.hero-deal-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 34px rgba(32, 32, 30, 0.18));
}

.hero-deal-image.is-sold-out img {
  filter: grayscale(0.75);
  opacity: 0.72;
}

.mall-side-promos {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mini-market-card {
  position: relative;
  display: grid;
  min-height: 120px;
  align-content: end;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(222, 217, 207, 0.95);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(32, 32, 30, 0.06);
}

.mini-market-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-market-card strong {
  color: var(--forest);
  font-size: 1.15rem;
  line-height: 1.16;
}

.mini-market-card svg {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 23px;
  height: 23px;
  color: var(--accent);
}

.mini-market-card.accent {
  background: #171b19;
}

.mini-market-card.accent strong,
.mini-market-card.accent svg {
  color: #fff;
}

.mini-market-card.accent span {
  color: rgba(255, 255, 255, 0.68);
}

.mini-market-card.image-card {
  color: #fff;
  background:
    linear-gradient(rgba(23, 27, 25, 0.22), rgba(23, 27, 25, 0.76)),
    url("/assets/mella-african-fashion-hero.png") center/cover;
}

.mini-market-card.image-card span,
.mini-market-card.image-card strong {
  color: #fff;
}

.quick-market-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.quick-market-rail a {
  display: grid;
  min-height: 78px;
  place-items: center;
  gap: 7px;
  border: 1px solid rgba(222, 217, 207, 0.95);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  padding: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-market-rail svg {
  width: 22px;
  height: 22px;
  color: var(--coral);
}

.deal-section,
.market-shelf {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.deal-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(222, 217, 207, 0.85);
  padding-bottom: 12px;
}

.deal-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.deal-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.deal-actions a,
.deal-header > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  padding: 0 12px;
  font-size: 0.86rem;
}

.market-product-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.market-product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(222, 217, 207, 0.95);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.market-card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #ece7df;
}

.market-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.market-product-card:hover img {
  transform: scale(1.035);
}

.discount-tag,
.sold-market-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  padding: 4px 7px;
  font-size: 0.7rem;
  font-weight: 900;
}

.sold-market-tag {
  inset: auto 8px 8px;
  display: grid;
  min-height: 32px;
  place-items: center;
  border-radius: 6px;
  background: rgba(32, 32, 30, 0.88);
  text-transform: uppercase;
}

.market-product-card.is-sold-out img {
  filter: grayscale(0.8);
  opacity: 0.68;
}

.market-card-copy {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.market-card-copy p,
.market-card-copy small {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-card-copy h3 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-card-copy small[data-stock="available"] {
  color: var(--accent-strong);
}

.market-card-copy small[data-stock="low"] {
  color: var(--coral);
}

.market-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-size: 0.86rem;
}

.promo-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.promo-tile {
  position: relative;
  display: grid;
  min-height: 170px;
  align-content: end;
  overflow: hidden;
  border-radius: 8px;
  background: #171b19;
  padding: 16px;
  color: #fff;
}

.promo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.64;
  object-fit: cover;
  transition: transform 220ms ease;
}

.promo-tile:hover img {
  transform: scale(1.04);
}

.promo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(23, 27, 25, 0.08), rgba(23, 27, 25, 0.78));
}

.promo-tile span,
.promo-tile strong {
  position: relative;
  z-index: 1;
}

.promo-tile span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.promo-tile strong {
  font-size: 1.2rem;
}

.market-shelves {
  display: grid;
  gap: 16px;
}

.shelf-product-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.empty-market-card {
  display: grid;
  grid-column: 1 / -1;
  min-height: 190px;
  place-items: center;
  gap: 8px;
  border: 1px dashed rgba(104, 100, 93, 0.45);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.empty-market-card svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.empty-market-card strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.product-options select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}

.add-button {
  min-width: 92px;
}

.product-action-stack {
  display: flex;
  gap: 8px;
}

.quick-view-button {
  min-height: 46px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(15, 12, 10, 0.58);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.product-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.product-detail-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(18, 15, 12, 0.32);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}

.product-detail-media {
  position: relative;
  min-height: 520px;
  background: #ede5dc;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-media span {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 12px;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-detail-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
}

.product-detail-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.product-detail-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.detail-price strong {
  font-size: 1.34rem;
}

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

.product-specs div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfaf7;
}

.product-specs dt,
.modal-size-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-specs dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.modal-size-field {
  display: grid;
  gap: 7px;
}

.modal-size-field select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.detail-actions .checkout-button {
  width: 100%;
}

.checkout-band {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 480px) auto;
  gap: 26px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 54px) clamp(44px, 7vw, 92px);
  padding: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.business-section,
.feedback-section,
.faq-section {
  margin: 0 clamp(18px, 4vw, 54px) clamp(44px, 7vw, 92px);
}

.business-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(42px, 7vw, 86px) 0;
}

.business-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.business-copy h2,
.faq-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.04;
}

.business-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.business-points,
.feedback-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

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

.business-points article,
.feedback-grid article,
.faq-list details,
.policy-content,
.policy-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(32, 32, 30, 0.06);
}

.business-points article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 238px;
  padding: 18px;
}

.business-points span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.business-points strong {
  font-size: 1.08rem;
}

.business-points p,
.feedback-grid p,
.faq-list p,
.policy-content p {
  margin: 0;
  color: var(--muted);
}

.feedback-section {
  display: grid;
  gap: 24px;
}

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

.feedback-grid article {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 190px;
  padding: 20px;
}

.feedback-grid svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feedback-grid strong {
  color: var(--forest);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-list details[open] summary {
  margin-bottom: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  margin: 0 clamp(18px, 4vw, 54px) clamp(44px, 7vw, 92px);
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.96)),
    url("https://images.unsplash.com/photo-1516762689617-e1cffcef479d?auto=format&fit=crop&w=1200&q=70") center/cover;
}

.contact-section h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

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

.contact-cards a {
  display: grid;
  min-height: 150px;
  gap: 8px;
  align-content: center;
  border: 1px solid rgba(222, 217, 207, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(32, 32, 30, 0.07);
}

.contact-cards svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.contact-cards span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-cards strong {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px;
  align-items: start;
  border-top: 1px solid var(--line);
  background: #171b19;
  color: #fff;
  padding: clamp(28px, 5vw, 54px);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  background: #fff;
  color: #171b19;
}

.site-footer p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.site-footer a:hover {
  color: #fff;
}

.policy-page {
  min-height: 100vh;
}

.policy-shell {
  display: grid;
  gap: 22px;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 54px);
}

.policy-hero {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(238, 247, 243, 0.96)),
    url("/assets/mella-african-fashion-hero.png") center/cover;
}

.policy-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
}

.policy-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.policy-content {
  display: grid;
  gap: 14px;
  max-width: 980px;
  padding: clamp(22px, 4vw, 42px);
}

.policy-content h2 {
  margin: 18px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content a {
  color: var(--accent-strong);
  font-weight: 900;
}

.policy-faq,
.policy-feedback {
  margin: 0;
}

.policy-faq {
  display: block;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 16, 15, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.cart-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: grid;
  width: min(520px, 100%);
  height: 100%;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  gap: 16px;
  overflow-y: auto;
  background: var(--surface);
  padding: 20px;
  transform: translateX(24px);
  transition: transform 200ms ease;
}

.cart-drawer[aria-hidden="false"] .cart-panel {
  transform: translateX(0);
}

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

.cart-header h2 {
  font-size: 1.8rem;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 74px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item-info {
  display: grid;
  gap: 3px;
}

.cart-item-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quantity-control {
  display: grid;
  grid-template-columns: 32px 28px 32px;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-control button {
  display: grid;
  width: 32px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quantity-control svg {
  width: 14px;
  height: 14px;
}

.order-summary {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.order-summary strong {
  color: var(--ink);
}

.summary-total {
  border-top: 1px solid var(--line);
  margin-top: 5px;
  padding-top: 12px;
  font-size: 1.14rem;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form h3 {
  margin: 0;
}

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

.form-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.form-grid input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
}

.checkout-button {
  width: 100%;
  min-height: 50px;
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.add-button:disabled {
  background: #918b82;
  cursor: not-allowed;
}

.product-card.is-sold-out .product-options select {
  background: #f4f1eb;
  color: var(--muted);
  cursor: not-allowed;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message[data-type="error"] {
  color: #a93524;
}

.form-message[data-type="info"] {
  color: var(--accent-strong);
}

.checkout-auth-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-auth-note a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.status-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 250, 247, 0.9), rgba(251, 250, 247, 0.96)),
    url("https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=1600&q=80") center/cover;
}

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

.status-shell > .brand {
  position: fixed;
  top: 24px;
  left: 24px;
}

.status-card {
  width: min(560px, 100%);
  border: 1px solid rgba(222, 217, 207, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
}

.status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 20px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

.status-card[data-status="failed"] .status-icon {
  background: rgba(196, 90, 61, 0.14);
  color: var(--coral);
}

.status-icon svg {
  width: 30px;
  height: 30px;
}

.status-card h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.status-card p {
  color: var(--muted);
}

.receipt {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.receipt dt {
  color: var(--muted);
  font-weight: 700;
}

.receipt dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-page,
.dashboard-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.98)),
    url("https://images.unsplash.com/photo-1479064555552-3ef4979f8908?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
}

.auth-shell,
.dashboard-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.auth-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1.18fr);
  min-height: calc(100vh - 180px);
  overflow: hidden;
  border: 1px solid rgba(222, 217, 207, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-showcase {
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(180deg, rgba(31, 21, 13, 0.88), rgba(31, 21, 13, 0.5)),
    url("/assets/mella-african-fashion-hero.png") center/cover;
  color: #fff;
}

.auth-showcase .eyebrow {
  color: #f2c36f;
}

.auth-showcase h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-showcase p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.82);
}

.admin-credential-box {
  display: grid;
  max-width: 360px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.admin-credential-box span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-credential-box code {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95rem;
}

.admin-credential-box a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-stack {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 5vw, 46px);
}

.auth-panel h1,
.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.dashboard-hero p {
  color: var(--muted);
}

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

.auth-card,
.admin-form,
.admin-table-section,
.order-card,
.metric-card {
  border: 1px solid rgba(222, 217, 207, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
}

.primary-auth {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 18px 38px rgba(32, 32, 30, 0.08);
}

.compact-auth {
  background: #fbfaf7;
}

.seller-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seller-feature-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 800;
}

.seller-feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.auth-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.auth-card h2,
.admin-form h2,
.admin-table-section h2,
.dashboard-section h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.12;
}

.auth-card label,
.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-card input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.full-action {
  width: 100%;
}

.admin-form textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1;
}

.dashboard-section {
  display: grid;
  gap: 16px;
}

.section-heading.compact {
  margin-bottom: 0;
}

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

.order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.order-card-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.order-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.order-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.mini-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-items span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.order-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  padding: 0 10px;
  font-weight: 900;
  text-transform: capitalize;
}

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

.timeline-step {
  min-height: 34px;
  border-radius: 999px;
  background: #f0ece4;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-transform: capitalize;
}

.timeline-step.is-active {
  background: var(--accent-strong);
  color: #fff;
}

.delivery-block {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--gold);
  background: #fbfaf7;
  padding: 10px 12px;
}

.delivery-block span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-block strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.order-actions,
.form-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-action,
.table-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-action svg,
.table-actions svg {
  width: 16px;
  height: 16px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.admin-form,
.admin-table-section {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-form .checkout-button {
  width: auto;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 700px;
  width: 100%;
}

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

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.table-product {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}

.table-product img {
  width: 58px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
}

.table-product span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.compact-list .order-card {
  padding: 14px 16px;
}

@media (max-width: 1100px) {
  .product-grid,
  .home-product-grid,
  .compact-home-grid,
  .market-product-row,
  .shelf-product-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mall-top-grid {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  }

  .mall-side-promos {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }

  .quick-market-rail,
  .promo-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-toolbar,
  .checkout-band,
  .contact-section,
  .editorial-section,
  .market-overview,
  .business-section,
  .faq-section,
  .dashboard-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .toolbar-controls {
    justify-content: flex-start;
  }

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

  .product-detail-media {
    min-height: 420px;
  }

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

  .business-points,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .faq-section .secondary-action {
    width: max-content;
  }

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

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    min-height: 118px;
    gap: 12px;
    padding: 12px 14px;
    overflow: visible;
  }

  .main-nav {
    display: none;
  }

  .brand span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand {
    max-width: 100%;
  }

  .header-actions {
    display: inline-flex;
    position: fixed;
    top: 62px;
    left: 14px;
    right: auto;
    z-index: 30;
    width: auto;
    justify-content: flex-start;
    justify-self: start;
    gap: 8px;
    margin-left: 0;
  }

  .cart-trigger {
    flex: 0 0 44px;
  }

  .account-chip a {
    display: none;
  }

  .account-chip {
    min-height: 44px;
    max-width: none;
    gap: 6px;
    padding: 0 6px 0 10px;
  }

  .account-chip span {
    display: none;
  }

  .header-link {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 0;
  }

  .header-link span {
    display: none;
  }

  .header-link svg {
    display: block;
  }

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

  .auth-board {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: 360px;
  }

  .auth-card-heading {
    display: grid;
  }

  .hero {
    min-height: 680px;
    align-items: flex-end;
    padding: 28px 18px;
    background-position: 58% center;
  }

  .home-hero {
    grid-template-columns: 1fr;
    max-width: 100vw;
    background-position: 36% center;
  }

  .home-hero > * {
    min-width: 0;
  }

  .home-hero .hero-copy,
  .home-hero h1,
  .home-hero p,
  .hero-feature {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .home-hero p,
  .hero-feature strong {
    overflow-wrap: normal;
    word-break: normal;
  }

  .home-hero p {
    max-width: min(100%, 330px);
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .hero-feature {
    width: min(calc(100vw - 36px), 330px);
    margin-bottom: 0;
    overflow: visible;
  }

  .hero-feature strong {
    font-size: clamp(1rem, 4.8vw, 1.18rem);
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 5.2rem);
  }

  .home-hero h1 {
    font-size: clamp(3.2rem, 17vw, 6rem);
  }

  .brand-strip {
    grid-template-columns: 1fr;
  }

  .brand-strip div {
    min-height: 64px;
  }

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

  .editorial-grid article,
  .editorial-grid article:first-child {
    grid-row: auto;
    min-height: 320px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .business-section,
  .feedback-section,
  .faq-section {
    margin-inline: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .market-stats,
  .category-rail,
  .home-service-strip,
  .market-search-band,
  .mall-top-grid,
  .mall-hero-deal,
  .mall-side-promos {
    grid-template-columns: 1fr;
  }

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

  .market-help-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .market-help-links a {
    justify-content: center;
  }

  .mall-menu {
    order: 2;
  }

  .mall-hero-deal {
    order: 1;
  }

  .hero-deal-image {
    min-height: clamp(260px, 72vw, 380px);
  }

  .mall-side-promos {
    order: 3;
  }

  .quick-market-rail,
  .promo-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf-heading {
    display: grid;
  }

  .product-grid,
  .home-product-grid,
  .compact-home-grid,
  .market-product-row,
  .shelf-product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

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

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

  .add-button {
    width: 100%;
  }

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

  .cart-panel {
    padding: 16px;
  }

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

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

  .quantity-control {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand {
    gap: 8px;
  }

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

  .brand span:last-child {
    max-width: 132px;
  }

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

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

  .sort-field {
    align-items: stretch;
    justify-content: space-between;
  }

  .sort-field select {
    flex: 1;
  }

  .product-modal {
    padding: 12px;
  }

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

  .product-detail-copy {
    padding: 20px;
  }

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

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

  .form-grid .wide {
    grid-column: auto;
  }

  .receipt div {
    display: grid;
  }

  .receipt dd {
    text-align: left;
  }

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

  .order-card-main {
    display: grid;
  }

  .account-chip {
    max-width: none;
    padding-left: 9px;
  }

  .account-chip span {
    display: none;
  }

  .account-chip a {
    display: none;
  }

  .contact-section {
    margin-inline: 14px;
    padding: 20px;
  }

  .business-section,
  .feedback-section,
  .faq-section {
    margin-inline: 14px;
  }

  .policy-shell {
    padding-inline: 14px;
  }

  .policy-hero,
  .policy-content {
    padding: 20px;
  }

  .faq-section .secondary-action {
    width: 100%;
  }
}

/* Mobile storefront refinements */
@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    width: 100%;
    max-width: 100%;
    min-height: 0;
    gap: 10px 12px;
    padding: 10px 14px 12px;
  }

  .site-header .brand {
    grid-area: brand;
  }

  .site-header > .icon-button[data-logout] {
    grid-area: actions;
    justify-self: end;
  }

  .main-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    justify-content: stretch;
    color: var(--forest);
    font-size: 0.84rem;
  }

  .main-nav a {
    display: grid;
    min-height: 36px;
    place-items: center;
    border: 1px solid rgba(222, 217, 207, 0.95);
    border-radius: 999px;
    background: #fff;
    padding: 0 10px;
    font-weight: 900;
    text-align: center;
  }

  .header-actions {
    grid-area: actions;
    position: static;
    z-index: auto;
    width: auto;
    justify-self: end;
    gap: 8px;
  }

  .header-link {
    display: inline-flex;
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.82rem;
  }

  .header-link svg {
    display: block;
  }

  .customer-signin-link span {
    display: inline;
    font-size: 0;
  }

  .customer-signin-link span::after {
    content: "Sign in";
    font-size: 0.82rem;
  }

  .account-chip {
    min-height: 44px;
    max-width: none;
    padding: 0 6px 0 10px;
  }

  .account-chip span {
    display: none;
  }

  .account-chip a {
    display: inline-flex;
  }

  .marketplace-home {
    gap: 12px;
    padding: 12px 12px 34px;
  }

  .market-search-band {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .market-search {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    min-height: 50px;
    padding-left: 12px;
  }

  .market-search button {
    padding-inline: 12px;
  }

  .market-help-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    justify-self: stretch;
    gap: 8px;
  }

  .market-help-links a {
    min-height: 40px;
    justify-content: center;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .mall-top-grid {
    gap: 12px;
  }

  .mall-hero-deal {
    min-height: 0;
  }

  .hero-deal-image {
    order: -1;
    min-height: clamp(260px, 68vw, 380px);
    padding: 10px;
  }

  .hero-deal-copy {
    gap: 10px;
    padding: 18px;
  }

  .hero-deal-copy h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .hero-deal-copy p {
    font-size: 0.92rem;
  }

  .hero-price-row strong {
    font-size: 1.6rem;
  }

  .hero-deal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-deal-actions a {
    width: 100%;
  }

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

  .mall-menu a {
    min-height: 58px;
  }

  .mall-menu a:nth-child(odd) {
    border-right: 1px solid rgba(222, 217, 207, 0.72);
  }

  .mall-side-promos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
  }

  .mini-market-card {
    min-height: 96px;
    padding: 12px;
  }

  .mini-market-card strong {
    font-size: 0.98rem;
  }

  .quick-market-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(102px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .quick-market-rail a {
    min-height: 74px;
    scroll-snap-align: start;
  }

  .deal-section,
  .market-shelf {
    gap: 12px;
    padding: 12px;
  }

  .deal-header {
    align-items: start;
  }

  .deal-actions {
    display: grid;
    justify-items: end;
    gap: 6px;
  }

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

  .market-card-image {
    aspect-ratio: 4 / 5;
  }

  .market-card-copy {
    padding: 9px;
  }

  .market-card-copy h3 {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .home-service-strip {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 0;
  }

  .home-service-strip a {
    min-height: 64px;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .site-footer {
    padding: 24px 16px;
  }

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

  .site-footer nav a {
    min-height: 34px;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 8px;
    padding: 10px 10px 12px;
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .customer-signin-link {
    min-width: 0;
    padding: 0 10px;
  }

  .icon-button,
  .header-link,
  .customer-signin-link {
    width: auto;
    min-height: 42px;
    height: 42px;
  }

  .market-search {
    grid-template-columns: 20px 1fr;
    padding: 10px;
  }

  .market-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .market-help-links a span {
    font-size: 0.76rem;
  }

  .hero-deal-image {
    min-height: 300px;
  }

  .hero-deal-copy {
    padding: 16px;
  }

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

  .mall-menu nav,
  .mall-side-promos,
  .promo-tile-grid {
    grid-template-columns: 1fr;
  }

  .mall-menu a:nth-child(odd) {
    border-right: 0;
  }

  .mini-market-card {
    min-height: 82px;
  }

  .market-product-row,
  .shelf-product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .market-card-copy .price-row {
    display: grid;
    gap: 2px;
    align-items: start;
  }

  .market-card-button {
    min-height: 34px;
  }

  .promo-tile {
    min-height: 145px;
  }

  .shop-section {
    padding-inline: 12px;
  }

  .shop-toolbar {
    gap: 10px;
  }

  .cart-panel {
    width: 100%;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }
}

/* Polished dashboard app shell */
.app-body {
  --app-bg: #f4f6f5;
  --app-panel: #ffffff;
  --app-sidebar: #111f1d;
  --app-sidebar-soft: #19312d;
  --app-border: #dce3df;
  --app-text: #1c2321;
  --app-muted: #64716d;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 34rem),
    linear-gradient(135deg, #f8faf9 0%, var(--app-bg) 62%, #edf3f0 100%);
  color: var(--app-text);
}

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

.app-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    var(--app-sidebar);
  color: #fff;
  padding: 24px 18px;
}

.app-brand {
  color: #fff;
}

.app-brand .brand-mark {
  background: #fff;
  color: var(--app-sidebar);
}

.app-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.app-nav a,
.sidebar-logout {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  padding: 0 12px;
}

.app-nav a:hover,
.app-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.app-nav svg,
.sidebar-logout svg {
  width: 18px;
  height: 18px;
}

.sidebar-account {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.sidebar-account span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-account strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.sidebar-logout {
  width: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  justify-content: center;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.app-main {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 42px) 46px;
}

.app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(220, 227, 223, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(28, 35, 33, 0.07);
  padding: 20px;
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.app-topbar .eyebrow,
.workspace-panel .eyebrow,
.metric-card span,
.order-card .eyebrow {
  letter-spacing: 0.1em;
}

.app-topbar .primary-button {
  min-width: 168px;
}

.app-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

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

.app-metrics .metric-card {
  position: relative;
  overflow: hidden;
  border-color: var(--app-border);
  background: linear-gradient(180deg, #fff, #fbfcfb);
  box-shadow: 0 12px 30px rgba(28, 35, 33, 0.05);
  padding: 20px;
}

.app-metrics .metric-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0.72;
}

.app-metrics .metric-card strong {
  color: var(--app-text);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.workspace-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(28, 35, 33, 0.06);
  padding: 18px;
}

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

.panel-heading h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.15;
}

.refined-list {
  gap: 10px;
}

.refined-list .order-card {
  border-color: var(--app-border);
  background: #fff;
  box-shadow: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.refined-list .order-card:hover {
  border-color: rgba(15, 118, 110, 0.32);
  transform: translateY(-1px);
}

.refined-list .order-card-main strong {
  font-size: 1.14rem;
}

.refined-list .empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--app-border);
  border-radius: 8px;
  background: #fbfcfb;
  text-align: center;
}

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

.app-body .admin-form {
  position: sticky;
  top: 22px;
  border-color: var(--app-border);
  background: #fff;
  padding: 18px;
}

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

.app-body .admin-form label {
  color: var(--app-muted);
}

.app-body .admin-form input,
.app-body .admin-form textarea {
  border-color: var(--app-border);
  background: #fbfdfc;
}

.app-body .admin-form input:focus,
.app-body .admin-form textarea:focus,
.auth-card input:focus {
  border-color: rgba(15, 118, 110, 0.62);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: 0;
}

.app-body .admin-form .checkout-button {
  width: 100%;
}

.catalog-panel {
  overflow: hidden;
}

.app-body .admin-table {
  min-width: 760px;
}

.app-body .admin-table th {
  background: #f6f8f7;
  color: var(--app-muted);
  letter-spacing: 0.08em;
}

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

.app-body .admin-table tbody tr:hover td {
  background: #fbfdfc;
}

.stock-pill {
  display: inline-grid;
  min-width: 42px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-weight: 900;
}

.stock-pill.stock-low {
  background: rgba(196, 90, 61, 0.12);
  color: #9f3d27;
}

.stock-pill.stock-out {
  min-width: 76px;
  background: rgba(32, 32, 30, 0.1);
  color: var(--muted);
}

.image-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px dashed var(--app-border);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px;
}

.image-preview img {
  width: 72px;
  height: 86px;
  border-radius: 6px;
  background: #ede5dc;
  object-fit: cover;
}

.image-preview.is-empty img {
  display: none;
}

.image-preview span {
  display: block;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.image-preview strong {
  display: block;
  margin-top: 3px;
  color: var(--app-text);
  overflow-wrap: anywhere;
}

.admin-order-card {
  gap: 12px;
}

.order-management-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.order-management-form label {
  display: grid;
  gap: 5px;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-management-form input,
.order-management-form select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background: #fbfdfc;
  color: var(--app-text);
  padding: 0 10px;
  text-transform: none;
}

.order-management-form .wide {
  grid-column: span 2;
}

.app-body .table-actions button {
  min-height: 34px;
  background: #fff;
}

.app-body .table-actions button:hover,
.app-body .secondary-action:hover {
  border-color: rgba(15, 118, 110, 0.34);
  color: var(--accent-strong);
}

.activity-panel {
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

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

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

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

  .order-management-form .wide,
  .order-management-form button {
    grid-column: 1 / -1;
  }

  .app-body .admin-form {
    position: static;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto;
    gap: 16px;
  }

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

  .sidebar-account {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .sidebar-account span {
    grid-column: 1 / -1;
  }

  .app-topbar,
  .panel-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .app-topbar {
    display: grid;
  }

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

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

@media (max-width: 560px) {
  .app-main {
    padding: 18px 14px 32px;
  }

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

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

  .app-metrics,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .app-body .admin-form .form-grid {
    grid-template-columns: 1fr;
  }

  .order-timeline,
  .order-management-form {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    justify-content: start;
    padding-inline: 12px;
  }

  .app-topbar .primary-button,
  .app-topbar .primary-link,
  .panel-heading .secondary-action {
    width: 100%;
  }
}
