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

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

.managed-image-thumb {
  grid-template-rows: 108px auto auto;
}

.admin-image-visual {
  height: 108px;
  background: #eef1f1;
}

.admin-image-visual img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.admin-image-meta {
  min-width: 0;
  padding: 8px;
  border-top: 1px solid var(--line);
}

.admin-image-meta strong,
.admin-image-meta span,
.image-empty-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-image-meta strong,
.admin-image-meta span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-image-meta strong {
  color: var(--ink);
}

.admin-image-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: #f8f9f9;
}

.admin-image-actions .icon-btn {
  width: 100%;
  min-width: 0;
  height: 32px;
  border-radius: 8px;
}

.admin-image-actions .icon-btn.danger {
  color: #a33;
  border-color: #efcccc;
}

.admin-image-actions .icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.image-empty-state {
  padding: 8px;
}

.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;
  text-decoration: none;
  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: "商品"; }
  .admin-products-table td:nth-child(2)::before { content: "SKU"; }
  .admin-products-table td:nth-child(3)::before { content: "目录"; }
  .admin-products-table td:nth-child(4)::before { content: "价格"; }
  .admin-products-table td:nth-child(5)::before { content: "库存"; }
  .admin-products-table td:nth-child(6)::before { content: "适配"; }
  .admin-products-table td:nth-child(7)::before { content: "状态"; }
  .admin-products-table td:nth-child(8)::before { content: "操作"; }

  .admin-orders-table td:nth-child(1)::before { content: "订单"; }
  .admin-orders-table td:nth-child(2)::before { content: "客户"; }
  .admin-orders-table td:nth-child(3)::before { content: "商品数"; }
  .admin-orders-table td:nth-child(4)::before { content: "日期"; }
  .admin-orders-table td:nth-child(5)::before { content: "金额"; }
  .admin-orders-table td:nth-child(6)::before { content: "付款"; }
  .admin-orders-table td:nth-child(7)::before { content: "履约"; }
  .admin-orders-table td:nth-child(8)::before { content: "物流"; }
  .admin-orders-table td:nth-child(9)::before { content: "操作"; }

  .admin-categories-table td:nth-child(1)::before { content: "层级"; }
  .admin-categories-table td:nth-child(2)::before { content: "分类"; }
  .admin-categories-table td:nth-child(3)::before { content: "说明"; }
  .admin-categories-table td:nth-child(4)::before { content: "商品"; }
  .admin-categories-table td:nth-child(5)::before { content: "库存"; }
  .admin-categories-table td:nth-child(6)::before { content: "状态"; }
  .admin-categories-table td:nth-child(7)::before { content: "可见性"; }
  .admin-categories-table td:nth-child(8)::before { content: "品牌"; }
  .admin-categories-table td:nth-child(9)::before { content: "前台"; }
  .admin-categories-table td:nth-child(10)::before { content: "操作"; }

  .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: 13%; }
.admin-brands-table th:nth-child(2),
.admin-brands-table td:nth-child(2) { width: 12%; }
.admin-brands-table th:nth-child(3),
.admin-brands-table td:nth-child(3) { width: 6%; }
.admin-brands-table th:nth-child(4),
.admin-brands-table td:nth-child(4) { width: 7%; }
.admin-brands-table th:nth-child(5),
.admin-brands-table td:nth-child(5) { width: 7%; }
.admin-brands-table th:nth-child(6),
.admin-brands-table td:nth-child(6) { width: 7%; }
.admin-brands-table th:nth-child(7),
.admin-brands-table td:nth-child(7) { width: 8%; }
.admin-brands-table th:nth-child(8),
.admin-brands-table td:nth-child(8) { width: 20%; }
.admin-brands-table th:nth-child(9),
.admin-brands-table td:nth-child(9) { width: 10%; }
.admin-brands-table th:nth-child(10),
.admin-brands-table td:nth-child(10) { width: 10%; }

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

.placement-switch {
  justify-content: flex-start;
}

.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: "品牌"; }
  .admin-brands-table td:nth-child(2)::before { content: "展示"; }
  .admin-brands-table td:nth-child(3)::before { content: "颜色"; }
  .admin-brands-table td:nth-child(4)::before { content: "推荐"; }
  .admin-brands-table td:nth-child(5)::before { content: "前台"; }
  .admin-brands-table td:nth-child(6)::before { content: "首页"; }
  .admin-brands-table td:nth-child(7)::before { content: "Shop All"; }
  .admin-brands-table td:nth-child(8)::before { content: "说明"; }
  .admin-brands-table td:nth-child(9)::before { content: "覆盖"; }
  .admin-brands-table td:nth-child(10)::before { content: "操作"; }
}





/* 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;
  }
}

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

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

.payment-admin-card textarea {
  min-height: 82px;
  resize: vertical;
}

.new-payment-card {
  border-style: dashed;
  background: #fafafa;
}

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

/* Ecommerce admin redesign */
.ecommerce-admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f6f6;
}

.ecommerce-admin-sidebar {
  position: sticky;
  top: 0;
  grid-row: 1 / span 2;
  height: 100vh;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  z-index: 20;
}

.admin-sidebar-brand {
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand .brand.mini {
  justify-content: flex-start;
  gap: 10px;
}

.admin-sidebar-brand .brand.mini span {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.admin-sidebar-brand small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ecommerce-admin-sidebar .admin-tabs {
  display: grid;
  gap: 6px;
  padding: 18px 0;
}

.ecommerce-admin-sidebar .admin-tabs a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #323737;
  font-size: 14px;
  font-weight: 800;
}

.ecommerce-admin-sidebar .admin-tabs a:hover {
  background: #eef5f4;
  color: var(--teal);
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  grid-column: 2;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
}

.admin-topbar strong,
.admin-topbar span {
  display: block;
}

.admin-topbar strong {
  font-size: 14px;
}

.admin-topbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-dashboard-page,
.ecommerce-admin-shell > .page {
  grid-column: 2;
  grid-row: 2;
  padding: 24px 0 56px;
}

.admin-content {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
}

.admin-dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-dashboard-hero h1 {
  margin: 4px 0 0;
  font-size: 30px;
  letter-spacing: 0;
}

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

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

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

.admin-kpi-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.admin-kpi-card.primary {
  border-color: rgba(15, 143, 128, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #eff8f7 100%);
}

.admin-kpi-card span,
.admin-kpi-card strong,
.admin-kpi-card p {
  display: block;
  margin: 0;
}

.admin-kpi-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-kpi-card strong {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.admin-kpi-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-workbench,
.admin-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-priority-panel,
.admin-quick-panel,
.admin-health-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.admin-panel-head.compact {
  padding: 14px 16px;
}

.admin-panel-head.compact h3 {
  font-size: 18px;
}

.admin-panel-head.compact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-task-list {
  display: grid;
}

.admin-task-row {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-task-row:hover {
  background: #f8faf9;
}

.admin-task-row.urgent {
  background: #fffaf1;
}

.admin-task-row span {
  font-weight: 900;
}

.admin-task-row strong {
  font-size: 22px;
  line-height: 1;
}

.admin-task-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

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

.admin-quick-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fbfbfb;
  color: var(--text);
}

.admin-quick-grid a:hover {
  border-color: rgba(15, 143, 128, 0.35);
  background: #f0f8f7;
}

.admin-quick-grid b,
.admin-quick-grid span {
  display: block;
}

.admin-quick-grid b {
  font-size: 14px;
}

.admin-quick-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-health-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.admin-health-list div {
  min-height: 112px;
  padding: 16px;
  background: #fff;
}

.admin-health-list span,
.admin-health-list strong,
.admin-health-list em {
  display: block;
}

.admin-health-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-health-list strong {
  margin-top: 10px;
  font-size: 20px;
}

.admin-health-list em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.admin-orders-preview table,
.admin-stock-preview table {
  table-layout: fixed;
}

.admin-stock-preview {
  background: #fff;
}

@media (max-width: 1080px) {
  .ecommerce-admin-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .ecommerce-admin-sidebar {
    position: static;
    grid-row: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ecommerce-admin-sidebar .admin-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-sidebar-footer {
    display: flex;
  }

  .admin-topbar,
  .admin-dashboard-page,
  .ecommerce-admin-shell > .page {
    grid-column: 1;
  }

  .admin-topbar {
    position: static;
  }

  .admin-kpi-grid,
  .admin-workbench,
  .admin-dashboard-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .admin-content {
    width: min(100% - 24px, 1320px);
  }

  .admin-dashboard-hero,
  .admin-topbar {
    display: block;
  }

  .admin-hero-actions,
  .admin-topbar .btn {
    margin-top: 12px;
  }

  .admin-kpi-grid,
  .admin-workbench,
  .admin-dashboard-main,
  .admin-health-list,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .admin-task-row {
    grid-template-columns: 1fr auto;
  }

  .admin-task-row em {
    grid-column: 1 / -1;
  }
}

/* Apply the ecommerce admin frame to every admin section */
.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
}

.admin-shell > .page {
  grid-column: 2;
  grid-row: 2;
}

.admin-shell > .page > .container {
  width: min(100% - 48px, 1320px);
}

@media (max-width: 1080px) {
  .admin-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .admin-shell > .page {
    grid-column: 1;
  }

  .admin-shell > .page > .container {
    width: min(100% - 24px, 1320px);
  }
}

/* Step 11: payment proof, brand CRUD, editable product-card quantity */
.card-qty-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: center;
  font: inherit;
  font-weight: 800;
  outline: none;
  -moz-appearance: textfield;
}

.card-qty-input::-webkit-outer-spin-button,
.card-qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.card-qty-input:focus {
  background: #f0f8f7;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 128, 0.32);
}

.proof-image-link {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.proof-image-link img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-proof-preview img {
  max-height: 180px;
}

.proof-empty {
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.admin-brand-create-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.admin-brand-create-card h3,
.admin-brand-create-card p {
  margin: 0;
}

.admin-brand-create-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-brand-create-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.2fr) 54px auto auto;
  gap: 10px;
  align-items: center;
}

.table-actions .danger,
.btn.danger {
  color: #a33;
  border-color: #f0cccc;
  background: #fff8f8;
}

@media (max-width: 980px) {
  .admin-brand-create-card,
  .admin-brand-create-fields {
    grid-template-columns: 1fr;
  }
}

/* Step 12: ecommerce storefront navigation review */
.shop-header-v2 {
  background: rgba(255, 255, 255, 0.96);
}

.commerce-nav {
  height: 70px;
  gap: 14px;
}

.commerce-brand {
  min-width: 188px;
}

.commerce-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.commerce-brand strong,
.commerce-brand small {
  display: block;
  line-height: 1.05;
}

.commerce-brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-search {
  flex: 1 1 420px;
  max-width: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px;
  background: #f7f8f8;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 10px;
  color: var(--text);
  font-size: 13px;
}

.commerce-links {
  gap: 14px;
  flex-shrink: 0;
}

.commerce-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 8px;
}

.commerce-links a.active,
.commerce-links a:hover {
  background: #eef5f4;
  color: var(--teal);
}

.commerce-actions {
  flex-shrink: 0;
}

.commerce-subnav {
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.commerce-subnav-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.commerce-subnav-inner a,
.commerce-subnav-inner button,
.commerce-subnav-inner span {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.commerce-subnav-inner a,
.commerce-subnav-inner button {
  cursor: pointer;
}

.commerce-subnav-inner a:hover,
.commerce-subnav-inner button:hover {
  color: var(--teal);
}

.commerce-subnav-inner span {
  margin-left: auto;
  color: var(--teal);
}

.mobile-nav-search {
  padding: 10px 0;
}

.mobile-nav-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
}

@media (max-width: 1120px) {
  .nav-search {
    max-width: none;
  }

  .commerce-links,
  .nav-order-link {
    display: none;
  }
}

@media (max-width: 760px) {
  .commerce-nav {
    height: 64px;
  }

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

  .commerce-brand small,
  .nav-search {
    display: none;
  }

  .commerce-subnav {
    display: none;
  }
}
/* Step 13: admin order modal viewport fit */
.admin-modal {
  top: 20px;
  bottom: auto;
  max-height: calc(100vh - 40px);
  width: min(920px, calc(100vw - 24px));
  transform: translateX(-50%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-modal .account-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 12px;
  background: #fff;
}

.admin-modal .account-actions {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  padding-top: 12px;
  background: #fff;
}

@media (max-width: 760px) {
  .admin-modal {
    top: 10px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 20px);
    padding: 16px;
  }
}
/* Step 14: commerce admin operations workbench */
.ops-admin-shell {
  background: #f4f5f5;
}

.ops-admin-sidebar {
  background: #ffffff;
}

.ops-sidebar-brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-admin-nav {
  display: grid;
  gap: 16px;
}

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

.ops-nav-group > span {
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-nav-group a {
  display: grid;
  gap: 3px;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
}

.ops-nav-group a:hover,
.ops-nav-group a.active {
  background: #eef5f4;
  color: var(--teal);
}

.ops-nav-group a b,
.ops-nav-group a small {
  display: block;
  line-height: 1.15;
}

.ops-nav-group a b {
  font-size: 13px;
}

.ops-nav-group a small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-admin-topbar {
  min-width: 0;
}

.ops-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ops-admin-content {
  display: grid;
  gap: 14px;
}

.ops-dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.ops-dashboard-hero h1,
.ops-dashboard-hero p {
  margin: 0;
}

.ops-dashboard-hero h1 {
  margin-top: 4px;
  font-size: 30px;
  letter-spacing: 0;
}

.ops-dashboard-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.ops-command-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ops-command-bar a {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--text);
}

.ops-command-bar a:hover {
  border-color: rgba(15, 143, 128, 0.35);
  background: #f0f8f7;
}

.ops-command-bar strong,
.ops-command-bar span {
  display: block;
}

.ops-command-bar span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ops-kpi-grid {
  margin-bottom: 0;
}

.ops-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
}

.ops-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.ops-task-list .admin-task-row {
  min-height: 64px;
}

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

.ops-module-grid a {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fbfbfb;
  color: var(--text);
}

.ops-module-grid a:hover {
  border-color: rgba(15, 143, 128, 0.35);
  background: #f0f8f7;
}

.ops-module-grid b,
.ops-module-grid span {
  display: block;
}

.ops-module-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ops-health-list div {
  min-height: 108px;
}

@media (max-width: 1180px) {
  .ops-command-bar,
  .ops-kpi-grid,
  .ops-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ops-dashboard-hero {
    display: grid;
  }

  .ops-command-bar,
  .ops-kpi-grid,
  .ops-layout-grid,
  .ops-module-grid {
    grid-template-columns: 1fr;
  }

  .ops-topbar-actions {
    margin-top: 10px;
  }
}
/* Step 15: admin order workflow redesign */
.admin-orders-workflow-page .container {
  display: grid;
  gap: 14px;
}

.order-page-head {
  align-items: flex-end;
}

.order-flow-metrics {
  margin-bottom: 0;
}

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

.order-workflow-tabs button {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.order-workflow-tabs button:hover,
.order-workflow-tabs button.active {
  border-color: rgba(15, 143, 128, 0.42);
  background: #f0f8f7;
}

.order-workflow-tabs strong,
.order-workflow-tabs span,
.order-workflow-tabs em {
  display: block;
}

.order-workflow-tabs strong {
  font-size: 13px;
}

.order-workflow-tabs span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.order-workflow-tabs em {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 24px;
  border-radius: 999px;
  padding: 4px 7px;
  background: #eef1f1;
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.order-workflow-tabs button.active em {
  background: var(--teal);
  color: #fff;
}

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

.order-queue-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.order-queue-card.attention {
  border-color: #f0d28a;
  background: #fffaf1;
}

.order-queue-card span,
.order-queue-card strong,
.order-queue-card p {
  display: block;
  margin: 0;
}

.order-queue-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.order-queue-card strong {
  margin-top: 8px;
  font-size: 18px;
}

.order-queue-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.order-filter-bar {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.35fr) minmax(180px, 0.35fr);
}

.order-workflow-table table {
  min-width: 0;
  table-layout: fixed;
}

.order-workflow-table th,
.order-workflow-table td {
  vertical-align: top;
}

.order-workflow-table th:nth-child(1),
.order-workflow-table td:nth-child(1) { width: 15%; }
.order-workflow-table th:nth-child(2),
.order-workflow-table td:nth-child(2) { width: 14%; }
.order-workflow-table th:nth-child(3),
.order-workflow-table td:nth-child(3) { width: 15%; }
.order-workflow-table th:nth-child(4),
.order-workflow-table td:nth-child(4) { width: 14%; }
.order-workflow-table th:nth-child(5),
.order-workflow-table td:nth-child(5) { width: 8%; }
.order-workflow-table th:nth-child(6),
.order-workflow-table td:nth-child(6) { width: 10%; }
.order-workflow-table th:nth-child(7),
.order-workflow-table td:nth-child(7) { width: 14%; }
.order-workflow-table th:nth-child(8),
.order-workflow-table td:nth-child(8) { width: 10%; }

.order-next-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef1f1;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.order-next-step.pending,
.order-next-step.processing {
  background: #fff3d8;
  color: #8a5a00;
}

.order-next-step.shipped {
  background: #e8f0ff;
  color: #2457a6;
}

.order-next-step.paid {
  background: #e8f7ec;
  color: #13743a;
}

.order-next-step.rejected {
  background: #fff0f0;
  color: #a33;
}

.empty-state {
  min-height: 88px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .order-workflow-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-queue-board,
  .order-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .order-workflow-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .order-page-head {
    align-items: stretch;
  }
}
/* Step 16: admin product center workflow */
.admin-product-center-page .container {
  display: grid;
  gap: 14px;
}

.product-center-head {
  align-items: flex-end;
}

.product-center-metrics {
  margin-bottom: 0;
}

.product-workflow-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.product-workflow-tabs button {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.product-workflow-tabs button:hover,
.product-workflow-tabs button.active {
  border-color: rgba(15, 143, 128, 0.42);
  background: #f0f8f7;
}

.product-workflow-tabs strong,
.product-workflow-tabs span,
.product-workflow-tabs em {
  display: block;
}

.product-workflow-tabs strong {
  font-size: 13px;
}

.product-workflow-tabs span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.product-workflow-tabs em {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 24px;
  border-radius: 999px;
  padding: 4px 7px;
  background: #eef1f1;
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.product-workflow-tabs button.active em {
  background: var(--teal);
  color: #fff;
}

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

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

.product-ops-card.attention {
  border-color: #f0d28a;
  background: #fffaf1;
}

.product-ops-card span,
.product-ops-card strong,
.product-ops-card p {
  display: block;
  margin: 0;
}

.product-ops-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-ops-card strong {
  font-size: 22px;
}

.product-ops-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-filter-bar {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.35fr) minmax(190px, 0.38fr);
}

.product-center-table table {
  min-width: 0;
  table-layout: fixed;
}

.product-center-table th:nth-child(1),
.product-center-table td:nth-child(1) { width: 29%; }
.product-center-table th:nth-child(2),
.product-center-table td:nth-child(2) { width: 23%; }
.product-center-table th:nth-child(3),
.product-center-table td:nth-child(3) { width: 15%; }
.product-center-table th:nth-child(4),
.product-center-table td:nth-child(4) { width: 13%; }
.product-center-table th:nth-child(5),
.product-center-table td:nth-child(5) { width: 12%; }
.product-center-table th:nth-child(6),
.product-center-table td:nth-child(6) { width: 8%; }


.product-center-table .admin-product-cell .status {
  width: fit-content;
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .product-workflow-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-ops-board,
  .product-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-workflow-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .product-center-head {
    align-items: stretch;
  }
}
@media (max-width: 700px) {
  .product-center-table td:nth-child(1)::before { content: "商品"; }
  .product-center-table td:nth-child(2)::before { content: "目录"; }
  .product-center-table td:nth-child(3)::before { content: "价格"; }
  .product-center-table td:nth-child(4)::before { content: "库存"; }
  .product-center-table td:nth-child(5)::before { content: "下一步"; }
  .product-center-table td:nth-child(6)::before { content: "操作"; }
}
/* Step 17: admin customer and service centers */
.admin-customer-page .container,
.admin-service-page .container {
  display: grid;
  gap: 14px;
}

.customer-page-head,
.service-page-head {
  align-items: flex-end;
}

.customer-metrics,
.service-metrics {
  margin-bottom: 0;
}

.customer-insight-grid,
.service-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-insight-grid article,
.service-process-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.service-process-grid article.attention {
  border-color: #f0d28a;
  background: #fffaf1;
}

.customer-insight-grid span,
.service-process-grid span,
.customer-insight-grid strong,
.service-process-grid strong,
.customer-insight-grid p,
.service-process-grid p {
  display: block;
  margin: 0;
}

.customer-insight-grid span,
.service-process-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-insight-grid strong,
.service-process-grid strong {
  font-size: 18px;
}

.customer-insight-grid p,
.service-process-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.customer-filter-bar,
.service-filter-bar {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.35fr) minmax(190px, 0.38fr);
}

.admin-customers-table table,
.admin-service-table table {
  min-width: 0;
  table-layout: fixed;
}

.admin-customers-table th,
.admin-customers-table td,
.admin-service-table th,
.admin-service-table td {
  vertical-align: top;
  font-size: 12px;
}

.admin-customers-table th:nth-child(1),
.admin-customers-table td:nth-child(1) { width: 18%; }
.admin-customers-table th:nth-child(2),
.admin-customers-table td:nth-child(2) { width: 10%; }
.admin-customers-table th:nth-child(3),
.admin-customers-table td:nth-child(3) { width: 12%; }
.admin-customers-table th:nth-child(4),
.admin-customers-table td:nth-child(4) { width: 24%; }
.admin-customers-table th:nth-child(5),
.admin-customers-table td:nth-child(5) { width: 12%; }
.admin-customers-table th:nth-child(6),
.admin-customers-table td:nth-child(6) { width: 14%; }
.admin-customers-table th:nth-child(7),
.admin-customers-table td:nth-child(7) { width: 10%; }

.admin-service-table th:nth-child(1),
.admin-service-table td:nth-child(1) { width: 15%; }
.admin-service-table th:nth-child(2),
.admin-service-table td:nth-child(2) { width: 15%; }
.admin-service-table th:nth-child(3),
.admin-service-table td:nth-child(3) { width: 14%; }
.admin-service-table th:nth-child(4),
.admin-service-table td:nth-child(4) { width: 22%; }
.admin-service-table th:nth-child(5),
.admin-service-table td:nth-child(5) { width: 12%; }
.admin-service-table th:nth-child(6),
.admin-service-table td:nth-child(6) { width: 10%; }
.admin-service-table th:nth-child(7),
.admin-service-table td:nth-child(7) { width: 12%; }

.admin-customers-table .table-actions,
.admin-service-table .table-actions {
  display: grid;
  justify-items: start;
  gap: 6px;
}

@media (max-width: 980px) {
  .customer-insight-grid,
  .service-process-grid,
  .customer-filter-bar,
  .service-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .customer-page-head,
  .service-page-head {
    align-items: stretch;
  }

  .admin-customer-page,
  .admin-service-page {
    overflow-x: hidden;
  }

  .admin-customer-page .container,
  .admin-service-page .container,
  .admin-customers-table,
  .admin-service-table,
  .admin-customers-table table,
  .admin-service-table table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .admin-customers-table th,
  .admin-customers-table td,
  .admin-service-table th,
  .admin-service-table td {
    padding: 9px 6px;
    overflow-wrap: anywhere;
  }
}
/* Step 18: admin settings center */
.admin-settings-page .container {
  display: grid;
  gap: 14px;
}

.settings-page-head {
  align-items: flex-end;
}

.settings-metrics {
  margin-bottom: 0;
}

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

.settings-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  color: var(--text);
}

.settings-card:hover {
  border-color: rgba(15, 143, 128, 0.38);
  background: #f0f8f7;
}

.settings-card span,
.settings-card strong,
.settings-card em,
.settings-card p,
.settings-card b {
  display: block;
  margin: 0;
}

.settings-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-card strong {
  font-size: 20px;
}

.settings-card em {
  position: absolute;
  right: 14px;
  top: 14px;
  min-width: 34px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef1f1;
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.settings-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.settings-card b {
  align-self: end;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #e8f7ec;
  color: #13743a;
  font-size: 11px;
}

.settings-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.settings-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.settings-check-list,
.settings-action-list {
  display: grid;
}

.settings-check-list div,
.settings-action-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 16px;
  color: var(--text);
}

.settings-action-list a {
  grid-template-columns: 1fr;
  gap: 4px;
}

.settings-check-list strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef1f1;
  font-size: 12px;
}

