﻿:root {
  --bg: #fbfbfb;
  --panel: #ffffff;
  --text: #242424;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --soft: #f3f4f4;
  --soft-2: #e9f6f4;
  --primary: #272727;
  --primary-contrast: #ffffff;
  --teal: #0f8f80;
  --amber: #b77711;
  --red: #dc3f3f;
  --blue: #326ec9;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 251, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-contrast);
  display: grid;
  place-items: center;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.btn {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-contrast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border 160ms ease;
}

.btn {
  padding: 0 16px;
}

.icon-btn {
  width: 40px;
  padding: 0;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn:active,
.icon-btn:active {
  transform: scale(0.98);
}

.btn.secondary,
.icon-btn.secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.btn.ghost,
.icon-btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn.small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.cart-button {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid var(--bg);
}

.mobile-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #fff;
  background: #151515;
}

.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 42px;
  padding: 58px 0 46px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.96), rgba(19, 19, 19, 0.72) 48%, rgba(19, 19, 19, 0.38)),
    url("../01_首页_Home.png") center / cover;
  opacity: 0.42;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 15px;
  color: #b9b9b9;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 800;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: #d8d8d8;
}

.hero p {
  max-width: 510px;
  margin: 24px 0 30px;
  color: #d6d6d6;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn:first-child {
  background: #fff;
  color: #171717;
}

.hero-finder {
  max-width: 620px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.finder-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.finder-row + .finder-row {
  margin-top: 10px;
}

.finder-row span {
  min-width: 88px;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.finder-row button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #191919;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.finder-row button:hover {
  border-color: #fff;
  background: var(--teal);
  color: #fff;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 34px;
}

.hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 7px;
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.remote-stage {
  width: min(100%, 420px);
  aspect-ratio: 1;
  position: relative;
}

.remote-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 13%;
  height: 18%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(18px);
}
.hero-product-label {
  position: absolute;
  right: 2%;
  top: 7%;
  z-index: 2;
  width: min(230px, 58%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: rgba(19, 19, 19, 0.72);
  color: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.hero-product-label span {
  display: inline-block;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e9f6f4;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-product-label strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.hero-product-label small {
  display: block;
  margin-top: 6px;
  color: #d0d0d0;
  font-size: 11px;
  font-weight: 700;
}

.remote-svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.35));
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}

.product-media .product-photo,
.gallery-main .product-photo {
  width: 100%;
  height: 100%;
  padding: 14px;
}

.thumb .product-photo,
.cart-thumb .product-photo,
.drawer-thumb .product-photo,
.mini-thumb .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-grid div {
  min-height: 94px;
  padding: 20px;
  background: #fff;
}

.trust-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.trust-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.brand-section {
  background: #f7f9f9;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.brand-card,
.brand-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-card {
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 16px;
}

.brand-card:hover,
.brand-pill:hover,
.brand-pill.active {
  transform: translateY(-2px);
  border-color: var(--brand-color, var(--teal));
  box-shadow: 0 14px 28px rgba(15, 143, 128, 0.12);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-color, var(--teal)) 14%, #fff);
  color: var(--brand-color, var(--teal));
  font-size: 13px;
  font-weight: 900;
}

.brand-badge.small {
  width: 34px;
  height: 34px;
  font-size: 11px;
  flex: 0 0 auto;
}

.brand-card strong {
  font-size: 16px;
}

.brand-card small,
.brand-card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.brand-card-meta {
  display: block;
}
.section {
  padding: 76px 0;
}

