/**
 * Kizmio Stores Marketplace - Complete 3-Column Redesign Stylesheet
 * Brand Color: #FA470D | Marketplace Accent: #0F9D72
 */

:root {
  --kzm-stores-orange: #FA470D;
  --kzm-stores-orange-hover: #e03e0a;
  --kzm-stores-green: #0F9D72;
  --kzm-stores-green-hover: #0b7a5a;
  --kzm-stores-surface: #ffffff;
  --kzm-stores-surface-soft: #f8fafc;
  --kzm-stores-border: #e2e8f0;
  --kzm-stores-text: #0f172a;
  --kzm-stores-muted: #64748b;
  --kzm-stores-radius: 16px;
  --kzm-stores-radius-sm: 12px;
  --kzm-stores-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  --kzm-stores-shadow-hover: 0 10px 25px rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   PAGE WRAPPER & 3-COLUMN COMPOSITION
   ========================================================================== */

.stores-marketplace-wrapper {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

@media (min-width: 1200px) {
  .stores-3col-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) 280px !important;
    gap: 20px !important;
    align-items: start !important;
  }
  .stores-col-left,
  .stores-col-center,
  .stores-col-right {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .stores-3col-layout {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
  }
  .stores-col-left,
  .stores-col-center {
    min-width: 0 !important;
    padding: 0 !important;
  }
  .stores-col-right {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 0 !important;
    margin-top: 10px !important;
  }
}

@media (max-width: 991.98px) {
  .stores-3col-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
  }
  .stores-col-left,
  .stores-col-center,
  .stores-col-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   LEFT COLUMN - SIDEBAR NAVIGATION
   ========================================================================== */

.stores-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 1. Identity Card */
.stores-sidebar-identity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--kzm-stores-surface);
  border: 1px solid var(--kzm-stores-border);
  border-radius: var(--kzm-stores-radius);
  box-shadow: var(--kzm-stores-shadow);
}

.stores-sidebar-identity-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: linear-gradient(135deg, #0F9D72 0%, #0B7A5A 100%);
  color: #ffffff;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(15, 157, 114, 0.25);
}

.stores-sidebar-identity-text {
  min-width: 0;
}

.stores-sidebar-identity-sub {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--kzm-stores-green);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stores-sidebar-identity-title {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  color: var(--kzm-stores-text);
  line-height: 1.2;
}

/* 2. Navigation Section */
.stores-sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stores-sidebar-section {
  background: var(--kzm-stores-surface);
  border: 1px solid var(--kzm-stores-border);
  border-radius: var(--kzm-stores-radius);
  padding: 12px;
  box-shadow: var(--kzm-stores-shadow);
}

.stores-sidebar-section-label {
  padding: 4px 8px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--kzm-stores-muted);
  text-transform: uppercase;
}

.stores-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stores-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--kzm-stores-text);
  text-decoration: none !important;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.stores-nav-item:hover {
  background: var(--kzm-stores-surface-soft);
  color: var(--kzm-stores-green);
  transform: translateX(2px);
}

.stores-nav-item.is-active {
  background: rgba(15, 157, 114, 0.08);
  border-color: #0F9D72;
  color: #0B7A5A;
}

.stores-nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  font-size: 13px;
  background: var(--kzm-stores-surface-soft);
  color: var(--kzm-stores-green);
  transition: all 0.16s ease;
}

.stores-nav-item.is-active .stores-nav-icon,
.stores-nav-item:hover .stores-nav-icon {
  background: #0F9D72;
  color: #ffffff;
}

.stores-nav-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stores-nav-info strong {
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.25;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-nav-info small {
  font-size: 10px;
  color: var(--kzm-stores-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-nav-item.is-active .stores-nav-info small {
  color: #0F9D72;
}

/* Add Product Button Card */
.stores-nav-btn-add {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #0F9D72 0%, #0B7A5A 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 157, 114, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stores-nav-btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 157, 114, 0.36);
  color: #ffffff !important;
}

.stores-nav-btn-add-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #ffffff;
}

.stores-nav-btn-add-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stores-nav-btn-add-info strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.stores-nav-btn-add-info small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
}

/* Categories List in Sidebar */
.stores-sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 10px;
  font-size: 11px;
  font-weight: 850;
  color: var(--kzm-stores-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stores-sidebar-section-header i {
  color: var(--kzm-stores-muted);
  font-size: 11px;
}

.stores-sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

.stores-sidebar-cat-list::-webkit-scrollbar {
  width: 4px;
}
.stores-sidebar-cat-list::-webkit-scrollbar-thumb {
  background: var(--kzm-stores-border);
  border-radius: 4px;
}

.stores-cat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--kzm-stores-text);
  transition: all 0.15s ease;
}

