/* ============================================================
   JMK Creation — Homepage Styles
   Online Marketplace Demo © 2026
   ============================================================ */

/* ── Mobile nav link ────────────────────────────────────────── */
.mobile-nav-link{display:block;padding:10px 14px;border-radius:8px;color:var(--gray-700);font-size:14px;font-weight:500;transition:.2s;text-decoration:none}
.mobile-nav-link:hover{background:var(--primary-bg);color:var(--primary);padding-left:20px}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.hero-wrap {
  background: var(--gray-100);
  padding: 12px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 12px;
  align-items: stretch;
}

/* ── Category Sidebar ──────────────────────────────────────── */
.hero-cat-sidebar {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hcs-title {
  background: var(--primary);
  color: white;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hcs-list { list-style: none; }

.hcs-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
}

.hcs-list li a:hover {
  background: var(--primary-bg);
  color: var(--primary);
  padding-left: 18px;
}

.hcs-icon { font-size: 15px; flex-shrink: 0; }
.hcs-arrow { margin-left: auto; color: var(--gray-300); font-size: 10px; }

/* ── Hero Slider ───────────────────────────────────────────── */
.hero-slider-area {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  line-height: 0;
  font-size: 0;
  background: var(--gray-200);
  align-self: flex-start;
}

.hero-slider {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero-slide {
  display: none;
  width: 100%;
  line-height: 0;
}

.hero-slide.active { display: block; }

.hero-slide-link {
  display: block;
  width: 100%;
  line-height: 0;
  font-size: 0;
}

.hero-slide-link img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Prev / Next arrows ────────────────────────────────────── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.90);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray-700);
  transition: var(--transition-fast);
  line-height: normal;
}

.slider-arrow:hover { background: var(--primary); color: white; }
.slider-prev { left: 8px; }
.slider-next { right: 8px; }

/* ── Dots ──────────────────────────────────────────────────── */
.hero-slider-area .hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
  line-height: normal;
}

.hero-dot {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.55);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.hero-dot.active {
  width: 22px;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ── Mini Banners ──────────────────────────────────────────── */
.hero-mini-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-banner {
  flex: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 115px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.mini-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.mini-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  transition: .4s;
}

.mini-banner:hover img { opacity: .5; transform: scale(1.05); }

.mini-banner-text {
  position: relative;
  z-index: 2;
  padding: 10px 12px;
  width: 100%;
}

.mini-banner-text small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.mini-banner-text span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

/* ══════════════════════════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════════════════════════ */
.trust-strip {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.trust-item:hover { background: var(--primary-bg); }

.trust-icon {
  width: 42px; height: 42px;
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary); flex-shrink: 0;
}

.trust-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--gray-800); }
.trust-text span   { font-size: 11px; color: var(--gray-500); }

/* ══════════════════════════════════════════════════════════════
   CATEGORY ICON ROW
══════════════════════════════════════════════════════════════ */
.cat-icon-section {
  background: white;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cat-icon-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.cat-icon-row::-webkit-scrollbar { display: none; }

.cat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1 0 80px;
  min-width: 80px;
  text-decoration: none;
  padding: 10px 6px;
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.cat-icon-item:hover { background: var(--primary-bg); }

.cat-icon-circle {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition-fast);
  overflow: hidden;
}

/* image inside circle */
.cat-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cat-icon-item:hover .cat-icon-circle img { transform: scale(1.12); }

/* emoji circle (no image) */
.cat-icon-circle--emoji {
  font-size: 24px;
}

.cat-icon-item:hover .cat-icon-circle {
  background: var(--primary-bg);
  transform: scale(1.1);
}

.cat-icon-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   SECTION BLOCKS
══════════════════════════════════════════════════════════════ */
.section-block {
  padding: 32px 0;
}

.section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
  flex-wrap: wrap;
  gap: 12px;
}

.section-hd-left h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 3px;
  font-family: var(--font-heading);
}

.section-hd-left p {
  font-size: 13px;
  color: var(--gray-400);
  margin: 0;
}

