
:root {
  --background: #08080b;
  --surface: #151519;
  --surface-light: #1d1d24;
  --red: #e11d36;
  --red-dark: #a80f24;
  --white: #ffffff;
  --muted: #a5a5b0;
  --border: #303039;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top right, #260b12 0%, transparent 35%),
    var(--background);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 14, 0.97);
  border-bottom: 1px solid var(--border);
}

.header-main {
  max-width: 1400px;
  margin: auto;
  padding: 20px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo span:not(.logo-mark) {
  color: var(--red);
}

.logo-mark {
  color: var(--red);
  margin-right: 8px;
}

.header-search {
  display: flex;
  flex: 1;
  max-width: 460px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  padding: 13px 15px;
  border: none;
  background: transparent;
  color: white;
  outline: none;
}

.header-search button {
  background: var(--red);
  color: white;
  border: none;
  padding: 0 19px;
  font-size: 22px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-btn,
.cart-btn,
.menu-toggle {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
}

.cart-count {
  background: var(--red);
  color: white;
  border-radius: 20px;
  padding: 3px 7px;
  font-size: 12px;
  margin-left: 4px;
}

.menu-toggle {
  display: none;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 15px 6%;
  border-top: 1px solid var(--border);
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: bold;
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--red);
}

/* BUTTONS */

.primary-btn,
.add-btn {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 14px 24px;
  border: 1px solid var(--red);
  border-radius: 7px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}

.primary-btn:hover,
.add-btn:not(:disabled):hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* HERO */

.hero {
  padding: 110px 7%;
  background:
    radial-gradient(circle at 80% 50%, #430d1b 0%, transparent 45%),
    linear-gradient(120deg, #101015, #08080b);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 1250px;
  margin: auto;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  max-width: 850px;
  margin-bottom: 25px;
}

.hero h1 span,
.section h2 span {
  color: var(--red);
}

.hero p:not(.eyebrow) {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* SECTIONS */

.section {
  max-width: 1400px;
  margin: auto;
  padding: 85px 7%;
  scroll-margin-top: 140px;
}

.section > h2 {
  font-size: clamp(27px, 3vw, 39px);
  margin-bottom: 35px;
  font-weight: 900;
}

/* CATEGORIES */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 35px 25px;
  transition: transform 0.2s, border-color 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 22px;
}

.category-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.category-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* PRODUCTS */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.product-card[hidden] {
  display: none;
}

.product-image {
  background:
    radial-gradient(circle, #50101f, #1d1017 55%, #111115);
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 65px;
  border-bottom: 1px solid var(--border);
}

.product-details {
  padding: 25px;
}

.product-details h3 {
  font-size: 21px;
  margin: 12px 0;
}

.product-details > p:not(.product-type) {
  color: var(--muted);
  line-height: 1.7;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.product-bottom strong {
  font-size: 22px;
}

.add-btn {
  padding: 12px 17px;
}

/* SUPPORT */

.support {
  text-align: center;
  border-top: 1px solid var(--border);
}

.support p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 25px;
  line-height: 1.8;
}

/* FOOTER */

footer {
  background: #101014;
  border-top: 1px solid var(--border);
  padding: 30px 7%;
  color: var(--muted);
  text-align: center;
}

/* CART */

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  padding: 25px;
  overflow-y: auto;
  box-shadow: -10px 0 40px #0008;
}

.cart-panel[hidden] {
  display: none;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.cart-header button {
  background: transparent;
  color: white;
  border: none;
  font-size: 22px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item button {
  background: transparent;
  color: var(--red);
  border: none;
}

.cart-total {
  margin-top: 25px;
  font-size: 20px;
  font-weight: bold;
}

.cart-note {
  color: var(--muted);
  margin-top: 15px;
  line-height: 1.7;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1000px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-main {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
}

@media (max-width: 700px) {
  .header-main {
    padding: 16px 5%;
  }

  .logo {
    font-size: 19px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 75px 6%;
  }

  .section {
    padding: 60px 6%;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-bottom {
    flex-wrap: wrap;
  }
}