.stores-cat-item:hover {
  background: var(--kzm-stores-surface-soft);
  transform: translateX(2px);
}

.stores-cat-item.is-active {
  background: rgba(15, 157, 114, 0.08);
  color: #0F9D72;
  font-weight: 700;
}

.stores-cat-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  font-size: 11px;
}

.stores-cat-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Location Filter Box */
.stores-location-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--kzm-stores-text);
  text-decoration: none !important;
  border-radius: 8px;
  background: var(--kzm-stores-surface-soft);
}
.stores-location-toggle .toggle-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.stores-location-toggle:not(.collapsed) .toggle-arrow {
  transform: rotate(180deg);
}

/* ==========================================================================
   CENTER COLUMN - MAIN MARKETPLACE
   ========================================================================== */

.stores-col-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 1. HERO BANNER */
.stores-banner-hero {
  position: relative;
  min-height: 330px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
}

.stores-banner-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stores-banner-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.stores-banner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 105, 175, 0.90) 0%, rgba(3, 130, 205, 0.70) 36%, rgba(14, 165, 233, 0.25) 54%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

body.night-mode .stores-banner-hero-overlay,
[data-theme="dark"] .stores-banner-hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 36%, rgba(15, 23, 42, 0.30) 54%, rgba(15, 23, 42, 0) 72%);
}

.stores-banner-hero-content {
  position: relative;
  z-index: 3;
  padding: 30px 32px;
  max-width: 620px;
  color: #ffffff;
}

.stores-hero-kizmio-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 12px;
}

.stores-banner-hero-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.stores-banner-hero-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.stores-banner-hero-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.stores-banner-hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.stores-banner-hero-features i {
  color: #38BDF8;
  font-size: 12px;
}

/* Search Box inside Hero */
.stores-hero-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 6px 5px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  max-width: 580px;
}

.stores-hero-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.stores-hero-search-input-wrap i {
  color: #94A3B8;
  font-size: 14px;
}

.stores-hero-search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0f172a;
  padding: 6px 0;
}

.stores-hero-search-input-wrap input::placeholder {
  color: #94A3B8;
}

.stores-hero-search-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  margin: 0 10px;
}

.stores-hero-search-cat-wrap {
  flex: 0 0 auto;
}

.stores-hero-search-cat-wrap select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 6px 8px;
}

.stores-hero-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--kzm-stores-orange);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 3px 10px rgba(250, 71, 13, 0.35);
  white-space: nowrap;
}

.stores-hero-search-btn:hover {
  background: var(--kzm-stores-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(250, 71, 13, 0.45);
}

/* Right Floating elements on hero */
.stores-banner-hero-side {
  position: absolute;
  right: 24px;
  top: 20px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.stores-hero-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stores-hero-flag-badge .stores-hero-mv-flag {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stores-hero-tags-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: auto;
}

.stores-hero-tag {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  color: #1e293b;
  text-decoration: none !important;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.12);
  transition: all 0.16s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stores-hero-tag:hover {
  background: #ffffff;
  color: var(--kzm-stores-orange);
  transform: translateX(-3px);
}

@media (max-width: 991.98px) {
  .stores-banner-hero-side {
    display: none;
  }
  .stores-banner-hero-content {
    max-width: 100%;
    padding: 24px 20px;
  }
}

@media (max-width: 575.98px) {
  .stores-hero-search-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    padding: 8px 12px;
    gap: 8px;
  }
  .stores-hero-search-divider {
    display: none;
  }
  .stores-hero-search-btn {
    justify-content: center;
    border-radius: 10px;
  }
}

/* 2. HORIZONTAL CATEGORY ICONS STRIP */
.stores-cat-strip-section {
  width: 100%;
}

@media (max-width: 767.98px) {
  .stores-cat-strip-section {
    display: none !important;
  }
}

.stores-cat-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stores-cat-strip::-webkit-scrollbar {
  display: none;
}

.stores-cat-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 92px;
  min-width: 92px;
  height: 98px;
  padding: 8px 6px;
  background: var(--kzm-stores-surface);
  border: 1px solid var(--kzm-stores-border);
  border-radius: 16px;
  box-shadow: var(--kzm-stores-shadow);
  text-decoration: none !important;
  color: var(--kzm-stores-text);
  transition: all 0.18s ease;
}