.section-tag-flash {
  display: inline-block;
  background: var(--danger);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.section-hd-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Flash Deals Section ───────────────────────────────────── */
.flash-deals-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-blue) 100%);
}

.flash-deals-section .section-hd { border-bottom-color: rgba(255,255,255,.12); }
.flash-deals-section .section-hd-left h2 { color: white; }
.flash-deals-section .section-hd-left p  { color: rgba(255,255,255,.6); }

/* Countdown Timer */
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 44px;
  border: 1px solid rgba(255,255,255,.15);
}

.cd-num   { font-size: 18px; font-weight: 800; color: white; line-height: 1; font-family: var(--font-heading); }
.cd-label { font-size: 8px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.cd-sep   { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.4); margin-bottom: 10px; }

/* Scroll row */
.products-scroll-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  -webkit-overflow-scrolling: touch;
}

.products-scroll-row::-webkit-scrollbar { height: 4px; }
.products-scroll-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 2px; }

.products-scroll-row .product-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

/* ── Featured Products Grid ────────────────────────────────── */
.products-tab-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.products-tab {
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.products-tab:hover  { background: var(--primary-bg); color: var(--primary); }
.products-tab.active { background: var(--primary); color: white; }

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

/* ── Promo Strip ───────────────────────────────────────────── */
.promo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.promo-strip-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.promo-strip-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.promo-strip-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  transition: .4s;
}

.promo-strip-item:hover img { opacity: .5; transform: scale(1.05); }

.promo-strip-text {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
}

.promo-strip-text small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.promo-strip-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

/* ── Vendors Grid ──────────────────────────────────────────── */
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.vendor-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  text-decoration: none;
  display: block;
}

.vendor-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.vendor-cover { height: 100px; position: relative; overflow: hidden; }

.vendor-cover img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: .4;
  transition: .4s;
}

.vendor-card:hover .vendor-cover img { transform: scale(1.06); opacity: .5; }

.vendor-body { padding: 14px; position: relative; }

.vendor-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 13px;
  border: 3px solid white; box-shadow: var(--shadow-md);
  margin-top: -28px; margin-bottom: 10px;
}

.vendor-name      { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.vendor-category  { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.vendor-stats     { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gray-500); flex-wrap: wrap; }

/* ── Stats Section ─────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--secondary), var(--accent-blue));
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-item { text-align: center; padding: 16px; }
.stat-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.stat-num  { font-size: clamp(1.5rem,2vw,2.25rem); font-weight: 800; color: white; font-family: var(--font-heading); margin-bottom: 6px; line-height: 1; }
.stat-label{ font-size: 12px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-layout          { grid-template-columns: 200px 1fr 180px; }
  .products-grid        { grid-template-columns: repeat(3, 1fr); }
  .vendors-grid         { grid-template-columns: repeat(2, 1fr); }
  .stats-grid           { grid-template-columns: repeat(3, 1fr); }
  .promo-strip          { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-layout          { grid-template-columns: 1fr 160px; }
  .hero-cat-sidebar     { display: none; }
  .products-grid        { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-layout          { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .hero-mini-banners    { flex-direction: row; gap: 8px; }
  .mini-banner          { min-height: 90px; }

  .trust-grid           { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .trust-item           { padding: var(--space-2); flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .trust-icon           { width: 36px; height: 36px; font-size: 15px; }
  .trust-text strong    { font-size: 12px; }
  .trust-text span      { font-size: 10px; }

  .cat-icon-row         { gap: 4px; }
  .cat-icon-item        { min-width: 65px; padding: 8px 4px; }
  .cat-icon-circle      { width: 44px; height: 44px; font-size: 20px; }

  .products-grid        { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vendors-grid         { grid-template-columns: repeat(2, 1fr); }
  .stats-grid           { grid-template-columns: repeat(2, 1fr); }
  .promo-strip          { grid-template-columns: 1fr 1fr; }
  .section-hd           { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .products-grid        { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .promo-strip          { grid-template-columns: 1fr; }
  .stats-grid           { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-grid           { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .hero-mini-banners    { display: none; }
}