.section.muted {
  background: #f4f5f5;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h2,
.page-head h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.section-head p,
.page-head p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.category-card,
.product-card,
.feature,
.cart-item,
.summary,
.admin-tile,
.table-wrap,
.address-card,
.order-row,
.preview-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.category-card {
  min-height: 178px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.product-card:hover,
.admin-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-visual {
  width: 84px;
  height: 84px;
  margin: 0 auto 15px;
  border-radius: var(--radius);
  background: var(--soft);
  display: grid;
  place-items: center;
}

.category-meta {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-count {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal);
  font-size: 12px;
}
.category-card h3,
.feature h3,
.admin-tile h3 {
  margin: 0;
  font-size: 16px;
}

.category-card p,
.feature p,
.admin-tile p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eef1f1;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.compact-card .product-media {
  aspect-ratio: 1 / 1;
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.product-media svg {
  width: min(68%, 210px);
  transition: transform 300ms ease;
}

.product-card:hover .product-media svg {
  transform: scale(1.05);
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  margin: 0;
  min-height: 38px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-meta.single {
  align-items: center;
}

.product-meta.single span:last-child {
  color: var(--teal);
}

.fitment {
  margin: 8px 0 0;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

button.tag {
  font-family: inherit;
  cursor: pointer;
}

.brand-tag {
  border-color: color-mix(in srgb, var(--teal) 24%, var(--line));
  color: var(--teal);
  background: var(--soft-2);
}

.tag.hot {
  border-color: transparent;
  background: #ffeded;
  color: var(--red);
}

.tag.stock {
  border-color: transparent;
  background: #fff4dd;
  color: var(--amber);
}
.price-table {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.price-row:first-child {
  border-top: 0;
}

.price-row.active {
  border-left-color: var(--teal);
  background: var(--soft-2);
}

.price-row.active strong,
.price-row.active span:last-child {
  color: var(--teal);
  font-weight: 800;
}

.compact-card .product-media {
  aspect-ratio: 1 / 1;
}

.compact-card .product-title {
  min-height: 38px;
}

.product-meta.single {
  align-items: center;
}

.product-meta.single span:last-child {
  color: var(--teal);
}

.compact-price {
  font-size: 11px;
}

.compact-price .price-row {
  padding: 7px 9px;
}

.cart-actions {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
}

.card-qty {
  height: 36px;
  grid-template-columns: 28px 1fr 28px;
}

.card-cta {
  width: 100%;
  min-height: 36px;
  font-size: 13px;
  white-space: nowrap;
}
.product-foot {
  margin-top: auto;
  padding-top: 16px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.price-stack {
  display: grid;
  gap: 3px;
}

.price-stack small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.price {
  font-size: 20px;
  font-weight: 800;
}

.details-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.qty-add {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 9px;
}

.qty {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  background: #fff;
}

.qty button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.qty span {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.catalog-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}

.eyebrow.dark {
  color: var(--teal);
}

.catalog-panel h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
}

.catalog-panel p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-metrics div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8f9f9;
}

.catalog-metrics strong {
  display: block;
  font-size: 20px;
}

.catalog-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.brand-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.brand-pill {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
}

.brand-pill span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-color, var(--teal)) 14%, #fff);
  color: var(--brand-color, var(--teal));
  font-size: 11px;
  font-weight: 900;
}

.brand-pill strong,
.brand-pill small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-pill strong {
  font-size: 12px;
}

.brand-pill small {
  color: var(--muted);
  font-size: 11px;
}

.brand-pill.active {
  background: color-mix(in srgb, var(--brand-color, var(--teal)) 8%, #fff);
}

.pill {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.pill.active,
.pill:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.results-bar strong {
  color: var(--text);
}
.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(138px, 0.58fr)) 112px;
  gap: 12px;
  margin: 26px 0 28px;
  padding: 14px;
  background: #f1f2f2;
  border-radius: var(--radius);
}

.filter-reset {
  min-height: 44px;
  width: 100%;
}

.field {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 13px;
  color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 46px;
  padding: 34px 0 72px;
}

.gallery-main {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef1f1;
  display: grid;
  place-items: center;
}

.gallery-main svg {
  width: min(76%, 420px);
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  width: 74px;
  height: 74px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #eef1f1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.thumb.active {
  border-color: var(--primary);
}

.thumb:hover,
.thumb:focus-visible {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 143, 128, 0.12);
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.18;
}

.detail-price {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 800;
}

.description {
  margin: 22px 0;
  color: #4b4b4b;
  line-height: 1.75;
}

.specs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0 26px;
}

.spec-line {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.spec-line:nth-child(odd) {
  background: #f4f5f5;
}

.spec-line span:first-child {
  font-weight: 700;
}

.detail-page {
  background: #fbfbfb;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--text);
}

.breadcrumbs span:last-child {
  color: var(--teal);
}

.related-products {
  border-top: 1px solid var(--line);
  padding: 46px 0 76px;
}

.related-grid .product-card {
  background: #fff;
}

.recently-viewed-section {
  border-top: 1px solid var(--line);
  padding: 36px 0 72px;
}

.recent-grid .product-card {
  background: #fff;
}

.procurement-detail {
  align-items: start;
}

.detail-gallery {
  position: relative;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-kicker span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.detail-highlights div,
.detail-note-grid div,
.detail-buy-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-highlights div {
  padding: 14px;
}

.detail-highlights span,
.detail-note-grid span,
.detail-buy-box p {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-highlights strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
}

.detail-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.detail-note-grid div {
  padding: 14px;
}

.detail-note-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.detail-buy-box {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
}

.detail-buy-box h3,
.detail-buy-box p {
  margin: 0;
}

.detail-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-tiers div {
  padding: 12px;
  border-left: 1px solid var(--line);
  background: #f8f9f9;
}

.detail-tiers div:first-child {
  border-left: 0;
}

.detail-tiers div.active {
  background: var(--soft-2);
  box-shadow: inset 0 0 0 2px rgba(15, 143, 128, 0.28);
}

.detail-tiers span,
.detail-tiers strong {
  display: block;
}

.detail-tiers span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-tiers strong {
  margin-top: 4px;
  color: var(--teal);
}

.buy-box-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.stock-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e7f4f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-purchase-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.detail-qty {
  height: 46px;
  grid-template-columns: 38px 1fr 38px;
}

.detail-total-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.detail-total-box div {
  padding: 12px;
  background: #fff;
}

.detail-total-box span,
.detail-total-box strong {
  display: block;
}

.detail-total-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-total-box strong {
  margin-top: 4px;
  font-size: 14px;
}

.buy-now-btn {
  width: 100%;
  min-height: 44px;
}

.detail-service-list {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.detail-service-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.detail-service-list strong {
  font-size: 13px;
}

.detail-service-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}


.detail-shipping-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8f9f9;
}

.detail-shipping-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.detail-shipping-head strong,
.detail-shipping-head span {
  display: block;
}

.detail-shipping-head strong {
  font-size: 13px;
}

.detail-shipping-head span {
  color: var(--muted);
  font-size: 12px;
}

.detail-shipping-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-shipping-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.detail-shipping-card strong,
.detail-shipping-card span,
.detail-shipping-card small {
  display: block;
}

.detail-shipping-card strong {
  font-size: 12px;
}

.detail-shipping-card span,
.detail-shipping-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.compatibility-card {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.compatibility-card h3 {
  margin: 0 0 10px;
}

.compatibility-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.65;
}
.feature-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  text-align: center;
  padding: 26px;
  border-color: transparent;
  background: transparent;
}

.feature-icon,
.admin-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--soft);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--teal);
}

.page {
  padding: 34px 0 76px;
}

.shop-page {
  background: #f7f8f8;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}

.shop-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.shop-header p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.shop-item {
  grid-template-columns: 96px minmax(0, 1fr) 120px;
  background: #fff;
}

.shop-item .fitment {
  min-height: auto;
  margin-bottom: 8px;
}

.shop-summary .summary-note,
.summary-note {
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 11px;
  background: #f3f4f4;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.shop-contact-card {
  border-color: var(--line);
  background: #fff;
}

.drawer-sku {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.shop-drawer-item h4 {
  margin-bottom: 3px;
}
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.cart-thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: #eef1f1;
  display: grid;
  place-items: center;
}

.cart-thumb svg {
  width: 70px;
}

.cart-item h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.cart-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 800;
}

