:root {
  color-scheme: dark;
  --header-bg: #050505;
  --surface: #18181a;
  --surface-border: #343438;
  --text: #ffffff;
  --muted: #b8b8be;
  --accent: #ed0000;
  --accent-warm: #f2a900;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background: #101012;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

main {
  flex: 1;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(300px, 680px) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  width: min(100% - 64px, 1440px);
  min-height: 112px;
  margin-inline: auto;
  padding-block: 18px;
}

.desktop-nav {
  border-top: 1px solid rgb(255 255 255 / 7%);
  background: #0c0c0e;
}

.desktop-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5vw, 76px);
  width: min(100% - 64px, 1440px);
  min-height: 50px;
  margin-inline: auto;
}

.desktop-nav a {
  position: relative;
  display: grid;
  min-height: 50px;
  place-items: center;
  color: #d8d8dc;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
  content: "";
  transition: right 160ms ease, left 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active {
  color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.is-active::after {
  right: 0;
  left: 0;
}

.desktop-nav a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--accent);
  outline-offset: -5px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.brand {
  display: block;
  min-width: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86px;
  object-fit: contain;
}

.search {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 58px;
  padding-inline: 20px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgb(255 255 255 / 5%);
}

.search:focus-within {
  border-color: #727278;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 9%);
}

.search svg {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  margin-right: 14px;
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-width: 2;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search input::-webkit-search-cancel-button {
  filter: invert(1);
}

.cart {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 15px;
  color: var(--text);
  text-decoration: none;
}

.cart-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
}

.cart-icon svg {
  width: 46px;
  height: 46px;
  fill: var(--text);
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.cart-icon svg path {
  fill: none;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  min-width: 29px;
  height: 29px;
  padding-inline: 7px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--header-bg);
}

.cart-copy {
  display: grid;
  gap: 2px;
  white-space: nowrap;
  font-size: 14px;
}

.cart-copy span {
  color: var(--muted);
}

.cart-copy strong {
  font-size: 15px;
}

.brand-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0 68%, var(--accent-warm) 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(18px, 2.5vw, 36px) clamp(16px, 3vw, 40px);
  background:
    radial-gradient(circle at 15% 20%, rgb(0 100 255 / 15%), transparent 35%),
    radial-gradient(circle at 85% 20%, rgb(255 184 0 / 14%), transparent 35%),
    #050505;
}

.hero-frame {
  width: min(100%, 1600px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: clamp(8px, 1.2vw, 16px);
  background: #000;
  box-shadow:
    0 24px 70px rgb(0 0 0 / 46%),
    0 0 60px rgb(20 87 180 / 8%),
    0 0 60px rgb(226 165 0 / 7%);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2228 / 978;
  object-fit: contain;
}

.section-shell {
  width: min(100% - 64px, 1440px);
  margin-inline: auto;
}

.categories-section {
  padding: 26px 0;
  background: #f1f2f4;
}

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

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #e3e3e6;
  border-radius: 12px;
  background: #fff;
  color: #161618;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c9c9ce;
  box-shadow: 0 10px 22px rgb(0 0 0 / 8%);
}

.category-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.category-card img {
  width: 58px;
  height: 42px;
  object-fit: contain;
}

.featured {
  padding: 0 0 clamp(38px, 5vw, 70px);
  background: #f7f7f8;
  color: #111113;
}

.featured-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin-bottom: 20px;
  padding: 0 22px;
  background: linear-gradient(105deg, #dc0711 0%, #f51b24 58%, #111 58.2%, #111 100%);
  color: #fff;
}

.featured-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(21px, 2vw, 30px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.featured-heading a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e1e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(18 18 20 / 7%);
}

.product-card > img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
}

.discount {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 0 15px 15px;
}

.product-info h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.product-info p {
  margin: 4px 0 9px;
  color: #55555b;
  font-size: 13px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}

.price-row strong {
  color: var(--accent);
  font-size: 21px;
}

.price-row del {
  color: #898990;
  font-size: 12px;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.buy-button:hover,
.buy-button:focus-visible {
  background: #c90000;
}

.buy-button:focus-visible {
  outline: 3px solid rgb(237 0 0 / 28%);
  outline-offset: 2px;
}

.buy-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 9%);
  background: #050505;
}

.catalog-page {
  background: #f7f7f8;
  color: #111113;
}

