* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f6f7f9;
  color: #1f2937;
}

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

.topbar {
  background: #111827;
  color: #e5e7eb;
  height: 38px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

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

.main-header {
  background: #fff;
  padding: 22px 42px;
  display: grid;
  grid-template-columns: 260px 1fr 310px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #92400e, #d97706);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  font-size: 24px;
}

.logo strong {
  display: block;
  font-size: 22px;
}

.logo small {
  color: #6b7280;
}

.search-box {
  display: flex;
  border: 2px solid #d97706;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.search-box select,
.search-box input {
  border: 0;
  padding: 15px;
  outline: 0;
}

.search-box select {
  background: #fff7ed;
  width: 170px;
}

.search-box input {
  flex: 1;
  font-size: 15px;
}

.search-box button,
.product-bottom button,
.primary,
.seller-btn,
.seller-banner a {
  background: #d97706;
  color: white;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.search-box button {
  padding: 0 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 700;
}

.seller-btn {
  padding: 12px 16px;
  border-radius: 12px;
}

.cart {
  background: #111827;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
}

.cart b {
  background: #f59e0b;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 4px;
}

.category-nav {
  background: #fff;
  padding: 14px 42px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: #374151;
}

main {
  max-width: 1360px;
  margin: auto;
  padding: 28px 30px 50px;
}

.hero-commerce {
  display: grid;
  grid-template-columns: 1.5fr 420px;
  gap: 26px;
  background: radial-gradient(circle at top right, #fbbf24, #92400e 45%, #111827);
  color: white;
  border-radius: 28px;
  padding: 44px;
  min-height: 390px;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 750px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  color: #f3f4f6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.primary,
.secondary {
  padding: 15px 22px;
  border-radius: 14px;
  display: inline-block;
}

.secondary {
  background: white;
  color: #111827;
  font-weight: 800;
}

.deal-card {
  background: rgba(255,255,255,.95);
  color: #111827;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.deal-label {
  background: #111827;
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
}

.product-visual {
  height: 190px;
  border-radius: 20px;
  margin: 18px 0;
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  position: relative;
  overflow: hidden;
}

.product-visual::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 34px;
  height: 64px;
  border-radius: 26px 26px 12px 12px;
  background: rgba(17,24,39,.72);
  box-shadow: 0 30px 0 rgba(17,24,39,.25);
}

.sofa { background: linear-gradient(135deg, #fed7aa, #fb923c); }
.p1 { background: linear-gradient(135deg, #f3e8ff, #a855f7); }
.p2 { background: linear-gradient(135deg, #dbeafe, #3b82f6); }
.p3 { background: linear-gradient(135deg, #dcfce7, #22c55e); }
.p4 { background: linear-gradient(135deg, #fee2e2, #ef4444); }
.p5 { background: linear-gradient(135deg, #fef3c7, #f59e0b); }
.p6 { background: linear-gradient(135deg, #e0e7ff, #6366f1); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 36px;
}

.stats div {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.stats strong {
  display: block;
  font-size: 26px;
  color: #92400e;
}

.stats span {
  color: #6b7280;
  font-weight: 700;
}

.section-title,
.products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title h2,
.products-head h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.section-title p,
.products-head p {
  margin: 0;
  color: #6b7280;
}

.section-title a {
  color: #d97706;
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.cat-card {
  background: white;
  padding: 22px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  font-size: 24px;
}

.cat-card b {
  font-size: 16px;
}

.cat-card span {
  color: #6b7280;
  font-size: 13px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filters,
.product-card,
.system-card {
  background: white;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.filters {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 130px;
}

.filters h3 {
  margin-top: 0;
}

.filters label {
  display: block;
  margin: 14px 0;
  color: #374151;
  font-weight: 700;
}

.filters h4 {
  margin: 24px 0 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
}

.range {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706 60%, #e5e7eb 60%);
  margin-top: 10px;
}

.filters select,
.products-head select {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
}

.info-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 16px;
  border-radius: 16px;
  margin-top: 24px;
}

.info-box p {
  margin-bottom: 0;
  color: #6b7280;
  line-height: 1.5;
}

.products-area {
  min-width: 0;
}

.products-head select {
  width: 220px;
}

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

.product-card {
  padding: 16px;
  position: relative;
  transition: .2s;
}

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

.promoted {
  outline: 2px solid #f59e0b;
}

.tag {
  position: absolute;
  top: 26px;
  left: 26px;
  background: #f59e0b;
  color: #111827;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  z-index: 2;
}

.tag.normal {
  background: #111827;
  color: white;
}

.product-card h3 {
  margin: 4px 0 8px;
}

.store {
  color: #6b7280;
  margin: 0 0 10px;
}

.rating {
  color: #f59e0b;
  font-weight: 800;
  margin-bottom: 14px;
}

.rating span {
  color: #374151;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-bottom strong {
  font-size: 22px;
}

.product-bottom button {
  padding: 11px 14px;
  border-radius: 12px;
}

.system-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.system-card {
  padding: 28px;
}

.system-card.dark {
  background: #111827;
  color: white;
}

.system-card h2 {
  margin-top: 0;
}

.system-card li {
  margin: 12px 0;
  line-height: 1.5;
}

.seller-banner {
  margin-top: 34px;
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
  border-radius: 26px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seller-banner h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.seller-banner p {
  margin: 0;
  color: #e5e7eb;
}

.seller-banner a {
  padding: 16px 22px;
  border-radius: 14px;
}

footer {
  background: #111827;
  color: #e5e7eb;
  padding: 38px 42px;
  display: flex;
  justify-content: space-between;
}

footer a {
  margin-left: 20px;
}

@media (max-width: 1100px) {
  .main-header,
  .hero-commerce,
  .shop-layout,
  .system-section {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }

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

  .filters {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar,
  .main-header,
  .category-nav,
  footer,
  .seller-banner {
    padding-left: 18px;
    padding-right: 18px;
  }

  main {
    padding: 18px;
  }

  .hero-commerce {
    padding: 26px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .search-box,
  .seller-banner,
  footer {
    flex-direction: column;
    display: flex;
    gap: 14px;
  }

  .category-grid,
  .product-grid,
  .stats {
    grid-template-columns: 1fr;
  }
}