.cart-price strong {
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--soft-2);
  color: var(--teal);
  font-size: 11px;
  text-transform: uppercase;
}

.cart-line-total {
  font-weight: 800;
  text-align: right;
}

.line-saving {
  display: block;
  margin-top: 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.line-saving.muted {
  color: var(--muted);
  font-weight: 700;
}

.free-shipping-box {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  padding: 13px;
  background: #eef8f6;
}

.free-shipping-box strong,
.free-shipping-box span {
  display: block;
}

.free-shipping-box strong {
  color: var(--teal);
  font-size: 13px;
}

.free-shipping-box span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.free-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #d6e5e2;
}

.free-progress span {
  height: 100%;
  display: block;
  background: var(--teal);
}

.summary-line.savings span:last-child {
  color: var(--teal);
  font-weight: 800;
}

.summary {
  padding: 20px;
  position: sticky;
  top: 84px;
}

.summary h3 {
  margin: 0 0 14px;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.summary-line {
  color: var(--muted);
  font-size: 14px;
}

.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
  font-weight: 800;
  font-size: 18px;
}

.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}

.enhanced-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.compact-recommendations {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  text-align: left;
}

.compact-recommendations-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.compact-recommendations-head a {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.compact-recommendation-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-recommendation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: #f8f9f9;
}

.compact-recommendation .mini-thumb {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #eef1f1;
}

.compact-recommendation .mini-thumb svg {
  width: 38px;
}

.compact-recommendation strong,
.compact-recommendation small {
  display: block;
}

.compact-recommendation strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.3;
}

.compact-recommendation small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.drawer-empty .compact-recommendation-list {
  grid-template-columns: 1fr;
}

.drawer-empty {
  padding: 28px 0;
}

.checkout-page .shop-header {
  margin-bottom: 18px;
}

.enhanced-checkout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.checkout-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 18px;
}

.checkout-flow-strip div {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  min-width: 0;
}

.checkout-flow-strip strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
}

.checkout-flow-strip span {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.checkout-main {
  display: grid;
  gap: 14px;
}

.checkout-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.checkout-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.checkout-section-head > span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.checkout-section-head h3,
.checkout-section-head p {
  margin: 0;
}

.checkout-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.address-choice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  background: #f8f9f9;
}

.address-choice.selected,
.option-card.selected {
  border-color: var(--primary);
  background: #fff;
}

.address-choice strong,
.address-choice p,
.address-choice span {
  display: block;
  margin: 0;
}

.address-choice p,
.address-choice span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #f8f9f9;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.option-card input {
  margin: 0;
}

.option-card span,
.option-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.option-card small {
  font-size: 12px;
}

.shipping-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shipping-method-card {
  min-height: 114px;
}

.payment-card-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  background: #f8f9f9;
}

.card-brand {
  border-radius: var(--radius);
  padding: 10px;
  background: #202020;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.payment-card-row strong,
.payment-card-row p {
  display: block;
  margin: 0;
}

.payment-card-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.compact-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.offline-payment-box {
  display: grid;
  gap: 12px;
}

.offline-payment-alert {
  display: grid;
  gap: 5px;
  border: 1px solid #d8eadf;
  border-radius: var(--radius);
  padding: 13px;
  background: #edf7ee;
  color: #1f7b36;
}

.offline-payment-alert span {
  color: #3f6f4d;
  font-size: 13px;
  line-height: 1.45;
}

.offline-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.offline-account-card,
.offline-proof-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8f9f9;
}

.selectable-payment-card {
  position: relative;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.selectable-payment-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: var(--primary);
}

.selectable-payment-card.selected {
  border-color: var(--primary);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 128, 0.24);
}

