:root {
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --text: #1a2435;
  --muted: #5d6c87;
  --line: #d6e0ee;
  --primary: #ef7f1a;
  --primary-dark: #d96c0f;
  --primary-soft: #fff1e4;
  --dark: #0f1623;
  --danger: #be3333;
  --ok: #1d8b48;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(16, 35, 66, 0.08);
  --shadow-soft: 0 8px 20px rgba(15, 31, 59, 0.06);
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(1000px 500px at -20% -30%, #ffffff 0%, transparent 55%),
    radial-gradient(900px 560px at 110% -20%, #eef4ff 0%, transparent 56%),
    var(--bg);
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid #d7e2f0;
}

.top-banner {
  min-height: 34px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(92deg, #121b2a, #1b2a42);
  color: #e7efff;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.header-main {
  margin-top: 0.6rem;
  margin-bottom: 0.45rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  gap: 0.95rem;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img,
.logo-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid #cfdced;
  background: #121927;
  box-shadow: var(--shadow-soft);
}

.logo-fallback {
  display: none;
  place-items: center;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  line-height: 0.9;
  letter-spacing: 0.06em;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-box {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.search-box input {
  flex: 1;
  min-height: 44px;
  border: 0;
  padding: 0.65rem 0.85rem;
  background: transparent;
}

.search-box input:focus {
  outline: none;
}

.search-box button {
  border: 0;
  min-height: 44px;
  min-width: 96px;
  padding: 0 1rem;
  background: linear-gradient(120deg, var(--primary), #ff962f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-box button:hover {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
}

.header-actions {
  display: flex;
  gap: 0.55rem;
}

.link-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #273854;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.link-button:hover {
  background: #f4f8ff;
}

.main-nav {
  background: linear-gradient(120deg, #0f1726, #1a273f 55%, #223556);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-row {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
}

.nav-row > a {
  white-space: nowrap;
  color: #dde8fb;
  padding: 0.8rem 0.78rem;
  font-size: 0.88rem;
  font-weight: 600;
}

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

.link-button #headerCartCount {
  margin-left: 0.25rem;
}

.brand-nav {
  gap: 0;
  align-items: stretch;
  overflow: visible;
}

.header-brand-item {
  position: relative;
  flex: 0 0 auto;
}

.header-brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #f1f6ff;
  padding: 0 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-brand-btn:hover,
.header-brand-item.is-open .header-brand-btn,
.header-brand-item:focus-within .header-brand-btn {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
  filter: none;
}

.header-brand-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.2rem);
  z-index: 45;
  width: min(350px, 88vw);
  border: 1px solid #d3deee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(10, 25, 48, 0.22);
  padding: 0.72rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-brand-item:last-child .header-brand-dropdown,
.header-brand-item:nth-last-child(2) .header-brand-dropdown {
  right: 0;
  left: auto;
}

.header-brand-item:hover .header-brand-dropdown,
.header-brand-item:focus-within .header-brand-dropdown,
.header-brand-item.is-open .header-brand-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-brand-dropdown h3 {
  margin: 0;
  color: #203558;
  font-size: 0.94rem;
}

.header-brand-model-list {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.header-brand-model-list a {
  border: 1px solid #d4dfef;
  border-radius: 999px;
  background: #f6f9ff;
  color: #2a4165;
  padding: 0.2rem 0.58rem;
  font-size: 0.77rem;
  font-weight: 700;
}

.header-brand-model-list a:hover {
  border-color: #adc1de;
  background: #eef4ff;
}

.header-brand-empty {
  margin: 0.36rem 0 0;
  color: #667892;
  font-size: 0.82rem;
}

.header-brand-all {
  display: inline-flex;
  margin-top: 0.58rem;
  border-bottom: 1px solid #1f3d66;
  color: #1f3d66;
  font-size: 0.8rem;
  font-weight: 800;
}

.header-subline {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #3d4f6d;
  font-size: 0.84rem;
}

.header-subline p {
  margin: 0;
}

.page-main {
  padding-block: 1.1rem 1.35rem;
}

.panel,
.box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.box {
  padding: 1rem;
}

.section-head h1,
.section-head h2,
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

.section-head p {
  margin: 0.34rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.95rem;
}

.hero article,
.stat-box {
  border: 1px solid #dde7f4;
  border-radius: 13px;
  background:
    radial-gradient(120% 90% at 0% 0%, #ffffff 0%, #f8fbff 60%, #f3f7ff 100%);
  padding: 1rem;
}

.eyebrow {
  margin: 0;
  color: #9f5314;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 0.42rem 0 0.6rem;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
}

.hero p {
  margin: 0;
  color: #536480;
}

.brand-stage {
  padding: 0;
  overflow: hidden;
  border-color: #d6b2b2;
  background: linear-gradient(130deg, #8d000f, #b50f1f 55%, #7e000d);
}

.brand-stage-inner {
  padding: 1.1rem;
  color: #fdf6f6;
  background:
    radial-gradient(980px 340px at 50% 0%, rgba(255, 255, 255, 0.14), transparent 62%),
    radial-gradient(760px 240px at 50% 100%, rgba(0, 0, 0, 0.18), transparent 64%);
}

.brand-stage-eyebrow {
  color: #ffd7d7;
}

.brand-stage-inner h2 {
  margin: 0.4rem 0 0.45rem;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.72rem, 3.6vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.brand-stage-inner p {
  margin: 0;
  color: #ffe9e9;
}

.brand-showcase {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.52rem;
}

.brand-hover-card {
  position: relative;
}

.brand-hover-trigger {
  width: 100%;
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 0.62rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.24rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-hover-trigger:hover,
.brand-hover-card.is-open .brand-hover-trigger,
.brand-hover-card:focus-within .brand-hover-trigger {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.brand-hover-mark {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.45rem;
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-hover-sub {
  font-size: 0.73rem;
  color: #ffe1e1;
  text-align: center;
  line-height: 1.2;
}

.brand-hover-models {
  position: absolute;
  left: 0;
  top: calc(100% + 0.34rem);
  z-index: 12;
  width: min(340px, 88vw);
  border: 1px solid #d5dfef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(9, 20, 39, 0.2);
  padding: 0.7rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-hover-card:nth-child(n + 5) .brand-hover-models {
  right: 0;
  left: auto;
}

.brand-hover-card:hover .brand-hover-models,
.brand-hover-card:focus-within .brand-hover-models,
.brand-hover-card.is-open .brand-hover-models {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.brand-hover-models h3 {
  margin: 0;
  color: #203356;
  font-size: 0.96rem;
}

.brand-hover-model-grid {
  margin-top: 0.54rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.brand-hover-model-grid a {
  border: 1px solid #d0dced;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  color: #2d4367;
  font-size: 0.77rem;
  font-weight: 700;
  background: #f7faff;
}

.brand-hover-model-grid a:hover {
  border-color: #a9bede;
  background: #edf4ff;
}

.brand-hover-model-grid a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}

.brand-hover-empty {
  margin: 0.35rem 0 0;
  color: #5d6f8a;
  font-size: 0.82rem;
}

.brand-hover-all {
  display: inline-flex;
  margin-top: 0.58rem;
  border-bottom: 1px solid #1f3e67;
  color: #1f3e67;
  font-size: 0.8rem;
  font-weight: 800;
}

.brand-hover-all[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}

.hero-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fitment-inline {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr auto;
  gap: 0.55rem;
  align-items: end;
}

.fitment-inline label {
  margin: 0;
}

.fitment-inline select {
  min-height: 40px;
}

.fitment-inline button {
  min-height: 42px;
}

.chips {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips span,
.chips a {
  border: 1px solid #d5dfef;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.79rem;
  color: #314765;
  background: #fff;
  font-weight: 600;
}

.chips a:hover {
  border-color: #a9bcdb;
  background: #f4f8ff;
}

.stat-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.stat-grid div {
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  background: #fff;
  padding: 0.62rem;
}

.stat-grid strong {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.9rem;
  line-height: 0.9;
}

.stat-grid span {
  color: #60708a;
  font-size: 0.82rem;
}

.trust-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: #4f6383;
  font-size: 0.87rem;
}

.card-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.quick-card {
  border: 1px solid #d9e3f1;
  border-radius: 12px;
  background: #fff;
  padding: 0.88rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: #bccce4;
}

.quick-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.quick-card p {
  margin: 0.3rem 0 0;
  color: #60708a;
  font-size: 0.84rem;
}

.trust-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.trust-card {
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  background:
    linear-gradient(160deg, #ffffff 0%, #f8fbff 52%, #f4f8ff 100%);
  padding: 0.85rem;
}

.trust-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.trust-card p {
  margin: 0.38rem 0 0;
  color: #5d6f8a;
  font-size: 0.84rem;
}

.filter-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.filter-grid.wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2b3f60;
}

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

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid #cad6e8;
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.7rem;
  color: #1d2a3f;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #9fb3d7;
  box-shadow: 0 0 0 3px rgba(84, 119, 179, 0.14);
}

textarea {
  resize: vertical;
  min-height: 78px;
}

.checkbox-wrap {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.checkbox-wrap input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  color: #2b3f60;
}

.inline-check input {
  width: 16px;
  min-height: 16px;
  margin-top: 0.18rem;
  padding: 0;
}

.legal-check a {
  color: #1e3f6e;
  text-decoration: underline;
}

.sub-info {
  margin: 0.72rem 0 0;
  color: #4a5f81;
  font-size: 0.88rem;
}

.product-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.82rem;
}

.product-card {
  border: 1px solid #d7e2f1;
  border-radius: 13px;
  background: #fff;
  padding: 0.86rem;
  display: grid;
  gap: 0.44rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 39, 73, 0.12);
}

.product-card.out {
  opacity: 0.72;
}

.product-media {
  display: block;
  border: 1px solid #e0e8f4;
  border-radius: 11px;
  background: #fbfdff;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0.45rem;
  display: block;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.badge {
  border: 1px solid #d5deee;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.71rem;
  color: #425777;
  background: #fdfefe;
  font-weight: 700;
}

.badge.low {
  border-color: #f2cccc;
  color: #a53b3b;
  background: #fff6f6;
}

.badge.good {
  border-color: #bfe6cd;
  color: #1f7e49;
  background: #f2fbf6;
}

.product-title {
  font-size: 0.99rem;
  font-weight: 800;
  line-height: 1.22;
  min-height: 2.4em;
}

.product-title:hover {
  color: #183964;
}

.product-meta,
.product-model {
  margin: 0;
  color: #62718c;
  font-size: 0.81rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
}

.price-row strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.72rem;
  line-height: 0.9;
}

.price-row small {
  color: #8f9db4;
  text-decoration: line-through;
  font-size: 0.86rem;
}

.product-actions {
  display: flex;
  gap: 0.42rem;
}

.btn,
button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 0.82rem;
  background: linear-gradient(118deg, var(--primary), #ff9632);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn-secondary,
.secondary {
  border-color: #c7d4e8;
  background: #fff;
  color: #223551;
}

.btn-secondary:hover,
.secondary:hover {
  background: #f2f6fd;
}

.product-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fav-btn.active {
  border-color: #efc3c3;
  color: #a53a3a;
  background: #fff4f4;
}

.cart-layout,
.account-layout {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.84rem;
}

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

.box h2,
.box h3 {
  margin: 0 0 0.66rem;
}

.cart-items,
.orders-list {
  display: grid;
  gap: 0.62rem;
}

.cart-item,
.order-card {
  border: 1px solid #d8e1f0;
  border-radius: 11px;
  background: #fff;
  padding: 0.74rem;
}

.cart-item .top,
.order-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cart-item .meta,
.order-meta {
  margin: 0.22rem 0 0;
  color: #5f6f88;
  font-size: 0.83rem;
}

.qty-row {
  margin-top: 0.56rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.qty-row input {
  width: 90px;
  min-height: 36px;
}

.summary-list {
  margin: 0;
  display: grid;
  gap: 0.33rem;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #395073;
}

.summary-list .total {
  font-weight: 800;
  border-top: 1px dashed #cfdaec;
  padding-top: 0.38rem;
}

.coupon-row {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.48rem;
}

.coupon-row input {
  min-height: 40px;
}

.form-grid {
  display: grid;
  gap: 0.64rem;
}

.form-message {
  min-height: 1.2rem;
  margin: 0.52rem 0 0;
  font-size: 0.88rem;
}

.form-message.ok {
  color: var(--ok);
}

.form-message.error {
  color: var(--danger);
}

.order-items {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  font-size: 0.84rem;
  color: #465b7d;
}

.order-timeline {
  margin: 0.56rem 0 0;
  padding-left: 1rem;
  color: #4a5f84;
  font-size: 0.81rem;
}

.session-box {
  margin-top: 0.84rem;
}

.session-box p {
  margin: 0;
  color: #5f6f88;
}

.address-list {
  margin-top: 0.66rem;
  display: grid;
  gap: 0.58rem;
}

.address-card {
  border: 1px solid #d7e1f0;
  border-radius: 11px;
  background: #fff;
  padding: 0.68rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.62rem;
}

.address-card p {
  margin: 0.2rem 0 0;
  color: #4f6383;
  font-size: 0.85rem;
}

.address-actions {
  display: flex;
  gap: 0.4rem;
}

.product-detail-layout {
  margin-top: 0.82rem;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0.82rem;
}

.product-detail-media {
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  background: #f9fcff;
  overflow: hidden;
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  padding: 0.82rem;
}

.detail-price {
  margin-top: 0.72rem;
}

.spec-grid {
  margin-top: 0.82rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem;
}

.spec-grid article {
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.58rem;
}

.spec-grid span {
  display: block;
  color: #6a7c97;
  font-size: 0.76rem;
}

.spec-grid strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: #243a5f;
}

.fitment-check {
  margin-top: 0.82rem;
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr auto;
  gap: 0.55rem;
  align-items: end;
}

.fitment-check label {
  margin: 0;
}

.qty-action-row {
  margin-top: 0.8rem;
  display: flex;
  align-items: end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.qty-action-row input {
  width: 95px;
}

.installment-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.64rem;
}

.installment-card {
  border: 1px solid #d8e2f1;
  border-radius: 11px;
  background: #fff;
  padding: 0.75rem;
}

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

.installment-card p {
  margin: 0.2rem 0 0;
  color: #314a70;
  font-weight: 800;
}

.installment-card small {
  color: #65758f;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: min(460px, calc(100% - 2rem));
  border: 1px solid #cfdbee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(10, 24, 48, 0.16);
  padding: 0.9rem;
}

.cookie-banner p {
  margin: 0;
  color: #455a79;
  font-size: 0.85rem;
}

.cookie-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
}

.footer-row p {
  margin: 0;
  color: #5f6f88;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-links a {
  color: #24406a;
  font-weight: 700;
}

.pager-row {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.pager-row p {
  margin: 0;
  min-width: 120px;
  text-align: center;
  color: #3f5478;
}

.empty-state {
  margin: 0;
  border: 1px dashed #cfd9eb;
  border-radius: 11px;
  background: #fbfdff;
  color: #60708b;
  padding: 0.84rem;
}

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

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

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

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

  .header-subline {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 0.35rem;
  }

  .brand-nav {
    display: block;
    overflow: visible;
  }

  .header-brand-item {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .header-brand-btn {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding-inline: 0.82rem;
  }

  .header-brand-btn::after {
    content: "+";
    font-size: 1rem;
    font-weight: 800;
    color: #d6e3f8;
  }

  .header-brand-item.is-open .header-brand-btn::after {
    content: "-";
  }

  .header-brand-dropdown {
    position: static;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    max-height: 0;
    padding: 0 0.82rem;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: max-height 0.22s ease, padding 0.22s ease;
  }

  .header-brand-item:last-child .header-brand-dropdown,
  .header-brand-item:nth-last-child(2) .header-brand-dropdown {
    right: auto;
    left: auto;
  }

  .header-brand-item:hover .header-brand-dropdown,
  .header-brand-item:focus-within .header-brand-dropdown {
    max-height: 0;
    padding: 0 0.82rem;
  }

  .header-brand-item.is-open .header-brand-dropdown {
    max-height: 320px;
    padding: 0 0.82rem 0.7rem;
  }

  .header-brand-dropdown h3 {
    display: none;
  }

  .header-brand-model-list {
    margin-top: 0.2rem;
  }

  .header-brand-model-list a {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
    color: #deebff;
  }

  .header-brand-all {
    margin-top: 0.5rem;
    border-bottom-color: #dbe8ff;
    color: #dbe8ff;
  }

  .header-brand-empty {
    color: #d2e0f6;
  }

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

  .brand-hover-models {
    position: static;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding: 0 0.62rem;
    border: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: hidden;
    transform: none;
    transition: max-height 0.22s ease, padding 0.22s ease;
  }

  .brand-hover-card:hover .brand-hover-models,
  .brand-hover-card:focus-within .brand-hover-models {
    max-height: 0;
    padding: 0 0.62rem;
  }

  .brand-hover-card.is-open .brand-hover-models {
    max-height: 360px;
    padding: 0.7rem;
    border: 1px solid #d6e0ee;
    background: #fff;
  }

  .brand-hover-card:nth-child(n + 5) .brand-hover-models {
    right: auto;
    left: auto;
  }

  .hero,
  .cart-layout,
  .account-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .filter-grid,
  .filter-grid.wide,
  .trust-grid,
  .fitment-inline,
  .fitment-check,
  .card-grid,
  .product-grid,
  .installment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fitment-inline button,
  .fitment-check button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .brand-showcase {
    grid-template-columns: 1fr;
  }

  .brand-hover-trigger {
    min-height: 74px;
  }

  .filter-grid,
  .filter-grid.wide,
  .trust-grid,
  .fitment-inline,
  .fitment-check,
  .card-grid,
  .product-grid,
  .stat-grid,
  .installment-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

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

  .pager-row {
    flex-direction: column;
  }

  .address-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.8rem;
  }
}