.stores-cat-strip-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--kzm-stores-shadow-hover);
  border-color: #cbd5e1;
}

.stores-cat-strip-item.is-active {
  border-color: var(--kzm-stores-orange);
  background: rgba(250, 71, 13, 0.05);
  box-shadow: 0 4px 14px rgba(250, 71, 13, 0.15);
}

.stores-cat-strip-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  font-size: 17px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease;
}

.stores-cat-strip-item:hover .stores-cat-strip-icon {
  transform: scale(1.08);
}

.stores-cat-strip-name {
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3. PROMOTIONAL CATEGORY BANNERS */
.stores-promo-banners-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stores-promo-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  overflow: hidden;
  padding: 16px 18px;
  min-height: 130px;
  position: relative;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stores-promo-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.stores-promo-banner-card.is-fashion {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border: 1px solid #FECDD3;
}

.stores-promo-banner-card.is-electronics {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border: 1px solid #BAE6FD;
}

.stores-promo-banner-card.is-island {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
}

.stores-promo-banner-content {
  flex: 1;
  min-width: 0;
  z-index: 2;
  padding-right: 10px;
}

.stores-promo-banner-title {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 3px;
}

.is-fashion .stores-promo-banner-title { color: #BE123C; }
.is-electronics .stores-promo-banner-title { color: #0369A1; }
.is-island .stores-promo-banner-title { color: #1E3A8A; }

.stores-promo-banner-sub {
  font-size: 11.5px;
  font-weight: 550;
  margin: 0 0 10px;
}

.is-fashion .stores-promo-banner-sub { color: #9F1239; }
.is-electronics .stores-promo-banner-sub { color: #0284C7; }
.is-island .stores-promo-banner-sub { color: #1D4ED8; }

.stores-promo-banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  text-decoration: none !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.16s ease;
}

.stores-promo-banner-btn.is-pink {
  background: #E11D48;
}
.stores-promo-banner-btn.is-pink:hover {
  background: #BE123C;
}

.stores-promo-banner-btn.is-blue {
  background: #0284C7;
}
.stores-promo-banner-btn.is-blue:hover {
  background: #0369A1;
}

.stores-promo-banner-btn.is-navy {
  background: #2563EB;
}
.stores-promo-banner-btn.is-navy:hover {
  background: #1D4ED8;
}

.stores-promo-banner-img {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stores-promo-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .stores-promo-banners-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 4. FEATURED PRODUCTS & COMMON SECTION STYLES */
.stores-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stores-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.stores-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stores-section-title-wrap i {
  font-size: 16px;
}

.stores-section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  color: var(--kzm-stores-text);
}

.stores-count-badge {
  font-size: 11.5px;
  color: var(--kzm-stores-muted);
  font-weight: 600;
  background: var(--kzm-stores-surface-soft);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--kzm-stores-border);
}

.stores-section-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stores-filter-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stores-tab-link {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--kzm-stores-muted);
  text-decoration: none !important;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.16s ease;
}

.stores-tab-link:hover {
  color: var(--kzm-stores-text);
}

.stores-tab-link.is-active {
  color: var(--kzm-stores-text);
  border-bottom-color: var(--kzm-stores-orange);
  font-weight: 800;
}

.stores-viewall-link {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--kzm-stores-orange);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  transition: transform 0.16s ease;
}

.stores-viewall-link:hover {
  color: var(--kzm-stores-orange-hover);
  transform: translateX(2px);
}

/* PRODUCT CARDS GRID */
.stores-products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1400px) {
  .stores-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1199.98px) {
  .stores-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .stores-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* PRODUCT CARD COMPONENT */
.stores-product-card {
  display: flex;
  flex-direction: column;
  background: var(--kzm-stores-surface);
  border: 1px solid var(--kzm-stores-border);
  border-radius: var(--kzm-stores-radius);
  overflow: hidden;
  box-shadow: var(--kzm-stores-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.stores-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--kzm-stores-shadow-hover);
  border-color: #cbd5e1;
}

.stores-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
}

.stores-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.stores-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.stores-product-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  font-size: 24px;
  gap: 4px;
}
.stores-product-card__placeholder span {
  font-size: 11px;
  font-weight: 600;
}

/* Top Badges */
.stores-product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.stores-product-card__badge.is-discount {
  background: #EF4444;
}

.stores-product-card__badge.is-new {
  background: #10B981;
}

.stores-product-card__badge.is-featured {
  background: #F59E0B;
}

/* Top Right Favorite */
.stores-product-card__fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.16s ease;
}

