/*
 * Sale Market â€” Homepage Polish v2
 * Blends: screenshot-1 color energy (yellow, purple, strong gradients)
 *       + screenshot-2 cleaner structure (layout, alignment, spacing)
 * Scope: index.html only â€” hero, categories, flash-sale, features, product grid.
 * Does NOT touch cart, checkout, tracking, admin, or shared header logic.
 */

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   DESIGN TOKENS â€” Marketplace palette
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --hp-yellow:    #ffd400;
  --hp-yellow-dk: #e6bf00;
  --hp-purple:    #6d28d9;
  --hp-purple2:   #7c3aed;
  --hp-purple3:   #312e81;
  --hp-navy:      #111827;
  --hp-navy2:     #1e1b4b;
  --hp-coral:     #ef4444;
  --hp-surface:   #ffffff;
  --hp-bg:        #f6f7fb;
  --hp-text:      #111827;
  --hp-muted:     #6b7280;
  --hp-border:    #e5e7eb;
  --hp-radius:    20px;
  --hp-shadow:    0 10px 28px rgba(15,23,42,.07);
  --hp-shadow-lg: 0 18px 50px rgba(15,23,42,.13);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   PAGE BACKGROUND
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.market-body {
  background: var(--hp-bg) !important;
  font-family: Inter, Arial, sans-serif !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   HEADER POLISH â€” yellow accent for search, stronger logo mark
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Logo mark: gradient yellowâ†’orange like screenshot 1 */
.market-logo__mark {
  background: linear-gradient(135deg, var(--hp-yellow), #fb923c) !important;
  color: #111827 !important;
  box-shadow: 0 6px 18px rgba(251,146,60,.28) !important;
  border-radius: 12px !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.market-logo > span:last-child {
  color: #111827 !important;
  font-weight: 900 !important;
  font-size: 19px !important;
  letter-spacing: -.3px !important;
}
.market-logo:hover > span:last-child { color: var(--hp-purple) !important; }

/* Catalog button: purple accent */
.market-catalog-btn {
  background: #f3e8ff !important;
  color: var(--hp-purple) !important;
  border-color: #e9d5ff !important;
  font-weight: 800 !important;
}
.market-catalog-btn:hover {
  background: var(--hp-purple) !important;
  color: #fff !important;
  border-color: var(--hp-purple) !important;
}

/* Search bar: yellow accent border & button */
.market-search {
  border: 2px solid var(--hp-yellow) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(255,212,0,.18) !important;
  background: #fff !important;
}
.market-search:focus-within {
  border-color: var(--hp-yellow) !important;
  box-shadow: 0 6px 20px rgba(255,212,0,.28) !important;
}
.market-search input {
  background: transparent !important;
}
.market-search button {
  background: var(--hp-yellow) !important;
  color: var(--hp-navy) !important;
  font-size: 16px !important;
  padding: 0 20px !important;
}
.market-search button:hover {
  background: var(--hp-yellow-dk) !important;
}

/* Action buttons: cleaner icons */
.market-action {
  color: var(--hp-navy) !important;
  font-weight: 700 !important;
}
.market-action:hover {
  background: #f3e8ff !important;
  color: var(--hp-purple) !important;
}

/* Cart badge */
.market-cart-tip,
.market-header .js-cart-count {
  background: var(--hp-coral) !important;
}

/* Remove sm-header if somehow still present */
.sm-header { display: none !important; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€

/* ──────────────────────────────────────────────────────────────
   SM-HERO — Clean 2-column marketplace hero (no legacy conflicts)
   Uses sm-hero-* classes which do NOT appear in marketplace-upgrade.css
────────────────────────────────────────────────────────────── */

/* Outer section wrapper */
.sm-hero-section {
  padding: 18px 0 22px;
  background: linear-gradient(180deg, #fff 0%, #f7f3ff 100%);
}

/* Inner: constrained width, no overflow */
.sm-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The card: single column layout (product panel removed) */
.sm-hero-card-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 320px;
  padding: 48px 52px;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 44%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15,23,42,.18);
  overflow: hidden;
  position: relative;
}

/* Decorative glow — top-right only, capped size */
.sm-hero-card-grid::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,212,0,.20);
  filter: blur(5px);
  pointer-events: none;
  z-index: 0;
}

/* ── Left: text column ───────────────────────────── */
.sm-hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sm-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  width: fit-content;
}
.sm-hero-kicker i { color: #ffd400; }

.sm-hero-title {
  font-size: 42px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 14px;
  color: #ffffff;
}
.sm-hero-brand { color: #ffd400; }

.sm-hero-subtitle {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.76);
  margin: 0 0 22px;
  font-weight: 400;
  max-width: 460px;
}

.sm-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.sm-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
  border: 0;
}
.sm-hero-btn--primary {
  background: #ffd400;
  color: #111827;
  box-shadow: 0 8px 24px rgba(255,212,0,.28);
}
.sm-hero-btn--primary:hover {
  background: #e6bf00;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,212,0,.38);
}
.sm-hero-btn--outline {
  background: rgba(255,255,255,.12);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.32);
}
.sm-hero-btn--outline:hover {
  background: rgba(255,255,255,.20);
  color: #ffffff;
  border-color: rgba(255,255,255,.5);
}

