.section {
  max-width:1200px;
  margin:50px auto;
  padding:0 20px;
}
.section-title {
  font-size:1.6em;
  margin-bottom:20px;
}

/* ===== SLIDER ===== */
.slider-wrapper { position: relative; }
.slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}
.slider::-webkit-scrollbar { display: none; }

/* ===== SLIDER BUTTONS ===== */
.slide-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}
.slide-btn.prev { left: -12px; }
.slide-btn.next { right: -12px; }

/* ===== PRODUCT CARD ===== */
.product-card {
  position: relative;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  flex-shrink: 0;
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}


/* BASE BADGE */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.badge.hot {
  background: #ff3b30;
}
/* ===== TEXT ===== */
.product-card .brand {
  font-size: 8px;
  font-weight: 300;
  color: #777;
  margin-top: 6px;
  text-transform: uppercase;
}
.product-card h3 {
  font-size: 14px;
  margin: 4px 0;
  line-height: 1.3;
}

/* ===== PRICE ===== */
.price { margin-top: 6px; }
.price .old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-right: 6px;
}
.price .new {
  font-size: 14px;
  font-weight: 300;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .slide-btn { display: none; }
  .product-card {
    min-width: 150px;
    max-width: 150px;
  }
}
/* SECTION */
.category-slider-wrapper{
    background: #ffffff;
    padding: 10px 0;
    max-height: 50px;
}

/* CONTAINER */
.category-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    max-height: 30px;
}

/* SLIDER */
.category-slider {
    display: flex;
    align-items: center;
    gap: 5px;                  /* smaller gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 15px;          /* compact padding */
    width: 100%;
    border: 1px #eee;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

/* COMPACT CATEGORY PILL */
.category-pill {
    flex: 0 0 auto;
    padding: 5px 10px;          /* reduced padding */
    font-size: 13px;            /* smaller font */
    font-weight: 300;
    border-radius: 10px;        /* more rounded */
    background: #ffffff;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

/* Hover */
.category-pill:hover {
    background: #CC2230;
    color: #fff;
    border-color: #CC2230;
}

/* Active */
.category-pill.active {
    background: #CC2230;
    color: #fff;
    border-color: #CC2230;
}

/* NAV BUTTONS SMALL */
.cat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.cat-nav.prev { left: 5px; }
.cat-nav.next { right: 5px; }

.cat-nav:hover {
    background: #CC2230;
    color: #fff;
    border-color: #CC2230;
}

/* MOBILE */
@media (max-width: 768px) {
    .cat-nav {
        display: none;
    }

    .category-slider {
        padding: 1px 5px;
    }
}