:root {
  --bg: #050505;
  --white: #f7f7f7;
  --muted: #b8b8b8;
  --hot: #ff005c;
  --hot-soft: rgba(255, 0, 92, 0.28);
  --glass: rgba(255,255,255,0.075);
  --line: rgba(255,255,255,0.14);
  --spacing: 2rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', 'Arial Black', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 0, 92, 0.2), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.07), transparent 26%),
    linear-gradient(135deg, #050505 0%, #0b0b0b 100%);
  padding: clamp(32px, 5vw, 70px) 20px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  background-size: 100% 4px, auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.page-container {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.page-title {
  text-align: center;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.85;
  font-weight: 950;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 60px rgba(0,0,0,0.65);
}

.page-title::after {
  content: "";
  display: block;
  width: 78px;
  height: 5px;
  margin: 24px auto 0;
  background: var(--hot);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(255,0,92,0.45);
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 4rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 24px;

  display: flex;
  flex-direction: column;
  padding-bottom: 1.4rem;

  background:
    linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.04);

  border: 1px solid var(--line);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);

  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  border-color: rgba(255, 0, 92, 0.5);
  box-shadow:
    14px 14px 0 var(--hot-soft),
    0 28px 80px rgba(0,0,0,0.5);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  filter: grayscale(0.25) contrast(1.1);
  transition: 0.45s ease;
}

.product-card:hover img {
  filter: grayscale(0) contrast(1.08);
  transform: scale(1.04);
}

.product-card h3 {
  padding: 1.3rem 1rem 0.45rem;
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.product-card p {
  padding: 0 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex-grow: 1;
}

.price {
  display: block;
  font-size: 1.1rem;
  font-weight: 950;
  color: var(--hot);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* BUTTONS */
.btn-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 1.5rem;
}

.btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 999px;

  font-weight: 950;
  cursor: pointer;
  transition: 0.3s ease;

  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 1.6px;

  border: 1px solid rgba(255,255,255,0.16);
}

.add-to-cart {
  background: rgba(255,255,255,0.075);
  color: #fff;
}

.add-to-cart:hover {
  background: rgba(255, 0, 92, 0.18);
  border-color: rgba(255, 0, 92, 0.65);
  transform: translateY(-2px);
}

.buy-now {
  background: var(--hot);
  color: #fff;
  border-color: var(--hot);
  box-shadow: 0 12px 30px rgba(255,0,92,0.24);
}

.buy-now:hover {
  background: #fff;
  color: #050505;
  border-color: #fff;
  transform: translateY(-2px);
}

/* TOAST */
#toast {
  visibility: hidden;
  min-width: 250px;
  max-width: calc(100% - 32px);

  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);

  padding: 16px 22px;
  border-radius: 999px;

  background: rgba(5,5,5,0.82);
  color: #fff;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  box-shadow:
    0 18px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  body {
    padding: 42px 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    border-radius: 22px;
  }

  .product-card:hover {
    transform: translateY(-6px);
    box-shadow:
      10px 10px 0 var(--hot-soft),
      0 24px 70px rgba(0,0,0,0.5);
  }
}