.settings-check-list .ok strong {
  background: #e8f7ec;
  color: #13743a;
}

.settings-check-list .warning strong {
  background: #fff3d8;
  color: #8a5a00;
}

.settings-check-list span,
.settings-action-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-action-list strong {
  font-size: 14px;
}

.settings-action-list a:hover {
  background: #f8faf9;
  color: var(--teal);
}

@media (max-width: 1080px) {
  .settings-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .settings-overview-grid {
    grid-template-columns: 1fr;
  }

  .settings-page-head {
    align-items: stretch;
  }
}
/* Step 19: admin Chinese polish and responsive details */
.admin-shell table {
  word-break: break-word;
}

.admin-shell .status,
.admin-shell .btn.small {
  white-space: normal;
  line-height: 1.25;
}

.admin-shell .table-actions {
  min-width: 0;
}

.admin-shell .table-status-stack,
.admin-shell .table-subtext {
  min-width: 0;
}

@media (max-width: 760px) {
  .ops-admin-nav {
    max-height: none;
  }

  .ops-nav-group a,
  .admin-shell .btn,
  .admin-shell .field {
    min-height: 44px;
  }
}
.proof-mini-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 4px;
  color: var(--teal);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}

.proof-mini-link:hover {
  text-decoration: underline;
}

.order-row-actions {
  grid-template-columns: 1fr;
  min-width: 112px;
}

.order-row-actions .btn.small {
  justify-content: center;
  width: 100%;
  min-height: 32px;
  white-space: nowrap;
}
.admin-order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-order-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  min-width: 0;
}

.admin-order-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-order-panel-head span,
.admin-order-status-card span,
.admin-order-info-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-order-panel-head strong,
.admin-order-status-card strong,
.admin-order-info-list strong {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}

.admin-order-panel-head em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.admin-order-product-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.admin-order-product-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-order-product-thumb {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f3f5f5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-order-product-thumb img,
.admin-order-product-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-order-product-main {
  min-width: 0;
}

.admin-order-product-main strong,
.admin-order-product-main span,
.admin-order-product-main small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-order-product-main span,
.admin-order-product-main small,
.admin-order-info-list small {
  color: var(--muted);
  font-size: 12px;
}

.admin-order-product-qty,
.admin-order-product-total {
  font-weight: 900;
  white-space: nowrap;
}

.admin-order-money-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-order-money-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.admin-order-money-box .total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
}

.admin-order-info-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-order-info-list div,
.admin-order-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8f9f9;
}

.admin-order-proof-panel,
.admin-order-fulfillment-panel {
  margin-top: 14px;
}

