/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f5f5f5;
}

/* 🔥 FIX JARAK DARI SLIDER */
.home-slider {
  margin-bottom: 8px !important;
}

.home-slider img {
  display: block;
}
/* ================= MAIN CONTENT ================= */
.main-content,
.home-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0; /* 🔥 single source: container yg atur */
  background: #ffffff;
}

/* ================= SECTION SPACING ================= */
.m10-section {
  margin-bottom: 20px; /* 🔥 konsisten desktop */
}

/* ================= CONTAINER GLOBAL ================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* ================= KATEGORI ================= */
.kategori-page {
  padding: 40px 0;
}

.kategori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.kategori-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ================= PRODUCT CARD ================= */

.m10-card {
  width: 160px;
  flex-shrink: 0;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #eee;
  transition: 0.2s;
}

.card-link:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: 8px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* DISCOUNT BADGE */
.badge-disc {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #e31e24;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* INFO */
.info .price {
  font-weight: 600;
  font-size: 13px;
  color: #e31e24;
}

.info .old {
  font-size: 11px;
  text-decoration: line-through;
  color: #999;
}

.info .title {
  font-size: 12px;
  height: 32px;
  overflow: hidden;
}

/* PROGRESS */
.progress {
  height: 4px;
  background: #eee;
  border-radius: 10px;
  margin-top: 6px;
}

.progress div {
  height: 100%;
  background: #e31e24;
  border-radius: 10px;
}

/* SOLD */
.sold {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .m10-card {
    width: 130px;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .info-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar ul {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* 🔥 MOBILE GLOBAL FIX */
@media (max-width: 768px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .m10-section {
    margin-bottom: 16px; /* 🔥 lebih rapat di mobile */
  }
}

@media (max-width: 576px) {
  .header-main {
    flex-direction: column;
    align-items: stretch;
  }

  .info-container {
    grid-template-columns: 1fr;
  }
}

/* ================= FIX HEADER GAP ================= */
.site-header + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ================= CLEANUP ================= */
.home-slider,
.home-section,
.main-content {
  margin-top: 0 !important;
}

/* bootstrap row fix */
.row {
  margin-top: 0;
}
