:root {
  --ink: #151515;
  --muted: #6d7178;
  --line: #e6e8ec;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --soft-2: #eff2f5;
  --accent: #d71920;
  --accent-dark: #a80f15;
  --gold: #c9963f;
  --green: #16794f;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.promo-bar {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 9px clamp(16px, 4vw, 42px);
  background: #111111;
  color: #ffffff;
  font-size: 14px;
}

.promo-bar span {
  color: #f4c86a;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.promo-bar.is-hidden {
  display: none;
}

.promo-close,
.icon-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: inherit;
  background: transparent;
}

.promo-close:hover,
.icon-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.utility-row,
.header-main,
.nav-row,
.hero,
.section,
.feature-band,
.trust-grid,
.support {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.utility-row {
  min-height: 34px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.header-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: 245px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
  font-size: 24px;
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-top: 5px;
}

.search {
  height: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfd4dc;
  border-radius: 4px;
  padding-left: 14px;
  background: #ffffff;
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
}

.search button {
  height: 100%;
  min-width: 98px;
  border: 0;
  border-left: 1px solid #cfd4dc;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
}

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

.header-actions button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.cart-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.nav-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  color: #30343a;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.nav-row a:last-child {
  color: var(--accent);
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 42px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: #cfd4dc;
  background: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 16px;
  max-width: 580px;
  margin: 34px 0 0;
}

.hero-stats div {
  border-top: 2px solid #151515;
  padding-top: 12px;
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-products {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f8f8, #ffffff);
}

.hero-card-large {
  grid-row: span 2;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(18px, 4vw, 48px);
}

.hero-card span {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: #151515;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.deal-strip {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 40px;
}

.deal-strip a {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: var(--soft);
}

.deal-strip span {
  color: var(--muted);
  font-size: 13px;
}

.deal-strip strong {
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 26px);
}

.section {
  padding: 52px 0 70px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(300px, 0.58fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2,
.feature-band h2,
.support h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:last-child,
.feature-band p,
.support p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 276px 1fr;
  align-items: start;
  gap: 26px;
}

.filters {
  position: sticky;
  top: 166px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.filter-head button {
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
}

.filter-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-block:last-child {
  border-bottom: 0;
}

.filter-block span {
  color: #30343a;
  font-weight: 800;
}

.filter-block label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.filter-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  text-align: left;
  padding: 0 12px;
}

.filter-pill.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff1f1;
  font-weight: 800;
}

.catalog {
  min-width: 0;
}

.catalog-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: #ffffff;
}

.catalog-toolbar p {
  margin: 0;
  color: var(--muted);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sort-control label {
  color: var(--muted);
  font-size: 14px;
}

.sort-control select {
  min-height: 36px;
  border: 1px solid #cfd4dc;
  border-radius: 4px;
  padding: 0 10px;
  background: #ffffff;
}

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

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #d0d5dd;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.sale-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-radius: 3px;
  padding: 5px 8px;
  color: #ffffff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1.18;
  display: grid;
  place-items: center;
  background: var(--soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  mix-blend-mode: multiply;
}

.quick-view {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(21, 21, 21, 0.9);
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.product-card:hover .quick-view,
.quick-view:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.product-brand {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body h3 {
  min-height: 48px;
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.product-desc {
  margin: 0;
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #444950;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-row strong {
  font-size: 22px;
}

.price-row del {
  color: var(--muted);
  font-size: 13px;
}

.price-row span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  margin-top: 4px;
}

.card-actions button {
  min-height: 42px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
}

.card-actions button:first-child {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.feature-band {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 58px 0;
}

.bundle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bundle-row article {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.bundle-row img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  background: var(--soft);
}

.bundle-row strong,
.bundle-row span {
  display: block;
  padding: 0 14px;
}

.bundle-row strong {
  margin-top: 14px;
}

.bundle-row span {
  margin: 4px 0 14px;
  color: var(--accent);
  font-weight: 800;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 58px 0;
}

.trust-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: var(--soft);
}

.trust-grid svg {
  color: var(--accent);
}

.trust-grid h3 {
  margin: 14px 0 8px;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-radius: 8px;
  padding: 38px;
  margin-bottom: 58px;
  color: #ffffff;
  background: #151515;
}

.support .eyebrow,
.support p {
  color: #f0c45f;
}

.support p {
  max-width: 760px;
  margin-top: 12px;
}

.support .button {
  flex: 0 0 auto;
}

.modal,
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(15, 23, 42, 0.5);
}

.modal.is-open,
.cart-drawer.is-open {
  display: block;
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(940px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.modal-panel .icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: var(--ink);
}

.modal-media {
  min-height: 470px;
  display: grid;
  place-items: center;
  background: var(--soft);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 42px;
}

.modal-body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 48px;
}

.modal-body h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.modal-body p:not(.product-brand) {
  margin: 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  color: #30343a;
  font-size: 14px;
}

.cart-panel {
  margin-left: auto;
  width: min(420px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.cart-head .icon-close {
  color: var(--ink);
}

.cart-items {
  overflow: auto;
  padding: 14px;
}

.empty-cart {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cart-item img {
  width: 74px;
  height: 86px;
  object-fit: contain;
  background: var(--soft);
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #ffffff;
}

.qty span {
  min-width: 24px;
  text-align: center;
}

.cart-foot {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 18px;
}

.cart-foot div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.cart-foot small {
  color: var(--muted);
}

body.modal-lock {
  overflow: hidden;
}

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

  .header-main {
    grid-template-columns: 220px 1fr auto;
  }
}

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

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero,
  .section-heading,
  .shop-layout,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-products {
    min-height: 430px;
  }

  .filters {
    position: static;
  }

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

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

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-media {
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  .utility-row,
  .nav-row,
  .hero,
  .section,
  .feature-band,
  .trust-grid,
  .support,
  .deal-strip,
  .header-main {
    width: min(100% - 28px, 1440px);
  }

  .promo-bar {
    grid-template-columns: 1fr auto;
  }

  .promo-bar span {
    display: none;
  }

  .utility-row {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-main {
    gap: 14px;
    padding: 10px 0;
  }

  .brand strong {
    font-size: 21px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions button {
    width: 38px;
    height: 38px;
  }

  .search {
    height: 44px;
  }

  .search button {
    min-width: 78px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-products {
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
  }

  .hero-card-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .hero-stats,
  .deal-strip,
  .product-grid,
  .bundle-row,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    justify-content: space-between;
  }

  .support {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .modal-body {
    padding: 30px 22px;
  }
}