.admin-order-actions {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

@media (max-width: 760px) {
  .admin-order-detail-layout,
  .admin-order-actions {
    grid-template-columns: 1fr;
  }

  .admin-order-product-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .admin-order-product-qty,
  .admin-order-product-total {
    justify-self: start;
  }
}
.commerce-account-page .container {
  display: grid;
  gap: 16px;
}

.commerce-account-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.commerce-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.commerce-status-card {
  display: grid;
  gap: 4px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.commerce-status-card span,
.commerce-status-card small,
.commerce-mini-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.commerce-status-card strong {
  font-size: 30px;
  line-height: 1;
}

.commerce-status-card.pending strong,
.commerce-status-card.processing strong {
  color: #b7791f;
}

.commerce-status-card.shipped strong,
.commerce-status-card.service strong {
  color: var(--teal);
}

.commerce-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 16px;
  align-items: start;
}

.commerce-account-main,
.commerce-account-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.commerce-panel {
  padding: 18px;
}

.commerce-task-list,
.commerce-order-list,
.commerce-mini-facts {
  display: grid;
  gap: 10px;
}

.commerce-task-row,
.commerce-order-row {
  display: grid;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.commerce-task-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.commerce-order-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.commerce-order-main {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

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

.commerce-order-actions .btn.small {
  white-space: nowrap;
}

.commerce-task-row strong,
.commerce-task-row span,
.commerce-task-row p,
.commerce-order-row strong,
.commerce-order-row span {
  display: block;
}

.commerce-task-row span,
.commerce-task-row p,
.commerce-order-row span {
  color: var(--muted);
  font-size: 13px;
}

.commerce-task-row p {
  margin: 4px 0 0;
  line-height: 1.4;
}

.commerce-task-row em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.commerce-mini-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8f9f9;
}

.commerce-mini-facts strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.saved-payment.compact {
  margin-bottom: 10px;
}

.compact-address-panel .saved-address {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .commerce-account-hero,
  .commerce-account-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .commerce-account-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .commerce-account-status-grid,
  .commerce-task-row,
  .commerce-order-row {
    grid-template-columns: 1fr;
  }

  .commerce-status-card {
    min-height: auto;
  }
}
/* Step 32: WhatsApp support */
.whatsapp-support {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.whatsapp-fab {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 0;
  border-radius: 999px;
  background: #1f9d5a;
  color: #fff;
  box-shadow: 0 16px 36px rgba(31, 157, 90, 0.28);
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-fab span,
.whatsapp-contact > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.whatsapp-panel {
  width: min(340px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(14, 20, 20, 0.18);
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.whatsapp-support.open .whatsapp-panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 4px 10px;
}

.whatsapp-head span {
  color: #087a45;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

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

.whatsapp-contact {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #f8fbf9;
}

.whatsapp-contact:hover {
  border-color: rgba(31, 157, 90, 0.45);
  transform: translateY(-1px);
}

.whatsapp-contact > span {
  background: #1f9d5a;
}

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

.whatsapp-contact small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

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

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

.support-admin-card textarea {
  min-height: 92px;
}

.support-preview-link {
  justify-self: start;
  color: #087a45;
  font-weight: 900;
}

.new-support-card {
  background: #fbfffc;
  border-style: dashed;
}

@media (max-width: 760px) {
  .whatsapp-support {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-fab strong {
    display: none;
  }

  .support-admin-grid {
    grid-template-columns: 1fr;
  }
}
/* Step 39: movable WhatsApp button and multilevel categories */
.category-tree-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.category-tree-all,
.category-parent,
.category-child {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.category-tree-all {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 14px;
  text-align: left;
}

.category-tree-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.category-tree-group.active,
.category-tree-all.active {
  border-color: rgba(15, 143, 128, 0.5);
  box-shadow: inset 0 0 0 1px rgba(15, 143, 128, 0.16);
}

.category-parent {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.category-parent em {
  min-width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef7f5;
  color: #087a77;
  font-style: normal;
  font-size: 12px;
}

.category-child-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
}

.category-child {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.category-child.active,
.category-child:hover,
.category-parent:hover,
.category-tree-all:hover {
  border-color: rgba(15, 143, 128, 0.5);
  color: #087a77;
  background: #f4fbf9;
}

.category-admin-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  border: 1px solid rgba(15, 143, 128, 0.22);
  border-radius: 8px;
  background: #f5fbfa;
  color: var(--muted);
}

.category-admin-hint strong {
  color: #087a77;
  white-space: nowrap;
}

.category-level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f4;
  color: var(--muted);
  font-weight: 900;
  font-size: 11px;
}

.parent-category-row .category-level-badge {
  background: #e8f7f4;
  color: #087a77;
}

.child-category-row td:nth-child(2) strong {
  font-weight: 850;
}

.whatsapp-support {
  right: 22px;
  bottom: 92px;
  touch-action: none;
}

.whatsapp-fab.draggable-wa {
  width: 62px;
  height: 62px;
  min-height: 62px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  user-select: none;
  cursor: grab;
}

.whatsapp-fab.draggable-wa:active {
  cursor: grabbing;
}

.whatsapp-fab.draggable-wa strong {
  display: none;
}

.whatsapp-fab.draggable-wa span {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 15px;
  letter-spacing: 0;
}

.whatsapp-support.open .whatsapp-panel {
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .category-tree-filter {
    grid-template-columns: 1fr;
  }
  .category-admin-hint {
    align-items: flex-start;
    flex-direction: column;
  }
  .whatsapp-support {
    right: 14px;
    bottom: 88px;
  }
  .whatsapp-fab.draggable-wa {
    width: 56px;
    height: 56px;
    min-height: 56px;
  }
}
/* Step 40: ecommerce category management workspace */
.category-admin-page .container {
  max-width: 1480px;
}

.category-page-head {
  align-items: flex-start;
}

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

.category-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.category-tree-panel,
.category-ops-panel,
.category-group-card,
.category-warning-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-tree-panel {
  position: sticky;
  top: 92px;
  padding: 14px;
}

.category-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category-panel-head span,
.category-type-label {
  color: #087a77;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-panel-head strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.category-tree-list,
.category-group-list,
.category-ops-panel {
  display: grid;
  gap: 14px;
}

.category-tree-list {
  margin-top: 14px;
}

.category-tree-node {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.category-node-main,
.category-child-title {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.category-node-main strong,
.category-child-title strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.category-node-main small,
.category-child-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.category-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(15, 143, 128, 0.08);
}

.category-tree-children {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.category-tree-children button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
  font-weight: 900;
}

.category-tree-children button:hover {
  border-color: rgba(15, 143, 128, 0.45);
  color: #087a77;
}

.category-tree-children em {
  min-width: 24px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef7f5;
  color: #087a77;
  font-style: normal;
  font-size: 11px;
}

.category-empty-line {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.category-ops-panel {
  border: 0;
  background: transparent;
}

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

.category-workflow-strip article {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-workflow-strip span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0f8f80;
  color: #fff;
  font-weight: 950;
}

.category-workflow-strip strong,
.category-warning-panel strong {
  font-size: 16px;
}

.category-workflow-strip p,
.category-warning-panel p,
.category-group-head p,
.category-child-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.category-warning-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-color: rgba(183, 119, 17, 0.28);
  background: #fffaf0;
}

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

.category-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.category-group-head h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  line-height: 1.2;
}

.category-group-actions,
.category-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.category-group-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.category-group-stats div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.category-group-stats span,
.category-child-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.category-group-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

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

.category-child-card,
.category-add-child-empty {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-child-card:hover {
  border-color: rgba(15, 143, 128, 0.35);
  box-shadow: 0 12px 28px rgba(14, 20, 20, 0.06);
}

.category-child-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-child-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f5f5;
}

.category-add-child-empty {
  align-content: center;
  border-style: dashed;
  background: #fbfffc;
}

@media (max-width: 1100px) {
  .category-manager-layout,
  .category-workflow-strip,
  .category-dashboard-metrics {
    grid-template-columns: 1fr;
  }
  .category-tree-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .category-group-head,
  .category-warning-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .category-group-actions,
  .category-card-actions {
    justify-content: flex-start;
  }
  .category-group-stats,
  .category-child-grid {
    grid-template-columns: 1fr;
  }
}
/* Step 42: clearer ecommerce category management */
.category-redesign-page .admin-page-head {
  align-items: flex-start;
}

.category-redesign-page .page-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.category-rule-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 143, 128, 0.22);
  border-radius: 8px;
  background: #f7fbfa;
}

.category-rule-card strong {
  color: #087a77;
  font-weight: 950;
}

.category-rule-card span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.redesigned-category-manager {
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
}

.category-tree-node .btn.full {
  width: 100%;
  justify-content: center;
}

.category-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-section-title span {
  display: block;
  color: #087a77;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-section-title strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.category-command-card {
  border-color: rgba(14, 20, 20, 0.12);
}

.category-leaf-card.muted-card {
  background: #f8f8f8;
  opacity: 0.78;
}

.category-cleanup-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.category-cleanup-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.4fr) minmax(110px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.category-cleanup-list strong,
.category-cleanup-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.category-cleanup-list em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff3db;
  color: #9a5f00;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .category-section-title,
  .category-cleanup-list div {
    grid-template-columns: 1fr;
  }
  .category-section-title {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Step 44: product URL import assistant */
.product-import-card {
  border-color: rgba(15, 143, 128, 0.22);
  background: linear-gradient(180deg, rgba(15, 143, 128, 0.06), #fff 48%);
}

.product-import-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.product-import-result {
  margin-top: 12px;
}

.import-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.import-status.success {
  border-color: rgba(15, 143, 128, 0.22);
  background: rgba(15, 143, 128, 0.06);
  color: var(--text);
}

.import-status.error {
  border-color: rgba(190, 45, 45, 0.22);
  background: rgba(190, 45, 45, 0.06);
  color: #8a2424;
}

.import-summary-grid {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 12px;
}

.import-summary-grid span {
  color: var(--muted);
}

.import-summary-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .product-import-box {
    grid-template-columns: 1fr;
  }

  .product-import-box .btn {
    width: 100%;
  }
}
/* Step 46: admin product list filters and pagination */
.product-filter-bar-live {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.7fr) minmax(170px, 0.65fr) auto auto;
  align-items: center;
  gap: 10px;
}

.filter-result-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-pagination .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 760px) {
  .product-filter-bar-live {
    grid-template-columns: 1fr;
  }

  .filter-result-count,
  .admin-pagination {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}
.admin-loading-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-loading-card strong {
  font-size: 18px;
  color: var(--ink);
}

.admin-loading-card span {
  color: var(--muted);
  line-height: 1.6;
}
/* Step 52: final responsive acceptance polish */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.drawer,
.admin-modal,
.account-modal {
  max-width: 100vw;
}

@supports (height: 100dvh) {
  .drawer { height: 100dvh; }
  .admin-modal { max-height: calc(100dvh - 24px); }
}

@media (max-width: 900px) {
  .commerce-account-hero,
  .product-center-head,
  .order-page-head,
  .customer-page-head,
  .service-page-head {
    align-items: stretch;
  }

  .commerce-account-hero {
    flex-direction: column;
  }

  .commerce-account-actions,
  .page-head-actions,
  .order-admin-actions,
  .admin-order-actions {
    width: 100%;
  }

  .commerce-account-actions .btn,
  .page-head-actions .btn,
  .order-admin-actions .btn,
  .admin-order-actions .btn {
    min-height: 42px;
  }

  .admin-filter-bar,
  .product-filter-bar-live,
  .filters.product-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-filter-bar .field,
  .product-filter-bar-live .field,
  .filters.product-filters .field {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .drawer {
    width: 100vw;
    box-shadow: none;
  }

  .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-item > div:last-child {
    grid-column: 2;
    justify-self: start;
  }

  .drawer-foot [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .admin-modal {
    top: 6px;
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 14px;
    border-radius: 8px;
  }

  @supports (height: 100dvh) {
    .admin-modal { max-height: calc(100dvh - 12px); }
  }

  .admin-modal .account-actions {
    bottom: -14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-order-product-row {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
  }

  .admin-order-product-main strong,
  .admin-order-product-main span,
  .admin-order-product-main small,
  .table-subtext,
  .status {
    overflow-wrap: anywhere;
  }

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

  .product-ops-board,
  .commerce-account-status-grid,
  .commerce-account-layout {
    grid-template-columns: 1fr;
  }

  .product-center-table .table-actions,
  .admin-orders-table .table-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .product-center-table .table-actions .btn,
  .admin-orders-table .table-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .admin-product-cell {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .product-grid,
  .category-grid,
  .brand-grid,
  .brand-rail,
  .compact-recommendation-list,
  .product-workflow-tabs {
    grid-template-columns: 1fr;
  }

  .catalog-panel,
  .commerce-account-hero,
  .checkout-section,
  .profile-card,
  .admin-loading-card {
    padding: 14px;
  }

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

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line-total {
    grid-column: 2;
    justify-self: start;
  }

  .checkout-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .checkout-line-total {
    grid-column: 2;
    justify-self: start;
  }

  .product-filter-bar-live .btn,
  .filter-reset,
  .admin-pagination .btn {
    width: 100%;
  }
}

/* Step 53: payment proof preview */
.proof-upload-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #f8fbfb;
  text-decoration: none;
}

.proof-upload-preview img {
  max-height: 180px;
}

.proof-file-preview {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-proof-upload-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.order-proof-upload-panel .btn {
  justify-self: start;
}

@media (max-width: 560px) {
  .order-proof-upload-panel .btn {
    width: 100%;
  }
}


/* Step 54: support and proof upload polish */
.whatsapp-panel {
  width: min(374px, calc(100vw - 28px));
  padding: 16px;
  overflow: hidden;
}

.whatsapp-head {
  align-items: flex-start;
  padding: 2px 0 12px;
}

.whatsapp-head strong {
  font-size: 22px;
  line-height: 1.15;
}

.whatsapp-list {
  gap: 10px;
}

.whatsapp-contact {
  width: 100%;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f7faf9;
}

.whatsapp-contact div {
  min-width: 0;
}

.whatsapp-contact > span {
  width: 44px;
  height: 44px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.whatsapp-contact strong,
.whatsapp-contact small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.whatsapp-contact strong {
  font-size: 16px;
  line-height: 1.2;
}

.whatsapp-contact small {
  line-height: 1.35;
}

.custom-proof-upload {
  position: relative;
  border-style: solid;
  background: #f8fbfb;
  cursor: pointer;
}

.custom-proof-upload:focus-within {
  border-color: #0a8f82;
  box-shadow: 0 0 0 3px rgba(10, 143, 130, 0.12);
}

.proof-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.proof-upload-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-style: normal;
}

.proof-upload-visual strong {
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
}

.proof-upload-visual small {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .whatsapp-panel {
    width: min(336px, calc(100vw - 20px));
    padding: 14px;
  }

  .whatsapp-head strong {
    font-size: 20px;
  }

  .proof-upload-visual {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-upload-visual small {
    text-align: left;
  }
}


/* Step 55: payment proof uploader redesign */
.proof-upload-card {
  gap: 14px;
  border: 1px solid #b9d4cf;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fcfb 0%, #ffffff 100%);
}

.proof-upload-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.proof-upload-card-head span {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.proof-upload-card-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.proof-upload-card-head > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8f7f4;
  color: #087a77;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.proof-upload-card .proof-upload-visual {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px dashed #9fbdb8;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.proof-upload-card .proof-upload-visual:hover {
  border-color: #0a8f82;
  box-shadow: 0 12px 26px rgba(8, 122, 119, 0.12);
  transform: translateY(-1px);
}

.proof-upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f7f4;
  color: #087a77;
  font-size: 13px;
  font-weight: 950;
}

.proof-upload-text {
  min-width: 0;
}

.proof-upload-text b,
.proof-upload-text small {
  display: block;
  min-width: 0;
}

.proof-upload-text b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.proof-upload-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-upload-card .proof-upload-visual em {
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.proof-upload-preview-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.proof-upload-preview-card .proof-upload-preview {
  display: grid;
  gap: 10px;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbfb;
}

.proof-upload-preview-card .proof-upload-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.proof-upload-preview-card .proof-upload-preview span {
  color: #087a77;
  font-weight: 900;
}

.proof-remove-btn {
  justify-self: end;
  border-color: #ffd0d0;
  background: #fff7f7;
  color: #b42318;
}

.proof-remove-btn:hover {
  background: #ffecec;
  color: #8f1d14;
}

@media (max-width: 620px) {
  .proof-upload-card-head {
    flex-direction: column;
  }

  .proof-upload-card .proof-upload-visual {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .proof-upload-card .proof-upload-visual em {
    grid-column: 1 / -1;
    text-align: center;
  }

  .proof-remove-btn {
    width: 100%;
  }
}

/* Step 57: click-to-edit address module */
.address-book-panel {
  overflow: visible;
}

.address-display-card {
  display: grid;
  gap: 8px;
  border: 1px solid #b9d4cf;
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fcfb 0%, #fff 100%);
}

.address-display-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.address-display-badges span,
.address-display-badges em {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.address-display-badges span {
  background: #e8f7f4;
  color: #087a77;
}

.address-display-badges em {
  background: #f2f4f7;
  color: #475467;
}

.address-display-card strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.address-display-card p,
.address-display-card span,
.address-display-card small {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.address-display-card span {
  color: var(--ink);
}

.address-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-address-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
}

.profile-address-editor {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 121;
  width: min(460px, calc(100vw - 20px));
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
}

.profile-address-editor-head,
.profile-address-editor-foot {
  padding: 18px 20px;
  background: #fff;
}

.profile-address-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-address-editor-head h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.profile-address-editor-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-address-editor-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px 22px;
  overflow: auto;
}

.profile-address-editor-body label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.profile-address-editor-body label.full {
  grid-column: 1 / -1;
}

.profile-address-editor-body label > span {
  color: #475467;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.profile-address-editor-body textarea.field {
  min-height: 90px;
  resize: vertical;
}

.profile-address-editor-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.enhanced-address-choice small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.full-address-form .full {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .address-card-actions,
  .profile-address-editor-foot,
  .profile-address-editor-body,
  .full-address-form {
    grid-template-columns: 1fr;
  }

  .profile-address-editor {
    width: 100vw;
  }
}


/* Step 58: checkout click-to-edit address */
.checkout-click-address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.checkout-click-address-card > div {
  min-width: 0;
}

.checkout-click-address-card .btn {
  align-self: start;
  white-space: nowrap;
}

.checkout-address-editor .profile-address-editor-head span {
  display: block;
  max-width: 340px;
}

@media (max-width: 680px) {
  .checkout-click-address-card {
    grid-template-columns: 1fr;
  }

  .checkout-click-address-card .btn {
    width: 100%;
  }
}

/* Step 59: compact homepage quick browse */
.home-quick-browse {
  padding: 34px 0 46px;
  background: #f7f9f9;
}

.quick-browse-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.quick-browse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.quick-browse-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.quick-browse-head p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.quick-browse-groups {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 18px;
}

.quick-browse-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-brand-chip,
.quick-type-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quick-brand-chip {
  min-height: 48px;
  display: grid;
  grid-template-columns: 32px auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 8px 13px 8px 9px;
  border-radius: 24px;
}

.quick-brand-chip span {
  grid-row: 1 / 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: 950;
}

.quick-brand-chip strong,
.quick-type-chip strong {
  font-size: 13px;
  line-height: 1.1;
}

.quick-brand-chip small,
.quick-type-chip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.quick-type-chip {
  min-height: 48px;
  min-width: 138px;
  display: grid;
  gap: 4px;
  padding: 9px 13px;
  border-radius: 8px;
}

.quick-type-chip.all-products {
  border-color: #b7d9d5;
  background: #f0fbf8;
}

.quick-brand-chip:hover,
.quick-type-chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand-color, var(--teal));
  box-shadow: 0 12px 24px rgba(15, 143, 128, 0.11);
}

.featured-products-section {
  padding-top: 52px;
}

@media (max-width: 900px) {
  .quick-browse-head,
  .quick-browse-groups {
    grid-template-columns: 1fr;
  }

  .quick-browse-head {
    display: grid;
  }

  .quick-browse-head .btn {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .home-quick-browse {
    padding: 22px 0 30px;
  }

  .quick-browse-panel {
    padding: 16px;
  }

  .quick-browse-head h2 {
    font-size: 22px;
  }

  .quick-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .quick-brand-chip,
  .quick-type-chip {
    flex: 0 0 auto;
  }

  .featured-products-section {
    padding-top: 36px;
  }
}



/* Step 61: mobile scroll performance */
.product-load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-load-more.complete {
  border-style: dashed;
  background: #f8faf9;
}

.whatsapp-support {
  touch-action: auto;
}

.whatsapp-fab.draggable-wa {
  touch-action: manipulation;
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 520px;
    transition: none;
  }

  .product-card:hover,
  .category-card:hover,
  .admin-tile:hover,
  .quick-brand-chip:hover,
  .quick-type-chip:hover {
    transform: none;
    box-shadow: none;
  }

  .product-media svg,
  .remote-svg {
    filter: none;
    transition: none;
  }

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

  .product-media .product-photo,
  .gallery-main .product-photo {
    padding: 10px;
  }

  .drawer-backdrop,
  .account-modal,
  .admin-modal,
  .whatsapp-panel,
  .header {
    backdrop-filter: none;
  }

  .whatsapp-panel,
  .drawer,
  .account-modal,
  .admin-modal {
    box-shadow: 0 12px 26px rgba(14, 20, 20, 0.14);
  }

  .product-load-more {
    display: grid;
    gap: 10px;
    text-align: center;
  }

  .product-load-more .btn {
    width: 100%;
  }
}


/* Step 62: hero-integrated separated brand/category browse */
.hero-with-quick {
  min-height: auto;
}

.hero-with-quick .hero-grid {
  min-height: 548px;
  padding-bottom: 126px;
}

.hero-with-quick .hero-stats {
  margin-top: 26px;
}

.hero-quick-dock {
  position: relative;
  z-index: 2;
  margin-top: -104px;
  padding-bottom: 30px;
}

.hero-quick-panel {
  display: grid;
  grid-template-columns: minmax(250px, 380px) minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 18px 38px rgba(14, 20, 20, 0.18);
}

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

.hero-quick-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #f7f9f9;
  color: var(--text);
  font: inherit;
  font-weight: 750;
}

.hero-quick-group {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-quick-label {
  display: block;
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-quick-chip {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.hero-quick-chip.brand-chip:first-child,
.hero-quick-chip:hover {
  border-color: #b9d4cf;
  background: var(--soft-2);
  color: var(--teal);
}

@media (max-width: 980px) {
  .hero-with-quick .hero-grid {
    padding-bottom: 40px;
  }

  .hero-quick-dock {
    margin-top: 0;
  }

  .hero-quick-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-quick-group {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero-quick-dock {
    padding-bottom: 22px;
  }

  .hero-quick-panel {
    padding: 14px;
    border-radius: 12px;
  }

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

  .hero-quick-search .btn {
    width: 100%;
  }

  .hero-quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero-quick-chip {
    flex: 0 0 auto;
  }
}


/* Step 63: clean duplicated header search and orders entry */
.commerce-nav {
  justify-content: space-between;
}

.commerce-links {
  margin-left: auto;
}

.commerce-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-header-v2 .nav-search,
.shop-header-v2 .mobile-nav-search,
.shop-header-v2 .nav-order-link {
  display: none;
}

@media (max-width: 1120px) {
  .commerce-links {
    margin-left: 0;
  }
}


/* Step 64: mobile click reliability */
.hero::before {
  pointer-events: none;
}

.whatsapp-support {
  pointer-events: none;
}

.whatsapp-fab,
.whatsapp-panel,
.whatsapp-panel * {
  pointer-events: auto;
}

@media (max-width: 760px) {
  .product-card {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  main,
  #main,
  .page,
  .section,
  .product-grid,
  .product-card,
  .product-card *,
  .hero-quick-panel,
  .hero-quick-panel *,
  .commerce-subnav-inner,
  .commerce-subnav-inner *,
  .nav-actions,
  .nav-actions * {
    pointer-events: auto;
  }
}


/* Step 65: mobile touch target tuning */
@media (max-width: 760px) {
  .product-card,
  .product-media,
  .product-body,
  .hero-quick-panel,
  .commerce-subnav,
  .drawer,
  .profile-shell,
  .checkout-layout {
    touch-action: pan-y;
  }

  button,
  a,
  .btn,
  [data-action],
  .product-title,
  .hero-quick-chip,
  .quick-brand-chip,
  .quick-type-chip,
  .cart-button,
  .account-chip,
  .whatsapp-fab {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(15, 143, 128, 0.14);
  }

  .product-media,
  .product-title {
    cursor: pointer;
  }
}


/* Step 66: WhatsApp closed-state hitbox fix */
.whatsapp-support {
  pointer-events: none;
}

.whatsapp-fab {
  pointer-events: auto;
}

.whatsapp-support:not(.open) .whatsapp-panel,
.whatsapp-support:not(.open) .whatsapp-panel * {
  pointer-events: none !important;
  visibility: hidden;
}

.whatsapp-support.open .whatsapp-panel,
.whatsapp-support.open .whatsapp-panel * {
  pointer-events: auto !important;
  visibility: visible;
}

@media (max-width: 760px) {
  .whatsapp-support:not(.open) {
    width: 56px;
    height: 56px;
  }

  .whatsapp-support.open {
    width: auto;
    height: auto;
    max-width: calc(100vw - 24px);
  }
}


/* Step 67: mobile click system finalization */
#support-root {
  pointer-events: none;
}

.whatsapp-support {
  pointer-events: none !important;
}

.whatsapp-fab {
  pointer-events: auto !important;
}

.whatsapp-support.closed .whatsapp-panel,
.whatsapp-support.closed .whatsapp-panel * {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.product-media-button,
.product-title-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.product-media-button {
  width: 100%;
  padding: 0;
}

.product-title-button {
  width: 100%;
  padding: 0;
  font-weight: 900;
}

@media (max-width: 760px) {
  .whatsapp-support {
    left: auto !important;
    top: auto !important;
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .whatsapp-support.closed {
    width: 56px !important;
    height: 56px !important;
  }

  .whatsapp-support.open {
    width: min(374px, calc(100vw - 24px)) !important;
    height: auto !important;
    right: 12px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .whatsapp-support.open .whatsapp-panel {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .product-media-button,
  .product-title-button,
  .details-link,
  .card-cta,
  .cart-button,
  .account-chip,
  .commerce-link,
  .hero-quick-chip,
  .quick-brand-chip,
  .quick-type-chip {
    touch-action: manipulation;
  }
}


/* Step 68: compact mobile brand list */
.hero-quick-chip.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px 3px 5px;
}

.hero-quick-chip .brand-initial {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  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: 10px;
  line-height: 1;
  font-weight: 950;
}

.hero-quick-chip .brand-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.hero-quick-chip .brand-text strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.05;
}

.hero-quick-chip .brand-text small {
  display: none;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

@media (max-width: 560px) {
  .hero-quick-panel {
    gap: 10px;
    padding: 10px;
  }

  .hero-quick-group {
    padding-top: 10px;
  }

  .hero-quick-label {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .hero-quick-group.brand-group .hero-quick-chips {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(36px, 1fr));
    grid-auto-columns: minmax(126px, 42vw);
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .hero-quick-group.brand-group .hero-quick-chip.brand-chip {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    padding: 5px 8px 5px 6px;
    scroll-snap-align: start;
  }

  .hero-quick-group.brand-group .brand-initial {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .hero-quick-group.brand-group .brand-text small {
    display: block;
  }

  .hero-quick-group.category-group .hero-quick-chips {
    gap: 6px;
  }

  .hero-quick-group.category-group .hero-quick-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }
}


/* Step 69: mobile two-column product cards */
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .product-card.compact-card {
    min-width: 0;
    border-radius: 8px;
  }

  .compact-card .product-body {
    padding: 10px;
  }

  .compact-card .media-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .compact-card .product-meta {
    gap: 6px;
    margin-bottom: 7px;
    font-size: 9px;
    line-height: 1.2;
  }

  .compact-card .product-title {
    min-height: 32px;
    font-size: 12px;
    line-height: 1.25;
  }

  .compact-card .fitment {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
  }

  .compact-card .tags {
    gap: 4px;
    margin-top: 8px;
  }

  .compact-card .tag {
    padding: 2px 5px;
    font-size: 9px;
  }

  .compact-card .price-table {
    margin-top: 8px;
    border-radius: 8px;
    font-size: 10px;
  }

  .compact-card .compact-price .price-row {
    gap: 6px;
    padding: 5px 6px;
  }

  .compact-card .product-foot {
    padding-top: 10px;
  }

  .compact-card .price-line {
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
  }

  .compact-card .price {
    font-size: 16px;
  }

  .compact-card .price-stack small,
  .compact-card .details-link {
    font-size: 9px;
  }

  .compact-card .cart-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .compact-card .card-qty,
  .compact-card .card-cta {
    min-height: 32px;
  }

  .compact-card .card-cta {
    font-size: 11px;
  }
}


/* Step 70: compact home benefits and expanded featured products */
.home-benefits-section {
  padding: 18px 0 30px;
  background: #fff;
}

.home-benefits-grid {
  gap: 12px;
}

.home-benefits-grid .feature {
  min-height: auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-color: var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  background: #fff;
  text-align: left;
}

.home-benefits-grid .feature-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 10px;
}

.home-benefits-grid .feature h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
}

.home-benefits-grid .feature p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .home-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-benefits-section {
    padding: 12px 0 22px;
  }

  .home-benefits-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .home-benefits-grid .feature {
    flex: 0 0 min(86vw, 320px);
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
    scroll-snap-align: start;
  }

  .home-benefits-grid .feature-icon {
    width: 38px;
    height: 38px;
  }

  .home-benefits-grid .feature h3 {
    font-size: 13px;
  }

  .home-benefits-grid .feature p {
    font-size: 11px;
  }
}


/* Step 71: low-profile home benefits strip */
.home-benefits-section {
  padding: 10px 0 18px;
  background: #f7f9f9;
}

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

.home-benefits-grid .feature {
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  text-align: left;
}

.home-benefits-grid .feature-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 8px;
}

.home-benefits-grid .feature h3 {
  grid-column: 2;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.15;
}

.home-benefits-grid .feature p {
  grid-column: 2;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .home-benefits-section {
    padding: 8px 0 14px;
  }

  .home-benefits-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .home-benefits-grid .feature {
    flex: 0 0 min(76vw, 286px);
    min-height: 56px;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 9px;
    padding: 8px 10px;
    scroll-snap-align: start;
  }

  .home-benefits-grid .feature-icon {
    width: 30px;
    height: 30px;
  }
}


/* Step 72: no-scroll mobile benefits */
@media (max-width: 560px) {
  .home-benefits-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px;
    overflow-x: visible !important;
    padding-bottom: 0;
    scroll-snap-type: none !important;
  }

  .home-benefits-grid .feature {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    row-gap: 1px;
    padding: 8px 10px;
    scroll-snap-align: none;
  }

  .home-benefits-grid .feature-icon {
    width: 28px;
    height: 28px;
  }

  .home-benefits-grid .feature h3 {
    font-size: 12px;
  }

  .home-benefits-grid .feature p {
    font-size: 10px;
  }
}


/* Step 73: readability font tuning */
body {
  font-size: 16px;
  line-height: 1.45;
}

.product-title {
  font-size: 15px;
}

.fitment {
  font-size: 14px;
}

.product-meta,
.price-table,
.price-stack small,
.details-link {
  font-size: 12px;
}

.tag {
  font-size: 12px;
}

.hero-quick-chip {
  font-size: 13px;
}

.hero-quick-chip .brand-text strong {
  font-size: 13px;
}

.hero-quick-chip .brand-text small,
.hero-quick-chip .brand-initial {
  font-size: 11px;
}

.home-benefits-grid .feature h3 {
  font-size: 14px;
}

.home-benefits-grid .feature p {
  font-size: 12px;
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 15px;
  }

  .compact-card .media-badge {
    font-size: 10px;
  }

  .compact-card .product-meta {
    font-size: 10px;
  }

  .compact-card .product-title {
    min-height: 36px;
    font-size: 13px;
    line-height: 1.28;
  }

  .compact-card .fitment {
    font-size: 12px;
  }

  .compact-card .tag {
    font-size: 10px;
  }

  .compact-card .price-table {
    font-size: 11px;
  }

  .compact-card .price {
    font-size: 17px;
  }

  .compact-card .price-stack small,
  .compact-card .details-link {
    font-size: 10px;
  }

  .compact-card .card-cta {
    font-size: 12px;
  }

  .hero-quick-chip .brand-text strong {
    font-size: 12px;
  }

  .hero-quick-chip .brand-text small,
  .hero-quick-chip .brand-initial {
    font-size: 10px;
  }

  .hero-quick-group.category-group .hero-quick-chip {
    font-size: 12px;
  }

  .home-benefits-grid .feature h3 {
    font-size: 13px;
  }

  .home-benefits-grid .feature p {
    font-size: 11px;
  }
}


/* Step 74: larger thumbnails for admin lists, cart drawer, and order rows */
.admin-products-table .admin-product-cell,
.product-center-table .admin-product-cell {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
}

.admin-product-thumb {
  width: 82px;
  height: 82px;
  border-radius: 10px;
}

.admin-product-thumb img,
.admin-product-thumb svg {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
}

.cart-item {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
}

.cart-thumb {
  width: 112px;
  height: 112px;
  overflow: hidden;
}

.cart-thumb img,
.cart-thumb svg {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.cart-thumb.small-thumb {
  width: 78px;
  height: 78px;
}

.drawer-item {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
}

.drawer-thumb {
  width: 82px;
  height: 82px;
  overflow: hidden;
}

.drawer-thumb img,
.drawer-thumb svg {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.admin-order-product-row {
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 14px;
}

.admin-order-product-thumb {
  width: 76px;
}

.admin-order-product-thumb img,
.admin-order-product-thumb svg {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .admin-products-table .admin-product-cell,
  .product-center-table .admin-product-cell {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px;
  }

  .admin-product-thumb {
    width: 72px;
    height: 72px;
  }

  .admin-order-product-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .admin-order-product-thumb {
    width: 72px;
  }

  .admin-order-product-qty,
  .admin-order-product-total {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-thumb {
    width: 86px;
    height: 86px;
  }

  .cart-line-total {
    grid-column: 2;
    justify-self: start;
  }

  .drawer-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .drawer-thumb {
    width: 76px;
    height: 76px;
  }
}


/* Step 75: slightly larger list and cart thumbnails */
.admin-products-table .admin-product-cell,
.product-center-table .admin-product-cell {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
}

.admin-product-thumb {
  width: 96px;
  height: 96px;
}

.cart-item {
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 18px;
}

.cart-thumb {
  width: 128px;
  height: 128px;
}

.cart-thumb.small-thumb {
  width: 88px;
  height: 88px;
}

.drawer-item {
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 15px;
}

.drawer-thumb {
  width: 94px;
  height: 94px;
}

.admin-order-product-row {
  grid-template-columns: 90px minmax(0, 1fr) auto auto;
  gap: 16px;
}

.admin-order-product-thumb {
  width: 90px;
}

@media (max-width: 760px) {
  .admin-products-table .admin-product-cell,
  .product-center-table .admin-product-cell {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 13px;
  }

  .admin-product-thumb {
    width: 84px;
    height: 84px;
  }

  .admin-order-product-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-order-product-thumb {
    width: 82px;
  }
}

@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cart-thumb {
    width: 96px;
    height: 96px;
  }

  .drawer-item {
    grid-template-columns: 86px minmax(0, 1fr) auto;
  }

  .drawer-thumb {
    width: 86px;
    height: 86px;
  }
}


/* Step 76: product editor gallery wall */
.gallery-style-uploader {
  gap: 14px;
  padding: 16px;
  background: #fff;
}

.image-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-gallery-title strong,
.image-gallery-title span {
  display: block;
}

.image-gallery-title strong {
  font-size: 15px;
}

.image-gallery-title span,
.image-gallery-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.image-gallery-help {
  margin: 0;
}

.admin-image-gallery-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.gallery-style-uploader .admin-image-preview {
  display: contents;
}

.gallery-style-uploader .admin-image-thumb {
  position: relative;
  display: block;
  width: 120px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: visible;
}

.gallery-style-uploader .admin-image-thumb.is-main {
  width: 254px;
  height: 254px;
}

.gallery-style-uploader .admin-image-visual {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.gallery-style-uploader .admin-image-visual img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.gallery-style-uploader .admin-image-meta {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 16px);
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(15, 143, 128, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.gallery-style-uploader .admin-image-meta strong,
.gallery-style-uploader .admin-image-meta span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
}

.gallery-style-uploader .admin-image-meta strong {
  color: var(--accent);
  font-weight: 900;
}

.gallery-style-uploader .admin-image-meta span {
  max-width: 120px;
  color: var(--muted);
}

.gallery-style-uploader .admin-image-thumb:not(.is-main) .admin-image-meta span {
  display: none;
}

.image-remove-btn {
  position: absolute;
  right: -8px;
  top: -8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef3157;
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 49, 87, 0.25);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.gallery-style-uploader .admin-image-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.gallery-style-uploader .admin-image-thumb:hover .admin-image-actions,
.gallery-style-uploader .admin-image-thumb:focus-within .admin-image-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.image-action-pill {
  min-height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.image-action-pill:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.image-add-tile,
.gallery-empty-state {
  width: 120px;
  height: 120px;
  border: 1px dashed #cfd7d7;
  border-radius: 10px;
  background: #fbfbfb;
}

.image-add-tile {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.image-add-tile:hover {
  border-color: var(--accent);
  background: #f2fbf9;
  color: var(--accent);
}

.image-add-plus {
  color: inherit;
  font-size: 36px;
  font-weight: 300;
  line-height: 0.85;
}

.image-add-tile small {
  font-size: 12px;
  font-weight: 800;
}

.image-add-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.gallery-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
}

.gallery-empty-state strong,
.gallery-empty-state span {
  display: block;
}

.gallery-empty-state strong {
  color: var(--ink);
  font-size: 13px;
}

.gallery-empty-state span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.gallery-style-uploader .image-url-field {
  min-height: 44px;
  height: 44px;
  resize: vertical;
  font-size: 13px;
}

@media (max-width: 760px) {
  .gallery-style-uploader .admin-image-thumb.is-main {
    width: min(100%, 220px);
    height: 220px;
  }

  .gallery-style-uploader .admin-image-thumb,
  .image-add-tile,
  .gallery-empty-state {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 560px) {
  .image-gallery-toolbar {
    align-items: flex-start;
  }

  .gallery-style-uploader .admin-image-thumb.is-main {
    width: 100%;
    height: 220px;
  }

  .gallery-style-uploader .admin-image-thumb,
  .image-add-tile,
  .gallery-empty-state {
    width: calc(50% - 6px);
    height: 132px;
  }
}


/* Step 77: product detail rich editor and storefront detail block */
.product-detail-editor-card {
  gap: 0;
}

.detail-editor-lang-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-editor-lang-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 0 20px;
  background: #f7f8f8;
  font-weight: 800;
}

.detail-editor-lang-tabs button.active {
  background: #fff;
  color: var(--ink);
}

.product-detail-editor-shell {
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.product-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fbfbfb;
}

.product-detail-toolbar button {
  min-width: 44px;
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #1f2a36;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.product-detail-toolbar button:hover,
.product-detail-toolbar button:focus-visible {
  background: #eef7f5;
  color: var(--accent);
  outline: none;
}

.product-detail-editor-body {
  min-height: 360px;
  max-height: 620px;
  overflow: auto;
  padding: 28px 24px;
  color: #0e1116;
  font-size: 16px;
  line-height: 1.75;
}

.product-detail-editor-body:focus {
  outline: 2px solid rgba(15, 143, 128, 0.22);
  outline-offset: -2px;
}

.product-detail-editor-body h1,
.product-detail-editor-body h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.25;
}

.product-detail-editor-body h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.product-detail-editor-body p,
.product-detail-editor-body ul,
.product-detail-editor-body ol {
  margin: 0 0 14px;
}

.detail-editor-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-long-detail-section {
  margin: 34px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.product-long-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #f8f9f9;
}

.product-long-detail-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-long-detail-head strong {
  font-size: 18px;
}

.product-rich-content {
  padding: 26px 28px 30px;
  color: #222;
  font-size: 16px;
  line-height: 1.78;
}

.product-rich-content h1,
.product-rich-content h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.25;
}

.product-rich-content h3 {
  margin: 24px 0 10px;
  font-size: 21px;
}

.product-rich-content p,
.product-rich-content ul,
.product-rich-content ol {
  margin: 0 0 15px;
}

.product-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.product-rich-content th,
.product-rich-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.product-rich-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .product-detail-toolbar button {
    min-width: 40px;
    min-height: 40px;
    font-size: 13px;
  }

  .product-detail-editor-body {
    min-height: 300px;
    padding: 22px 18px;
  }

  .product-long-detail-head {
    display: grid;
  }

  .product-rich-content {
    padding: 22px 18px;
  }
}


/* Step 78: enhanced product detail editor */
.enhanced-detail-editor-card {
  position: relative;
  overflow: visible;
}

.enhanced-detail-editor-card .detail-editor-lang-tabs {
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.enhanced-detail-editor-card .detail-editor-lang-tabs span {
  margin-left: auto;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.enhanced-detail-editor-shell {
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.enhanced-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  min-height: 48px;
  background: #fbfcfc;
}

.enhanced-detail-toolbar button,
.detail-color-btn {
  min-width: 44px;
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fbfcfc;
  color: #1f2933;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 850;
}

.enhanced-detail-toolbar button:hover,
.enhanced-detail-toolbar button:focus-visible,
.detail-color-btn:hover,
.detail-toolbar-select:hover,
.detail-toolbar-select:focus {
  background: #eef7f5;
  color: var(--accent);
  outline: none;
}

.toolbar-divider {
  width: 1px;
  min-height: 48px;
  background: #d9dfdf;
}

.detail-toolbar-select {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fbfcfc;
  color: #1f2933;
  cursor: pointer;
  padding: 0 32px 0 12px;
  font-size: 14px;
}

.detail-toolbar-select.wide {
  width: 168px;
}

.detail-toolbar-select.small {
  width: 92px;
}

.detail-color-btn {
  position: relative;
  gap: 4px;
}

.detail-color-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.detail-color-btn span {
  border-bottom: 3px solid currentColor;
  line-height: 1;
}

.enhanced-detail-body {
  min-height: 430px;
  max-height: 680px;
  padding: 34px 28px;
  background: #fff;
  font-size: 17px;
  line-height: 1.8;
}

.enhanced-detail-body h1,
.enhanced-detail-body h2 {
  font-size: 34px;
  line-height: 1.22;
}

.enhanced-detail-body blockquote {
  margin: 16px 0;
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  background: #f5faf9;
}

.enhanced-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.enhanced-detail-body th,
.enhanced-detail-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.enhanced-detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px 0;
}

.product-detail-source {
  display: none;
  width: 100%;
  min-height: 430px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px;
  resize: vertical;
  background: #111827;
  color: #e5e7eb;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.65;
}

.source-mode .enhanced-detail-body {
  display: none;
}

.source-mode .product-detail-source {
  display: block;
}

.detail-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.detail-editor-footer strong {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.detail-editor-fullscreen {
  position: fixed;
  inset: 18px;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  max-width: none;
  margin: 0;
  overflow: auto;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
}

.detail-editor-fullscreen .enhanced-detail-editor-shell {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 0;
}

.detail-editor-fullscreen .enhanced-detail-body,
.detail-editor-fullscreen .product-detail-source {
  min-height: 0;
  max-height: none;
}

@media (max-width: 760px) {
  .enhanced-detail-editor-card .detail-editor-lang-tabs span {
    display: none;
  }

  .detail-toolbar-select.wide,
  .detail-toolbar-select.small {
    width: 50%;
    flex: 1 1 44%;
  }

  .enhanced-detail-toolbar button,
  .detail-color-btn {
    min-width: 42px;
    min-height: 44px;
    padding: 0 10px;
  }

  .enhanced-detail-body,
  .product-detail-source {
    min-height: 340px;
  }

  .detail-editor-footer {
    display: grid;
  }

  .detail-editor-fullscreen {
    inset: 8px;
  }
}


/* Step 79: product detail confirmation and specs moved under gallery */
.detail-left-info {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.detail-left-info .compatibility-card {
  margin: 0;
}

.detail-left-info .left-spec-title {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.detail-left-info .left-specs {
  margin: 0;
  background: #fff;
}

@media (max-width: 760px) {
  .detail-left-info {
    gap: 14px;
    margin-top: 14px;
  }

  .detail-left-info .left-spec-title {
    font-size: 21px;
  }
}


/* Step 80: AliExpress-style product variants */
.ali-variant-picker {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.variant-picker-head,
.variant-group-head,
.variant-stock-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.variant-picker-head span,
.variant-group-head span,
.variant-stock-strip {
  color: var(--muted);
  font-size: 12px;
}

.variant-picker-head em {
  font-style: normal;
  color: var(--teal);
  font-weight: 800;
}

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

.variant-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.variant-choice {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.variant-choice.image-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px 10px;
}

.variant-choice img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
  background: #f2f3f3;
}

.variant-choice.active {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.variant-choice.disabled {
  color: #a0a0a0;
  background: #f4f5f5;
  cursor: not-allowed;
  text-decoration: line-through;
}

.variant-stock-strip {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.variant-stock-strip strong {
  color: var(--text);
}

.cart-variant-line {
  margin: 4px 0 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.product-variant-editor-card {
  display: grid;
  gap: 14px;
}

.variant-enable-switch {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

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

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

.variant-group-editor textarea {
  min-height: 96px;
}

.variant-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.admin-variant-table-head,
.admin-variant-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(120px, 1fr) 92px 92px 92px 78px minmax(170px, 1.2fr) 90px;
  gap: 8px;
  align-items: center;
}

.admin-variant-table-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.admin-variant-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.admin-variant-label strong,
.admin-variant-label span {
  display: block;
}

.admin-variant-label span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.variant-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: #fafafa;
  text-align: center;
}

@media (max-width: 1100px) {
  .variant-builder-grid {
    grid-template-columns: 1fr;
  }

  .admin-variant-table-head {
    display: none;
  }

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

  .admin-variant-label,
  .admin-variant-row .full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .ali-variant-picker {
    padding: 13px;
  }

  .variant-picker-head,
  .variant-group-head,
  .variant-stock-strip,
  .variant-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .variant-choice {
    min-height: 40px;
    padding: 7px 10px;
  }

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


/* Step 81: platform-style admin variant editor */
.platform-variant-editor-card {
  gap: 18px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}

.platform-variant-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.platform-variant-top h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.platform-variant-top p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.platform-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.platform-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.platform-switch span {
  display: block;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #d9dddd;
  cursor: pointer;
  transition: background .18s ease;
}

.platform-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.16);
  transition: transform .18s ease;
}

.platform-switch input:checked + span {
  background: #58bd09;
}

.platform-switch input:checked + span::after {
  transform: translateX(22px);
}

.admin-spec-board {
  display: grid;
  gap: 12px;
}

.admin-spec-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.admin-spec-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #f2f2f2;
}

.admin-spec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-spec-title strong {
  font-size: 16px;
}

.admin-spec-title button {
  border: 0;
  background: transparent;
  color: #ff5b2e;
  font-weight: 800;
  cursor: pointer;
}

.admin-spec-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-spec-actions .btn {
  border-color: #ff6b3d;
  color: #ff5b2e;
  background: #fff8f5;
}

.variant-hidden-select,
.variant-hidden-values {
  display: none;
}

.admin-spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  min-height: 68px;
}

.admin-spec-value-tile {
  position: relative;
  display: inline-flex;
}

.admin-spec-value-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 94px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 12px;
  background: #fff;
  cursor: pointer;
}

.admin-spec-value-main img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 3px;
}

.admin-spec-no-image {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 20px;
}

.admin-spec-value-delete {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #ff4d4f;
  color: #fff;
  line-height: 18px;
  cursor: pointer;
}

.admin-spec-empty,
.admin-spec-hint,
.admin-variant-note {
  color: var(--muted);
  font-size: 12px;
}

.admin-spec-hint {
  margin: 0;
  padding: 0 14px 14px;
}

.admin-add-spec-btn {
  width: fit-content;
  border-color: #ff9b7a;
  color: #ff5b2e;
  background: #fff8f5;
}

.admin-variant-matrix {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f3f6f8;
}

.admin-variant-bulkbar {
  display: grid;
  grid-template-columns: 74px 48px repeat(9, minmax(92px, 1fr)) 96px;
  gap: 8px;
  align-items: center;
}

.admin-bulk-plus {
  height: 42px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.admin-bulk-apply {
  height: 42px;
  background: #ff6b3d;
  border-color: #ff6b3d;
}

.platform-variant-table-head,
.platform-variant-row {
  display: grid;
  grid-template-columns: 74px 62px minmax(118px, 1fr) minmax(150px, 1.1fr) repeat(3, minmax(118px, 1fr)) 78px 92px 116px minmax(128px, 1fr) minmax(128px, 1fr);
  gap: 0;
  align-items: stretch;
}

.platform-variant-table-head {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #f1f3f4;
}

.platform-variant-table-head span {
  padding: 13px 10px;
  border-right: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.platform-variant-row {
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  padding: 0;
}

.platform-variant-row > * {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 10px;
}

.platform-variant-row .field {
  min-height: 42px;
  padding: 0 10px;
}

.admin-variant-main-spec {
  display: grid;
  align-content: center;
  gap: 4px;
}

.admin-variant-main-spec span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.admin-variant-image-cell {
  display: grid;
  place-items: center;
}

.admin-variant-image-cell button {
  width: 50px;
  height: 50px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.admin-variant-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-default-sku {
  display: block;
  margin-top: 4px;
  color: #58bd09;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .admin-variant-bulkbar,
  .platform-variant-table-head,
  .platform-variant-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-variant-table-head {
    display: none;
  }

  .platform-variant-row {
    border-top: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .admin-variant-main-spec,
  .admin-variant-image-cell {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .platform-variant-editor-card {
    padding: 14px;
  }

  .admin-spec-card-head,
  .platform-variant-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-variant-bulkbar,
  .platform-variant-row {
    grid-template-columns: 1fr;
  }
}

/* Step 84: admin variant editor, closer to approved ecommerce mockup */
.platform-variant-editor-card.variant-management-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe6e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .04);
}

.variant-management-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #eef1f2;
  background: linear-gradient(180deg, #fff, #fbfcfc);
}

.variant-management-title span,
.variant-panel-head span,
.variant-matrix-head span,
.variant-summary-head span {
  color: #008c7a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.variant-management-title h3 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.variant-management-title p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.variant-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 280px;
}

.variant-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.variant-status-pill.is-on {
  color: #007a37;
  background: #e7f7ec;
}

.variant-status-pill.is-off {
  color: #697174;
  background: #eef1f1;
}

.variant-management-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 26px;
  border-bottom: 1px solid #eef1f2;
  background: #f7faf9;
}

.variant-switch-row {
  margin: 0;
}

.variant-toolbar-copy {
  display: grid;
  gap: 3px;
}

.variant-toolbar-copy strong {
  font-size: 15px;
}

.variant-toolbar-copy small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.toolbar-save-hint {
  background: #ff6b3d;
  border-color: #ff6b3d;
}

.variant-management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 18px;
  padding: 22px 26px;
}

.variant-groups-panel,
.variant-summary-panel {
  border: 1px solid #e4eaec;
  border-radius: 10px;
  background: #fff;
}

.variant-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f2;
  background: #fbfcfc;
}

.variant-panel-head div,
.variant-matrix-head div {
  display: grid;
  gap: 4px;
}

.variant-panel-head strong,
.variant-matrix-head strong {
  font-size: 18px;
}

.variant-panel-head em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.variant-spec-board {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.variant-management-card .admin-spec-card {
  border: 1px solid #e3e8ea;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.variant-management-card .admin-spec-card-head {
  padding: 14px 16px;
  background: #f2f4f5;
}

.admin-spec-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.admin-spec-kicker {
  color: #008c7a;
  font-size: 11px;
  font-weight: 900;
}

.admin-spec-title strong {
  font-size: 19px;
}

.admin-spec-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.variant-management-card .admin-spec-actions button {
  color: #ff5b2e;
  border: 0;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.admin-spec-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-spec-mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #007a70;
  background: #e7f7f4;
  font-weight: 900;
}

.variant-management-card .admin-spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
}

.variant-management-card .admin-spec-value-main {
  min-width: 112px;
  min-height: 52px;
  gap: 10px;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
}

.admin-spec-value-image {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #f4f6f6;
}

.admin-spec-value-main img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
}

.admin-spec-value-meta {
  display: grid;
  gap: 2px;
  text-align: left;
}

.admin-spec-value-meta strong {
  color: var(--text);
  font-size: 15px;
}

.admin-spec-value-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-spec-value-delete {
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  font-size: 14px;
}

.admin-spec-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.admin-spec-card-foot .btn,
.admin-add-spec-btn {
  border-color: #ff8f6b;
  color: #ff5b2e;
  background: #fff8f5;
}

.variant-summary-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.variant-summary-head {
  display: grid;
  gap: 5px;
}

.variant-summary-head strong {
  font-size: 34px;
  line-height: 1;
}

.variant-summary-head em {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #007a37;
  background: #e7f7ec;
  font-style: normal;
  font-weight: 900;
}

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

.variant-summary-stats div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #edf1f2;
  border-radius: 8px;
  background: #fbfcfc;
}

.variant-summary-stats strong {
  font-size: 21px;
}

.variant-summary-stats span,
.variant-summary-list p,
.variant-summary-warning {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

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

.variant-summary-list p {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  margin: 0;
}

.variant-summary-list p span {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #10a38d;
}

.variant-summary-warning {
  padding: 12px;
  border-radius: 8px;
  color: #815500;
  background: #fff6df;
}

.variant-sku-matrix {
  margin: 0 26px 26px;
  padding: 18px;
  border: 1px solid #e3e9ec;
  border-radius: 12px;
  background: #f6f8fa;
}

.variant-matrix-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.variant-matrix-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.variant-sku-matrix .admin-variant-bulkbar {
  display: grid;
  grid-template-columns: 94px 44px repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  align-items: center;
}

.variant-sku-matrix .admin-bulk-plus {
  border-radius: 6px;
  background: #fff;
}

.variant-sku-matrix .platform-variant-table-head,
.variant-sku-matrix .platform-variant-row {
  display: grid;
  grid-template-columns: .9fr 68px .9fr 1.1fr .8fr .8fr .8fr 70px 82px 94px .9fr .9fr;
  align-items: stretch;
  min-width: 0;
}

.variant-sku-matrix .platform-variant-table-head {
  overflow: hidden;
  border: 1px solid #dfe5e8;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f1f4f5;
}

.variant-sku-matrix .platform-variant-table-head span {
  padding: 12px 10px;
  border-right: 1px solid #dfe5e8;
  font-size: 12px;
  font-weight: 900;
}

.variant-sku-matrix .platform-variant-row {
  overflow: hidden;
  border: 1px solid #dfe5e8;
  border-top: 0;
  background: #fff;
}

.variant-sku-matrix .platform-variant-row > * {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #e7ebed;
}

.variant-field-cell {
  display: grid;
  align-content: center;
  gap: 6px;
}

.variant-field-cell > span {
  display: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.variant-field-cell .field {
  width: 100%;
  min-height: 40px;
  padding: 0 9px;
  font-size: 13px;
}

.variant-sku-matrix .admin-variant-main-spec {
  align-content: center;
  gap: 4px;
}

.variant-sku-matrix .admin-variant-main-spec strong {
  font-size: 15px;
}

.variant-sku-matrix .admin-variant-main-spec span {
  color: var(--muted);
  font-size: 11px;
}

.variant-sku-matrix .admin-variant-image-cell button {
  width: 46px;
  height: 46px;
  border-radius: 6px;
}

@media (max-width: 1180px) {
  .variant-management-layout {
    grid-template-columns: 1fr;
  }

  .variant-summary-panel {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    align-items: start;
  }

  .variant-summary-list,
  .variant-summary-warning {
    grid-column: span 2;
  }

  .variant-sku-matrix .platform-variant-table-head {
    display: none;
  }

  .variant-sku-matrix .platform-variant-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 12px;
    border-top: 1px solid #dfe5e8;
    border-radius: 10px;
  }

  .variant-field-cell > span {
    display: block;
  }
}

@media (max-width: 760px) {
  .variant-management-card {
    border-radius: 10px;
  }

  .variant-management-header,
  .variant-management-toolbar,
  .variant-matrix-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .variant-management-header,
  .variant-management-toolbar,
  .variant-management-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .variant-header-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .variant-management-title h3 {
    font-size: 22px;
  }

  .variant-summary-panel,
  .variant-summary-stats,
  .variant-sku-matrix .platform-variant-row,
  .variant-sku-matrix .admin-variant-bulkbar {
    grid-template-columns: 1fr;
  }

  .variant-summary-list,
  .variant-summary-warning {
    grid-column: auto;
  }

  .variant-sku-matrix {
    margin: 0 14px 18px;
    padding: 14px;
  }
}

/* Step 85: variant upload and full-width editor placement */
.product-editor-wide {
  grid-column: 1 / -1;
  min-width: 0;
}

.product-editor-variant-wide {
  margin-top: 4px;
}

.product-editor-variant-wide .variant-management-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.product-editor-variant-wide .variant-sku-matrix .platform-variant-table-head,
.product-editor-variant-wide .variant-sku-matrix .platform-variant-row {
  grid-template-columns: 1fr 76px 1fr 1.15fr .82fr .82fr .82fr 76px 88px 96px 1fr 1fr;
}

.admin-spec-upload-chip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: #10a38d;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 163, 141, .22);
}

.admin-spec-upload-chip input,
.variant-row-upload-input {
  display: none;
}

.admin-spec-value-tile {
  padding-bottom: 28px;
}

.admin-spec-value-tile.has-image .admin-spec-upload-chip {
  background: #242424;
}

.variant-management-card .admin-spec-value-main {
  min-height: 58px;
}

.variant-management-card .admin-spec-value-image,
.variant-management-card .admin-spec-value-main img {
  width: 42px;
  height: 42px;
}

.variant-sku-matrix .admin-variant-image-cell button {
  position: relative;
  overflow: hidden;
}

.variant-sku-matrix .admin-variant-image-cell button::after {
  content: "Upload";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 2px 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .72);
  font-size: 9px;
  font-weight: 900;
}

.variant-sku-matrix .admin-variant-image-cell button:not(:has(img))::after {
  display: none;
}

@media (max-width: 1180px) {
  .product-editor-variant-wide .variant-management-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-editor-variant-wide .variant-management-layout,
  .product-editor-variant-wide .variant-sku-matrix .platform-variant-row {
    grid-template-columns: 1fr;
  }
}

/* Step 86: move product detail editor to bottom full-width area */
.product-editor-detail-wide {
  margin-top: 4px;
}

.product-editor-detail-wide .enhanced-detail-editor-card {
  padding: 22px;
  border-radius: 12px;
  background: #fff;
}

.product-editor-detail-wide .detail-editor-lang-tabs {
  margin-top: 10px;
}

.product-editor-detail-wide .enhanced-detail-editor-shell {
  border-radius: 0 10px 10px 10px;
}

.product-editor-detail-wide .enhanced-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.product-editor-detail-wide .detail-toolbar-select.wide {
  width: 190px;
}

.product-editor-detail-wide .detail-toolbar-select.small {
  width: 110px;
}

.product-editor-detail-wide .enhanced-detail-body {
  min-height: 620px;
  max-height: none;
  padding: 38px 34px;
  font-size: 17px;
}

.product-editor-detail-wide .product-detail-source {
  min-height: 620px;
  max-height: none;
}

.product-editor-detail-wide .detail-editor-footer {
  min-height: 42px;
  padding: 10px 14px;
}

@media (max-width: 760px) {
  .product-editor-detail-wide .enhanced-detail-editor-card {
    padding: 14px;
  }

  .product-editor-detail-wide .enhanced-detail-body,
  .product-editor-detail-wide .product-detail-source {
    min-height: 440px;
    padding: 22px 16px;
  }

  .product-editor-detail-wide .detail-toolbar-select.wide,
  .product-editor-detail-wide .detail-toolbar-select.small {
    width: auto;
    min-width: 112px;
  }
}



/* Step 87: clean AliExpress-style variant redesign, removing previous visible fields */
.variant-v2-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .035);
}

.variant-v2-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 26px;
  border-bottom: 1px solid #edf1f3;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.variant-v2-header h3 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
}

.variant-v2-enable-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #1f2933;
}

.variant-v2-enable-row em {
  padding: 5px 10px;
  border-radius: 999px;
  color: #667078;
  background: #eef2f3;
  font-style: normal;
  font-weight: 800;
}

.variant-v2-enable-row em.active {
  color: #167437;
  background: #e5f7eb;
}

.variant-v2-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.variant-v2-top-actions .is-orange,
.variant-v2-side-card button,
.variant-v2-bulkbar .admin-bulk-apply {
  border-color: #ff6b3d;
  color: #ff4f1f;
  background: #fff7f3;
}

.variant-v2-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 22px;
  padding: 22px 26px 26px;
}

.variant-v2-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.variant-v2-groups {
  display: grid;
  gap: 12px;
  padding: 0;
}

.variant-v2-group-card {
  overflow: hidden;
  border: 1px solid #e0e7eb;
  border-radius: 8px;
  background: #fff;
}

.variant-v2-group-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  background: #f5f7f8;
}

.variant-v2-group-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.variant-v2-group-title .admin-spec-kicker {
  color: #008c7a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.variant-v2-group-title strong {
  color: #111820;
  font-size: 19px;
}

.variant-v2-group-title em {
  color: #6b747b;
  font-style: normal;
  font-weight: 800;
}

.variant-v2-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-v2-group-actions button {
  border: 0;
  color: #ff4f1f;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.variant-v2-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.variant-v2-value-tile {
  position: relative;
  padding: 0;
}

.variant-v2-value-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 124px;
  min-height: 66px;
  padding: 8px 12px;
  border: 1px solid #e0e5e8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.variant-v2-value-image,
.variant-v2-value-image img {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #f2f5f6;
}

.variant-v2-value-main strong {
  color: #111820;
  font-size: 15px;
}

.variant-v2-upload {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: #10a38d;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.variant-v2-upload input,
.variant-row-upload-input,
.variant-hidden-select,
.variant-hidden-values {
  display: none;
}

.variant-v2-delete-value {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #ff4f55;
  font-weight: 900;
  cursor: pointer;
}

.variant-v2-add-image-tile {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 118px;
  min-height: 66px;
  border: 1px dashed #b8c2c8;
  border-radius: 6px;
  color: #4f5b64;
  background: #fbfcfc;
  cursor: pointer;
}

.variant-v2-add-image-tile span {
  font-size: 26px;
  line-height: 1;
}

.variant-v2-matrix {
  overflow: hidden;
  border: 1px solid #e0e7eb;
  border-radius: 8px;
  background: #fff;
}

.variant-v2-matrix-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f3;
}

.variant-v2-matrix-head strong {
  font-size: 16px;
}

.variant-v2-matrix-head span {
  color: #69747b;
  font-size: 13px;
}

.variant-v2-bulkbar {
  display: grid;
  grid-template-columns: 96px 44px repeat(7, minmax(92px, 1fr)) 84px;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  background: #f4f7f8;
}

.variant-v2-plus {
  min-height: 40px;
  border: 1px dashed #c5ced3;
  border-radius: 6px;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.variant-v2-table-head,
.variant-v2-row {
  display: grid;
  grid-template-columns: 72px minmax(160px, 1.2fr) minmax(150px, 1fr) 96px 112px 112px 78px 94px 104px 86px;
  align-items: stretch;
}

.variant-v2-table-head {
  border-top: 1px solid #e1e7ea;
  border-bottom: 1px solid #e1e7ea;
  background: #f6f8f9;
}

.variant-v2-table-head span {
  padding: 12px 10px;
  border-right: 1px solid #e1e7ea;
  font-size: 12px;
  font-weight: 900;
  color: #111820;
}

.variant-v2-row {
  border-bottom: 1px solid #edf1f3;
  background: #fff;
}

.variant-v2-row > * {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #edf1f3;
}

.variant-v2-image-cell button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px dashed #cad3d8;
  border-radius: 6px;
  background: #fff;
  color: #4c5962;
  font-size: 22px;
  cursor: pointer;
}

.variant-v2-image-cell img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.variant-v2-name {
  display: grid;
  align-content: center;
  gap: 3px;
}

.variant-v2-name strong {
  color: #111820;
  font-size: 13px;
  line-height: 1.35;
}

.variant-v2-name span {
  color: #69747b;
  font-size: 12px;
  font-weight: 700;
}

.variant-v2-row .variant-field-cell {
  display: grid;
  align-content: center;
  gap: 5px;
}

.variant-v2-row .variant-field-cell > span {
  display: none;
  color: #69747b;
  font-size: 11px;
  font-weight: 900;
}

.variant-v2-row .field {
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  font-size: 13px;
}

.variant-v2-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-v2-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #ffc5c1;
  border-radius: 6px;
  color: #e8241f;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.variant-v2-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.variant-v2-side-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e0e7eb;
  border-radius: 8px;
  background: #fff;
}

.variant-v2-side-card h4 {
  margin: 0;
  font-size: 14px;
}

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

.variant-v2-summary-list p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.variant-v2-summary-list span,
.variant-v2-side-card p,
.variant-v2-checklist {
  color: #5f6b73;
  font-size: 13px;
  line-height: 1.45;
}

.variant-v2-summary-list strong {
  font-size: 18px;
}

.variant-v2-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.variant-v2-checklist li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
}

.variant-v2-checklist li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: #d6dee2;
}

.variant-v2-checklist li.ok::before {
  background: #10a38d;
}

.variant-v2-side-card button {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.variant-v2-side-card button.outline {
  background: #fff;
}

.variant-v2-side-card.muted {
  background: #fbfcfc;
}

.variant-picker-v2 {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e0e7eb;
  border-radius: 10px;
  background: #fff;
}

.variant-picker-tier-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
}

.variant-picker-tier-table div {
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: center;
  border-right: 1px solid #dfe5e8;
}

.variant-picker-tier-table div:last-child {
  border-right: 0;
}

.variant-picker-tier-table span {
  color: #111820;
  font-weight: 900;
}

.variant-picker-tier-table strong {
  font-size: 14px;
}

.variant-picker-v2 .variant-group-head {
  margin-bottom: 8px;
}

.variant-picker-v2 .variant-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.variant-picker-v2 .variant-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid #dfe5e8;
  border-radius: 7px;
  background: #fff;
  color: #111820;
  font-weight: 900;
  cursor: pointer;
}

