﻿:root {
  --ink: #172027;
  --muted: #65717a;
  --line: #d9e0e5;
  --surface: #ffffff;
  --soft: #f4f7f8;
  --steel: #2d3943;
  --blue: #1769aa;
  --red: #c83a2f;
  --green: #16845b;
  --amber: #b36a00;
  --shadow: 0 18px 60px rgba(18, 31, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 224, 229, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.header-actions,
.main-nav,
.hero-metrics,
.product-meta,
.product-top,
.product-footer,
.order-tools,
.section-heading {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(145deg, var(--steel), #111820);
  border-radius: 8px;
  font-weight: 800;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  gap: 28px;
  color: #35424c;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a {
  white-space: nowrap;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.icon-button,
.cart-button,
.hero-search button,
.stock-note button,
.detail-button,
.add-button {
  border: 0;
  border-radius: 8px;
  font-weight: 750;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--steel);
  background: var(--soft);
}

.cart-button {
  position: relative;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--steel);
}

.cart-dot {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-right: 8px;
  padding: 0 6px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: min(660px, 82svh);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 15, 20, 0.86), rgba(10, 15, 20, 0.54) 45%, rgba(10, 15, 20, 0.08)),
    url("assets/hero-remote-keys.png") center / cover no-repeat;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96));
  z-index: -1;
}

.hero-inner {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 48px 0 92px;
  color: #fff;
}

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

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-search {
  width: min(720px, 100%);
}

.hero-search label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.search-row input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
}

.search-row input:focus {
  border-color: var(--blue);
  background: #fff;
}

.hero-search button {
  min-height: 52px;
  color: #fff;
  background: var(--red);
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-metrics span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.hero-metrics strong {
  color: #fff;
}

.catalogue-section,
.services {
  width: min(1280px, calc(100% - 36px));
  margin: 78px auto 0;
}

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

.section-heading .eyebrow {
  color: var(--blue);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-block {
  display: grid;
  gap: 12px;
}

.model-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.model-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  color: #35424c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.chip.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.toggle-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #34424d;
  font-size: 14px;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.stock-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stock-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stock-note button {
  min-height: 42px;
  color: #fff;
  background: var(--steel);
}

.catalogue-results {
  display: grid;
  gap: 12px;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.product-toolbar span:first-child {
  color: var(--steel);
}

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

.product-card {
  display: grid;
  grid-template-columns: 176px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 105, 170, 0.5);
  box-shadow: 0 18px 36px rgba(35, 52, 66, 0.12);
}

.product-card.is-hidden {
  display: none;
}

.product-media {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28), transparent 34%),
    var(--steel);
}

