:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --gold: #ca8a04;
  --gold-light: #facc15;
  --text: #fafafa;
  --muted: #a3a3a3;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 250, 250, 0.06);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand em {
  font-style: normal;
  color: var(--gold-light);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.15);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.cart-count {
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.hero-shop {
  padding: 4rem clamp(1rem, 5vw, 3rem) 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero-shop {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-height: 55vw;
    aspect-ratio: 16/10;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding-inline: 0.85rem;
  }

  .product-info h3 {
    font-size: 0.92rem;
  }

  .product-info button {
    font-size: 0.72rem;
    padding: 0.55rem;
  }

  .cart-drawer {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .products {
    grid-template-columns: 1fr;
  }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(250, 250, 250, 0.06);
  padding: 0.65rem 0;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 22s linear infinite;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-shop h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-shop p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-visual {
  aspect-ratio: 1;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.85)),
    url("/demos/assets/noir-hero.jpg?v=7") center/cover no-repeat;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.filters button {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.12);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.filters button.active,
.filters button:hover {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(250, 250, 250, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.product-thumb {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  width: 100%;
  background: #141414;
  filter: contrast(1.05);
}

.product-info {
  padding: 1rem 1.1rem 1.25rem;
}

.product-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.product-info .price {
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-info button {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100%;
  z-index: 120;
  background: var(--surface);
  border-left: 1px solid rgba(250, 250, 250, 0.08);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  margin: 1rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(250, 250, 250, 0.06);
  font-size: 0.92rem;
}

.checkout {
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product.hidden {
  display: none;
}