/* Hero product preview panel — REMOVED per user request */
.sm-hero-preview {
  display: none !important;
}
.hero-preview-wrap {
  display: none !important;
}

/* White panel */
.hero-preview-wrap {
  background: rgba(255,255,255,.95);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* 2×2 grid — strictly contained */
.hero-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  width: 100%;
  opacity: 1;
  transition: opacity 200ms ease;
}
.hero-preview-grid--fade-out { opacity: 0 !important; }
.hero-preview-grid--fade-in  { opacity: 1 !important; }

/* Individual product card */
.hero-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #111827;
  cursor: pointer;
  border: 1px solid #efefef;
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  min-width: 0;
}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,23,42,.16);
  color: #111827;
}

/* Fixed image height — prevents overflow */
.hero-card__img-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.hero-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}
.hero-card:hover .hero-card__img-wrap img { transform: scale(1.05); }

.hero-card__info {
  padding: 8px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-card__name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.hero-card__price-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}
.hero-card__price {
  font-size: 11.5px;
  font-weight: 900;
  color: #ef4444;
  white-space: nowrap;
}
.hero-card__old-price {
  font-size: 10px;
  color: #9ca3af;
  text-decoration: line-through;
  white-space: nowrap;
}

/* Skeleton state */
.hero-card--skeleton { pointer-events: none; }
.hero-card__skeleton-img {
  width: 100%;
  height: 110px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400% 100%;
  animation: hero-shimmer 1.4s ease infinite;
}
.hero-card__skeleton-line {
  height: 10px;
  margin: 8px 9px 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400% 100%;
  animation: hero-shimmer 1.4s ease infinite;
}
.hero-card__skeleton-price {
  height: 9px;
  width: 55%;
  margin: 0 9px 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400% 100%;
  animation: hero-shimmer 1.4s ease infinite;
}
@keyframes hero-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0    50%; }
}