.product-media small {
  max-width: 100%;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.key-visual {
  position: relative;
  width: 76px;
  height: 118px;
  background: linear-gradient(145deg, #0e141a, #303942);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px 24px 20px 20px;
  box-shadow:
    inset 0 8px 18px rgba(255, 255, 255, 0.08),
    0 16px 26px rgba(0, 0, 0, 0.25);
}

.key-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -42px;
  width: 18px;
  height: 52px;
  background: linear-gradient(90deg, #c8d0d5, #f4f7f8 45%, #9ba7ae);
  border-radius: 4px 4px 2px 2px;
  transform: translateX(-50%);
}

.key-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 28px;
  height: 5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transform: translateX(-50%);
}

.key-visual span {
  position: absolute;
  left: 50%;
  width: 36px;
  height: 19px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
}

.key-visual span:nth-child(1) {
  top: 26px;
}

.key-visual span:nth-child(2) {
  top: 52px;
}

.key-visual span:nth-child(3) {
  top: 78px;
}

.key-visual-shell {
  height: 106px;
}

.key-visual-shell::before {
  display: none;
}

.product-media.renault {
  background-color: #313b45;
}

.product-media.peugeot {
  background-color: #1769aa;
}

.product-media.citroen {
  background-color: #8f322c;
}

.product-media.volkswagen {
  background-color: #244f64;
}

.product-body {
  padding: 18px 18px 12px;
}

.product-top {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sku {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.stock {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.stock.in {
  color: var(--green);
  background: rgba(22, 132, 91, 0.1);
}

.stock.low {
  color: var(--amber);
  background: rgba(179, 106, 0, 0.12);
}

.product-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.18;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.spec-grid span {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 9px 10px;
  color: #22303a;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.spec-grid b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.compat-row {
  display: grid;
  gap: 7px;
}

.compat-row strong {
  color: #34424d;
  font-size: 12px;
}

.product-meta {
  flex-wrap: wrap;
  gap: 5px;
}

.product-meta span {
  padding: 4px 6px;
  color: #4b5964;
  background: var(--soft);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
}

.product-footer {
  grid-column: 2;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.price-block {
  display: grid;
  gap: 2px;
}

.price-block small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-footer strong {
  font-size: 20px;
}

.order-tools {
  justify-content: flex-end;
  gap: 8px;
}

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

.qty-control button {
  width: 30px;
  height: 40px;
  color: var(--steel);
  background: var(--soft);
  border: 0;
  font-weight: 900;
}

.qty-control span {
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}

.detail-button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--steel);
  background: var(--soft);
}

.add-button {
  min-width: 76px;
  min-height: 40px;
  color: #fff;
  background: var(--red);
}

.services {
  margin-bottom: 80px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article {
  min-height: 190px;
  padding: 24px;
  background: #15202a;
  color: #fff;
  border-radius: 8px;
}

.service-grid span {
  color: #92c8ed;
  font-weight: 900;
}

.service-grid h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.service-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.card-options {
  display: grid;
  gap: 20px;
}

.option-panel {
  display: grid;
  gap: 14px;
}

.option-heading {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: start;
}

.option-heading > span {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  color: #fff;
  background: var(--steel);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.option-heading h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.1;
}

.option-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 47, 59, 0.08);
}

.demo-card button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.demo-key {
  position: relative;
  width: 48px;
  height: 74px;
  background: linear-gradient(145deg, #0f151b, #35404a);
  border-radius: 17px;
  box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.08);
}

.demo-key::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 12px;
  height: 34px;
  background: linear-gradient(90deg, #c4cbd1, #f6f8f9, #9aa5ad);
  border-radius: 3px;
  transform: translateX(-50%);
}

.demo-key span {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transform: translateX(-50%);
}

.demo-key span:nth-child(1) {
  top: 18px;
}

.demo-key span:nth-child(2) {
  top: 36px;
}

.demo-key span:nth-child(3) {
  top: 54px;
}

.demo-key.large {
  width: 72px;
  height: 112px;
  border-radius: 24px;
}

.demo-key.large span {
  width: 38px;
  height: 18px;
}

.demo-key.large span:nth-child(1) {
  top: 28px;
}

.demo-key.large span:nth-child(2) {
  top: 55px;
}

.demo-key.large span:nth-child(3) {
  top: 82px;
}

.demo-card-a {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 186px;
  overflow: hidden;
}

.demo-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.28), transparent 36%),
    #26333e;
}

