:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --brand-red: #ff0000;
  --brand-black: #000000;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111111;
  --container: 80rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--brand-black);
  color: var(--white);
}

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

button,
input {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.page-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-black);
  border-bottom: 1px solid #111827;
}

.top-banner {
  background: var(--brand-red);
  color: var(--white);
  text-align: center;
  padding: 0.375rem 1rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar {
  min-height: 4rem;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.mobile-menu-wrap {
  display: flex;
}

.brand {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand span,
.section-head h2 span,
.trending-copy h2 span,
.promo-card h2 span,
.footer-brand h2 span {
  color: var(--brand-red);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav-links a:first-child {
  color: var(--brand-red);
}

.nav-links a:not(:first-child) {
  color: var(--gray-300);
}

.nav-links a:hover {
  color: var(--brand-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-wrap {
  display: none;
  align-items: center;
  background: var(--gray-900);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
}

.search-wrap svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--gray-500);
}

.search-wrap input {
  width: 6rem;
  margin-left: 0.5rem;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--white);
  font-size: 0.875rem;
}

.search-wrap input::placeholder,
.footer-column p,
.footer-brand p {
  color: var(--gray-400);
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--gray-300);
  background: transparent;
  transition: color 180ms ease;
}

.icon-button:hover {
  color: var(--brand-red);
}

.mobile-menu-button {
  color: var(--gray-400);
}

.cart-count {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--brand-black);
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 500px;
}

.hero-copy {
  max-width: 36rem;
}

.hero-enter {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.hero-enter.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--brand-red);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  font-weight: 900;
}

.hero p {
  max-width: 32rem;
  margin: 0 0 2rem;
  color: var(--gray-200);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
}

.btn-primary:hover,
.promo-form button:hover,
.footer-form button:hover {
  background: #b91c1c;
}

.btn-light {
  background: var(--white);
  color: var(--brand-black);
}

.btn-light:hover {
  background: var(--gray-100);
}

