:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #11171d;
  --surface-3: #182129;
  --text: #12202a;
  --muted: #5e6c76;
  --line: #d9e1e6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --red: #c51422;
  --red-dark: #93101a;
  --red-soft: rgba(197, 20, 34, 0.08);
  --gold: #c89c44;
  --shadow: 0 18px 50px rgba(10, 20, 26, 0.1);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --wrap: min(1260px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, rgba(197, 20, 34, 0.08), transparent 24%),
    linear-gradient(180deg, #eef1f4 0%, #f7f9fa 22%, #ffffff 100%);
}

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

button,
input,
select {
  font: inherit;
}

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

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(18, 32, 42, 0.08);
  box-shadow: var(--shadow);
}

.dark-panel {
  background: linear-gradient(180deg, #10171d 0%, #17222c 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.subtle-panel {
  background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
}

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

.announcement-bar {
  background: #0e141a;
  color: #fff;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(18, 32, 42, 0.08);
}

.header-top,
.dealer-bar,
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-top {
  padding: 18px 0 14px;
}

.nav-bar {
  padding: 0 0 12px;
}

.dealer-bar {
  padding: 0 0 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo,
.footer-logo {
  width: 168px;
  height: auto;
}

.brand-lockup h1,
.hero-copy h2,
.section-head h3,
.hero-media-overlay h3,
.hero-card h3,
.modal-card h3,
.checkout-review-card h3,
.cart-header h3 {
  margin: 0;
  line-height: 0.96;
}

.brand-lockup h1 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 8px;
}

.eyebrow.red {
  color: var(--red);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.75);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5f7f8;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(540px, 100%);
}

.search-shell {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0 16px;
  min-height: 48px;
}

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

