.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.qty-box .qty {
    width: 40px;
    text-align: center;
    margin: 0 5px;
}
.qty-box button {
    width: 30px;
    height: 30px;
}
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

.add-to-cart-btn {
    display: inline-block;
    margin-top: 10px;
}
        .ccs-carousel.swiper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    overflow: hidden !important;
}
.ccs-carousel .swiper-wrapper {
    display: flex !important;
    width: max-content !important;
    max-width: none !important;
    box-sizing: border-box !important;
}
.ccs-carousel .swiper-slide {
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
.ccs-carousel .swiper-slide.product-card {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    box-sizing: border-box !important;
    background: #fff;
    padding: 5px;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.product-card img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 90px !important;
    box-sizing: border-box;
    border-radius: 10px;
    margin: 0 auto 10px;
}
        .product-card h3 {
            font-size: 16px;
            margin: 10px 0 5px;
        }
        .rating {
            color: #ffa500;
            font-size: 14px;
            margin-bottom: 5px;
        }
        .price {
            font-weight: bold;
			font-size: 0.8em;
            margin: 5px 0;
			    display: flex;
    flex-direction: column;
        }
button.qty-btn {
    margin: -5px;
}
        .qty-box {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 10px 0;
        }
        .qty-box button {
            border-radius: 50%;
            border: 1px solid #ccc;
            padding: 4px 10px;
            background: #fff;
            font-size: 16px;
            cursor: pointer;
        }
        .qty-box input.qty {
            width: 35px;
            text-align: center;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .add-to-cart-btn {
            background: transparent;
            border: 2px solid #5e5ce6;
            color: #5e5ce6;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
        }
.qty-btn {
  width: 36px;
  height: 100%;
  background: #f44336;
  color: white;
  font-size: 16px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
  border-radius: 0px !important;
}

.qty-btn.minus {
  background: #fdecec;
  color: #f44336;
}

.qty-btn.plus {
  background: #f44336;
  color: white;
}

.prod-carousel-name {
  height: 2.8em; /* Adjust based on line-height for 2 lines */
  line-height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
font-size: 0.8em;
    font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Show up to 2 lines */
  -webkit-box-orient: vertical;
}
.ccs-category-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 0 10px;
    text-align: center;
}

/* Prevent shortcode carousels from expanding a parent/container. */
.ccs-carousel,
.ccs-carousel.swiper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Do NOT constrain the Swiper wrapper to the container width.
   Swiper needs the wrapper to grow to the full slide track. */
.ccs-carousel .swiper-wrapper {
    max-width: none !important;
    min-width: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ccs-carousel .swiper-slide {
    box-sizing: border-box !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.ccs-carousel * {
    box-sizing: border-box;
}

.ccs-carousel .swiper-wrapper,
.ccs-carousel .swiper-slide {
    -webkit-user-select: none;
    user-select: none;
}
@media (max-width: 639px) {
    .ccs-carousel.swiper { padding-inline: 0 !important; }
}