.page-intro {
  padding: clamp(34px, 5vw, 72px) 0;
  background: linear-gradient(125deg, #070708 0%, #171719 68%, #260000 100%);
  color: #fff;
}

.page-intro h1 {
  margin: 6px 0 8px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.page-intro p {
  margin: 0;
  color: #c5c5ca;
  font-size: 16px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.categories-page-section {
  min-height: 48vh;
  padding: clamp(28px, 5vw, 70px) 0;
}

.category-grid-large .category-card {
  min-height: 150px;
  flex-direction: column;
  font-size: 15px;
}

.category-grid-large .category-card img {
  width: 92px;
  height: 64px;
}

.shop-products {
  padding-top: clamp(28px, 4vw, 54px);
}

.shop-title {
  margin: 0 0 22px;
  font-size: clamp(24px, 3vw, 38px);
}

@media (max-width: 760px) {
  .page-intro {
    padding: 28px 18px;
  }

  .page-intro h1 {
    font-size: 32px;
  }

  .categories-page-section {
    padding: 10px 6px 18px;
  }

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

  .category-grid-large .category-card {
    min-height: 126px;
    font-size: 12px;
  }

  .category-grid-large .category-card img {
    width: 86px;
    height: 58px;
  }

  .shop-products {
    padding-top: 18px;
  }

  .shop-title {
    padding-inline: 8px;
    font-size: 23px;
  }
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 34px 64px;
  width: min(100% - 64px, 1440px);
  min-height: 210px;
  margin-inline: auto;
  padding-block: 38px 28px;
}

.footer-brand img {
  display: block;
  width: min(100%, 250px);
  height: auto;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #d2d2d6;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-link:hover,
.footer-link:focus-visible,
.footer-link.is-active {
  color: var(--accent);
}

.footer-link:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.footer-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-link:first-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #85858b;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .header-inner {
    grid-template-columns: minmax(96px, 1.05fr) minmax(120px, 1.25fr) 40px 44px;
    gap: clamp(10px, 3vw, 18px);
    width: 100%;
    min-height: 90px;
    padding: 11px 14px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 10px;
    background: #151517;
    color: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .mobile-menu {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    right: 10px;
    left: 10px;
    display: grid;
    overflow: hidden;
    border: 1px solid #36363a;
    border-radius: 14px;
    background: #101012;
    box-shadow: 0 18px 42px rgb(0 0 0 / 58%);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    position: relative;
    min-height: 48px;
    padding: 15px 18px;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    color: #efeff1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .mobile-menu a.is-active {
    padding-left: 24px;
    color: var(--accent);
  }

  .mobile-menu a.is-active::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 10px;
    width: 3px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
  }

  .brand img {
    max-height: 67px;
  }

  .search {
    height: 48px;
    padding-inline: 14px;
  }

  .search svg {
    width: 24px;
    height: 24px;
    margin-right: 9px;
  }

  .search input {
    font-size: clamp(14px, 3.4vw, 17px);
  }

  .cart {
    justify-self: end;
  }

  .cart-icon {
    width: 44px;
    height: 48px;
  }

  .cart-icon svg {
    width: 39px;
    height: 39px;
  }

  .cart-badge {
    top: -3px;
    right: -4px;
    min-width: 25px;
    height: 25px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .cart-copy {
    display: none;
  }

  .brand-line {
    height: 2px;
  }

  .hero {
    padding: 0;
    background: #000;
  }

  .hero-frame {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .section-shell {
    width: 100%;
  }

  .categories-section {
    padding: 7px 6px;
  }

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

  .category-card {
    flex-direction: column;
    gap: 1px;
    min-height: 64px;
    padding: 4px 2px;
    border-radius: 7px;
    font-size: clamp(7px, 2.1vw, 9px);
    line-height: 1.05;
  }

  .category-card img {
    width: 42px;
    height: 35px;
  }

  .featured {
    padding-bottom: 14px;
  }

  .featured-heading {
    min-height: 34px;
    margin-bottom: 6px;
    padding: 0 10px;
    background: linear-gradient(105deg, #dc0711 0%, #f51b24 72%, #111 72.3%, #111 100%);
  }

  .featured-heading h2 {
    gap: 6px;
    font-size: clamp(15px, 4.5vw, 19px);
  }

  .featured-heading a {
    font-size: 9px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-inline: 6px;
  }

  .product-card {
    border-radius: 7px;
    box-shadow: 0 3px 10px rgb(18 18 20 / 7%);
  }

  .product-card > img {
    height: clamp(98px, 29vw, 126px);
  }

  .discount {
    top: 5px;
    left: 5px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .product-info {
    min-height: 129px;
    padding: 0 8px 7px;
  }

  .product-info h3 {
    font-size: 12px;
  }

  .product-info p {
    margin: 2px 0 5px;
    font-size: 10px;
  }

  .price-row {
    gap: 5px;
    margin-bottom: 6px;
  }

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

  .price-row del {
    font-size: 9px;
  }

  .buy-button {
    min-height: 32px;
    border-radius: 5px;
    font-size: 10px;
  }

  .buy-button svg {
    width: 15px;
    height: 15px;
  }

  .site-footer {
    position: fixed;
    z-index: 1100;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid #68686d;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 38%);
  }

  .footer-inner {
    display: block;
    width: 100%;
    min-height: 68px;
    padding: 0;
  }

  .footer-brand,
  .footer-meta {
    display: none;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 68px;
  }

  .footer-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 68px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
  }

  .footer-link svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.5;
  }

  .footer-link.is-active::after {
    position: absolute;
    right: 26%;
    bottom: 5px;
    left: 26%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
  }
}

@media (max-width: 430px) {
  .header-inner {
    grid-template-columns: minmax(88px, 1fr) minmax(98px, 1.15fr) 36px 40px;
    gap: 8px;
    padding-inline: 10px;
  }

  .menu-toggle {
    width: 36px;
  }

  .cart-icon {
    width: 40px;
  }

  .search {
    padding-inline: 11px;
  }

  .search svg {
    margin-right: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