.demo-main {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.demo-topline,
.demo-bottom,
.catalog-footer,
.tech-head,
.tech-footer,
.bulk-action {
  display: flex;
  align-items: center;
}

.demo-topline,
.demo-bottom,
.tech-head,
.tech-footer {
  justify-content: space-between;
  gap: 12px;
}

.demo-sku {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.demo-specs span {
  padding: 8px 9px;
  color: #23313c;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.demo-bottom {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.demo-bottom strong {
  color: var(--ink);
  font-size: 20px;
}

.demo-card-b {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.catalog-visual {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 260px;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(23, 105, 170, 0.18), transparent 58%),
    #f2f6f8;
}

.catalog-visual span {
  padding: 5px 9px;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.catalog-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.catalog-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.catalog-footer {
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.catalog-footer strong {
  font-size: 22px;
}

.demo-card-c {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-left: 5px solid var(--blue);
}

.tech-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tech-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tech-table span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.tech-table span:nth-child(3n) {
  border-right: 0;
}

.tech-table span:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.tech-table b {
  color: var(--muted);
  font-size: 11px;
}

.tech-footer {
  padding-top: 2px;
}

.tech-footer strong {
  font-size: 22px;
}

.demo-card-d {
  display: grid;
  grid-template-columns: 1.1fr 1fr 150px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(21, 32, 42, 0.98), rgba(32, 48, 58, 0.96)),
    #15202a;
  color: #fff;
}

.bulk-left {
  display: grid;
  gap: 8px;
}

.bulk-left .stock.in {
  width: fit-content;
  color: #bbf1d8;
  background: rgba(187, 241, 216, 0.13);
}

.bulk-left strong {
  font-size: 22px;
}

.bulk-left small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 750;
}

.tier-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tier-prices span {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-weight: 900;
}

.tier-prices b {
  color: #9fd1f2;
  font-size: 12px;
}

.bulk-action {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.bulk-action strong {
  text-align: center;
}

.vertical-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: 12px;
}

.vertical-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(31, 47, 59, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vertical-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 105, 170, 0.5);
  box-shadow: 0 16px 32px rgba(31, 47, 59, 0.13);
}

.vertical-product-card.is-hidden {
  display: none;
}

.vertical-product-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 24px 10px 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(145deg, #2c3944, #111820);
}

.vertical-product-image.renault {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(145deg, #3a4650, #151d24);
}

.vertical-product-image.peugeot {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(145deg, #1d75b8, #12364e);
}

.vertical-product-image.citroen {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(145deg, #a73e36, #3b1715);
}

.vertical-product-image.volkswagen {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(145deg, #2d697f, #172b35);
}

.vertical-product-image .stock {
  position: absolute;
  top: 7px;
  left: 7px;
  min-height: 18px;
  padding: 0 6px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.vertical-product-image small {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 6px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.demo-key.shell::before {
  display: none;
}

.vertical-product-info {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.vertical-title-row {
  display: grid;
  gap: 3px;
}

.vertical-title-row h3 {
  margin: 0;
  min-height: 34px;
  font-size: 14px;
  line-height: 1.2;
}

.vertical-title-row span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}


.spec-summary,
.compat-summary {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.spec-summary {
  color: #22303a;
  font-size: 11px;
  font-weight: 850;
}

.compat-summary {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

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

.vertical-specs span {
  display: grid;
  gap: 2px;
  min-height: 34px;
  padding: 5px;
  color: #22303a;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
}

.vertical-specs b {
  color: var(--muted);
  font-size: 9px;
}

.vertical-compat {
  display: grid;
  gap: 5px;
}

.vertical-compat strong {
  color: #34424d;
  font-size: 10px;
}

.vertical-buy-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.vertical-buy-row div {
  display: grid;
  gap: 2px;
}

.vertical-buy-row small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.vertical-buy-row strong {
  font-size: 15px;
  white-space: nowrap;
}

.vertical-buy-row button {
  width: auto;
  min-width: 58px;
  min-height: 32px;
  padding: 0 11px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 7px;
  font-weight: 850;
}

.vertical-product-card .demo-key.large {
  width: 38px;
  height: 60px;
  border-radius: 14px;
}

.vertical-product-card .demo-key.large::before {
  top: -21px;
  width: 9px;
  height: 26px;
}

.vertical-product-card .demo-key.large span {
  width: 21px;
  height: 10px;
}

.vertical-product-card .demo-key.large span:nth-child(1) {
  top: 14px;
}

.vertical-product-card .demo-key.large span:nth-child(2) {
  top: 29px;
}

.vertical-product-card .demo-key.large span:nth-child(3) {
  top: 44px;
}

.page-shell {
  width: min(1280px, calc(100% - 36px));
  margin: 54px auto 88px;
}

.page-shell h1,
.admin-content h1,
.fr-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.detail-gallery,
.detail-summary,
.detail-sections article,
.cart-summary,
.cart-table,
.admin-content,
.admin-form-grid,
.admin-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 47, 59, 0.08);
}

.detail-gallery {
  padding: 18px;
}

.detail-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.22), transparent 43%),
    linear-gradient(145deg, #3a4650, #151d24);
  border-radius: 8px;
}

.detail-image small {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 999px;
  font-weight: 850;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.thumb-row button,
.detail-actions button,
.detail-actions a,
.cart-summary button,
.cart-summary a,
.admin-primary {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.thumb-row button {
  color: var(--steel);
  background: var(--soft);
}

.thumb-row .is-active {
  color: #fff;
  background: var(--blue);
}

.detail-summary {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.detail-summary .eyebrow,
.fr-hero .eyebrow {
  color: var(--blue);
}

.detail-subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

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

.detail-spec-grid span {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 11px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.detail-spec-grid b {
  color: var(--muted);
  font-size: 11px;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--soft);
  border-radius: 8px;
}

.price-box small,
.cart-row small {
  color: var(--muted);
}

.price-box strong {
  display: block;
  margin-top: 2px;
  font-size: 28px;
}

.tier-mini {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

.detail-actions input {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-actions button,
.admin-primary {
  color: #fff;
  background: var(--red);
}

.detail-actions a {
  display: grid;
  place-items: center;
  color: var(--steel);
  background: var(--soft);
}

.detail-sections {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 24px;
}

.detail-sections article {
  padding: 22px;
}

.detail-sections h2,
.cart-summary h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  color: var(--muted);
  background: #f7fafb;
}

.check-list {
  margin: 0;
  padding-left: 18px;
  color: #34424d;
}

.check-list li + li {
  margin-top: 10px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.cart-table {
  margin-top: 20px;
  overflow: hidden;
}

.order-cart-table {
  margin-bottom: 22px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr 90px 120px 120px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row.head {
  color: var(--muted);
  background: #f7fafb;
  font-size: 12px;
  font-weight: 850;
}

.cart-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.cart-summary a {
  display: grid;
  place-items: center;
}

.cart-summary button,
.cart-summary .cart-primary {
  color: #fff;
  background: var(--red);
}

.cart-summary .secondary,
.cart-summary .cart-secondary {
  color: var(--steel);
  background: var(--soft);
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  width: min(1280px, calc(100% - 36px));
  margin: 32px auto 80px;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: #15202a;
  border-radius: 8px;
}

.admin-sidebar a {
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  font-weight: 750;
}

.admin-sidebar .is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.admin-content {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  box-shadow: none;
}

.admin-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-form-grid input {
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.admin-table {
  overflow: hidden;
  box-shadow: none;
}

.admin-row {
  display: grid;
  grid-template-columns: 150px 1fr 90px 100px 90px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-row.head {
  color: var(--muted);
  background: #f7fafb;
  font-size: 12px;
  font-weight: 850;
}

.fr-hero {
  display: grid;
  align-items: center;
  min-height: 470px;
  padding: 64px clamp(18px, 7vw, 92px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18)),
    url("assets/hero-remote-keys.png") center / cover no-repeat;
}

.fr-hero > div {
  max-width: 690px;
}

.fr-hero p:last-child {
  max-width: 600px;
  color: #43515c;
  font-size: 18px;
  font-weight: 650;
}

.catalog-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.catalog-search-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-search-row input,
.checkout-form input,
.checkout-form textarea,
.auth-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.catalog-search-row button,
.auth-form button,
.auth-side button {
  min-height: 40px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 7px;
  font-weight: 850;
}

.catalog-page-layout,
.checkout-layout,
.support-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checkout-layout,
.support-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.checkout-main,
.support-form,
.support-aside,
.auth-card,
.auth-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 47, 59, 0.08);
}

.checkout-main,
.support-form,
.support-aside {
  padding: 22px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.checkout-steps span {
  padding: 10px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.checkout-steps .is-active {
  color: #fff;
  background: var(--blue);
}

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

.checkout-form label,
.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

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

.checkout-form textarea {
  min-height: 118px;
  padding: 10px 11px;
  resize: vertical;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(320px, 520px);
  gap: 22px;
  align-items: stretch;
  width: min(980px, calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 70px 0;
}

.auth-card,
.auth-side {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 28px;
}

.auth-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

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

.auth-side {
  color: #fff;
  background: #15202a;
}

.auth-side h2 {
  margin: 0;
  font-size: 34px;
}

.auth-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.auth-checks {
  display: grid;
  gap: 10px;
}

.auth-checks span {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  font-weight: 850;
}

.auth-side button {
  color: var(--steel);
  background: #fff;
}

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

.account-stats article {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.account-stats strong {
  font-size: 20px;
}

.account-link {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
}

.support-aside h2 {
  margin: 0 0 16px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 720px;
    background-position: 62% center;
  }

  .hero-inner {
    padding-bottom: 116px;
  }

  .catalogue-layout,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .demo-card-b,
  .demo-card-d {
    grid-template-columns: 1fr;
  }

  .demo-card-d {
    align-items: stretch;
  }

  .detail-hero,
  .detail-sections,
  .cart-layout,
  .admin-shell,
  .catalog-page-head,
  .catalog-page-layout,
  .checkout-layout,
  .support-layout,
  .auth-shell {
    grid-template-columns: 1fr;
  }

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

  .vertical-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .vertical-product-card {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 10px 14px;
  }

  .brand small,
  .cart-button {
    display: none;
  }

  .hero {
    min-height: 680px;
    background-position: 70% center;
  }

  .hero-inner {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 32px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

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

  .catalogue-section,
  .services {
    width: calc(100% - 28px);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-spec-grid,
  .detail-actions,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .cart-row,
  .admin-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .checkout-form,
  .account-stats {
    grid-template-columns: 1fr;
  }

  .price-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .option-heading,
  .demo-card-a {
    grid-template-columns: 1fr;
  }

  .demo-visual {
    min-height: 150px;
  }

  .demo-specs,
  .tech-table,
  .tier-prices {
    grid-template-columns: 1fr;
  }

  .tech-table span,
  .tech-table span:nth-child(3n),
  .tech-table span:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tech-table span:last-child {
    border-bottom: 0;
  }

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

  .product-card {
    grid-template-columns: 132px 1fr;
    min-height: 278px;
  }

  .product-media {
    padding: 16px;
  }

  .product-footer {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: column;
  }

  .order-tools {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 34px;
  }

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

  .product-media {
    grid-row: auto;
    min-height: 180px;
  }

  .product-footer {
    grid-column: 1;
  }

  .product-top,
  .order-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .sku {
    white-space: normal;
  }

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

  .qty-control,
  .detail-button,
  .add-button {
    width: 100%;
  }

  .vertical-product-image {
    min-height: 150px;
  }

  .vertical-buy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .vertical-buy-row button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .vertical-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Professional B2B cart and checkout redesign */
.order-page {
  margin-top: 42px;
}

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

.order-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.dispatch-note,
.back-to-cart {
  display: grid;
  gap: 3px;
  min-width: 220px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 47, 59, 0.08);
}

.dispatch-note strong,
.back-to-cart {
  color: var(--blue);
  font-weight: 900;
}

.dispatch-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.order-progress span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.order-progress .is-active {
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.pro-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.pro-cart-panel,
.checkout-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 47, 59, 0.08);
}

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

.cart-toolbar strong {
  display: block;
  font-size: 18px;
}

.cart-toolbar span,
.cart-toolbar a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-toolbar a {
  color: var(--blue);
}

.pro-cart-table {
  display: grid;
}

.pro-cart-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(180px, 0.9fr) 110px 112px 130px;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.pro-cart-row:last-child {
  border-bottom: 0;
}

.pro-cart-head {
  min-height: 42px;
  padding-block: 10px;
  color: var(--muted);
  background: #f7fafb;
  font-size: 12px;
  font-weight: 900;
}

.cart-product-cell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.cart-product-cell h2 {
  margin: 0;
  font-size: 16px;
}

.cart-product-cell p {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.cart-thumb.renault { background: radial-gradient(circle at center, #405465, #1d2b35); }
.cart-thumb.peugeot { background: radial-gradient(circle at center, #2375a8, #155174); }
.cart-thumb.volkswagen { background: radial-gradient(circle at center, #2d7889, #153f4a); }

.cart-spec-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-spec-cell span {
  padding: 5px 8px;
  color: var(--steel);
  background: var(--soft);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
}

.stock-cell,
.line-price {
  display: grid;
  gap: 2px;
}

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

.stock-cell.low strong {
  color: var(--amber);
}

.stock-cell span,
.line-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.line-price strong {
  font-size: 16px;
}

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

.row-actions button {
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 850;
}

.qty-control {
  display: grid;
  grid-template-columns: 30px 42px 30px;
  align-items: center;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button,
.qty-control span {
  display: grid;
  place-items: center;
  min-height: 34px;
}

.qty-control button {
  border: 0;
  background: var(--soft);
  font-weight: 900;
}

.qty-control span {
  background: #fff;
  font-weight: 900;
}

.pro-summary {
  position: sticky;
  top: 92px;
}

.pro-summary p + p {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-help {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.summary-help strong {
  color: var(--steel);
}

.pro-checkout-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.pro-checkout-main {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.checkout-block {
  padding: 20px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.block-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--steel);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.block-title h2 {
  margin: 0;
  font-size: 20px;
}

.shipping-options {
  display: grid;
  gap: 10px;
}

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

.option-card.is-selected {
  border-color: rgba(22, 105, 170, 0.45);
  background: #f4f9fd;
}

.option-card strong,
.option-card small {
  display: block;
}

.option-card small {
  color: var(--muted);
  font-weight: 750;
}

.summary-mini-items {
  display: grid;
  gap: 6px;
  padding: 10px 0 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
}

.checkout-sticky button {
  min-height: 46px;
}

@media (max-width: 1080px) {
  .order-head,
  .pro-cart-layout,
  .pro-checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-head {
    display: grid;
    align-items: start;
  }

  .pro-summary {
    position: static;
  }

  .pro-cart-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pro-cart-head {
    display: none;
  }
}

@media (max-width: 720px) {
  .order-progress {
    grid-template-columns: 1fr 1fr;
  }

  .cart-toolbar,
  .cart-product-cell {
    grid-template-columns: 1fr;
  }

  .cart-toolbar {
    display: grid;
  }

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

.cart-empty-note {
  padding: 28px 20px;
  color: var(--muted);
  background: #f7fafb;
  border-top: 1px solid var(--line);
  font-weight: 850;
  text-align: center;
}

.cart-primary[aria-disabled="true"] {
  pointer-events: none;
  color: var(--muted);
  background: var(--soft);
}

.row-actions button:disabled,
.cart-summary button:disabled {
  cursor: default;
  opacity: 0.68;
}

.line-price em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

/* Product admin data management */
.product-admin-shell {
  align-items: start;
}

.product-admin-content {
  gap: 18px;
}

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

.admin-kpis article,
.admin-editor-card,
.admin-list-card,
.admin-copy-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 47, 59, 0.08);
}

.admin-kpis article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
}

.admin-kpis span,
.admin-panel-title span,
.admin-toolbar span,
.admin-product-row small,
.admin-editor-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-kpis strong {
  font-size: 24px;
}

.admin-editor-card,
.admin-list-card,
.admin-copy-note {
  padding: 18px;
}

.admin-panel-title,
.admin-toolbar,
.admin-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel-title h2,
.admin-toolbar strong {
  margin: 0;
  font-size: 22px;
}

.product-editor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: none;
}

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

.product-editor-grid textarea,
.product-editor-grid select,
.admin-search-row input,
.admin-search-row select {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.product-editor-grid textarea {
  min-height: 74px;
  resize: vertical;
}

.tier-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.tier-preview span {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
}

.admin-editor-actions {
  margin: 16px 0 0;
  justify-content: flex-start;
}

.admin-editor-actions button:not(.admin-primary),
.admin-product-row button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--steel);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, max-content);
  gap: 10px;
}

.admin-product-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, 1fr) 110px minmax(180px, 1fr) 96px 84px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-product-row:last-child {
  border-bottom: 0;
}

.admin-product-row.head {
  color: var(--muted);
  background: #f7fafb;
  font-size: 12px;
  font-weight: 900;
}

.admin-product-row.is-selected {
  background: #f4f9fd;
}

.admin-product-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.status-pill {
  width: fit-content;
  padding: 5px 8px;
  color: var(--green);
  background: rgba(22, 132, 91, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.is-low {
  color: var(--amber);
  background: rgba(179, 106, 0, 0.12);
}

.admin-empty {
  padding: 26px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.admin-copy-note {
  color: var(--muted);
  font-weight: 750;
}

.admin-copy-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--steel);
}

@media (max-width: 1080px) {
  .admin-kpis,
  .product-editor-grid,
  .admin-product-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-product-row.head {
    display: none;
  }
}

@media (max-width: 720px) {
  .admin-kpis,
  .product-editor-grid,
  .admin-product-row,
  .admin-search-row,
  .admin-panel-title,
  .admin-toolbar,
  .admin-editor-actions {
    grid-template-columns: 1fr;
  }

  .admin-search-row {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .admin-panel-title,
  .admin-toolbar,
  .admin-editor-actions {
    display: grid;
    align-items: start;
  }
}

.card-price-block {
  min-width: 0;
  flex: 1 1 auto;
}

.vertical-buy-row .card-tier-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.card-tier-prices span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 31px;
  padding: 5px 6px;
  background: #f4f8fb;
  border: 1px solid #dfe8ef;
  border-radius: 6px;
}

.card-tier-prices em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.card-tier-prices b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.08;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .vertical-buy-row .card-tier-prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}






.detail-price-head {
  display: grid;
  gap: 2px;
}

.detail-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: min(420px, 100%);
}

.detail-tier-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #f6fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-tier-grid em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.detail-tier-grid b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.vertical-product-image {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 720px) {
  .detail-tier-grid {
    grid-template-columns: 1fr;
  }
}



/* Cart and checkout completion states */
.cart-empty-state,
.checkout-empty-state,
.order-success-card,
.checkout-message {
  display: grid;
  gap: 8px;
  border-radius: 8px;
}

.cart-empty-state {
  place-items: center;
  min-height: 310px;
  padding: 42px 24px;
  color: var(--muted);
  background: linear-gradient(180deg, #f8fbfc, #fff);
  text-align: center;
}

.cart-empty-state strong,
.checkout-empty-state strong,
.order-success-card strong {
  color: var(--ink);
  font-size: 22px;
}

.cart-empty-state span,
.checkout-empty-state span,
.order-success-card small {
  max-width: 460px;
  font-weight: 750;
}

.cart-empty-state a {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  font-weight: 900;
}

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

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.checkout-form input.is-invalid,
.checkout-form textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 58, 47, 0.12);
}

.checkout-message {
  padding: 11px 12px;
  color: var(--red);
  background: rgba(200, 58, 47, 0.08);
  border: 1px solid rgba(200, 58, 47, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.checkout-message[data-tone="success"] {
  color: var(--green);
  background: rgba(22, 132, 91, 0.1);
  border-color: rgba(22, 132, 91, 0.18);
}

.order-success-card {
  padding: 14px;
  color: var(--muted);
  background: #f4fbf7;
  border: 1px solid rgba(22, 132, 91, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.order-success-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.checkout-empty-state {
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
}

.summary-mini-items span[data-checkout-line] {
  padding: 7px 8px;
  background: var(--soft);
  border-radius: 7px;
}

.option-card input {
  accent-color: var(--blue);
}

@media (max-width: 720px) {
  .fulfillment-grid {
    grid-template-columns: 1fr;
  }

  .cart-empty-state {
    min-height: 240px;
    padding: 32px 18px;
  }
}

/* Order management, account history and success page */
.admin-order-section,
.account-order-panel {
  display: grid;
  gap: 18px;
}

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

.admin-order-detail-card,
.account-order-panel,
.order-detail-hero-card,
.order-detail-columns article,
.order-detail-table,
.order-detail-summary,
.success-card,
.success-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 47, 59, 0.08);
}

.admin-order-detail-card,
.account-order-panel,
.order-detail-columns article,
.order-detail-summary,
.success-card,
.success-hero {
  padding: 20px;
}

.admin-order-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-order-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1.2fr) 130px 104px 150px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-order-row:last-child {
  border-bottom: 0;
}

.admin-order-row.head {
  color: var(--muted);
  background: #f7fafb;
  font-size: 12px;
  font-weight: 900;
}

.admin-order-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.admin-order-row a,
.admin-order-row button,
.account-order-actions a,
.account-order-actions button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--blue);
  background: #f4f9fd;
  border: 1px solid rgba(23, 105, 170, 0.18);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.admin-order-row button,
.account-order-actions button {
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.order-detail-head,
.order-total-line,
.success-reference,
.success-actions,
.account-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-head {
  margin-bottom: 14px;
}

.order-detail-head div,
.success-reference {
  display: grid;
  gap: 3px;
}

.order-detail-head span,
.order-detail-grid b,
.order-detail-columns b,
.success-reference span,
.account-order-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

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

.order-detail-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--soft);
  border-radius: 7px;
  font-weight: 850;
}

.order-items-mini {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.order-items-mini span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.order-items-mini b,
.order-items-mini strong {
  color: var(--steel);
}

.order-total-line {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-detail-page {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.order-detail-hero-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.order-detail-hero-card h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
}

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

.order-detail-columns h2,
.account-order-panel h2 {
  font-size: 22px;
}

.order-detail-columns p,
.order-detail-summary p {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  color: var(--steel);
  font-weight: 850;
}

.order-detail-table {
  overflow: hidden;
}

.order-detail-summary {
  display: grid;
  gap: 10px;
}

.order-detail-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

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

.account-order-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.2fr) minmax(230px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-order-card div:first-child {
  display: grid;
  gap: 4px;
}

.account-order-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.success-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: start;
  width: min(1120px, calc(100% - 36px));
  margin: 70px auto;
}

.success-hero {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
}

.success-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
}

.success-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}

.success-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.success-actions a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
}

.success-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.success-reference strong {
  font-size: 26px;
}

.success-next-steps,
.success-items {
  display: grid;
  gap: 8px;
}

.success-next-steps span,
.success-items span {
  padding: 10px;
  background: var(--soft);
  border-radius: 7px;
  font-weight: 850;
}

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

  .success-card {
    position: static;
  }

  .admin-order-row,
  .account-order-card {
    grid-template-columns: 1fr;
  }

  .admin-order-row.head {
    display: none;
  }
}

@media (max-width: 720px) {
  .order-detail-hero-card,
  .order-detail-head,
  .order-total-line,
  .account-order-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .success-shell {
    width: calc(100% - 28px);
    margin: 36px auto;
  }

  .success-hero {
    min-height: 360px;
  }
}

/* QA mobile refinements */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .main-nav {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .main-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 0 11px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header .cart-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
  }

  .site-header .icon-button {
    display: none;
  }

  .order-page {
    margin-top: 24px;
  }

  .order-head h1,
  .success-hero h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .dispatch-note,
  .back-to-cart {
    width: 100%;
    min-width: 0;
  }

  .pro-cart-row {
    gap: 10px;
    padding: 14px;
  }

  .stock-cell,
  .line-price {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .line-price strong {
    font-size: 18px;
  }

  .cart-summary,
  .checkout-block,
  .admin-order-detail-card,
  .account-order-panel,
  .success-card,
  .success-hero {
    padding: 16px;
  }

  .option-card {
    align-items: start;
  }

  .account-order-actions a,
  .account-order-actions button,
  .admin-order-row a,
  .admin-order-row button {
    width: 100%;
  }

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

  .success-actions a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .main-nav a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .order-progress span {
    min-height: 38px;
    font-size: 11px;
  }

  .cart-toolbar a,
  .back-to-cart,
  .cart-summary a,
  .cart-summary button,
  .checkout-sticky button {
    width: 100%;
  }

  .summary-mini-items span[data-checkout-line],
  .success-items span,
  .success-next-steps span {
    word-break: break-word;
  }
}


/* Launch readiness and final visual polish */
.launch-readiness {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 47, 59, 0.08);
}

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

.launch-card {
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 15px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.launch-card span {
  width: fit-content;
  padding: 5px 8px;
  color: var(--amber);
  background: rgba(179, 106, 0, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.launch-card.is-ready span {
  color: var(--green);
  background: rgba(22, 132, 91, 0.1);
}

.launch-card.is-later span {
  color: var(--blue);
  background: rgba(23, 105, 170, 0.1);
}

.launch-card strong {
  font-size: 17px;
}

.launch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-primary,
.cart-primary,
.checkout-sticky button,
.hero-search button,
.vertical-buy-row button {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.admin-primary:hover,
.cart-primary:hover,
.checkout-sticky button:hover,
.hero-search button:hover,
.vertical-buy-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 47, 59, 0.14);
}

.cart-secondary:hover,
.account-order-actions a:hover,
.admin-order-row a:hover {
  background: #eaf3f9;
}

.status-pill {
  line-height: 1.15;
  white-space: nowrap;
}

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

@media (max-width: 720px) {
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .launch-readiness {
    padding: 16px;
  }

  .launch-card {
    min-height: 0;
  }
}

/* WhatsApp support widget */
.wa-floating-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 8px 14px 8px 8px;
  color: #fff;
  background: #1f8f5f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(21, 32, 42, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wa-floating-button:hover {
  transform: translateY(-2px);
  background: #16784f;
  box-shadow: 0 18px 38px rgba(21, 32, 42, 0.28);
}

.wa-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #1f8f5f;
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.wa-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.wa-copy strong,
.wa-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-copy strong {
  font-size: 13px;
  font-weight: 950;
}

.wa-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

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

.wa-admin-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: #f4fbf7;
  border: 1px solid rgba(31, 143, 95, 0.18);
  border-radius: 8px;
}

.wa-admin-preview div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wa-admin-preview strong {
  color: var(--steel);
}

.wa-admin-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wa-admin-preview a {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: #1f8f5f;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .wa-floating-button {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding-right: 12px;
  }

  .wa-mark {
    width: 34px;
    height: 34px;
  }

  .wa-copy small {
    display: none;
  }

  .wa-admin-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .wa-admin-preview a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .wa-floating-button {
    left: 14px;
    right: 14px;
    justify-content: center;
  }
}

/* Product upload brand and type configuration */
.product-config-card {
  display: grid;
  gap: 14px;
}

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

.product-config-grid article {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.config-head strong {
  font-size: 16px;
}

.config-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.config-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
}

.config-chip-list button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.config-chip-list button::after {
  content: " x";
  color: var(--muted);
}

.config-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.config-add-row input,
.product-editor-grid select {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.config-add-row button {
  min-height: 38px;
  color: #fff;
  background: var(--steel);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

@media (max-width: 720px) {
  .product-config-grid,
  .config-add-row {
    grid-template-columns: 1fr;
  }
}

/* Product image upload and real product image rendering */
.product-image-field {
  align-content: start;
}

.product-image-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-image-field input[type="file"] {
  min-height: 42px;
  padding: 8px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.admin-image-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 12px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.admin-image-preview img {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-image-preview button {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.product-uploaded-image {
  display: block;
  width: min(76%, 180px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.detail-uploaded-image {
  width: min(70%, 360px);
  padding: 18px;
}

.cart-uploaded-image {
  width: 100%;
  height: 100%;
  padding: 7px;
  box-shadow: none;
}

.vertical-product-image:has(.product-uploaded-image),
.detail-image:has(.product-uploaded-image),
.cart-thumb:has(.product-uploaded-image) {
  background: linear-gradient(145deg, #eef4f7, #ffffff);
}

@media (max-width: 720px) {
  .admin-image-preview {
    min-height: 150px;
  }

  .product-uploaded-image {
    width: min(82%, 160px);
  }
}
/* Product images across catalog, admin, cart, and order lists */
.admin-product-row .admin-product-main,
.order-line-product,
.order-mini-item,
.account-order-products,
.success-item-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-product-row .admin-product-main > div,
.order-line-product > div,
.order-mini-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-product-thumb,
.order-product-thumb,
.order-line-thumb,
.account-order-thumb,
.success-item-thumb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: linear-gradient(145deg, #eef4f7, #ffffff);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

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

.order-product-thumb,
.order-line-thumb,
.success-item-thumb {
  width: 46px;
  height: 46px;
}

.account-order-thumb {
  width: 38px;
  height: 38px;
  margin-right: -18px;
  box-shadow: 0 0 0 2px #fff;
}

.admin-product-thumb img,
.order-product-thumb img,
.order-line-thumb img,
.account-order-thumb img,
.success-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.order-mini-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.order-mini-item span,
.success-item-line > span:not(.success-item-thumb) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-products p {
  margin-left: 18px;
}

.success-item-line {
  padding: 10px;
  background: var(--soft);
  border-radius: 7px;
  font-weight: 850;
}

.success-item-line > span:not(.success-item-thumb) {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

@media (max-width: 720px) {
  .admin-product-thumb {
    width: 48px;
    height: 48px;
  }

  .account-order-products {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-order-products p {
    flex-basis: 100%;
    margin-left: 0;
  }
}
.success-items .success-item-thumb {
  padding: 0;
  background: linear-gradient(145deg, #eef4f7, #ffffff);
}