.variant-picker-v2 .variant-choice.active {
  border-color: #10a38d;
  box-shadow: inset 0 0 0 1px #10a38d;
}

.variant-picker-v2 .variant-choice.active::after {
  content: "✓";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 0 7px 0 16px;
  color: #fff;
  background: #10a38d;
  font-weight: 900;
}

.variant-choice-image,
.variant-choice-image img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
  background: #f3f5f6;
}

.variant-picker-v2 .variant-choice.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.variant-selected-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #111820;
  font-size: 14px;
}

.variant-selected-line span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10a38d;
}

.variant-selected-line b {
  color: #008c7a;
}

.variant-selected-line em {
  color: #8a949b;
  font-style: normal;
}

.variant-sku-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #68737a;
  font-size: 13px;
}

.variant-sku-line strong {
  color: #111820;
}

@media (max-width: 1280px) {
  .variant-v2-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1040px) {
  .variant-v2-table-head {
    display: none;
  }

  .variant-v2-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
    border-top: 1px solid #edf1f3;
    border-radius: 8px;
    overflow: hidden;
  }

  .variant-v2-row .variant-field-cell > span {
    display: block;
  }

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

@media (max-width: 720px) {
  .variant-v2-header,
  .variant-v2-content,
  .variant-v2-group-head,
  .variant-v2-matrix-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .variant-v2-header,
  .variant-v2-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .variant-v2-aside,
  .variant-v2-bulkbar,
  .variant-v2-row,
  .variant-picker-v2 .variant-choice-row {
    grid-template-columns: 1fr;
  }

  .variant-picker-tier-table {
    grid-template-columns: 1fr;
  }

  .variant-picker-tier-table div {
    border-right: 0;
    border-bottom: 1px solid #dfe5e8;
  }

  .variant-picker-tier-table div:last-child {
    border-bottom: 0;
  }
}


