/* =========================
   HERO SECTION
========================= */

.hero {
  padding-bottom: 10px;
}

.hero.hero-normal {
  padding-bottom: 30px;
}

/* =========================
   HERO SEARCH & CATEGORY
========================= */

.hero__categories {
  position: relative;
}

.hero__categories ul {
  display: none;
  position: absolute;
  left: 0;
  top: 46px;
  width: 100%;
  z-index: 9;
  background: #fff;
  border: 1px solid #ebebeb;
  list-style: none;
  padding: 10px 0;
}

.hero__categories ul li a {
  padding-left: 40px;
  font-size: 16px;
  color: #1c1c1c;
  line-height: 39px;
  display: block;
}

.hero__categories__all {
  background: #7fad39;
  padding: 10px 25px 10px 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero__categories__all i {
  margin-right: 10px;
}

.hero__search {
  overflow: hidden;
  margin-bottom: 5px;
}

.hero__search__form {
  width: 610px;
  height: 50px;
  border: 1px solid #ebebeb;
  position: relative;
  float: left;
}

.hero__search__form input {
  width: 70%;
  height: 48px;
  border: none;
  padding-left: 20px;
  font-size: 16px;
}

.hero__search__form button {
  position: absolute;
  right: 0;
  top: -1px;
  height: 50px;
}

/* =========================
   HERO BANNER
========================= */

.hero__banner_home {
  width: 100%;
  min-height: 50vh;
  background: url("../img/banners/banner-1.png") center/cover no-repeat;
}

/* =========================
   FEATURED CONTROLS
========================= */

.featured {
  padding: 40px 0;
}

.featured__controls-wrapper {
  margin-bottom: 15px;
}

.featured__controls {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.featured__controls li {
  cursor: pointer;
}

.control-card {
  padding: 10px 20px;
  background: #f2f2f2;
  border-radius: 15px;
  font-weight: 600;
  transition: 0.3s;
}

.featured__controls li.active .control-card,
.featured__controls li:hover .control-card {
  background: #ff6b6b;
  color: #fff;
}

/* =========================
   PRODUCT CARD
========================= */

.product-cart {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: .3s;
}

.product-cart:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
}

/* ✅ FIXED PRODUCT IMAGE (NO CONFLICT) */
.main__product__item__pic {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease;
}

.product-cart:hover .main__product__item__pic {
  transform: scale(1.05);
}

/* Discount badge */
.main__product__percent {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff6b6b;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}

/* Product text */
.main__product__item__text {
  padding-top: 8px;
  text-align: center;
}

.main__product__item__text h5 a {
  font-size: 15px;
  color: #111;
  text-decoration: none;
}

.product__item__price {
  font-size: 15px;
  font-weight: 600;
}

.product__item__price span {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

/* Cart button */
.cart-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  background: #7fad39;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.cart-btn:hover {
  background: #5f8d2f;
}

/* =========================
   MARQUEE
========================= */
.marquee-wrapper{
	color: #ff6b6b;
	font-size: 1.2rem;
	font-weight: 500;
}

/* =========================
   MARQUEE END
========================= */

.category-buttons-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.category-btn-bottom {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #97406c;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.category-btn-bottom:hover,
.category-btn-bottom.active {
  background: #ff6b6b;
  color: #fff;
}

.product-cart-bottom {
  transition: transform 0.3s, opacity 0.3s;
}

.category-buttons-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.category-btn-bottom {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #97406c;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.category-btn-bottom:hover,
.category-btn-bottom.active {
  background: #ff6b6b;
  color: #fff;
}

.product-cart-bottom {
  transition: transform 0.3s, opacity 0.3s;
}


.featured__controls li.control-card {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  border-radius: 6px;
  cursor: pointer;
  background: #97406c;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.featured__controls li.control-card.active,
.featured__controls li.control-card:hover {
  background: #ff6b6b;
}
.category-buttons {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;

  padding: 8px 5px;
  scrollbar-width: none;        /* Firefox */
}

.category-buttons::-webkit-scrollbar {
  display: none;                /* Chrome */
}

.category-btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;

  background: #f1f1f1;
  font-size: 14px;
  transition: all 0.3s ease;
}

.category-btn.active {
  background: #ff6b6b;
  color: #fff;
}

.cat-nav {
  display: flex;
  flex-direction: row;   /* horizontal row */
  gap: 8px;
  overflow-x: auto;      /* enable horizontal scroll */
  white-space: nowrap;
  list-style: none;
  padding: 10px 5px;
  margin: 0;
  scrollbar-width: none; /* Firefox */
}

.cat-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.cat-nav li {
  flex: 0 0 auto;        /* prevent wrapping */
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 12px;
  background: #eecb06;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cat-nav li.active,
.cat-nav li:hover {
  background: #0762ad;
  color: gold;
}

.cat-nav li div {
  pointer-events: none;  /* click triggers li */
  font-size: 14px;
  text-align: center;
}

/* Small screen responsiveness */


@media (max-width: 768px) {
	.cat-nav li {
    padding: 6px 12px;
    font-size: 13px;
  }

  .featured {
    padding: 5px 0;
  }

  .main-cat {
    flex-direction: column;
    gap: 6px;
  }

  .control-card {
    width: 100%;
    text-align: center;
  }

  .main__product__item__pic {
    height: 180px;
  }

  .main__product__item__text h5 a {
    font-size: 14px;
  }

  .product__item__price {
    font-size: 14px;
  }
  .cat-nav li {
    padding: 5px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .main__product__item__pic {
    height: 150px;
  }
 .cat-nav li {
    padding: 4px 8px;
    font-size: 12px;
  }
  .marquee_text {
    font-size: 1.4rem;
  }
}