/* Dot indicators */
.hero-preview-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 180ms ease;
}
.hero-dot:hover     { background: rgba(0,0,0,.32); }
.hero-dot--active   { width: 20px; background: #ffd400; }

/* Card entry animation (staggered, fade-up only) */
@keyframes hero-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-card--animate {
  animation: hero-card-in 280ms ease both;
}
.hero-card--animate:nth-child(1) { animation-delay: 0ms; }
.hero-card--animate:nth-child(2) { animation-delay: 120ms; }
.hero-card--animate:nth-child(3) { animation-delay: 240ms; }
.hero-card--animate:nth-child(4) { animation-delay: 360ms; }

/* ── sm-hero responsive ──────────────────────────── */
@media (max-width: 1199px) {
  .sm-hero-card-grid {
    grid-template-columns: minmax(0,1fr) minmax(260px, 360px);
    gap: 28px;
    padding: 36px 36px;
    min-height: 340px;
  }
  .sm-hero-title { font-size: 36px; }
  .hero-card__img-wrap,
  .hero-card__skeleton-img { height: 96px; }
}

@media (max-width: 991px) {
  .sm-hero-section { padding: 14px 0 16px; }
  .sm-hero-card-grid {
    grid-template-columns: 1fr;   /* stack vertically */
    gap: 20px;
    padding: 30px 24px 24px;
    min-height: auto;
  }
  .sm-hero-title { font-size: 30px; }
  .sm-hero-subtitle { max-width: 100%; }
  /* On tablet: preview shows 4 cards in a row */
  .hero-preview-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
  }
  .hero-card__img-wrap,
  .hero-card__skeleton-img { height: 86px; }
  .hero-preview-wrap { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .sm-hero-section { padding: 8px 0 12px; }
  .sm-hero-inner { padding: 0 12px; }
  .sm-hero-card-grid {
    padding: 24px 18px 20px;
    border-radius: 18px;
    gap: 16px;
  }
  .sm-hero-title { font-size: 24px; letter-spacing: -.6px; }
  .sm-hero-subtitle { font-size: 13px; margin-bottom: 18px; }
  .sm-hero-actions { flex-direction: column; }
  .sm-hero-btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 13px; }
  /* Mobile: show only 2 cards */
  .hero-preview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .hero-preview-grid .hero-card:nth-child(n+3) { display: none; }
  .hero-card__img-wrap,
  .hero-card__skeleton-img { height: 80px; }
  .hero-card__name { font-size: 10px; }
  .hero-card__price { font-size: 11px; }
  .hero-preview-wrap { border-radius: 16px; padding: 12px; }
}

@media (max-width: 479px) {
  .sm-hero-card-grid { padding: 20px 14px 18px; border-radius: 14px; }
  .sm-hero-title { font-size: 22px; }
  .hero-card__img-wrap,
  .hero-card__skeleton-img { height: 72px; }
}

   SECTIONS â€” spacing & containers
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.market-section {
  padding: 48px 0 !important;
}
.market-hero + .market-section {
  padding-top: 40px !important;
}
.market-section .container-fluid {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.market-section-title {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

.market-section-title h2,
.market-section-title h4 {
  font-size: 30px !important;
  font-weight: 950 !important;
  letter-spacing: -.8px !important;
  margin: 0 !important;
  color: var(--hp-navy) !important;
}
.market-section-title p {
  margin: 6px 0 0 !important;
  color: var(--hp-muted) !important;
  font-size: 14px !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   CATEGORY CARDS â€” more colorful and engaging
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.market-category-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 14px !important;
  /* Never allow wrapping — always exactly 6 columns on desktop */
  grid-auto-rows: auto !important;
}

/* Hide any category cards beyond the first 6 on desktop */
.market-category-grid > .market-category:nth-child(n+7) {
  display: none !important;
}

.market-category {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-decoration: none !important;
  background: var(--hp-surface) !important;
  border-radius: 20px !important;
  padding: 18px 15px 16px !important;
  color: var(--hp-navy) !important;
  box-shadow: var(--hp-shadow) !important;
  border: 1px solid var(--hp-border) !important;
  transition: all .22s ease !important;
  min-height: 165px !important;
  position: relative !important;
  overflow: hidden !important;
}

.market-category:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--hp-shadow-lg) !important;
  border-color: #e9d5ff !important;
  color: var(--hp-purple) !important;
}
.market-category:hover img {
  transform: scale(1.06) !important;
}

.market-category img {
  width: 78px !important;
  height: 78px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  display: block !important;
  margin-bottom: 13px !important;
  background: #f3f4f6 !important;
  flex-shrink: 0 !important;
  transition: transform .22s ease !important;
}

.market-category h5 {
  font-size: 14px !important;
  font-weight: 900 !important;
  margin: 0 0 5px !important;
  color: inherit !important;
  line-height: 1.25 !important;
}

.market-category p {
  font-size: 12px !important;
  color: var(--hp-muted) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   FLASH SALE BANNER â€” colorful gradient, premium feel
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#flash-sale.market-section {
  padding-top: 0 !important;
  padding-bottom: 44px !important;
}