/* Step 88: Chinese admin variant labels and full-width SKU matrix */
.variant-v2-content {
  grid-template-columns: 1fr !important;
}

.variant-v2-main,
.variant-v2-matrix {
  min-width: 0;
}

.variant-v2-matrix {
  overflow: visible;
}

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

.variant-v2-bulkbar {
  grid-template-columns: 96px 44px minmax(92px, .9fr) minmax(120px, 1.15fr) repeat(5, minmax(88px, .9fr)) 76px;
}

.variant-v2-table-head,
.variant-v2-row {
  grid-template-columns: 72px minmax(180px, 1.2fr) minmax(170px, 1.08fr) 108px 118px 118px 82px 96px 98px 76px;
}

.variant-v2-table-head span {
  display: flex;
  align-items: center;
  min-height: 48px;
  line-height: 1.25;
}

.variant-v2-row .field {
  font-size: 14px;
}

.variant-v2-actions button {
  width: 100%;
}

.variant-picker-v2 .variant-choice.active::after {
  content: "\2713";
}

@media (max-width: 1280px) {
  .variant-v2-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .variant-v2-bulkbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .variant-v2-aside {
    grid-template-columns: 1fr;
  }
}


/* Step 91: empty variant editor state, no template data */
.variant-v2-empty-board {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px dashed #bcc8cf;
  border-radius: 8px;
  color: #5f6b73;
  background: #fbfcfc;
}