.cart-btn,
.primary-btn,
.outline-btn,
.ghost-btn,
.mini-btn,
.card-btn,
.icon-btn,
.collection-card,
.qty-btn {
  appearance: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cart-btn:hover,
.primary-btn:hover,
.outline-btn:hover,
.ghost-btn:hover,
.mini-btn:hover,
.card-btn:hover,
.icon-btn:hover,
.collection-card:hover,
.qty-btn:hover {
  transform: translateY(-1px);
}

.cart-btn,
.primary-btn,
.outline-btn,
.ghost-btn,
.mini-btn,
.card-btn,
.icon-btn {
  border: 0;
}

.cart-btn {
  background: var(--red);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-btn,
.outline-btn,
.ghost-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 18px 35px rgba(197, 20, 34, 0.25);
}

.outline-btn {
  border: 1px solid rgba(18, 32, 42, 0.15);
  background: transparent;
  color: var(--text);
}

.ghost-btn,
.mini-btn {
  background: var(--red-soft);
  color: var(--red);
}

.dealer-label,
.subtle-copy,
.catalog-status,
.checkout-note,
.modal-description,
.product-copy p,
.collection-card p,
.helper-card p,
.footer-copy,
.workflow-step p,
.checkout-demo-card p,
.summary-item-meta,
.summary-lines span {
  color: var(--muted);
  line-height: 1.55;
}

.dealer-label {
  margin: 0 0 4px;
  font-size: 0.82rem;
}

.subtle-copy {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.hero,
.category-section,
.featured-section,
.catalog-section,
.checkout-demo-section,
.workflow-strip {
  padding: 24px 0 30px;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.hero-media,
.workflow-step,
.checkout-demo-card,
.trust-strip article,
.collection-card,
.product-card,
.filters-card,
.helper-card,
.modal-card,
.checkout-box,
.checkout-summary {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 34px;
}

.hero-copy h2 {
  font-size: clamp(2.2rem, 4.7vw, 4.4rem);
  max-width: 11.5ch;
  margin-bottom: 16px;
}

.hero-text {
  font-size: 1.06rem;
  line-height: 1.62;
  color: #39444d;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 28px;
}

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

.stats-grid div {
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #f6f8fa;
  border: 1px solid rgba(18, 32, 42, 0.06);
}

.stats-grid dt {
  font-size: 0.84rem;
  color: var(--muted);
}

.stats-grid dd {
  margin: 8px 0 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.hero-media-overlay {
  position: absolute;
  inset: auto 20px 20px 20px;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(8, 11, 15, 0.76));
}

.hero-media-overlay h3 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.hero-card {
  padding: 22px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.trust-strip,
.workflow-strip,
.checkout-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-strip article,
.workflow-step,
.checkout-demo-card {
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head h3,
.trust-strip h3,
.workflow-step h3,
.checkout-demo-card h4,
.hero-card h3,
.checkout-box h3,
.modal-card h3,
.filters-card h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.collection-card {
  border: 1px solid rgba(18, 32, 42, 0.08);
  padding: 20px;
  text-align: left;
}

.collection-card h4,
.product-card h4,
.cart-item h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.collection-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.92rem;
}

.collection-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}

.featured-grid,
.product-grid {
  display: grid;
  gap: 18px;
}

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

.catalog-section {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  align-items: start;
}

.filters-card {
  position: sticky;
  top: 150px;
  padding: 22px;
}

.field,
.field-row {
  display: grid;
  gap: 8px;
}

.field {
  margin-bottom: 14px;
}

.field input,
.field select {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-field input {
  min-height: auto;
}

.helper-card {
  padding: 18px;
  margin-top: 12px;
}

.warning-card {
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
  border-color: rgba(200, 156, 68, 0.26);
}

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

.product-card {
  overflow: hidden;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eef2f4;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-badge,
.vendor-badge {
  position: absolute;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sale-badge {
  top: 14px;
  background: var(--red);
  color: #fff;
}

.vendor-badge {
  bottom: 14px;
  background: rgba(15, 20, 24, 0.82);
  color: #fff;
  backdrop-filter: blur(10px);
}

.product-copy {
  padding: 18px;
}

.product-copy p {
  margin: 0 0 16px;
  min-height: 52px;
}

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

.price {
  font-size: 1.3rem;
  font-weight: 800;
}

.compare-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

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

.card-btn,
.icon-btn {
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.card-btn {
  background: #141c24;
  color: #fff;
  font-weight: 800;
}

.icon-btn {
  background: #eff3f5;
  color: var(--text);
  padding: 0 14px;
}

.checkout-demo-card h4,
.workflow-step h3,
.trust-strip h3 {
  margin: 0 0 10px;
}

.dealer-proof-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dealer-proof-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dealer-proof-box span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dealer-proof-box.compact {
  margin-top: 16px;
}

.dealer-proof-box.compact div {
  background: #fff;
  border-color: var(--line);
}

.dealer-proof-box.compact span {
  color: var(--muted);
}

.site-footer {
  background: #10171d;
  color: #fff;
  margin-top: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  padding: 30px 0;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.72);
}

.modal-shell {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(980px, calc(100vw - 24px));
  width: 100%;
}

.checkout-shell {
  max-width: min(1140px, calc(100vw - 24px));
}

.modal-shell::backdrop {
  background: rgba(8, 14, 19, 0.64);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  padding: 24px;
  max-height: min(92vh, 980px);
  overflow: auto;
}

.modal-card.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: #edf1f3;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 22px;
}

.modal-gallery {
  display: grid;
  gap: 12px;
}

.modal-gallery-main {
  border-radius: 20px;
  overflow: hidden;
  background: #f3f5f6;
  aspect-ratio: 1 / 1;
}

.modal-gallery-main img,
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

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

.checkout-review-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

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

.field-row.two-up {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field-row.three-up {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.checkout-summary {
  padding: 22px;
}

.checkout-summary-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.small-note {
  font-size: 0.94rem;
}

.stack-actions {
  margin-top: 16px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(470px, 100vw);
  height: 100dvh;
  z-index: 70;
  background: #fff;
  border-left: 1px solid rgba(18, 32, 42, 0.08);
  box-shadow: -18px 0 50px rgba(11, 18, 23, 0.18);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  position: relative;
  padding-right: 48px;
}

.cart-items {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: #eef2f4;
}

.checkout-box {
  padding: 20px;
}

.checkout-actions {
  display: grid;
  gap: 10px;
}

.checkout-meta p {
  margin: 0 0 6px;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
}

.compact-empty {
  padding: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(14px);
  background: #10171d;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .catalog-section,
  .checkout-review-layout,
  .modal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .collection-grid,
  .featured-grid,
  .product-grid,
  .trust-strip,
  .workflow-strip,
  .checkout-demo-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .announcement-inner,
  .header-top,
  .nav-bar,
  .dealer-bar,
  .section-head,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-logo,
  .footer-logo {
    width: 144px;
  }

  .hero-copy,
  .hero-card,
  .trust-strip article,
  .workflow-step,
  .checkout-demo-card,
  .collection-card,
  .product-copy,
  .filters-card,
  .helper-card,
  .modal-card,
  .checkout-box,
  .checkout-summary {
    padding: 20px;
  }

  .collection-grid,
  .featured-grid,
  .product-grid,
  .trust-strip,
  .workflow-strip,
  .checkout-demo-grid,
  .stats-grid,
  .field-row.two-up,
  .field-row.three-up {
    grid-template-columns: 1fr;
  }

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

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

  .cart-item > :last-child {
    grid-column: 1 / -1;
  }

  .hero-media,
  .hero-image {
    min-height: 280px;
  }
}