.market-strip {
  background: linear-gradient(90deg,
    #6d28d9 0%,
    #7c3aed 35%,
    #ec4899 72%,
    #fb923c 100%) !important;
  border-radius: 26px !important;
  padding: 26px 30px !important;
  box-shadow: 0 18px 50px rgba(109,40,217,.22) !important;
  overflow: hidden !important;
  position: relative !important;
  border: 0 !important;
}

/* Circular glow overlay â€” brings back the screenshot-1 feel */
.market-strip::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: -50px !important;
  top: -80px !important;
  width: 260px !important;
  height: 260px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.18) !important;
  pointer-events: none !important;
}
.market-strip::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 0 !important;
  background: none !important;
}

.market-strip__inner {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.market-strip h3 {
  font-size: 24px !important;
  font-weight: 950 !important;
  margin: 0 0 5px !important;
  color: #ffffff !important;
  letter-spacing: -.3px !important;
}
.market-strip p {
  margin: 0 !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 14px !important;
}

/* Timer boxes */
.market-timer {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}
.market-timer span {
  display: grid !important;
  place-items: center !important;
  min-width: 54px !important;
  height: 54px !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 14px !important;
  font-weight: 950 !important;
  font-size: 20px !important;
  color: #ffffff !important;
}

/* Flash sale CTA: white button */
.market-strip .market-btn--white {
  background: #ffffff !important;
  color: var(--hp-purple) !important;
  border: 0 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
  font-weight: 900 !important;
}
.market-strip .market-btn--white:hover {
  background: var(--hp-yellow) !important;
  color: var(--hp-navy) !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   PRODUCTS SECTION
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.market-products-bg {
  background: linear-gradient(180deg, #f6f7fb 0%, #fff 100%) !important;
}

body.market-body .product__item {
  border-radius: 20px !important;
  border: 1px solid var(--hp-border) !important;
  box-shadow: var(--hp-shadow) !important;
  transition: all .22s ease !important;
}
body.market-body .product__item:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--hp-shadow-lg) !important;
}
body.market-body .product__item__pic {
  height: 240px !important;
}
body.market-body .product__item__pic .label {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  padding: 5px 10px !important;
  font-weight: 950 !important;
}
body.market-body .product__price {
  color: var(--hp-coral) !important;
  font-weight: 950 !important;
  font-size: 17px !important;
}
body.market-body .link-btn {
  background: var(--hp-navy) !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
}
body.market-body .link-btn:hover {
  background: var(--hp-purple) !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   TRUST / FEATURES
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.market-features {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
}
.market-feature {
  background: var(--hp-surface) !important;
  border: 1px solid var(--hp-border) !important;
  border-radius: 20px !important;
  padding: 20px 18px !important;
  display: flex !important;
  gap: 13px !important;
  align-items: flex-start !important;
  box-shadow: var(--hp-shadow) !important;
  transition: box-shadow .2s ease, transform .2s ease !important;
}
.market-feature:hover {
  box-shadow: var(--hp-shadow-lg) !important;
  transform: translateY(-2px) !important;
}
.market-feature i {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: #f3e8ff !important;
  color: var(--hp-purple) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  flex: 0 0 auto !important;
}
.market-feature h6 {
  margin: 0 0 5px !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  color: var(--hp-navy) !important;
}
.market-feature p {
  margin: 0 !important;
  color: var(--hp-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   SKELETON LOADERS
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sm-skeleton {
  background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 50%, #eef1f4 75%) !important;
  background-size: 400% 100% !important;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE â€” Tablet (â‰¤1199px)
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1199px) {
  .market-hero-card {
    padding: 0 !important;
    min-height: 360px !important;
  }
  .market-hero-card > div:first-child {
    padding: 32px 32px !important;
    width: 55% !important;
  }
  .market-title { font-size: 40px !important; }
  .market-hero-visual { max-width: 45% !important; padding: 16px 18px 16px 6px !important; }
  .market-category-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .market-features { grid-template-columns: repeat(2, 1fr) !important; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE â€” Tablet portrait (â‰¤991px)
   Switch to column layout: text top, preview bottom
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 991px) {
  .market-hero { padding: 16px 0 !important; }
  .market-hero-card {
    flex-direction: column !important;
    min-height: auto !important;
    border-radius: 22px !important;
  }
  .market-hero-card > div:first-child {
    width: 100% !important;
    padding: 30px 28px 20px !important;
  }
  .market-title { font-size: 34px !important; letter-spacing: -1px !important; }
  .market-subtitle { font-size: 14px !important; }
  .market-hero-visual {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 20px 20px !important;
  }
  .market-section .container-fluid {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE â€” Mobile (â‰¤767px)
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 767px) {
  .market-hero { padding: 10px 0 !important; }

  .market-hero-card {
    flex-direction: column !important;
    min-height: auto !important;
    border-radius: 16px !important;
  }
  .market-hero-card > div:first-child {
    width: 100% !important;
    padding: 26px 18px 16px !important;
  }
  .market-title { font-size: 26px !important; letter-spacing: -.6px !important; }
  .market-subtitle { font-size: 13px !important; max-width: 100% !important; margin-bottom: 20px !important; }
  .market-hero-visual {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 14px 18px !important;
  }

  /* CTA buttons stack */
  .market-hero-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .market-hero-actions .market-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Category grid: 2 cols */
  .market-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .market-category { min-height: 145px !important; padding: 14px !important; }
  .market-category img { width: 58px !important; height: 58px !important; }

  /* Flash sale */
  .market-strip { padding: 20px 16px !important; border-radius: 18px !important; }
  .market-strip h3 { font-size: 18px !important; }
  .market-strip__inner { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  .market-timer span { min-width: 46px !important; height: 46px !important; font-size: 17px !important; }

  /* Features */
  .market-features { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* Sections */
  .market-section { padding: 36px 0 !important; }
  .market-section .container-fluid { padding-left: 14px !important; padding-right: 14px !important; }
  .market-section-title h2, .market-section-title h4 { font-size: 22px !important; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RESPONSIVE â€” Very small (â‰¤479px)
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 479px) {
  .market-title { font-size: 24px !important; }
  .market-category-grid { grid-template-columns: 1fr 1fr !important; }
  .market-hero-card { padding: 22px 16px 22px !important; }
}


/* ──────────────────────────────────────────────────────────────
   LIVE HERO PRODUCT PREVIEW
   hero-preview-wrap is now a FLEX child of .market-hero-card
   — no position:absolute — so it never overflows the hero.
────────────────────────────────────────────────────────────── */

/* Hide legacy static phone/mini-grid elements */
.market-phone,
.market-phone__screen,
.market-mini-grid,
.market-mini-product {
  display: none !important;
}

/* White panel container — the marketplace widget */
.hero-preview-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;       /* hard clip — nothing escapes */
}

/* 2×2 grid — fully inside the panel */
.hero-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  width: 100%;
  opacity: 1;
  transition: opacity 200ms ease;
}

.hero-preview-grid--fade-out { opacity: 0 !important; }
.hero-preview-grid--fade-in  { opacity: 1 !important; }

/* ── Product card ───────────────────────────────────────── */
.hero-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #111827;
  cursor: pointer;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  min-width: 0;
}

.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  color: #111827;
}

/* Fixed-height image — critical for no overflow */
.hero-card__img-wrap {
  position: relative;
  width: 100%;
  height: 90px;     /* fixed px — NOT aspect-ratio which caused expansion */
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.hero-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}

.hero-card:hover .hero-card__img-wrap img {
  transform: scale(1.05);
}

/* Card info */
.hero-card__info {
  padding: 6px 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hero-card__name {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.hero-card__price-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  flex-wrap: nowrap;
}

.hero-card__price {
  font-size: 11px;
  font-weight: 900;
  color: #ef4444;
  white-space: nowrap;
}

.hero-card__old-price {
  font-size: 10px;
  color: #9ca3af;
  text-decoration: line-through;
  white-space: nowrap;
}

/* ── Skeleton cards ─────────────────────────────────────── */
.hero-card--skeleton { pointer-events: none; }

.hero-card__skeleton-img {
  width: 100%;
  height: 90px;
  background: linear-gradient(90deg,
    rgba(220,220,220,.5) 25%,
    rgba(235,235,235,.6) 50%,
    rgba(220,220,220,.5) 75%);
  background-size: 400% 100%;
  animation: hero-shimmer 1.4s ease infinite;
}

.hero-card__skeleton-line {
  height: 10px;
  margin: 8px 8px 3px;
  border-radius: 5px;
  background: linear-gradient(90deg,
    rgba(220,220,220,.5) 25%,
    rgba(235,235,235,.6) 50%,
    rgba(220,220,220,.5) 75%);
  background-size: 400% 100%;
  animation: hero-shimmer 1.4s ease infinite;
}

.hero-card__skeleton-price {
  height: 9px;
  width: 50%;
  margin: 0 8px 7px;
  border-radius: 5px;
  background: linear-gradient(90deg,
    rgba(220,220,220,.5) 25%,
    rgba(235,235,235,.6) 50%,
    rgba(220,220,220,.5) 75%);
  background-size: 400% 100%;
  animation: hero-shimmer 1.4s ease infinite;
}

@keyframes hero-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0    50%; }
}

/* ── Dot indicators ─────────────────────────────────────── */
.hero-preview-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 180ms ease;
}
.hero-dot:hover    { background: rgba(0,0,0,.35); }
.hero-dot--active  { width: 20px; background: #ffd400; }

/* ──────────────────────────────────────────────────────────────
   PREVIEW RESPONSIVE
────────────────────────────────────────────────────────────── */

/* Tablet ≤1199px: slightly shorter images */
@media (max-width: 1199px) {
  .hero-card__img-wrap     { height: 80px; }
  .hero-card__skeleton-img { height: 80px; }
  .hero-preview-wrap       { padding: 12px; }
}

/* Tablet portrait ≤991px: 4-in-a-row below hero text */
@media (max-width: 991px) {
  .hero-preview-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
  }
  .hero-card__img-wrap     { height: 82px; }
  .hero-card__skeleton-img { height: 82px; }
  .hero-preview-wrap { border-radius: 18px; max-width: 600px; margin: 0 auto; }
}

/* Mobile ≤767px: 2 cards only, compact */
@media (max-width: 767px) {
  .hero-preview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  /* Hide cards 3 & 4 to keep it compact on mobile */
  .hero-preview-grid .hero-card:nth-child(n+3) { display: none; }
  .hero-card__skeleton-img:nth-child(n+3) { display: none; }

  .hero-card__img-wrap     { height: 76px; }
  .hero-card__skeleton-img { height: 76px; }
  .hero-card__name         { font-size: 10px; }
  .hero-card__price        { font-size: 10.5px; }
  .hero-preview-wrap       { padding: 10px; border-radius: 14px; }
}

@media (max-width: 479px) {
  .hero-card__img-wrap     { height: 68px; }
  .hero-card__skeleton-img { height: 68px; }
}


/* ──────────────────────────────────────────────────────────────
   SINGLE-PRODUCT HERO CAROUSEL  (.hsc)
   Completely replaces the old 2×2 hero-preview-grid.
   All styles use the .hsc prefix — no conflict with anything else.
────────────────────────────────────────────────────────────── */

/* Panel wrapper — white card, contained inside .sm-hero-preview */
.hero-preview-wrap {
  background: rgba(255,255,255,.96);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Card slot — fixed height so hero never jumps */
.hsc {
  width: 100%;
  min-height: 280px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f6f9;
}

/* Clickable card link */
.hsc__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #111827;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15,23,42,.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.hsc__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,23,42,.16);
  color: #111827;
}

/* Image */
.hsc__img-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.hsc__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
  border-radius: 0;
}
.hsc__link:hover .hsc__img-wrap img { transform: scale(1.04); }

.hsc__img-wrap--empty img { object-fit: contain; padding: 24px; }

/* Info body */
.hsc__body {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Category badge */
.hsc__badge {
  display: inline-block;
  padding: 3px 10px;
  background: #f3e8ff;
  color: #6d28d9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

/* Product name */
.hsc__name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price row */
.hsc__price-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
.hsc__price {
  font-size: 15px;
  font-weight: 900;
  color: #ef4444;
  white-space: nowrap;
}
.hsc__old {
  font-size: 11.5px;
  color: #9ca3af;
  text-decoration: line-through;
  white-space: nowrap;
}

/* "Ko'rish" arrow */
.hsc__cta {
  font-size: 12.5px;
  font-weight: 700;
  color: #6d28d9;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.hsc__cta i { font-size: 11px; }

/* ── Entry animation ────────────────────────────────────── */
@keyframes hsc-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hsc--in .hsc__link {
  animation: hsc-in 320ms ease both;
}

/* ── Skeleton ────────────────────────────────────────────── */
.hsc__skeleton { pointer-events: none; background: #fff; }
.hsc__skel-img {
  width: 100%;
  height: 190px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400% 100%;
  animation: hsc-shimmer 1.4s ease infinite;
}
.hsc__skel-line {
  height: 14px;
  border-radius: 7px;
  margin: 14px 16px 6px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400% 100%;
  animation: hsc-shimmer 1.4s ease infinite;
}
.hsc__skel-price {
  height: 11px;
  width: 40%;
  border-radius: 6px;
  margin: 0 16px 16px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400% 100%;
  animation: hsc-shimmer 1.4s ease infinite;
}
@keyframes hsc-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0    50%; }
}

/* ── Dots ─────────────────────────────────────────────────── */
.hero-preview-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 2px 0;
  flex-wrap: wrap;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 180ms ease;
}
.hero-dot:hover    { background: rgba(0,0,0,.32); }
.hero-dot--active  { width: 24px; background: #ffd400; }

/* ── Responsive ─────────────────────────────────────────── */

/* Large tablet */
@media (max-width: 1199px) {
  .hsc { min-height: 260px; }
  .hsc__img-wrap, .hsc__skel-img { height: 175px; }
}

/* Tablet portrait — preview stacks below text */
@media (max-width: 991px) {
  .hsc { min-height: 240px; }
  .hsc__img-wrap, .hsc__skel-img { height: 180px; }
  .hero-preview-wrap { max-width: 380px; margin: 0 auto; }
}

/* Mobile */
@media (max-width: 767px) {
  .hsc { min-height: 210px; }
  .hsc__img-wrap, .hsc__skel-img { height: 160px; }
  .hsc__name { font-size: 13px; }
  .hsc__price { font-size: 14px; }
  .hero-preview-wrap { border-radius: 16px; padding: 12px; }
  .hsc__body { padding: 9px 11px 10px; }
}

@media (max-width: 479px) {
  .hsc__img-wrap, .hsc__skel-img { height: 140px; }
  .hsc__name { font-size: 12px; }
}

/* ── Disable the old 2x2 grid (safety override) ─────────── */
.hero-preview-grid {
  display: none !important;
}
.hero-card, .hero-card--skeleton {
  display: none !important;
}


/* ──────────────────────────────────────────────────────────────
   CATALOG SECTION SCROLL TARGET
   #catalog-section is the anchor for the "Barchasini ko'rish" button.
   scroll-margin-top offsets the scroll so the section title is
   not hidden behind the sticky header on desktop.
────────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

#catalog-section {
  /* Header is ~60px tall on desktop; add 20px extra breathing room */
  scroll-margin-top: 80px;
}

/* On mobile the header is static (scrolls away), so no offset needed */
@media (max-width: 480px) {
  #catalog-section {
    scroll-margin-top: 16px;
  }
}

/* ──────────────────────────────────────────────────────────────
   CATEGORY CARDS — restore visibility on mobile (≤ 768px)
   On desktop we hide cards beyond the 6th.
   On mobile/tablet the layout is a horizontal scroll strip or
   a 2–3 column grid — all cards should remain accessible.
────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Show all category cards — mobile uses a scroll/grid layout */
  .market-category-grid > .market-category:nth-child(n+7) {
    display: flex !important;  /* restore (grid on mobile is flex from mobile-premium) */
  }
}