.stores-product-card__fav-btn:hover {
  background: #ffffff;
  color: #EF4444;
  transform: scale(1.1);
}

.stores-product-card__fav-btn.is-favorited {
  color: #EF4444;
}

/* Card Body */
.stores-product-card__body {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  flex: 1;
}

.stores-product-card__disabled {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e11d48;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stores-product-card__title {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
}

.stores-product-card__title a {
  color: var(--kzm-stores-text);
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.16s ease;
}

.stores-product-card__title a:hover {
  color: var(--kzm-stores-orange);
}

.stores-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
}

.stores-product-card__price strong {
  font-size: 13.5px;
  font-weight: 850;
  color: var(--kzm-stores-orange);
}

.stores-product-card__price del {
  font-size: 11px;
  color: #94a3b8;
}

.stores-product-card__store {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--kzm-stores-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-product-card__store-link {
  color: var(--kzm-stores-muted);
  text-decoration: none !important;
  font-weight: 600;
}

.stores-product-card__store-link:hover {
  color: var(--kzm-stores-text);
}

.stores-product-card__actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.stores-product-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
}

.stores-product-card__rating i {
  font-size: 10.5px;
}

.stores-product-card__cart-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kzm-stores-green);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 11.5px;
  box-shadow: 0 2px 6px rgba(15, 157, 114, 0.3);
  transition: all 0.16s ease;
}

.stores-product-card__cart-btn:hover {
  background: var(--kzm-stores-green-hover);
  transform: scale(1.1);
  color: #ffffff !important;
}

/* 5. POPULAR LOCAL STORES */
.stores-shops-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1400px) {
  .stores-shops-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .stores-shops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stores-shop-pill-card {
  display: flex;
  flex-direction: column;
  background: var(--kzm-stores-surface);
  border: 1px solid var(--kzm-stores-border);
  border-radius: var(--kzm-stores-radius);
  overflow: hidden;
  text-decoration: none !important;
  color: var(--kzm-stores-text);
  box-shadow: var(--kzm-stores-shadow);
  transition: all 0.18s ease;
}

.stores-shop-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kzm-stores-shadow-hover);
  border-color: #cbd5e1;
}

.stores-shop-card-media {
  position: relative;
  width: 100%;
  height: 60px;
  background: #e2e8f0;
}

.stores-shop-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stores-shop-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.stores-shop-avatar-badge {
  position: absolute;
  bottom: -16px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--kzm-stores-green);
  font-size: 14px;
}

.stores-shop-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stores-shop-card-body {
  padding: 20px 12px 10px;
}

.stores-shop-name-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.stores-shop-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--kzm-stores-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-shop-meta {
  font-size: 10.5px;
  color: var(--kzm-stores-muted);
}

/* Empty State Box */
.stores-empty-box {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--kzm-stores-surface);
  border: 1px dashed var(--kzm-stores-border);
  border-radius: var(--kzm-stores-radius);
  text-align: center;
  color: var(--kzm-stores-muted);
}

.stores-empty-box i {
  font-size: 36px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.stores-empty-box h4 {
  font-size: 16px;
  font-weight: 750;
  color: var(--kzm-stores-text);
  margin-bottom: 4px;
}

.stores-empty-box p {
  font-size: 13px;
  margin-bottom: 14px;
}

/* ==========================================================================
   RIGHT COLUMN - PROMOTIONAL / DEALS SIDEBAR
   ========================================================================== */

.stores-col-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 1. Today's Deals Card */
.stores-deals-card {
  background: var(--kzm-stores-surface);
  border: 1px solid var(--kzm-stores-border);
  border-radius: var(--kzm-stores-radius);
  padding: 14px;
  box-shadow: var(--kzm-stores-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stores-deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stores-deals-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 850;
  color: var(--kzm-stores-text);
}

.stores-deals-viewall {
  font-size: 11.5px;
  font-weight: 750;
  color: #0284C7;
  text-decoration: none !important;
}

.stores-deal-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stores-deal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.stores-deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stores-deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  background: #EF4444;
  color: #ffffff;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 850;
  z-index: 2;
}

.stores-deal-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 2;
}

