/* =======================================================
   CARIKOMISI.ID - STYLE.CSS
   Tema: Shopee Orange (#EE4D2D) + Hijau (#16A34A)
   ======================================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-primary: #EE4D2D;
  --color-primary-dark: #D43F21;
  --color-secondary: #16A34A;
  --color-secondary-dark: #128A3E;
  --color-white: #FFFFFF;
  --color-bg-soft: #F5F5F5;

  --color-text: #1F2430;
  --color-text-muted: #6B7280;
  --color-border: #E8E8E8;

  --radius-card: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 16px rgba(31, 36, 48, 0.06);
  --shadow-hover: 0 14px 32px rgba(238, 77, 45, 0.18);
  --shadow-card: 0 2px 10px rgba(31, 36, 48, 0.05);

  --transition-fast: 0.18s ease;
  --transition-mid: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Poppins', sans-serif;

  --header-h: 132px;
}

/* ---------- DARK MODE VARIABLES ---------- */
body.dark-mode {
  --color-white: #1A1D24;
  --color-bg-soft: #11131A;
  --color-text: #EDEFF4;
  --color-text-muted: #9AA0AC;
  --color-border: #2A2E38;
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--color-bg-soft);
  color: var(--color-text);
  margin: 0;
  transition: background var(--transition-mid), color var(--transition-mid);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-main); cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-orange { color: var(--color-primary); }
.text-green { color: var(--color-secondary); }
.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), #FF7A4D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =======================================================
   PAGE LOADER
   ======================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-inner { text-align: center; }
