:root {
  --bg: #f4f5f8;
  --ink: #151515;
  --muted: #6d6d74;
  --card: #ffffff;
  --line: #dddddf;
  --accent: #ffb300;
  --accent-2: #ff6f00;
  --radius-xl: 28px;
  --radius-md: 16px;
  --shadow: 0 12px 30px rgba(23, 24, 37, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 0%, #ffeab8 0, transparent 25%),
    radial-gradient(circle at 100% 20%, #ffd7b1 0, transparent 30%),
    var(--bg);
}

.page-wrap {
  width: min(1200px, 95vw);
  margin: 20px auto 50px;
}

.glass {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.topbar {
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 14px;
  z-index: 20;
  box-shadow: var(--shadow);
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.hero {
  margin-top: 18px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(19, 15, 35, 0.68), rgba(23, 23, 23, 0.33)),
    url("https://images.unsplash.com/photo-1613771404784-3a5686aa2be3?auto=format&fit=crop&w=1400&q=80") center/cover;
  transform: scale(1.06);
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding: 40px;
  color: #fff;
}

.eyebrow {
  font-family: "Sora", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  opacity: 0.92;
}

.hero h1 {
  margin: 8px 0;
  font-size: clamp(2.1rem, 8vw, 5.8rem);
  line-height: 0.94;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.search-bar {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.search-bar input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 13px 16px;
}

.search-bar button {
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #2a1d0f;
  cursor: pointer;
}

.store-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
}

.filters {
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  align-self: start;
}

.filters h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.filters label {
  display: block;
  margin: 7px 0;
  color: #3b3b44;
  font-size: 0.92rem;
}

.filters input[type="range"] {
  width: 100%;
}

.muted {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.86rem;
}

.catalog {
  border-radius: var(--radius-md);
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.catalog-head h2,
.recommend h2 {
  margin: 0;
  font-size: 1.7rem;
}

.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

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

.product-card {
  background: var(--card);
  border: 1px solid #e4e4e8;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.thumb {
  height: 155px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 60%);
  animation: drift 6s linear infinite;
}

@keyframes drift {
  to {
    transform: rotate(1turn);
  }
}

.thumb span {
  position: relative;
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

.tag {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 2px 0 6px;
}

.meta {
  color: #72727d;
  margin: 0 0 8px;
  font-size: 0.86rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 800;
  font-size: 1.08rem;
}

.actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.actions button {
  flex: 1;
  border-radius: 999px;
  padding: 9px;
  border: 1px solid #d1d1d7;
  background: #fff;
  font-weight: 600;
}

.actions button.buy {
  border: none;
  color: #fff;
  background: #171717;
}

.pagination {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination button {
  border: none;
  background: transparent;
  color: #4a4a56;
  font-weight: 600;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d8d8dd;
  font-size: 0.9rem;
}

.dots .active {
  background: #171717;
  color: #fff;
}

.recommend {
  margin-top: 30px;
}

.recommend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.carousel-btns {
  display: flex;
  gap: 8px;
}

.carousel-btns button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d3d3d8;
  background: #fff;
}

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

.signup {
  margin-top: 26px;
  border-radius: 20px;
  background: linear-gradient(120deg, #161619, #27272f);
  color: #fff;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.signup h2 {
  margin: 0;
  font-size: 2rem;
}

.signup p {
  margin: 6px 0 0;
  color: #d7d7df;
}

.signup form {
  display: flex;
  gap: 8px;
}

.signup input {
  border: 1px solid #4d4d59;
  background: #2d2d37;
  border-radius: 999px;
  color: #fff;
  padding: 12px 14px;
  min-width: 220px;
}

.signup button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
}

.footer {
  margin-top: 20px;
  padding: 20px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer h4 {
  margin: 0 0 10px;
}

.footer a {
  display: block;
  color: #3f3f47;
  text-decoration: none;
  margin: 5px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.15s; }
.reveal:nth-child(4) { animation-delay: 0.23s; }
.reveal:nth-child(5) { animation-delay: 0.3s; }
.reveal:nth-child(6) { animation-delay: 0.37s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

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

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

@media (max-width: 720px) {
  .topbar {
    border-radius: 20px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-around;
  }

  .hero-content {
    padding: 24px;
  }

  .search-bar {
    flex-direction: column;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .recommend-strip,
  .footer {
    grid-template-columns: 1fr;
  }

  .signup {
    flex-direction: column;
    align-items: flex-start;
  }

  .signup form {
    width: 100%;
  }

  .signup input {
    width: 100%;
    min-width: 0;
  }
}