.variant-v2-empty-board strong {
  color: #111820;
  font-size: 18px;
}

.variant-v2-empty-board span {
  font-weight: 700;
}


/* Step 94: storefront variant option cards - larger image, compact label */
.variant-picker-v2 .variant-choice-row {
  grid-template-columns: repeat(3, minmax(128px, 1fr));
  gap: 12px;
}

.variant-picker-v2 .variant-choice {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.variant-picker-v2 .variant-choice:hover:not(:disabled) {
  border-color: #9fcfca;
  background: #fbfefd;
}

.variant-picker-v2 .variant-choice.image-choice {
  min-height: 126px;
  padding: 12px 10px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.variant-picker-v2 .variant-choice.image-choice > span:last-child {
  display: -webkit-box;
  min-height: 34px;
  max-width: 100%;
  overflow: hidden;
  color: #111820;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.variant-picker-v2 .variant-choice:not(.image-choice) {
  min-height: 46px;
  padding: 9px 12px;
}

.variant-picker-v2 .variant-choice.active {
  border-color: #0d9488;
  box-shadow: inset 0 0 0 1px #0d9488, 0 10px 22px rgba(13, 148, 136, .10);
}

.variant-picker-v2 .variant-choice.active::after {
  content: "✓";
  width: 30px;
  height: 30px;
  border-radius: 0 7px 0 18px;
  background: #0d9488;
  font-size: 18px;
  line-height: 1;
}

.variant-picker-v2 .variant-choice.image-choice.active::after {
  width: 34px;
  height: 34px;
}

.variant-picker-v2 .variant-choice .variant-choice-image {
  flex: 0 0 auto;
}

.variant-picker-v2 .variant-choice.image-choice .variant-choice-image,
.variant-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  width: 92px;
  height: 68px;
  border-radius: 9px;
}

.variant-picker-v2 .variant-choice.image-choice .variant-choice-image {
  display: grid;
  place-items: center;
  background: #f3f6f5;
}

.variant-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  object-fit: contain;
  padding: 3px;
  background: #f3f6f5;
}

@media (max-width: 980px) {
  .variant-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .variant-picker-v2 {
    padding: 12px;
    gap: 12px;
  }

  .variant-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .variant-picker-v2 .variant-choice.image-choice {
    min-height: 112px;
    padding: 10px 8px 8px;
  }

  .variant-picker-v2 .variant-choice.image-choice .variant-choice-image,
  .variant-picker-v2 .variant-choice.image-choice .variant-choice-image img {
    width: 72px;
    height: 56px;
  }

  .variant-picker-v2 .variant-choice.image-choice > span:last-child {
    min-height: 30px;
    font-size: 13px;
  }
}