.stores-deal-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--kzm-stores-text);
  text-decoration: none !important;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-deal-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stores-deal-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stores-deal-old {
  font-size: 11.5px;
  color: #94a3b8;
  text-decoration: line-through;
}

.stores-deal-current {
  font-size: 14.5px;
  font-weight: 850;
  color: #EF4444;
}

.stores-deal-cart-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--kzm-stores-green);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(15, 157, 114, 0.3);
  transition: transform 0.16s ease;
}

.stores-deal-cart-btn:hover {
  transform: scale(1.1);
}

.stores-deal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.stores-deal-nav-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--kzm-stores-border);
  background: var(--kzm-stores-surface-soft);
  color: var(--kzm-stores-muted);
  display: grid;
  place-items: center;
  font-size: 9px;
  cursor: pointer;
}

.stores-deal-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stores-deal-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}

.stores-deal-dots .dot.active {
  width: 14px;
  border-radius: 4px;
  background: var(--kzm-stores-green);
}

/* Promotional Banners in Right Sidebar */
.stores-promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--kzm-stores-radius);
  box-shadow: var(--kzm-stores-shadow);
  border: 1px solid transparent;
  transition: transform 0.18s ease;
}

.stores-promo-card:hover {
  transform: translateY(-2px);
}

/* Free Delivery */
.stores-promo-delivery {
  background: linear-gradient(135deg, #FFF1EB 0%, #FFDFD0 100%);
  border-color: #FED7AA;
}

.stores-promo-delivery .stores-promo-icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--kzm-stores-orange);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(250, 71, 13, 0.28);
}

.stores-promo-delivery h4 {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 850;
  color: #9A3412;
}

.stores-promo-delivery p {
  margin: 0;
  font-size: 11px;
  color: #C2410C;
}

/* Support Small Businesses */
.stores-promo-smallbiz {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FDE68A;
}

.stores-promo-smallbiz .stores-promo-icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: #D97706;
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}

.stores-promo-smallbiz h4 {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 850;
  color: #78350F;
}

.stores-promo-smallbiz p {
  margin: 0;
  font-size: 11px;
  color: #92400E;
}

/* Safe & Secure Payments */
.stores-promo-payments {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--kzm-stores-surface);
  border: 1px solid var(--kzm-stores-border);
}

.stores-promo-payments .stores-promo-icon-wrap.is-shield {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ECFDF5;
  color: #10B981;
  font-size: 20px;
  border: 1px solid #A7F3D0;
}

.stores-promo-payments h4 {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 850;
  color: var(--kzm-stores-text);
}

.stores-promo-payments p {
  margin: 0;
  font-size: 11px;
  color: var(--kzm-stores-muted);
}

.stores-payment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid var(--kzm-stores-border);
}

.badge-mvr {
  font-size: 11px;
  font-weight: 900;
  color: #DC2626;
  letter-spacing: 0.04em;
}

.badge-visa {
  font-size: 13px;
  font-weight: 900;
  color: #1E3A8A;
  font-style: italic;
}

.badge-mc {
  display: inline-flex;
  align-items: center;
}
.badge-mc .circle-red {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #EB001B;
}
.badge-mc .circle-yellow {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F79E1B;
  margin-left: -6px;
}

.badge-tether {
  font-size: 14px;
  color: #0D9488;
}

/* ==========================================================================
   DAY / NIGHT MODE EXPLICIT RULES
   ========================================================================== */

body.night-mode,
.kizmiotheme.night-mode,
body[data-bs-theme="dark"],
[data-bs-theme="dark"] {
  --kzm-stores-surface: #1e293b;
  --kzm-stores-surface-soft: #0f172a;
  --kzm-stores-border: #334155;
  --kzm-stores-text: #f8fafc;
  --kzm-stores-muted: #94a3b8;
  --kzm-stores-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --kzm-stores-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.45);
}

