
/* =========================
   HERO SECTION
========================= */
.hero-section {
  padding: 28px 16px;
}

.hero-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* LAYOUT */
.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* =========================
   CATEGORY SECTION
========================= */
.category-wrapper {
  margin-top: 28px;
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.category-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   OFFER CARDS
========================= */
.hero-right {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.offer-card {
  min-width: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.offer-card img {
  width: 100%;
  display: block;
}

/* =========================
   SUBCATEGORY POPUP
========================= */
.subcategory-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.subcategory-overlay.active {
  display: flex;
}

.subcategory-container {
  background: #ffffff;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  overflow: hidden;
}

.subcategory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.subcategory-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.subcategory-body {
  padding: 20px;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.subcategory-card {
  text-align: center;
  cursor: pointer;
}

.subcategory-card img {
  width: 86px;
  height: 86px;
  margin-bottom: 6px;
}

.subcategory-card p {
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   MOBILE – BOTTOM SHEET
========================= */
@media (max-width: 991px) {

  .subcategory-overlay {
    align-items: flex-end;
  }

  .subcategory-container {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 992px) {

  .hero-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-left {
    flex: 1.2;
  }

  .hero-right {
    flex: 0.8;
    flex-direction: column;
  }

  .hero-title {
    font-size: 40px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .subcategory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}