/* Step 96: product row thumbnail spacing guard */
.checkout-item,
.order-detail-item {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.checkout-item .cart-thumb.small-thumb,
.order-detail-item .cart-thumb.small-thumb {
  width: 88px;
  height: 88px;
}

.checkout-item > div:nth-child(2),
.order-detail-item > div:nth-child(2),
.cart-item > div:nth-child(2),
.drawer-item > div:nth-child(2),
.admin-order-product-main {
  min-width: 0;
}

.checkout-item strong,
.order-detail-item strong,
.cart-item h3,
.drawer-item h4,
.admin-order-product-main strong {
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.28;
}

.checkout-item .cart-variant-line,
.order-detail-item .cart-variant-line,
.checkout-item p,
.order-detail-item p,
.drawer-sku {
  overflow-wrap: anywhere;
}

.checkout-line-total,
.order-detail-item > span:last-child,
.admin-order-product-total {
  white-space: nowrap;
}

.drawer-item,
.admin-order-product-row {
  align-items: center;
}

@media (max-width: 760px) {
  .checkout-item,
  .order-detail-item {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .checkout-item .cart-thumb.small-thumb,
  .order-detail-item .cart-thumb.small-thumb {
    width: 78px;
    height: 78px;
  }

  .checkout-line-total,
  .order-detail-item > span:last-child {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .checkout-item,
  .order-detail-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .checkout-item .cart-thumb.small-thumb,
  .order-detail-item .cart-thumb.small-thumb {
    width: 68px;
    height: 68px;
  }

  .checkout-unit {
    font-size: 11px;
    padding: 3px 7px;
  }
}


/* Step 97: product detail single price purchase panel */
.detail-info .detail-price {
  display: none;
}

.detail-option-picker-v2 {
  margin-bottom: 14px;
}

.detail-buy-panel-v2 {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: #dbe5e2;
  background: #fff;
}

.detail-buy-panel-v2 .buy-box-head,
.detail-buy-panel-v2 .detail-tiers,
.detail-buy-panel-v2 .detail-total-box,
.detail-buy-panel-v2 .detail-service-list {
  display: none;
}

.detail-bulk-price-strip {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dfe7e5;
  border-radius: 9px;
  background: #fbfcfc;
}

.bulk-price-label {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px 14px;
  border-right: 1px solid #dfe7e5;
  background: #f7faf9;
}

.bulk-price-label strong {
  color: #111820;
  font-size: 13px;
  font-weight: 900;
}

.bulk-price-label span {
  color: #69757c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

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

.bulk-price-grid div {
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  min-height: 62px;
  border-right: 1px solid #dfe7e5;
}

.bulk-price-grid div:last-child {
  border-right: 0;
}

.bulk-price-grid div.active {
  background: #e6f7f4;
  box-shadow: inset 0 0 0 2px rgba(13, 148, 136, .28);
}

.bulk-price-grid span {
  color: #4d5b63;
  font-size: 13px;
  font-weight: 900;
}

.bulk-price-grid strong {
  color: #008c7a;
  font-size: 18px;
  font-weight: 950;
}

.detail-selected-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 2px 0 0;
}

.detail-selected-meta .variant-selected-line {
  font-size: 15px;
}

.detail-selected-meta .variant-sku-line {
  justify-content: flex-end;
  min-width: 190px;
}

.detail-purchase-core {
  display: grid;
  grid-template-columns: 150px minmax(130px, 1fr) minmax(180px, 1.25fr) minmax(150px, .9fr);
  gap: 12px;
  align-items: stretch;
}

.detail-purchase-core .detail-qty,
.detail-subtotal-box,
.detail-purchase-core .btn {
  min-height: 58px;
}

.detail-purchase-core .detail-qty {
  width: 100%;
}

.detail-subtotal-box {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid #dfe7e5;
  border-radius: 9px;
  background: #fbfcfc;
}

.detail-subtotal-box span,
.detail-subtotal-box small {
  color: #68757d;
  font-size: 12px;
  font-weight: 800;
}

.detail-subtotal-box strong {
  color: #111820;
  font-size: 21px;
  font-weight: 950;
}

.detail-buy-panel-v2 .buy-now-btn {
  border-color: #0d9488;
  background: #0d9488;
  color: #fff;
}

.compact-detail-shipping {
  margin: 0;
  padding: 12px;
  border-radius: 9px;
}

.compact-detail-shipping .detail-shipping-head {
  margin-bottom: 8px;
}

.compact-detail-shipping .detail-shipping-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.compact-detail-shipping .detail-shipping-card {
  padding: 10px 12px;
}

@media (max-width: 1120px) {
  .detail-purchase-core {
    grid-template-columns: 150px minmax(130px, 1fr);
  }
}

@media (max-width: 720px) {
  .detail-bulk-price-strip,
  .detail-selected-meta,
  .detail-purchase-core {
    grid-template-columns: 1fr;
  }

  .bulk-price-label {
    border-right: 0;
    border-bottom: 1px solid #dfe7e5;
  }

  .detail-selected-meta .variant-sku-line {
    justify-content: space-between;
    min-width: 0;
  }

  .detail-purchase-core .btn {
    width: 100%;
  }
}


/* Step 98: exact product detail purchase design */
.detail-page .procurement-detail {
  grid-template-columns: minmax(360px, 0.72fr) minmax(700px, 1.28fr);
  gap: 38px;
}

.detail-page .detail-info,
.detail-page .detail-info > *,
.detail-buy-panel-v2,
.detail-buy-panel-v2 * {
  box-sizing: border-box;
  min-width: 0;
}

.detail-option-picker-v2 {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 16px;
  padding: 18px 20px 20px;
  border: 1px solid #d9e5e2;
  border-radius: 10px;
  background: #fff;
}

.detail-option-picker-v2 .variant-group {
  margin: 0;
}

.detail-option-picker-v2 .variant-group + .variant-group {
  margin-top: 16px;
}

.detail-option-picker-v2 .variant-group-head {
  margin-bottom: 12px;
}

.detail-option-picker-v2 .variant-group-head strong {
  color: #111820;
  font-size: 18px;
  font-weight: 950;
}

.detail-option-picker-v2 .variant-group-head span {
  color: #68747c;
  font-size: 13px;
  font-weight: 700;
}

.detail-option-picker-v2 .variant-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-option-picker-v2 .variant-choice.image-choice {
  min-height: 166px;
  padding: 16px 14px 14px;
  border-radius: 8px;
  border-color: #d8e3e1;
  background: #fff;
  box-shadow: none;
}

.detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image,
.detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  width: 116px;
  height: 82px;
  border-radius: 8px;
}

.detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
  min-height: 40px;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.detail-option-picker-v2 .variant-choice:not(.image-choice) {
  min-height: 48px;
  border-radius: 8px;
}

.detail-option-picker-v2 .variant-choice.active {
  border-color: #0d9488;
  box-shadow: inset 0 0 0 2px #0d9488;
}

.detail-option-picker-v2 .variant-choice.active::after {
  width: 34px;
  height: 34px;
  border-radius: 0 8px 0 18px;
  font-size: 20px;
}

.detail-buy-panel-v2 {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 20px;
  display: grid;
  gap: 16px;
  border: 1px solid #d9e5e2;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.detail-buy-panel-v2 .detail-bulk-price-strip {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 162px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce7e5;
  border-radius: 9px;
  background: #fff;
}

.detail-buy-panel-v2 .bulk-price-label {
  padding: 18px 16px;
  align-content: center;
  border-right: 1px solid #dce7e5;
  background: #f8fbfa;
}

.detail-buy-panel-v2 .bulk-price-label strong {
  font-size: 15px;
  font-weight: 950;
}

.detail-buy-panel-v2 .bulk-price-label span {
  max-width: 112px;
  color: #68747c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.detail-buy-panel-v2 .bulk-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.detail-buy-panel-v2 .bulk-price-grid div {
  min-height: 78px;
  padding: 12px 10px;
  align-content: center;
  justify-items: center;
  border-right: 1px solid #dce7e5;
  background: #fff;
}

.detail-buy-panel-v2 .bulk-price-grid div.active {
  background: #e4f6f3;
  box-shadow: inset 0 0 0 2px rgba(13, 148, 136, .28);
}

.detail-buy-panel-v2 .bulk-price-grid span {
  color: #50606a;
  font-size: 15px;
  font-weight: 900;
}

.detail-buy-panel-v2 .bulk-price-grid strong {
  color: #008c7a;
  font-size: 22px;
  font-weight: 950;
}

.detail-buy-panel-v2 .detail-selected-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 18px;
  align-items: center;
  padding: 2px 0;
}

.detail-buy-panel-v2 .variant-selected-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #111820;
  font-size: 16px;
  line-height: 1.35;
}

.detail-buy-panel-v2 .variant-selected-line span {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0d9488;
}

.detail-buy-panel-v2 .variant-selected-line strong,
.detail-buy-panel-v2 .variant-selected-line b {
  font-weight: 950;
}

.detail-buy-panel-v2 .variant-selected-line b {
  color: #008c7a;
}

.detail-buy-panel-v2 .variant-sku-line {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  color: #69747c;
  font-size: 14px;
}

.detail-buy-panel-v2 .variant-sku-line strong {
  color: #111820;
  font-size: 15px;
  font-weight: 950;
}

.detail-buy-panel-v2 .detail-purchase-core {
  display: grid;
  grid-template-columns: 188px minmax(162px, .8fr) minmax(224px, 1.08fr) minmax(188px, .88fr);
  gap: 14px;
  align-items: stretch;
}

.detail-buy-panel-v2 .detail-qty,
.detail-buy-panel-v2 .detail-subtotal-box,
.detail-buy-panel-v2 .detail-purchase-core .btn {
  width: 100%;
  min-height: 72px;
  border-radius: 9px;
}

.detail-buy-panel-v2 .detail-qty {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  overflow: hidden;
  border: 1px solid #dce7e5;
  background: #fff;
}

.detail-buy-panel-v2 .detail-qty button,
.detail-buy-panel-v2 .detail-qty input {
  border: 0;
  background: #fff;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}

.detail-buy-panel-v2 .detail-qty button {
  color: #64727a;
}

.detail-buy-panel-v2 .detail-qty input {
  border-left: 1px solid #dce7e5;
  border-right: 1px solid #dce7e5;
}

.detail-buy-panel-v2 .detail-subtotal-box {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid #dce7e5;
  background: #fbfcfc;
}

.detail-buy-panel-v2 .detail-subtotal-box span,
.detail-buy-panel-v2 .detail-subtotal-box small {
  color: #68747c;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.detail-buy-panel-v2 .detail-subtotal-box strong {
  color: #111820;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.1;
}

.detail-buy-panel-v2 .detail-purchase-core .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 950;
}

.detail-buy-panel-v2 .detail-purchase-core .btn svg {
  width: 19px;
  height: 19px;
}

.detail-buy-panel-v2 .buy-now-btn {
  border-color: #0d9488;
  background: #139b90;
  color: #fff;
}

.detail-buy-panel-v2 .compact-detail-shipping {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid #dce7e5;
  border-radius: 9px;
  background: #fbfcfc;
}

.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-head strong {
  color: #111820;
  font-size: 16px;
  font-weight: 950;
}

.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-head span {
  color: #68747c;
  font-size: 13px;
  font-weight: 700;
}

.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-card {
  padding: 14px 16px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #fff;
}

.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-card strong {
  color: #111820;
  font-size: 14px;
  font-weight: 950;
}

.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-card span,
.detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-card small {
  color: #65717a;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .detail-page .procurement-detail {
    grid-template-columns: 1fr;
  }

  .detail-buy-panel-v2 {
    max-width: 860px;
  }
}

@media (max-width: 760px) {
  .detail-option-picker-v2,
  .detail-buy-panel-v2 {
    padding: 14px;
  }

  .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-option-picker-v2 .variant-choice.image-choice {
    min-height: 128px;
  }

  .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image,
  .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image img {
    width: 82px;
    height: 62px;
  }

  .detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
    min-height: 32px;
    font-size: 13px;
  }

  .detail-buy-panel-v2 .detail-bulk-price-strip,
  .detail-buy-panel-v2 .detail-selected-meta,
  .detail-buy-panel-v2 .detail-purchase-core {
    grid-template-columns: 1fr;
  }

  .detail-buy-panel-v2 .bulk-price-label {
    border-right: 0;
    border-bottom: 1px solid #dce7e5;
  }

  .detail-buy-panel-v2 .bulk-price-label span {
    max-width: none;
  }

  .detail-buy-panel-v2 .bulk-price-grid div {
    min-height: 64px;
  }

  .detail-buy-panel-v2 .variant-sku-line {
    justify-content: space-between;
  }

  .detail-buy-panel-v2 .compact-detail-shipping .detail-shipping-head {
    display: grid;
    gap: 4px;
  }
}


/* Step 102: product detail 3:2 reviewed layout */
.detail-page .container {
  max-width: 1440px;
}

.detail-page .procurement-detail.detail-layout-3to2 {
  grid-template-columns: minmax(0, 3fr) minmax(420px, 2fr);
  gap: 32px;
  align-items: start;
  padding-top: 18px;
}

.detail-left-column,
.detail-purchase-column,
.detail-product-summary-card,
.detail-left-column *,
.detail-purchase-column * {
  box-sizing: border-box;
  min-width: 0;
}

.detail-left-column {
  display: grid;
  gap: 18px;
}

.detail-left-column .gallery-main {
  width: 100%;
  max-width: 100%;
  min-height: 520px;
  border-radius: 12px;
  background: #fff;
}

.detail-left-column .gallery-main .product-photo {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.detail-left-column .thumbs {
  gap: 12px;
  margin-top: 0;
}

.detail-left-column .thumb {
  width: 78px;
  height: 78px;
}

.detail-left-info {
  margin-top: 0;
}

.detail-left-info .compatibility-card {
  padding: 18px 20px;
}

.detail-left-info .left-spec-title {
  margin-top: 0;
  font-size: 22px;
}

.detail-left-info .left-specs {
  border-radius: 10px;
}

.detail-left-column .product-long-detail-section {
  margin: 0;
  padding: 20px;
  border-radius: 12px;
}

.detail-left-column .product-long-detail-head {
  align-items: flex-start;
  gap: 10px;
}

.detail-left-column .product-long-detail-head strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.35;
}

.detail-left-column .product-rich-content {
  max-height: none;
  overflow: visible;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.detail-purchase-column {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
  align-self: start;
}

.detail-product-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #d9e2e0;
  border-radius: 10px;
  background: #fff;
}

.detail-product-summary-card h1 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #111820;
  font-size: clamp(20px, 1.65vw, 26px);
  font-weight: 950;
  line-height: 1.22;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-product-summary-card .detail-summary-meta {
  gap: 6px;
  margin: 0;
}

.detail-product-summary-card .detail-summary-meta span {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #68747c;
  font-size: 12px;
  font-weight: 700;
}

.detail-rating-line span {
  color: #0d9488;
  font-size: 13px;
  letter-spacing: 0;
}

.detail-rating-line em {
  font-style: normal;
}

.detail-summary-price {
  color: #111820;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.detail-purchase-column .description,
.detail-purchase-column .detail-highlights {
  display: none;
}

.detail-purchase-column .detail-option-picker-v2 {
  margin: 0;
  padding: 18px 18px 20px;
  border-radius: 10px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group-head strong {
  font-size: 22px;
  line-height: 1.15;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
  min-height: 146px;
  padding: 12px 8px 10px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image,
.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  width: 84px;
  height: 66px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
  min-height: 34px;
  font-size: 13px;
  line-height: 1.22;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.active::after {
  width: 28px;
  height: 28px;
  font-size: 17px;
}

.detail-purchase-column .detail-buy-panel-v2 {
  margin: 0;
  padding: 18px;
  gap: 14px;
  border-radius: 10px;
}

.detail-purchase-column .detail-bulk-price-strip-compact {
  grid-template-columns: minmax(128px, .9fr) repeat(3, minmax(72px, 1fr));
  border-radius: 8px;
}

.detail-purchase-column .detail-bulk-price-strip-compact .bulk-price-label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
}

.detail-purchase-column .bulk-price-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #111820;
  border-radius: 5px;
  transform: rotate(-35deg);
}

.detail-purchase-column .bulk-price-label strong {
  font-size: 14px;
  white-space: nowrap;
}

.detail-purchase-column .bulk-price-grid {
  display: contents;
}

.detail-purchase-column .bulk-price-grid div {
  min-height: 62px;
  padding: 8px 6px;
}

.detail-purchase-column .bulk-price-grid span {
  font-size: 13px;
}

.detail-purchase-column .bulk-price-grid strong {
  font-size: clamp(18px, 1.65vw, 21px);
}

.detail-purchase-column .detail-selected-meta-compact {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(92px, .7fr) minmax(118px, .9fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #fff;
}

.detail-purchase-column .selected-meta-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  border-left: 1px solid #dce7e5;
  color: #111820;
  font-size: 13px;
  white-space: nowrap;
}

.detail-purchase-column .selected-meta-cell:first-child {
  border-left: 0;
}

.detail-purchase-column .selected-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0d9488;
}

.detail-purchase-column .stock-cube {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid #111820;
  border-radius: 4px;
}

.detail-purchase-column .selected-meta-cell strong {
  font-weight: 950;
}