.loader-logo {
  font-size: 42px;
  color: var(--color-primary);
  margin-bottom: 14px;
  animation: pulseLogo 1.4s ease-in-out infinite;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader-inner p { color: var(--color-text-muted); font-size: 14px; margin-bottom: 14px; }
.progress-bar-wrap {
  width: 220px;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0 auto;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

/* =======================================================
   TOAST NOTIFICATIONS
   ======================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-item {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  font-size: 14px;
  border-left: 4px solid var(--color-secondary);
  animation: toastIn 0.3s ease;
}
.toast-item.toast-error { border-left-color: var(--color-primary); }
.toast-item i { font-size: 17px; }
.toast-item.toast-success i { color: var(--color-secondary); }
.toast-item.toast-error i { color: var(--color-primary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-item.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* =======================================================
   HEADER
   ======================================================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-mid), background var(--transition-mid);
  padding: 14px 0 16px;
}
.main-header.scrolled { box-shadow: var(--shadow-hover); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
}
.logo-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
}
.logo-text { color: var(--color-text); }
.logo-accent { color: var(--color-primary); }

.main-nav { gap: 24px; align-items: center; }
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 15px;
  transition: all var(--transition-fast);
}
.icon-btn:hover { background: var(--color-bg-soft); transform: translateY(-2px); }

.btn-ganti-csv {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-ganti-csv:hover { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }

.header-search-row { margin-top: 16px; }
.search-bar-big {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--color-bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 20px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-bar-big:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.1);
  background: var(--color-white);
}
.search-icon { color: var(--color-text-muted); font-size: 16px; margin-right: 10px; }
.search-bar-big input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: var(--color-text);
  font-family: var(--font-main);
}
.search-bar-big input::placeholder { color: var(--color-text-muted); }
.clear-search-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.clear-search-btn.show { display: flex; }
.clear-search-btn:hover { background: var(--color-primary); color: #fff; }

.mobile-nav {
  display: none;
  flex-direction: column;
  margin-top: 14px;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 12px 6px; border-bottom: 1px solid var(--color-border); }
.mobile-nav .nav-link::after { display: none; }

/* =======================================================
   HERO
   ======================================================= */
.hero-section {
  position: relative;
  background: linear-gradient(165deg, #FFF3EE 0%, #F5F5F5 55%, #EFFBF3 100%);
  padding: 70px 0 90px;
  overflow: hidden;
  text-align: center;
}
body.dark-mode .hero-section {
  background: linear-gradient(165deg, #241712 0%, #11131A 55%, #0E1A12 100%);
}
.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(238, 77, 45, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.btn-hero-cta {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(238, 77, 45, 0.3);
  transition: all var(--transition-fast);
}
.btn-hero-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(238, 77, 45, 0.38);
}
.hero-shape {
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), transparent 70%);
  border-radius: 50%;
  top: -180px; right: -160px;
  z-index: 1;
}

/* =======================================================
   STATISTIK
   ======================================================= */
.stats-section { padding: 50px 0 60px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin: 0 auto 14px;
}
.stat-icon-orange { background: rgba(238, 77, 45, 0.1); color: var(--color-primary); }
.stat-icon-green { background: rgba(22, 163, 74, 0.1); color: var(--color-secondary); }
.stat-value { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 12.5px; color: var(--color-text-muted); font-weight: 500; }

.chart-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.chart-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.chart-wrap { height: 280px; position: relative; }

/* =======================================================
   SECTION HEADING (shared)
   ======================================================= */
.section-heading { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.section-heading p { color: var(--color-text-muted); font-size: 14.5px; }

.bg-soft { background: var(--color-white); }
body.dark-mode .bg-soft { background: #15171F; }

/* =======================================================
   TOP SECTIONS - HORIZONTAL SCROLLER
   ======================================================= */
.top-section { padding: 60px 0; }
.horizontal-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.horizontal-scroller::-webkit-scrollbar { height: 7px; }
.horizontal-scroller::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }
.horizontal-scroller .product-card { min-width: 230px; max-width: 230px; scroll-snap-align: start; }
.horizontal-scroller .rank-badge {
  position: absolute;
  top: -10px; left: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  z-index: 3;
}
.horizontal-scroller .rank-badge.rank-top3 { background: var(--color-secondary); }

/* =======================================================
   PRODUCTS SECTION / FILTER PANEL
   ======================================================= */
.products-section { padding: 60px 0; }

.filter-panel {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.filter-group-grow { flex: 2; min-width: 220px; }
.filter-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex; align-items: center; gap: 6px;
}
.filter-group input, .filter-group select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-fast);
}
.filter-group input:focus, .filter-group select:focus { border-color: var(--color-primary); }

.btn-reset-filter {
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition-fast);
  height: fit-content;
}
.btn-reset-filter:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.filter-result-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* =======================================================
   PRODUCT GRID + CARD
   ======================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: cardIn 0.45s ease forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.product-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.badge-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.badge-hot { background: linear-gradient(135deg, #FF5733, var(--color-primary)); }
.badge-komisi-besar { background: linear-gradient(135deg, var(--color-secondary), #0D7A36); }
.badge-bestseller { background: linear-gradient(135deg, #F59E0B, #D97706); }

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-soft);
  overflow: hidden;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-mid);
}
.product-card:hover .product-img { transform: scale(1.08); }

.product-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.product-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
  color: var(--color-text);
}
.product-store {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  gap: 8px;
}
.meta-komisi { color: var(--color-secondary); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.meta-sold { display: flex; align-items: center; gap: 4px; }

.product-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-lihat-produk, .btn-komisi-extra {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.btn-lihat-produk {
  background: var(--color-bg-soft);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-lihat-produk:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-komisi-extra {
  background: var(--color-secondary);
  color: #fff;
}
.btn-komisi-extra:hover { background: var(--color-secondary-dark); transform: translateY(-2px); }

/* ---------- SKELETON LOADING ---------- */
#skeletonGrid .skeleton-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.skeleton-img, .skeleton-line {
  background: linear-gradient(90deg, var(--color-bg-soft) 25%, var(--color-border) 50%, var(--color-bg-soft) 75%);
  background-size: 200% 100%;
  animation: skeletonShine 1.4s infinite;
}
.skeleton-img { width: 100%; aspect-ratio: 1/1; }
.skeleton-line { height: 11px; border-radius: 6px; margin: 12px 14px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; margin-bottom: 16px; }
@keyframes skeletonShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--color-text-muted);
}
.empty-state i { font-size: 56px; color: var(--color-border); margin-bottom: 18px; }
.empty-state h3 { font-size: 19px; color: var(--color-text); margin-bottom: 8px; font-weight: 700; }
.empty-state p { margin-bottom: 22px; font-size: 14px; }

/* ---------- PAGINATION ---------- */
.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 600;
  font-size: 13.5px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  transition: all var(--transition-fast);
}
.page-btn:hover:not(.disabled):not(.active) { background: var(--color-bg-soft); }
.page-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
.page-btn.dots { border: none; background: transparent; pointer-events: none; }

/* =======================================================
   STORE GRID
   ======================================================= */
.stores-section { padding: 60px 0; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.store-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-mid);
  cursor: pointer;
  border: 1px solid transparent;
}
body.dark-mode .store-card { background: #1E212B; }
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-primary);
}
.store-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.store-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.store-info span { font-size: 11.5px; color: var(--color-text-muted); }

/* =======================================================
   ABOUT SECTION
   ======================================================= */
.about-section { padding: 60px 0 90px; }
.about-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.about-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.about-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.about-card p { color: var(--color-text-muted); line-height: 1.7; font-size: 14.5px; margin-bottom: 28px; }
.about-features {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

/* =======================================================
   BACK TO TOP
   ======================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-mid);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }

/* =======================================================
   FOOTER
   ======================================================= */
.main-footer {
  background: #1A1D24;
  color: #C7CAD1;
  padding: 56px 0 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #9499A4; }
.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-links a { display: block; font-size: 13.5px; padding: 6px 0; color: #9499A4; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid #2A2E38;
  padding: 20px 0;
  text-align: center;
  font-size: 12.5px;
  color: #767A85;
}
.footer-bottom p { margin: 4px 0; }

/* =======================================================
   SCROLL ANIMATION (reveal on scroll)
   ======================================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 36px; }
  .main-nav { display: none; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { padding: 50px 0 60px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .about-card { padding: 32px 22px; }
  .footer-row { flex-direction: column; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; }
  .btn-reset-filter { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-text { font-size: 18px; }
  .product-name { font-size: 12.5px; }
  .product-price { font-size: 15px; }
  .hero-title { font-size: 24px; }
  .section-heading h2 { font-size: 22px; }
}