.floating-badge {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  display: none;
  width: 8rem;
  height: 8rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 4px solid var(--brand-red);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
  animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge .discount {
  color: var(--brand-red);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.floating-badge .label {
  color: var(--brand-black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.features-bar {
  padding: 1.5rem 0;
  background: var(--brand-black);
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--white);
}

.feature-item svg {
  color: var(--brand-red);
}

.feature-item div {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.category-section {
  padding: 3rem 0 5rem;
}

.section-head,
.trending-head,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.section-head {
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-head h2,
.trending-copy h2,
.promo-card h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.section-line {
  width: 6rem;
  height: 0.375rem;
  margin-top: 0.5rem;
  background: var(--brand-red);
}

.section-link {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease;
}

.section-link:hover,
.footer-column a:hover,
.footer-meta-links a:hover {
  color: var(--white);
  border-color: var(--brand-red);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.category-card,
.product-card {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out),
    border-color 300ms ease;
  transition-delay: calc(var(--stagger, 0) * 100ms);
}

.category-card.is-visible,
.product-card.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--gray-900);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: border-color 300ms ease;
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background-color 300ms ease;
}

.category-title {
  margin-top: 1rem;
  color: var(--gray-300);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.category-card:hover .category-visual {
  border-color: var(--brand-red);
}

.category-card:hover .category-visual img {
  transform: scale(1.1);
}

.category-card:hover .category-overlay {
  background: rgba(255, 0, 0, 0.2);
}

.category-card:hover .category-title {
  color: var(--brand-red);
}

.trending-section {
  padding: 4rem 0 6rem;
  background: var(--brand-black);
}

.new-products-section {
  padding: 0 0 6rem;
  background: var(--brand-black);
}

.trending-head {
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.trending-copy {
  text-align: center;
}

.trending-copy h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.trending-copy p {
  margin: 0.5rem 0 0;
  color: var(--gray-400);
  font-weight: 500;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.chip {
  padding: 0.75rem 1.5rem;
  background: #111827;
  color: var(--gray-300);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.chip:hover,
.chip-active {
  background: var(--brand-red);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 2.5rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--brand-black);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  aspect-ratio: 3 / 4;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.1);
}

.product-badges,
.product-actions {
  position: absolute;
  top: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.product-badges {
  left: 0.5rem;
  flex-direction: column;
}

.product-actions {
  right: 0.5rem;
  flex-direction: column;
  opacity: 0;
  transition: opacity 300ms ease;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-dark {
  background: var(--brand-black);
  color: var(--white);
}

.badge-red {
  background: var(--brand-red);
  color: var(--white);
}

.round-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-black);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: background-color 180ms ease, color 180ms ease;
}

.round-action:hover {
  background: var(--brand-red);
  color: var(--white);
}

.round-action svg {
  width: 1.125rem;
  height: 1.125rem;
}

.quick-add {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateY(100%);
  transition: transform 300ms ease;
}

.product-card:hover .quick-add {
  transform: translateY(0);
}

.quick-add button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--white);
  color: var(--brand-black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.quick-add button:hover,
.catalog-button:hover {
  background: var(--brand-red);
  color: var(--white);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.star {
  width: 0.625rem;
  height: 0.625rem;
  color: var(--gray-700);
  fill: currentColor;
  stroke-width: 1.5;
}

.star.active {
  color: var(--brand-red);
}

.rating-count {
  margin-left: 0.25rem;
  color: var(--gray-500);
  font-size: 0.625rem;
}

.product-name {
  overflow: hidden;
  color: var(--gray-200);
  font-size: 0.875rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-price {
  color: var(--brand-red);
  font-size: 1rem;
  font-weight: 700;
}

.original-price {
  color: var(--gray-500);
  font-size: 0.75rem;
  text-decoration: line-through;
}

.catalog-cta {
  margin-top: 4rem;
  text-align: center;
}

.catalog-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--brand-black);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.catalog-button:hover {
  transform: scale(1.05);
}

.catalog-button svg {
  width: 1.125rem;
  height: 1.125rem;
}

.promo-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: var(--brand-red);
}

.promo-background {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow: hidden;
  opacity: 0.1;
  color: var(--white);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.promo-background span {
  display: inline-block;
}

.promo-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.promo-card {
  display: inline-block;
  max-width: 100%;
  padding: 2.5rem;
  background: var(--white);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}

.promo-card h2 {
  color: var(--brand-black);
  font-size: clamp(1.875rem, 6vw, 3.75rem);
  margin-bottom: 1rem;
}

.promo-card p {
  margin: 0 0 2rem;
  color: #4b5563;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700;
}

.promo-card strong {
  color: var(--brand-red);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.promo-form,
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.promo-form input,
.footer-form input {
  width: 100%;
  border: 0;
  outline: none;
}

.promo-form input {
  max-width: 20rem;
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  color: var(--brand-black);
  font-weight: 700;
}

.promo-form input:focus,
.footer-form input:focus {
  box-shadow: 0 0 0 2px var(--brand-red);
}

.promo-form button,
.footer-form button {
  padding: 1rem 2rem;
  background: var(--brand-black);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 180ms ease;
}

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--brand-black);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  margin: 0 0 1.5rem;
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.footer-brand p {
  max-width: 18rem;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  transition: color 180ms ease;
}

.social-links a:hover {
  color: var(--brand-red);
}

.footer-column h3 {
  margin: 0 0 1.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--brand-red);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li + li {
  margin-top: 1rem;
}

.footer-column a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 180ms ease;
}

.footer-column p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.footer-form input {
  padding: 0.875rem 1rem;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.875rem;
}

.footer-bottom {
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
}

.footer-bottom p,
.footer-meta-links a {
  color: var(--gray-500);
  font-size: 0.75rem;
}

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

@media (min-width: 640px) {
  .top-banner {
    font-size: 0.75rem;
  }

  .search-wrap {
    display: flex;
  }

  .search-wrap input {
    width: 7rem;
  }

  .promo-form {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .navbar,
  .nav-row {
    min-height: 5rem;
  }

  .mobile-menu-wrap {
    display: none;
  }

  .brand {
    font-size: 1.875rem;
  }

  .nav-links {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 700px;
  }

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

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .trending-head {
    flex-direction: row;
    align-items: center;
  }

  .trending-copy {
    text-align: left;
  }

  .products-grid {
    column-gap: 2rem;
    row-gap: 4rem;
  }

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

  .footer-bottom {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .search-wrap input {
    width: 10rem;
  }

  .floating-badge {
    display: flex;
  }

  .categories-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