.detail-purchase-column .selected-meta-choice em,
.detail-purchase-column .selected-meta-sku strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .selected-meta-choice em {
  font-style: normal;
}

.detail-purchase-column .selected-meta-stock strong {
  color: #008c7a;
}

.detail-purchase-column .detail-purchase-core {
  display: grid;
  grid-template-columns: minmax(112px, .8fr) minmax(118px, .75fr) minmax(158px, 1fr);
  grid-template-rows: repeat(2, minmax(48px, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #dce7e5;
  border-radius: 9px;
  background: #fff;
}

.detail-purchase-column .detail-qty,
.detail-purchase-column .detail-subtotal-box {
  grid-row: 1 / 3;
  min-height: 98px;
}

.detail-purchase-column .detail-purchase-core .add-cart-main-btn {
  grid-column: 3;
  grid-row: 1;
}

.detail-purchase-column .detail-purchase-core .buy-now-btn {
  grid-column: 3;
  grid-row: 2;
}

.detail-purchase-column .detail-qty {
  align-self: center;
  min-height: 46px;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
}

.detail-purchase-column .detail-subtotal-box {
  padding: 12px;
}

.detail-purchase-column .detail-subtotal-box strong {
  color: #0d9488;
  font-size: clamp(24px, 2.1vw, 31px);
}

.detail-purchase-column .detail-subtotal-box small {
  display: none;
}

.detail-purchase-column .detail-purchase-core .btn {
  min-height: 48px;
  padding: 0 12px;
  font-size: clamp(14px, 1.25vw, 17px);
  white-space: nowrap;
}

.detail-purchase-column .compact-detail-shipping {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.detail-purchase-column .compact-detail-shipping .detail-shipping-head {
  display: none;
}

.detail-purchase-column .compact-detail-shipping .detail-shipping-grid {
  display: grid;
  gap: 0;
}

.detail-purchase-column .compact-shipping-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(86px, auto) minmax(92px, auto);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #edf1f1;
  border-radius: 0;
}

.detail-purchase-column .compact-shipping-row:last-child {
  border-bottom: 0;
}

.detail-purchase-column .compact-shipping-row strong,
.detail-purchase-column .compact-shipping-row b,
.detail-purchase-column .compact-shipping-row span,
.detail-purchase-column .compact-shipping-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .compact-shipping-row b,
.detail-purchase-column .compact-shipping-row small {
  color: #0d9488;
  font-size: 13px;
}

.detail-purchase-column::after {
  content: "Secure checkout · 30-day returns · 1-year warranty";
  display: block;
  color: #7b858c;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1180px) {
  .detail-page .procurement-detail.detail-layout-3to2 {
    grid-template-columns: 1fr;
  }

  .detail-purchase-column {
    position: static;
  }
}

@media (max-width: 760px) {
  .detail-left-column .gallery-main {
    min-height: auto;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-purchase-column .detail-bulk-price-strip-compact,
  .detail-purchase-column .detail-selected-meta-compact {
    grid-template-columns: 1fr;
  }

  .detail-purchase-column .detail-bulk-price-strip-compact .bulk-price-label,
  .detail-purchase-column .selected-meta-cell {
    border-left: 0;
    border-bottom: 1px solid #dce7e5;
  }

  .detail-purchase-column .selected-meta-cell:last-child {
    border-bottom: 0;
  }

  .detail-purchase-column .detail-purchase-core {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .detail-purchase-column .detail-qty,
  .detail-purchase-column .detail-subtotal-box,
  .detail-purchase-column .detail-purchase-core .add-cart-main-btn,
  .detail-purchase-column .detail-purchase-core .buy-now-btn {
    grid-column: auto;
    grid-row: auto;
    min-height: 52px;
  }

  .detail-purchase-column .compact-shipping-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }
}


/* Step 102b: product detail container width guard */
.detail-page .container {
  width: min(1440px, calc(100% - 64px));
  max-width: none;
}

@media (max-width: 760px) {
  .detail-page .container {
    width: min(100% - 24px, 1180px);
  }
}


/* Step 103: move purchase guidance right and make rich detail full width */
.detail-page .procurement-detail.detail-layout-3to2 {
  overflow: visible;
}

.detail-left-spec-section {
  margin-top: 0;
}

.detail-right-guidance-stack {
  display: grid;
  gap: 14px;
}

.detail-purchase-column .detail-note-grid-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-purchase-column .detail-note-grid-right > div {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #dce7e5;
  border-radius: 10px;
  background: #fff;
}

.detail-purchase-column .detail-note-grid-right strong,
.detail-right-confirm h3 {
  color: #111820;
  font-weight: 950;
  line-height: 1.2;
}

.detail-purchase-column .detail-note-grid-right span {
  color: #5f6d75;
  font-size: 13px;
  line-height: 1.45;
}

.detail-right-confirm {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #dce7e5;
  border-radius: 10px;
  background: #fff;
}

.detail-right-confirm h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.detail-right-confirm ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #4d5a62;
  font-size: 14px;
  line-height: 1.45;
}

.detail-page .container > .product-long-detail-section {
  width: 100%;
  margin: 30px 0 42px;
  border-radius: 12px;
}

.detail-page .container > .product-long-detail-section .product-long-detail-head {
  align-items: flex-start;
}

.detail-page .container > .product-long-detail-section .product-long-detail-head strong {
  max-width: 1120px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.detail-page .container > .product-long-detail-section .product-rich-content {
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .detail-right-guidance-stack {
    order: 4;
  }
}

@media (max-width: 760px) {
  .detail-purchase-column .detail-note-grid-right {
    grid-template-columns: 1fr;
  }

  .detail-right-confirm {
    padding: 16px;
  }

  .detail-page .container > .product-long-detail-section {
    margin-top: 20px;
  }
}


/* Step 104: product detail final responsive polish */
.detail-page,
.detail-page * {
  min-width: 0;
}

.detail-page .breadcrumbs {
  overflow-wrap: anywhere;
}

.detail-page .detail-layout-3to2 {
  margin-bottom: 0;
}

.detail-page .detail-left-column {
  align-content: start;
}

.detail-page .detail-left-spec-section,
.detail-page .detail-right-guidance-stack,
.detail-page .product-long-detail-section,
.detail-page .related-products,
.detail-page .recently-viewed-section {
  clear: both;
}

.detail-page .left-specs .spec-line {
  grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr);
}

.detail-page .left-specs .spec-line span {
  overflow-wrap: anywhere;
}

.detail-page .container > .product-long-detail-section {
  box-shadow: 0 14px 34px rgba(15, 23, 42, .04);
}

.detail-page .container > .product-long-detail-section .product-rich-content {
  width: 100%;
  max-width: none;
}

.detail-page .container > .product-long-detail-section .product-rich-content iframe,
.detail-page .container > .product-long-detail-section .product-rich-content video {
  max-width: 100%;
}

.detail-page .container > .product-long-detail-section .product-rich-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  white-space: normal;
}

.detail-page .related-products {
  margin-top: 0;
}

.detail-page .related-products .section-head,
.detail-page .recently-viewed-section .section-head {
  align-items: flex-end;
}

.detail-page .related-grid,
.detail-page .recent-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-page .related-grid .product-card,
.detail-page .recent-grid .product-card {
  height: 100%;
}

.detail-purchase-column .detail-product-summary-card,
.detail-purchase-column .detail-option-picker-v2,
.detail-purchase-column .detail-buy-panel-v2,
.detail-purchase-column .detail-right-guidance-stack {
  width: 100%;
}

.detail-purchase-column .detail-note-grid-right > div,
.detail-right-confirm {
  overflow: hidden;
}

.detail-right-confirm li {
  overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
  .detail-page .detail-purchase-column {
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
  }

  .detail-page .detail-purchase-column::-webkit-scrollbar {
    width: 6px;
  }

  .detail-page .detail-purchase-column::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(13, 148, 136, .28);
  }
}

@media (max-width: 1180px) {
  .detail-page .container {
    width: min(100% - 40px, 980px);
  }

  .detail-page .detail-left-column {
    gap: 16px;
  }

  .detail-page .detail-purchase-column {
    max-width: 900px;
    margin: 0 auto;
  }

  .detail-page .related-grid,
  .detail-page .recent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .detail-page .related-grid,
  .detail-page .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .detail-page .container {
    width: min(100% - 24px, 720px);
  }

  .detail-page .breadcrumbs {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .detail-page .detail-left-column .gallery-main {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .detail-page .detail-left-column .thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .detail-page .detail-left-column .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .detail-page .left-specs .spec-line {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }

  .detail-purchase-column .detail-product-summary-card h1 {
    font-size: 20px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-group-head strong {
    font-size: 19px;
  }

  .detail-purchase-column .detail-note-grid-right > div {
    min-height: auto;
  }

  .detail-right-confirm ul {
    font-size: 13px;
  }

  .detail-page .container > .product-long-detail-section .product-long-detail-head {
    gap: 8px;
    padding: 16px;
  }

  .detail-page .container > .product-long-detail-section .product-long-detail-head strong {
    font-size: 16px;
  }

  .detail-page .container > .product-long-detail-section .product-rich-content {
    padding: 18px 16px 22px;
    font-size: 15px;
  }

  .detail-page .container > .product-long-detail-section .product-rich-content h1,
  .detail-page .container > .product-long-detail-section .product-rich-content h2 {
    font-size: 22px;
  }

  .detail-page .related-products,
  .detail-page .recently-viewed-section {
    padding: 28px 0 46px;
  }
}

@media (max-width: 460px) {
  .detail-page .detail-left-column .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-page .related-grid,
  .detail-page .recent-grid {
    grid-template-columns: 1fr;
  }
}


/* Step 104b: keep detail related products two columns on mobile */
@media (max-width: 460px) {
  .detail-page .related-grid,
  .detail-page .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Step 105: final order, cart, and realtime state polish */
.drawer-title p,
.cart-drawer-count {
  min-height: 18px;
}

.checkout-item,
.order-detail-item {
  min-width: 0;
  overflow: hidden;
}

.checkout-item > span:last-child,
.order-detail-item > span:last-child {
  align-self: center;
}

.checkout-item .cart-thumb.small-thumb,
.order-detail-item .cart-thumb.small-thumb,
.admin-order-product-thumb {
  flex: 0 0 auto;
}

.admin-order-product-row {
  min-width: 0;
}

.admin-order-product-main {
  min-width: 0;
}

.admin-order-product-main strong,
.admin-order-product-main span,
.admin-order-product-main small {
  overflow-wrap: anywhere;
}

.admin-modal .modal-card,
.admin-modal-card {
  max-width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.admin-order-detail-layout {
  min-width: 0;
}

.payment-review-panel,
.admin-order-fulfillment-panel {
  min-width: 0;
}

@media (max-width: 900px) {
  .admin-order-product-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .admin-order-product-qty,
  .admin-order-product-total {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .checkout-item,
  .order-detail-item {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
  }

  .checkout-item > span:last-child,
  .order-detail-item > span:last-child {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}


/* Step 106: tighter product detail variant image choices */
.detail-purchase-column .detail-option-picker-v2 {
  gap: 12px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group {
  gap: 8px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 148px));
  gap: 10px;
  align-items: stretch;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  width: 100%;
  min-height: 126px;
  padding: 10px 10px 12px;
  border-radius: 9px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice img {
  width: min(92px, 82%);
  height: 76px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f7f7;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice span {
  max-width: 100%;
  overflow: hidden;
  color: #111820;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active {
  border-color: #0d9488;
  box-shadow: inset 0 0 0 2px #0d9488;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active::after {
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 0 7px 0 14px;
}

@media (max-width: 760px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    min-height: 118px;
    padding: 9px 8px 11px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice img {
    width: min(86px, 86%);
    height: 72px;
  }
}

@media (max-width: 420px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    min-height: 108px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice img {
    width: min(78px, 88%);
    height: 64px;
  }
}

/* Step 108: extra-compact image-first product variant choices */
.detail-purchase-column .detail-option-picker-v2 {
  gap: 10px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group {
  gap: 7px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group-head {
  margin-bottom: 0;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
  grid-template-columns: repeat(auto-fit, minmax(112px, 124px));
  gap: 8px;
  align-items: stretch;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-content: stretch;
  gap: 5px;
  min-height: 106px;
  padding: 7px 7px 8px;
  border-radius: 10px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 74px;
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #f5f7f7;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #0d1418;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active {
  border-color: #0d9488;
  box-shadow: inset 0 0 0 2px #0d9488;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active::after {
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 0 8px 0 14px;
}

@media (max-width: 760px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    min-height: 104px;
    padding: 7px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    height: 72px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    min-height: 98px;
    padding: 6px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    height: 68px;
  }
}

/* Step 109: remove large variant selector container */
.detail-purchase-column .detail-option-picker-v2 {
  margin: 8px 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 10px;
  overflow: visible;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 7px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group + .variant-group {
  margin-top: 4px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  min-height: 24px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group-head strong {
  font-size: 18px;
  line-height: 1.1;
}

.detail-purchase-column .detail-option-picker-v2 .variant-group-head span {
  max-width: 45%;
  overflow: hidden;
  color: #65727a;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 104px));
  justify-content: start;
  gap: 8px;
  align-items: stretch;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-content: stretch;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 6px;
  border-radius: 10px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
  width: 100%;
  height: 62px;
  border-radius: 8px;
  background: #f5f7f7;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice:not(.image-choice) {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.active {
  border-color: #0d9488;
  box-shadow: inset 0 0 0 2px #0d9488;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active::after {
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  border-radius: 0 8px 0 12px;
  font-size: 17px;
}

@media (max-width: 760px) {
  .detail-purchase-column .detail-option-picker-v2 {
    margin: 6px 0 8px;
    gap: 9px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-group-head strong {
    font-size: 17px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 112px));
    gap: 8px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    min-height: 94px;
    padding: 6px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    height: 64px;
  }
}

@media (max-width: 420px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 108px));
    gap: 7px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    min-height: 90px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    height: 61px;
  }
}

/* Step 110: filled compact variant image tiles and stable quantity clicks */
.detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
  grid-template-columns: repeat(auto-fill, minmax(88px, 96px));
  gap: 7px;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
  position: relative;
  display: block;
  min-height: 86px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
  display: block;
  width: 100%;
  height: 86px;
  min-height: 86px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: #fff;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  min-height: 0;
  padding: 4px 5px 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  color: #0d1418;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active::after {
  z-index: 3;
  width: 26px;
  height: 26px;
}

@media (max-width: 760px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 98px));
    gap: 7px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice,
  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    min-height: 88px;
    height: 88px;
  }
}

@media (max-width: 420px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 96px));
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice,
  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    min-height: 86px;
    height: 86px;
  }
}

/* Step 111: move variant image choice label below tile */
.detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
  grid-template-columns: repeat(auto-fill, minmax(88px, 96px));
  gap: 10px 7px;
  align-items: start;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
  position: relative;
  display: grid;
  grid-template-rows: 84px auto;
  gap: 4px;
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active {
  border-color: transparent;
  box-shadow: none;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
  display: block;
  width: 100%;
  height: 84px;
  min-height: 84px;
  overflow: hidden;
  border: 1px solid #dce7e5;
  border-radius: 10px;
  background: #fff;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active .variant-choice-image {
  border-color: #0d9488;
  box-shadow: inset 0 0 0 2px #0d9488;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: #fff;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice > span:last-child {
  position: static;
  display: block;
  z-index: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0 2px;
  overflow: hidden;
  background: transparent;
  color: #0d1418;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice.active::after {
  top: 0;
  right: 0;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 0 8px 0 12px;
}

@media (max-width: 760px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 98px));
    gap: 10px 7px;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    grid-template-rows: 86px auto;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    height: 86px;
    min-height: 86px;
  }
}

@media (max-width: 420px) {
  .detail-purchase-column .detail-option-picker-v2 .variant-choice-row {
    grid-template-columns: repeat(2, minmax(0, 96px));
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice {
    grid-template-rows: 84px auto;
  }

  .detail-purchase-column .detail-option-picker-v2 .variant-choice.image-choice .variant-choice-image {
    height: 84px;
    min-height: 84px;
  }
}



/* Step 113: variant commerce source of truth */
.variant-managed-pricing-card .compact-editor-grid .field:disabled {
  background: #f3f6f6;
  color: #59666a;
  opacity: 1;
  cursor: not-allowed;
}

.variant-commerce-note {
  display: grid;
  gap: 4px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 143, 128, 0.22);
  border-radius: 10px;
  background: rgba(15, 143, 128, 0.07);
  color: #35545a;
  font-size: 13px;
  line-height: 1.45;
}

.variant-commerce-note strong {
  color: #007f72;
}

.variant-managed-pricing-card .editor-tier-preview {
  border-color: rgba(15, 143, 128, 0.28);
  background: #f7fbfa;
}