body.night-mode .stores-hero-search-box,
body[data-bs-theme="dark"] .stores-hero-search-box {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.night-mode .stores-hero-search-input-wrap input,
body[data-bs-theme="dark"] .stores-hero-search-input-wrap input {
  color: #f8fafc !important;
}

body.night-mode .stores-hero-search-cat-wrap select,
body[data-bs-theme="dark"] .stores-hero-search-cat-wrap select {
  color: #cbd5e1 !important;
  background: #0f172a !important;
}

body.night-mode .stores-hero-search-divider,
body[data-bs-theme="dark"] .stores-hero-search-divider {
  background: #334155 !important;
}

body.night-mode .stores-hero-tag,
body[data-bs-theme="dark"] .stores-hero-tag {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
  color: #f8fafc !important;
}

body.night-mode .stores-hero-flag-badge,
body[data-bs-theme="dark"] .stores-hero-flag-badge {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(51, 65, 85, 0.9) !important;
  color: #f8fafc !important;
}

body.night-mode .stores-product-card__media,
body[data-bs-theme="dark"] .stores-product-card__media {
  background: #0f172a !important;
}

body.night-mode .stores-product-card__fav-btn,
body[data-bs-theme="dark"] .stores-product-card__fav-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #94a3b8 !important;
}

body.night-mode .stores-deal-media,
body[data-bs-theme="dark"] .stores-deal-media {
  background: #0f172a !important;
}

body.night-mode .stores-promo-banner-card.is-fashion,
body[data-bs-theme="dark"] .stores-promo-banner-card.is-fashion {
  background: linear-gradient(135deg, #4c0519 0%, #881337 100%) !important;
  border-color: #9f1239 !important;
}
body.night-mode .is-fashion .stores-promo-banner-title,
body[data-bs-theme="dark"] .is-fashion .stores-promo-banner-title { color: #fecdd3 !important; }
body.night-mode .is-fashion .stores-promo-banner-sub,
body[data-bs-theme="dark"] .is-fashion .stores-promo-banner-sub { color: #ffe4e6 !important; }

body.night-mode .stores-promo-banner-card.is-electronics,
body[data-bs-theme="dark"] .stores-promo-banner-card.is-electronics {
  background: linear-gradient(135deg, #082f49 0%, #0369a1 100%) !important;
  border-color: #0284c7 !important;
}
body.night-mode .is-electronics .stores-promo-banner-title,
body[data-bs-theme="dark"] .is-electronics .stores-promo-banner-title { color: #bae6fd !important; }
body.night-mode .is-electronics .stores-promo-banner-sub,
body[data-bs-theme="dark"] .is-electronics .stores-promo-banner-sub { color: #e0f2fe !important; }

body.night-mode .stores-promo-banner-card.is-island,
body[data-bs-theme="dark"] .stores-promo-banner-card.is-island {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%) !important;
  border-color: #b45309 !important;
}
body.night-mode .is-island .stores-promo-banner-title,
body[data-bs-theme="dark"] .is-island .stores-promo-banner-title { color: #fde68a !important; }
body.night-mode .is-island .stores-promo-banner-sub,
body[data-bs-theme="dark"] .is-island .stores-promo-banner-sub { color: #fef3c7 !important; }

body.night-mode .stores-promo-delivery,
body[data-bs-theme="dark"] .stores-promo-delivery {
  background: linear-gradient(135deg, #431407 0%, #7c2d12 100%) !important;
  border-color: #9a3412 !important;
}
body.night-mode .stores-promo-delivery h4,
body[data-bs-theme="dark"] .stores-promo-delivery h4 { color: #fed7aa !important; }
body.night-mode .stores-promo-delivery p,
body[data-bs-theme="dark"] .stores-promo-delivery p { color: #ffedd5 !important; }

body.night-mode .stores-promo-smallbiz,
body[data-bs-theme="dark"] .stores-promo-smallbiz {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%) !important;
  border-color: #b45309 !important;
}
body.night-mode .stores-promo-smallbiz h4,
body[data-bs-theme="dark"] .stores-promo-smallbiz h4 { color: #fde68a !important; }
body.night-mode .stores-promo-smallbiz p,
body[data-bs-theme="dark"] .stores-promo-smallbiz p { color: #fef3c7 !important; }

body.night-mode .stores-promo-payments .stores-promo-icon-wrap.is-shield,
body[data-bs-theme="dark"] .stores-promo-payments .stores-promo-icon-wrap.is-shield {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

body.night-mode .stores-shop-avatar-badge,
body[data-bs-theme="dark"] .stores-shop-avatar-badge {
  background: #1e293b !important;
  border-color: #1e293b !important;
}
