/* ─── Category chips ─────────────────────────────── */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .categories::-webkit-scrollbar { display: none; }
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.14s ease,
    box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.category-chip:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

body.dark .category-chip:hover {
  background: rgba(37, 99, 235, 0.14);
}

.category-chip.active {
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

/* ─── Hero ─────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 30px;
}

.home-search-strip {
  margin-bottom: 24px;
  padding: 18px 20px;
}

.home-search-strip-form {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

.home-search-strip-copy h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.home-search-strip-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-search-strip-fields {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(140px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
}

.home-search-strip-btn {
  min-width: 118px;
  height: 52px;
}

.hero-single-column {
  grid-template-columns: 1fr;
}

.hero-main-banner {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: visible;
}

.hero-banner-shell {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.hero-banner-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-banner-actions {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-banner-actions .btn {
  min-width: 170px;
  backdrop-filter: blur(10px);
}

.home-search-strip-editorial {
  padding: 14px 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 244, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.home-search-strip-editorial .home-search-strip-form {
  grid-template-columns: 1fr;
  gap: 0;
}

.home-search-strip-fields-editorial {
  grid-template-columns: minmax(260px, 2.2fr) minmax(180px, 1fr) minmax(140px, 0.8fr) auto;
}

.hero-minimal {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.hero-editorial {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.hero-main {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.22),
      transparent 26%
    ),
    linear-gradient(135deg, #0f172a, #1d4ed8 55%, #06b6d4);
  color: white;
  border-radius: 34px;
  padding: 42px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-main-minimal {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.98));
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-main-editorial {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72)),
    linear-gradient(135deg, rgba(217, 119, 6, 0.22), transparent 44%),
    url("/images/f2962eb2-de58-4287-baff-3afe2656a6d9.webp") center/cover no-repeat;
  color: #f8fafc;
  border: none;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hero-main-editorial p {
  color: rgba(248, 250, 252, 0.86);
  max-width: 620px;
}

.hero-badge-editorial {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.hero-badge {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.hero-badge-neutral {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.07);
}

.hero h1 {
  font-size: 46px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-aside-minimal {
  gap: 16px;
}

.hero-aside-editorial {
  gap: 18px;
}

.hero-note-card {
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.04), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.hero-editorial-visual {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-editorial-image-wrap {
  position: relative;
  min-height: 290px;
  background: #f4f4f5;
}

.hero-editorial-image {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  display: block;
}

.hero-editorial-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  color: #111827;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-editorial-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.premium-gradient-card-editorial {
  background:
    linear-gradient(145deg, #111827, #1f2937 60%, #374151);
  color: #f8fafc;
}

.premium-gradient-card-editorial .premium-label,
.premium-gradient-card-editorial .premium-text {
  color: rgba(248, 250, 252, 0.76);
}

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

.search-submit-full {
  width: 100%;
  margin-top: 12px;
}

.smart-search-card {
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
}

.smart-search-input,
.smart-search-field {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.smart-search-input:focus,
.smart-search-field:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.smart-search-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.favorite-fab {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
  z-index: 3;
}

.favorite-fab:hover {
  transform: scale(1.04);
}

body.dark .favorite-fab {
  background: rgba(15, 23, 42, 0.88);
  color: white;
}

.product-card .sold-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 3;
}

.product-card-sold .product-title,
.product-card-sold .price {
  opacity: 0.82;
}

@media (max-width: 1100px) {
  .home-search-strip-form,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-editorial {
    grid-template-columns: 1fr;
  }

  .home-search-strip-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-main {
    padding: 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .home-search-strip {
    padding: 16px;
  }

  .home-search-strip-fields {
    grid-template-columns: 1fr;
  }

  .home-search-strip-fields-editorial {
    grid-template-columns: 1fr;
  }

  .home-search-strip-btn {
    width: 100%;
  }

  .hero-main-editorial {
    min-height: 340px;
  }

  .hero-banner-shell,
  .hero-banner-image {
    min-height: 320px;
  }

  .hero-banner-actions {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-main {
    padding: 28px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 26px;
  }

  .favorite-fab {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

@media (max-width: 400px) {
  .hero-main {
    padding: 18px;
  }
}