.offline-account-card span,
.offline-proof-card span {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.offline-account-card strong,
.offline-proof-card strong {
  display: block;
  margin-top: 5px;
}

.offline-account-card p,
.offline-account-card small,
.offline-proof-card p {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.proof-upload {
  display: grid;
  gap: 8px;
  border: 1px dashed #b8c7c4;
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.proof-upload span {
  font-weight: 800;
}

.checkout-items {
  display: grid;
  gap: 10px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.checkout-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.checkout-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-unit {
  display: inline-block;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft-2);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.checkout-line-total {
  font-weight: 800;
  text-align: right;
}

.checkout-summary {
  top: 84px;
}

.coupon-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}
.checkout-account {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff7e8;
}

.checkout-account.signed {
  background: #edf7ee;
}

.checkout-account strong,
.checkout-account p {
  display: block;
  margin: 0;
}

.checkout-account p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.address-card {
  padding: 18px;
  margin-bottom: 14px;
  border-color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

textarea.field {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.field[type="color"] {
  min-height: 42px;
  padding: 5px;
  cursor: pointer;
}

.full {
  grid-column: 1 / -1;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #edf7ee;
  color: #1f7b36;
}

.status.pending,
.status.awaiting_review {
  background: #fff4dd;
  color: var(--amber);
}

.status.shipped {
  background: #eaf1ff;
  color: var(--blue);
}

.status.processing {
  background: #fff4dd;
  color: var(--amber);
}

.status.paid {
  background: #edf7ee;
  color: #1f7b36;
}

.status.rejected {
  background: #ffe8e8;
  color: var(--red);
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.admin-page-head h1,
.admin-page-head p {
  margin: 0;
}

.admin-page-head p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.admin-stats span,
.admin-stats strong,
.admin-stats p {
  display: block;
  margin: 0;
}

.admin-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stats strong {
  margin-top: 8px;
  font-size: 28px;
}

.admin-stats p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-nav-grid {
  margin-bottom: 18px;
}

.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-panel {
  background: #fff;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head h3 {
  margin: 0;
}

.admin-panel-head a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.admin-tabs {
  display: flex;
  gap: 14px;
  align-items: center;
}

.admin-tabs a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-tabs a:hover {
  color: var(--text);
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-dashboard-ops {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-brand-panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.admin-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.admin-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.admin-brand-row div {
  min-width: 0;
}

.admin-brand-row strong,
.admin-brand-row small {
  display: block;
}

.admin-brand-row strong {
  font-size: 13px;
}

.admin-brand-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.shipping-control-panel,
.product-image-uploader {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.shipping-control-panel {
  padding: 16px;
}

.shipping-default-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.shipping-default-row label,
.shipping-default-row span,
.shipping-default-row p {
  display: block;
  margin: 0;
}

.shipping-default-row span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shipping-default-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.shipping-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shipping-admin-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8f9f9;
}

.shipping-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toggle-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.shipping-card-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.shipping-rule-preview {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.shipping-rule-preview strong {
  color: var(--text);
}

.product-image-uploader {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8f9f9;
}

.uploader-head strong,
.uploader-head span {
  display: block;
}

.uploader-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.image-upload-drop {
  margin: 0;
  background: #fff;
}

.admin-image-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-image-thumb,
.image-empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-image-thumb {
  display: grid;
  grid-template-rows: 88px auto;
  overflow: hidden;
}

.admin-image-thumb img {
  width: 100%;
  height: 88px;
  padding: 8px;
  object-fit: contain;
  background: #eef1f1;
}

.admin-image-thumb span,
.image-empty-state {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.image-empty-state {
  grid-column: 1 / -1;
  min-height: 82px;
  display: grid;
  place-items: center;
}

.admin-op-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-op-card.warning {
  border-color: #f0d8a6;
  background: #fffaf0;
}

.admin-op-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-op-card strong {
  font-size: 20px;
}

.admin-op-card p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.admin-shell {
  min-height: 100vh;
  background: #f3f4f4;
}

.admin-header {
  height: 56px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.admin-header .container {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-tile {
  padding: 24px;
  cursor: pointer;
}

.admin-icon {
  margin: 0 0 16px;
}

.table-wrap {
  overflow-x: visible;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.35;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-orders-table table {
  min-width: 0;
  table-layout: fixed;
}

.admin-products-table table {
  min-width: 0;
  table-layout: fixed;
}

.admin-categories-table table {
  min-width: 0;
}
.admin-products-table th,
.admin-products-table td,
.admin-orders-table th,
.admin-orders-table td,
.admin-categories-table th,
.admin-categories-table td {
  font-size: 12px;
}

.admin-products-table .table-subtext,
.admin-orders-table .table-subtext,
.admin-categories-table .table-subtext {
  font-size: 10px;
  line-height: 1.25;
}

.admin-products-table .table-actions,
.admin-orders-table .table-actions,
.admin-categories-table .table-actions {
  align-items: stretch;
  gap: 6px;
}

.admin-products-table .btn.small,
.admin-orders-table .btn.small,
.admin-categories-table .btn.small {
  min-height: 30px;
  padding: 7px 9px;
  font-size: 11px;
}
.admin-orders-table th,
.admin-orders-table td {
  padding-top: 16px;
  padding-bottom: 16px;
  vertical-align: top;
}

.admin-orders-table .status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
}

.table-status-stack,
.tracking-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
  justify-items: start;
}

.admin-orders-table .table-subtext {
  max-width: 100%;
  margin-top: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-orders-table .table-actions {
  display: grid;
  justify-items: start;
  align-content: start;
  min-width: 0;
}

.admin-products-table th:nth-child(1),
.admin-products-table td:nth-child(1) { width: 24%; }
.admin-products-table th:nth-child(2),
.admin-products-table td:nth-child(2) { width: 10%; }
.admin-products-table th:nth-child(3),
.admin-products-table td:nth-child(3) { width: 12%; }
.admin-products-table th:nth-child(4),
.admin-products-table td:nth-child(4) { width: 16%; }
.admin-products-table th:nth-child(5),
.admin-products-table td:nth-child(5) { width: 9%; }
.admin-products-table th:nth-child(6),
.admin-products-table td:nth-child(6) { width: 13%; }
.admin-products-table th:nth-child(7),
.admin-products-table td:nth-child(7) { width: 8%; }
.admin-products-table th:nth-child(8),
.admin-products-table td:nth-child(8) { width: 8%; }

.admin-orders-table th:nth-child(1),
.admin-orders-table td:nth-child(1) { width: 15%; }
.admin-orders-table th:nth-child(2),
.admin-orders-table td:nth-child(2) { width: 11%; }
.admin-orders-table th:nth-child(3),
.admin-orders-table td:nth-child(3) { width: 9%; }
.admin-orders-table th:nth-child(4),
.admin-orders-table td:nth-child(4) { width: 9%; }
.admin-orders-table th:nth-child(5),
.admin-orders-table td:nth-child(5) { width: 8%; }
.admin-orders-table th:nth-child(6),
.admin-orders-table td:nth-child(6) { width: 16%; }
.admin-orders-table th:nth-child(7),
.admin-orders-table td:nth-child(7) { width: 12%; }
.admin-orders-table th:nth-child(8),
.admin-orders-table td:nth-child(8) { width: 12%; }
.admin-orders-table th:nth-child(9),
.admin-orders-table td:nth-child(9) { width: 8%; }

.admin-categories-table th:nth-child(1),
.admin-categories-table td:nth-child(1) { width: 5%; }
.admin-categories-table th:nth-child(2),
.admin-categories-table td:nth-child(2) { width: 12%; }
.admin-categories-table th:nth-child(3),
.admin-categories-table td:nth-child(3) { width: 18%; }
.admin-categories-table th:nth-child(4),
.admin-categories-table td:nth-child(4) { width: 7%; }
.admin-categories-table th:nth-child(5),
.admin-categories-table td:nth-child(5) { width: 7%; }
.admin-categories-table th:nth-child(6),
.admin-categories-table td:nth-child(6) { width: 8%; }
.admin-categories-table th:nth-child(7),
.admin-categories-table td:nth-child(7) { width: 8%; }
.admin-categories-table th:nth-child(8),
.admin-categories-table td:nth-child(8) { width: 13%; }
.admin-categories-table th:nth-child(9),
.admin-categories-table td:nth-child(9) { width: 8%; }
.admin-categories-table th:nth-child(10),
.admin-categories-table td:nth-child(10) { width: 14%; }


.admin-products-table th,
.admin-products-table td {
  vertical-align: top;
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.admin-product-cell strong,
.admin-product-cell span {
  min-width: 0;
}

.admin-product-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef1f1;
}

.admin-product-thumb img,
.admin-product-thumb svg {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.admin-products-table .table-subtext {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-products-table .status {
  display: inline-flex;
  max-width: 100%;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: normal;
}

.admin-products-table .table-actions {
  display: grid;
  justify-items: start;
  align-content: start;
  min-width: 0;
}

.product-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  margin-bottom: 14px;
  align-items: start;
}

.product-editor-primary,
.product-editor-sidebar {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-editor-sidebar {
  position: sticky;
  top: 12px;
}

.product-editor-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #f8f9f9;
}

.product-editor-main,
.product-editor-media {
  grid-column: auto;
}

.editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-section-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-section-head strong {
  font-size: 15px;
}

.product-form-grid {
  margin-bottom: 0;
}

.product-description-field,
.product-fitment-field {
  min-height: 118px;
}

.tier-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.tier-preview span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tier-preview strong {
  font-size: 12px;
}

.editor-preview-card,
.publish-card,
.pricing-card,
.fulfillment-card,
.ecommerce-uploader {
  background: #fff;
}

.editor-preview-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef1f1;
}

.editor-preview-visual img,
.editor-preview-visual svg {
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  box-sizing: border-box;
}

.editor-preview-card > strong,
.editor-preview-card > span {
  display: block;
  min-width: 0;
}

.editor-preview-card > span,
.editor-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.compact-editor-grid {
  grid-template-columns: 1fr 1fr;
}

.editor-tier-preview {
  grid-template-columns: 1fr;
}

.ecommerce-upload-drop {
  min-height: 88px;
  border-style: dashed;
  background: #f8f9f9;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.preview-shot {
  overflow: hidden;
  cursor: pointer;
}

.preview-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.preview-shot span {
  display: block;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  width: min(440px, 100%);
  height: 100vh;
  background: var(--panel);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 36px rgba(0, 0, 0, 0.16);
}

.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer-open .drawer {
  transform: translateX(0);
}

.drawer-head,
.drawer-foot {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.drawer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title h3 {
  margin: 0;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.drawer-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: #eef1f1;
  display: grid;
  place-items: center;
}

.drawer-thumb svg {
  width: 52px;
}

.drawer-item h4 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.35;
}

.drawer-item p {
  margin: 0 0 8px;
  font-weight: 800;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 20px);
  background: #222;
  color: #fff;
  border-radius: var(--radius);
  padding: 11px 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox img {
  max-height: 92vh;
  border-radius: var(--radius);
}

.remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.account-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px 0 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.account-chip span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}

.account-chip strong {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.36);
}

.account-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 71;
  width: min(420px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.account-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.account-head h3,
.account-head p {
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.account-form {
  margin-bottom: 14px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.account-actions.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-modal {
  width: min(860px, calc(100% - 28px));
}

.admin-modal textarea.field {
  min-height: 84px;
}
.payment-review-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #d8eadf;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  background: #edf7ee;
}

.payment-review-panel span,
.payment-review-panel strong,
.payment-review-panel p {
  display: block;
  margin: 0;
}

.payment-review-panel span {
  color: #3f6f4d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-review-panel strong {
  margin-top: 5px;
}

.payment-review-panel p {
  margin-top: 5px;
  color: #3f6f4d;
  font-size: 13px;
  line-height: 1.45;
}

.payment-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.btn.danger {
  border-color: #f3c4c4;
  color: var(--red);
}

.shipment-steps span.rejected-step {
  border-color: #f3c4c4;
  background: #ffe8e8;
  color: var(--red);
}

.admin-order-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-order-summary div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8f9f9;
}

.admin-order-summary span,
.admin-order-summary strong {
  display: block;
}

.admin-order-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-order-summary strong {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
}
.account-muted {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.profile-card h3 {
  margin: 0 0 14px;
}

.account-overview {
  grid-row: span 2;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.account-overview > strong,
.account-overview > p {
  display: block;
  margin: 0;
}

.account-overview > p {
  margin-top: 5px;
  color: var(--muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.profile-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #f8f9f9;
}

.profile-stats span,
.profile-stats strong {
  display: block;
}

.profile-stats span {
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.profile-card-head h3 {
  margin: 0;
}

.address-list {
  display: grid;
  gap: 10px;
}

.saved-address {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #f8f9f9;
}

.saved-address.default {
  border-color: var(--primary);
  background: #fff;
}

.saved-address strong,
.saved-address p,
.saved-address span {
  display: block;
  margin: 0;
}

.saved-address p,
.saved-address span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-order {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.saved-payment {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #f8f9f9;
}

.saved-payment p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-edit-form {
  margin-top: 14px;
}

.account-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.account-service-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.account-service-grid span,
.account-service-grid strong {
  display: block;
}

.account-service-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-order-line a {
  display: grid;
  gap: 4px;
}

.account-order-line a span {
  color: var(--muted);
  font-size: 13px;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #f8f9f9;
}

.service-item strong,
.service-item p {
  display: block;
  margin: 0;
}

.service-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.mini-order-list {
  display: grid;
}

.enhanced-mini-order {
  align-items: flex-start;
}

.mini-order-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mini-order:first-of-type {
  border-top: 0;
}

.mini-order strong,
.mini-order span {
  display: block;
}

.mini-order div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.order-detail-head h1,
.order-detail-head p {
  margin: 0;
}

.order-detail-head p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
}

.order-head-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.order-detail-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.order-detail-item:first-of-type {
  border-top: 0;
}

.order-detail-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.small-thumb {
  width: 64px;
  height: 64px;
}

.shipment-panel {
  margin-top: 20px;
}

.shipment-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.shipment-steps span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #f8f9f9;
}

.shipment-steps span.done {
  border-color: #b9dec4;
  background: #edf7ee;
  color: #1f7b36;
}

.shipment-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.shipment-meta-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8f9f9;
}

.shipment-meta-grid span,
.shipment-meta-grid strong {
  display: block;
}

.shipment-meta-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shipment-meta-grid strong {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
}

.profile-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
@media (max-width: 900px) {
  .account-hero-panel,
  .account-center-layout,
  .profile-section-grid,
  .account-status-grid,
  .address-card-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .account-identity,
  .account-hero-actions {
    align-items: flex-start;
  }

  .account-hero-panel,
  .account-hero-actions {
    flex-direction: column;
  }

  .account-sidebar {
    position: static;
  }

  .enhanced-checkout,
  .option-grid,
  .checkout-form-grid,
  .compact-fields,
  .offline-account-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .admin-stats,
  .admin-two-col,
  .admin-ops-grid,
  .admin-filter-bar,
  .shipping-admin-grid,
  .shipping-default-row,
  .shipping-options {
    grid-template-columns: 1fr;
  }

  .brand-grid,
  .brand-rail,
  .admin-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page-head {
    display: block;
  }

  .admin-page-head .btn {
    margin-top: 14px;
  }

  .profile-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .shop-header {
    display: block;
  }

  .shop-header .btn {
    margin-top: 14px;
  }

  .detail-highlights,
  .detail-note-grid,
  .detail-tiers {
    grid-template-columns: 1fr;
  }

  .catalog-panel,
  .catalog-metrics {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero-grid,
  .detail-grid,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .category-grid,
  .product-grid,
  .feature-grid,
  .admin-grid,
  .compact-recommendation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: 1fr;
  }

  
.preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .account-order-card,
  .service-item {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .profile-card {
    padding: 16px;
  }

  .payment-review-panel,
  .payment-card-row,
  .checkout-item,
  .service-item,
  .admin-order-summary {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    display: none;
  }

  .profile-stats,
  .shipment-steps,
  .shipment-meta-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-head,
  .order-row,
  .enhanced-mini-order {
    display: block;
  }

  .mini-order-status {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .order-actions {
    margin-top: 12px;
  }

  .shop-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .shop-header h1 {
    font-size: 28px;
  }

  .cart-actions {
    grid-template-columns: 1fr;
  }

  .catalog-panel {
    padding: 20px;
  }

  .catalog-panel h1 {
    font-size: 30px;
  }

  .results-bar {
    display: block;
  }


  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-finder {
    padding: 12px;
  }

  .finder-row {
    align-items: flex-start;
  }

  .finder-row span {
    width: 100%;
    min-width: 0;
  }

  .hero-product-label {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-bottom: 12px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-head h2,
  .page-head h1,
  .detail-info h1 {
    font-size: 28px;
  }
  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
  }

  .category-grid,
  .product-grid,
  .feature-grid,
  .admin-grid,
  .form-grid,
  .compact-recommendation-list,
  .brand-grid,
  .brand-rail,
  .admin-brand-grid,
  .admin-image-preview {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .qty-add,
  .detail-purchase-row,
  .detail-service-list div {
    grid-template-columns: 1fr;
  }

  .detail-total-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buy-box-head {
    display: block;
  }

  .stock-chip {
    display: inline-block;
    margin-top: 10px;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line-total {
    grid-column: 1 / -1;
    text-align: left;
  }

  .cart-thumb {
    width: 72px;
    height: 72px;
  }

  .order-row {
    display: block;
  }
}






















/* Final responsive polish */
.product-card,
.checkout-card,
.admin-panel,
.profile-panel,
.order-detail-card {
  min-width: 0;
}

.table-wrap table {
  min-width: 0;
}

.admin-orders-table table {
  min-width: 0;
  table-layout: fixed;
}

.admin-products-table table {
  min-width: 0;
  table-layout: fixed;
}

.admin-categories-table table {
  min-width: 0;
}

@media (max-width: 900px) {
  .account-hero-panel,
  .account-center-layout,
  .profile-section-grid,
  .account-status-grid,
  .address-card-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .account-identity,
  .account-hero-actions {
    align-items: flex-start;
  }

  .account-hero-panel,
  .account-hero-actions {
    flex-direction: column;
  }

  .account-sidebar {
    position: static;
  }

  .product-grid {
    gap: 18px;
  }

  .checkout-summary,
  .summary {
    top: auto;
  }

  .account-modal,
  .admin-modal {
    max-height: calc(100vh - 32px);
    overflow: auto;
  }
}

@media (max-width: 560px) {
  .account-order-card,
  .service-item {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .profile-card {
    padding: 16px;
  }

  .top-actions {
    gap: 8px;
  }

  .icon-button,
  .account-chip,
  .account-button {
    min-width: 44px;
    height: 44px;
  }

  .product-card {
    max-width: none;
  }

  .product-body {
    padding: 16px;
  }

  .product-title {
    min-height: auto;
  }

  .price-row {
    align-items: flex-start;
    gap: 8px;
  }

  .account-modal,
  .admin-modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .modal-head,
  .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .table-wrap {
    margin-left: -12px;
    margin-right: -12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  th,
  td {
    padding: 12px;
  }

  .checkout-card,
  .summary,
  .admin-panel,
  .profile-panel,
  .order-detail-card {
    padding: 16px;
  }

  .payment-option,
  .delivery-option,
  .address-card {
    padding: 14px;
  }
}
























@media (max-width: 700px) {
  .admin-products-table table,
  .admin-products-table thead,
  .admin-products-table tbody,
  .admin-products-table tr,
  .admin-products-table th,
  .admin-products-table td,
  .admin-orders-table table,
  .admin-orders-table thead,
  .admin-orders-table tbody,
  .admin-orders-table tr,
  .admin-orders-table th,
  .admin-orders-table td,
  .admin-categories-table table,
  .admin-categories-table thead,
  .admin-categories-table tbody,
  .admin-categories-table tr,
  .admin-categories-table th,
  .admin-categories-table td {
    display: block;
    width: 100% !important;
  }

  .admin-products-table thead,
  .admin-orders-table thead,
  .admin-categories-table thead {
    display: none;
  }

  .admin-products-table tbody,
  .admin-orders-table tbody,
  .admin-categories-table tbody {
    display: grid;
    gap: 12px;
  }

  .admin-products-table tr,
  .admin-orders-table tr,
  .admin-categories-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
  }

  .admin-products-table td,
  .admin-orders-table td,
  .admin-categories-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
  }

  .admin-products-table td:last-child,
  .admin-orders-table td:last-child,
  .admin-categories-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .admin-products-table td::before,
  .admin-orders-table td::before,
  .admin-categories-table td::before {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .admin-products-table td:nth-child(1)::before { content: "Product"; }
  .admin-products-table td:nth-child(2)::before { content: "SKU"; }
  .admin-products-table td:nth-child(3)::before { content: "Catalog"; }
  .admin-products-table td:nth-child(4)::before { content: "Pricing"; }
  .admin-products-table td:nth-child(5)::before { content: "Inventory"; }
  .admin-products-table td:nth-child(6)::before { content: "Shipping"; }
  .admin-products-table td:nth-child(7)::before { content: "Status"; }
  .admin-products-table td:nth-child(8)::before { content: "Action"; }

  .admin-orders-table td:nth-child(1)::before { content: "Order"; }
  .admin-orders-table td:nth-child(2)::before { content: "Customer"; }
  .admin-orders-table td:nth-child(3)::before { content: "Items"; }
  .admin-orders-table td:nth-child(4)::before { content: "Date"; }
  .admin-orders-table td:nth-child(5)::before { content: "Total"; }
  .admin-orders-table td:nth-child(6)::before { content: "Payment"; }
  .admin-orders-table td:nth-child(7)::before { content: "Fulfillment"; }
  .admin-orders-table td:nth-child(8)::before { content: "Tracking"; }
  .admin-orders-table td:nth-child(9)::before { content: "Action"; }

  .admin-categories-table td:nth-child(1)::before { content: "Sort"; }
  .admin-categories-table td:nth-child(2)::before { content: "Category"; }
  .admin-categories-table td:nth-child(3)::before { content: "Description"; }
  .admin-categories-table td:nth-child(4)::before { content: "Products"; }
  .admin-categories-table td:nth-child(5)::before { content: "Inventory"; }
  .admin-categories-table td:nth-child(6)::before { content: "Low stock"; }
  .admin-categories-table td:nth-child(7)::before { content: "Visibility"; }
  .admin-categories-table td:nth-child(8)::before { content: "Brands"; }
  .admin-categories-table td:nth-child(9)::before { content: "Storefront"; }
  .admin-categories-table td:nth-child(10)::before { content: "Action"; }

  .admin-products-table .table-actions,
  .admin-orders-table .table-actions,
  .admin-categories-table .table-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .account-order-card,
  .service-item {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .profile-card {
    padding: 16px;
  }

  .admin-products-table td,
  .admin-orders-table td,
  .admin-categories-table td {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 560px) {
  .account-order-card,
  .service-item {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .profile-card {
    padding: 16px;
  }

  .drawer {
    width: 100%;
  }

  .drawer-head,
  .drawer-body,
  .drawer-foot {
    padding: 16px;
  }

  .drawer-item {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
  }

  .drawer-thumb {
    width: 56px;
    height: 56px;
  }

  .drawer-thumb svg {
    width: 46px;
  }

  .drawer-item > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left !important;
  }

  .order-detail-item {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
  }

  .order-detail-item > span:last-child {
    grid-column: 1 / -1;
    justify-self: start;
    font-weight: 800;
  }

  .checkout-line-total {
    text-align: left;
  }

  .summary-line,
  .summary-total {
    align-items: flex-start;
  }

  .payment-review-actions {
    justify-content: flex-start;
  }

  .payment-review-actions .btn {
    width: 100%;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .admin-products-table,
  .admin-orders-table,
  .admin-categories-table {
    margin-left: 0;
    margin-right: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: var(--radius);
  }
}





.account-center-page .shop-header {
  display: none;
}

.account-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.account-identity,
.account-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-identity h1,
.account-identity p {
  margin: 0;
}

.account-identity h1 {
  font-size: 28px;
}

.account-identity p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
}

.profile-avatar.large {
  width: 64px;
  height: 64px;
  margin: 0;
}

.account-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.account-status-grid a,
.account-total-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  color: var(--text);
}

.account-status-grid span,
.account-status-grid strong,
.account-status-grid small,
.account-total-box span,
.account-total-box strong,
.account-total-box p {
  display: block;
  margin: 0;
}

.account-status-grid span,
.account-total-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-status-grid strong,
.account-total-box strong {
  margin-top: 8px;
  font-size: 26px;
}

.account-status-grid small,
.account-total-box p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.account-center-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 88px;
}

.account-main-stack {
  display: grid;
  gap: 16px;
}

.ecommerce-card .profile-card-head {
  align-items: flex-start;
}

.ecommerce-card .profile-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-order-list {
  display: grid;
  gap: 10px;
}

.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #f8f9f9;
  color: var(--text);
}

.account-order-card strong,
.account-order-card span {
  display: block;
}

.account-order-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.profile-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.address-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-sidebar .account-service-grid {
  grid-template-columns: 1fr;
}

/* Final account center responsive overrides */
@media (max-width: 900px) {
  .account-hero-panel,
  .account-center-layout,
  .profile-section-grid,
  .account-status-grid,
  .address-card-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .account-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .account-order-card,
  .service-item {
    grid-template-columns: 1fr;
  }

  .account-hero-panel,
  .profile-card {
    padding: 16px;
  }

  .account-hero-actions {
    width: 100%;
  }

  .account-hero-actions .btn {
    width: 100%;
  }
}





@media (max-width: 900px) {
  .product-editor {
    grid-template-columns: 1fr;
  }

  .tier-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-product-cell {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .admin-product-thumb {
    width: 46px;
    height: 46px;
  }

  .product-editor-card {
    padding: 14px;
  }

  .tier-preview {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 900px) {
  .product-editor {
    grid-template-columns: 1fr;
  }

  .product-editor-sidebar {
    position: static;
  }

  .editor-tier-preview,
  .tier-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .compact-editor-grid,
  .editor-tier-preview,
  .tier-preview {
    grid-template-columns: 1fr;
  }
}

.product-editor-page-head {
  align-items: center;
}

.page-head-actions,
.product-editor-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-product-edit-page .page-product-editor {
  margin-top: 6px;
}

.product-editor-bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin-top: 18px;
  padding: 14px 0 4px;
  background: linear-gradient(180deg, rgba(243, 244, 244, 0), #f3f4f4 35%);
}

@media (max-width: 700px) {
  .product-editor-page-head,
  .page-head-actions,
  .product-editor-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head-actions .btn,
  .product-editor-bottom-actions .btn {
    width: 100%;
  }
}

.admin-brands-table table {
  min-width: 0;
  table-layout: fixed;
}

.admin-brands-table th,
.admin-brands-table td {
  vertical-align: top;
  font-size: 12px;
}

.admin-brands-table th:nth-child(1),
.admin-brands-table td:nth-child(1) { width: 16%; }
.admin-brands-table th:nth-child(2),
.admin-brands-table td:nth-child(2) { width: 14%; }
.admin-brands-table th:nth-child(3),
.admin-brands-table td:nth-child(3) { width: 7%; }
.admin-brands-table th:nth-child(4),
.admin-brands-table td:nth-child(4) { width: 9%; }
.admin-brands-table th:nth-child(5),
.admin-brands-table td:nth-child(5) { width: 10%; }
.admin-brands-table th:nth-child(6),
.admin-brands-table td:nth-child(6) { width: 19%; }
.admin-brands-table th:nth-child(7),
.admin-brands-table td:nth-child(7) { width: 13%; }
.admin-brands-table th:nth-child(8),
.admin-brands-table td:nth-child(8) { width: 12%; }

.admin-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-brand-identity div {
  min-width: 0;
}

.compact-field,
.color-field,
.compact-textarea {
  width: 100%;
}

.color-field {
  min-height: 38px;
  padding: 5px;
}

.compact-textarea {
  min-height: 74px;
  resize: vertical;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.admin-brand-metrics,
.admin-brand-ops {
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  .admin-brands-table table,
  .admin-brands-table thead,
  .admin-brands-table tbody,
  .admin-brands-table tr,
  .admin-brands-table th,
  .admin-brands-table td {
    display: block;
    width: 100% !important;
  }

  .admin-brands-table thead {
    display: none;
  }

  .admin-brands-table tbody {
    display: grid;
    gap: 12px;
  }

  .admin-brands-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
  }

  .admin-brands-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
  }

  .admin-brands-table td:last-child {
    border-bottom: 0;
  }

  .admin-brands-table td::before {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .admin-brands-table td:nth-child(1)::before { content: "Brand"; }
  .admin-brands-table td:nth-child(2)::before { content: "Display"; }
  .admin-brands-table td:nth-child(3)::before { content: "Color"; }
  .admin-brands-table td:nth-child(4)::before { content: "Featured"; }
  .admin-brands-table td:nth-child(5)::before { content: "Storefront"; }
  .admin-brands-table td:nth-child(6)::before { content: "Description"; }
  .admin-brands-table td:nth-child(7)::before { content: "Coverage"; }
  .admin-brands-table td:nth-child(8)::before { content: "Action"; }
}





/* checkout-flow-strip responsive polish */
@media (max-width: 900px) {
  .checkout-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .checkout-flow-strip,
  .shipment-meta-grid {
    grid-template-columns: 1fr;
  }

  .checkout-flow-strip div {
    padding: 9px 10px;
  }
}

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

.account-order-group {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.account-order-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.account-order-group-head strong,
.account-order-group-head span,
.account-order-group-head em,
.account-notification strong,
.account-notification span {
  display: block;
}

.account-order-group-head span,
.account-notification span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.account-order-group-head em {
  min-width: 28px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--soft-2);
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.account-order-list.compact .account-order-card {
  grid-template-columns: 1fr;
}

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

.account-notification {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8f9f9;
}

.account-notification.rejected {
  border-color: #f3c4c4;
  background: #fff5f5;
}

.account-notification.paid,
.account-notification.shipped {
  border-color: #b9dec4;
  background: #f4fbf5;
}

.aftersales-detail-card {
  margin-top: 14px;
}

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

.service-request-form .btn {
  justify-self: start;
}

.service-detail-summary p + p {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .account-order-groups,
  .service-request-form {
    grid-template-columns: 1fr;
  }
}


.admin-login-page .narrow {
  max-width: 520px;
}

.admin-login-card {
  display: grid;
  gap: 14px;
  margin: 56px auto;
}

.admin-live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.warning-note {
  border-color: #f3d08a;
  background: #fff8e8;
  color: #7a4b00;
}

@media (max-width: 760px) {
  .admin-live-status {
    justify-content: flex-start;
  }
}
