/* =========================
   PAGE
========================= */
.page {
  background: var(--color-bg);
}


/* =========================
   HERO SECTION
========================= */
.hero-section {
  margin: 16px 2px;
}

.hero-slider {
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.3s ease;
}

.hero-slide {
  min-width: 100%;
  position: relative;
}

/* IMAGE */
.hero-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface);
}

.hero-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  color: var(--color-surface);
  z-index: 2;
}

.hero-overlay.bottom-left {
  bottom: 16px;
  left: 16px;
}

.hero-overlay.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* TEXT */
.hero-title {
  font-size: 18px;
  font-weight: var(--font-weight-heading);
}

.hero-subtitle {
  font-size: 14px;
  color: var(--color-surface);
}

/* CTA */
.hero-cta {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--color-primary);
  color: var(--color-surface);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


/* =========================
   CATEGORIES SECTION
========================= */
.categories-section {
  margin: 20px 2px;
}

.categories-section .section-title {
  margin-bottom: 14px;
  color: var(--color-text);
  font-weight: var(--font-weight-heading);
}

/* SCROLL */
.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ITEM (with image) */
.category-item {
  text-align: center;
  cursor: pointer;
}

.category-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.category-label {
  font-size: 12px;
  margin-top: 6px;
  color: var(--color-text);
}


/* =========================
   CATEGORY CHIPS (no image)
========================= */
.category-chip {
  padding: 6px 12px;
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-primary);
  background: transparent;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

/* ACTIVE CHIP */
.category-chip.active {
  background: var(--color-primary);
  color: var(--color-surface);
}

.category-chip-text {
  display: inline-block;
}

/* =========================
   FEATURED SECTION
========================= */
.featured-section {
  margin: 20px 2px;
}

/* GRID */
.featured-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--fp-mobile, 2), 1fr);
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(var(--fp-tablet, 3), 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(var(--fp-desktop, 4), 1fr);
  }
}

/* CAROUSEL */
.featured-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  scroll-snap-align: start;
}