* { box-sizing: border-box; }

:root {
  --yellow: #ffd21c;
  --yellow-dark: #eab800;
  --black: #101316;
  --text: #17191c;
  --muted: #697078;
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e2e5e8;
  --green: #16823d;
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.topbar {
  background: var(--black);
  color: white;
}

.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  font-size: 46px;
  filter: saturate(1.2);
}

.brand strong {
  display: block;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -1.5px;
}

.brand strong b, .footer-brand b { color: var(--yellow); }

.brand small {
  display: block;
  color: #c7ccd1;
  margin-top: 3px;
  font-size: 14px;
}

.marketplace-badge {
  border: 1px solid var(--yellow);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  background: rgba(255, 210, 28, .05);
}

.marketplace-badge > span:first-child { font-size: 26px; }

.nav {
  background: var(--yellow);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.nav-inner {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link {
  padding: 18px 30px;
  font-weight: 700;
  border-bottom: 4px solid transparent;
}

.nav-link:hover, .nav-link.active { border-bottom-color: var(--black); }

/* Hero */
.hero {
  min-height: 330px;
  margin-top: 20px;
  background: linear-gradient(110deg, #111519 0%, #171b1f 58%, #ffd21c 58%, #ffd21c 100%);
  border-radius: var(--radius);
  color: white;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 46px 52px;
}

.hero-copy { position: relative; z-index: 2; max-width: 610px; }

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--yellow-dark);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin: 0 0 14px;
}

.hero h1 span { color: var(--yellow); }

.hero-text {
  max-width: 540px;
  color: #d6dade;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 800;
}

.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: #ffe45d; }

.hero-art {
  position: absolute;
  right: 40px;
  width: 380px;
  height: 280px;
}

.cart {
  font-size: 190px;
  position: absolute;
  right: 20px;
  bottom: 5px;
  transform: rotate(-3deg);
}

.box {
  position: absolute;
  font-size: 74px;
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.2));
}
.box-a { right: 150px; top: 55px; transform: rotate(-8deg); }
.box-b { right: 75px; top: 105px; transform: rotate(7deg); }

/* Sections */
.section { padding-top: 50px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.7px;
}

.section-heading .eyebrow { margin-bottom: 5px; }

.outline-btn {
  background: white;
  border: 1px solid var(--yellow-dark);
  border-radius: 999px;
  padding: 10px 17px;
  cursor: pointer;
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.search {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  flex: 1;
}

.search span { font-size: 24px; color: #8b9299; }
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 13px 0;
  background: transparent;
}

#categorySelect {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 0 14px;
  min-width: 210px;
  outline: none;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.product-image {
  height: 215px;
  background: #f1f3f5;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  transition: transform .2s ease;
}

.product-card:hover .product-image img { transform: scale(1.04); }

.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-weight: 750;
  line-height: 1.35;
  min-height: 44px;
}

.product-category {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.price {
  font-size: 22px;
  font-weight: 800;
  margin-top: 14px;
}

.installment {
  color: var(--green);
  font-size: 12px;
  margin-top: 4px;
  min-height: 17px;
}

.buy-btn {
  margin-top: 14px;
  width: 100%;
  background: var(--yellow);
  border: 0;
  border-radius: 11px;
  padding: 12px 8px;
  font-weight: 800;
  cursor: pointer;
  color: #111;
}

.buy-btn:hover { background: #f1bf00; }

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: .18s ease;
}

.category-card:hover {
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
}

.category-icon { font-size: 35px; display: block; margin-bottom: 9px; }
.category-name { font-weight: 700; font-size: 13px; }

/* Trust */
.trust {
  margin-top: 48px;
  margin-bottom: 48px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px;
  gap: 20px;
}

.trust > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  align-items: center;
}

.trust span { grid-row: span 2; font-size: 29px; }
.trust strong { font-size: 14px; }
.trust small { color: var(--muted); margin-top: 3px; }

/* Footer */
footer {
  background: var(--black);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding: 45px 0;
}

.footer-brand { font-size: 23px; font-weight: 800; }
.footer-grid p { color: #b8bec4; max-width: 450px; line-height: 1.6; }

.footer-grid h3 { margin-top: 0; font-size: 15px; }
.footer-grid a { display: block; color: #cbd0d4; margin: 11px 0; }
.footer-grid a:hover { color: var(--yellow); }

.footer-bottom {
  background: var(--yellow);
  color: #17191c;
  text-align: center;
  padding: 12px;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 100px);
  background: #111;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  transition: .25s ease;
  z-index: 99;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-art { opacity: .35; right: -80px; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 22px, 1180px); }

  .header-inner { min-height: 92px; }
  .brand-icon { font-size: 35px; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 11px; }
  .marketplace-badge { display: none; }

  .nav-inner { overflow-x: auto; justify-content: flex-start; }
  .nav-link { padding: 14px 16px; white-space: nowrap; }

  .hero {
    min-height: 390px;
    padding: 34px 25px;
    background: linear-gradient(150deg, #111519 0%, #171b1f 75%, #ffd21c 75%);
  }
  .hero h1 { font-size: 38px; }
  .hero-art { right: -140px; top: 100px; opacity: .25; }

  .section { padding-top: 38px; }
  .section-heading { align-items: center; }

  .toolbar { flex-direction: column; }
  #categorySelect { min-height: 47px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-image { height: 170px; }
  .product-info { padding: 11px; }
  .product-name { font-size: 14px; }
  .price { font-size: 19px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
