/* =====================
   HERO CATEGORIES
===================== */
.hero-categories {
    padding: 30px 20px;
    background: #fffaf4;
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    color: #000;
}

.category-item img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    transition: 0.3s;
    border: 3px solid transparent;
}

.category-item span {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-item:hover img {
    border-color: #d32fc5;
    transform: scale(1.05);
}

.category-item.active img {
    border-color: #d32fc5;
    box-shadow: 0 0 0 4px rgba(211, 47, 197, 0.15);
    transform: scale(1.1);
}

.category-item.active span {
    color: #d32fc5;
}

/* =====================
   CATEGORIES CAROUSEL
===================== */
.categories-carousel {
    position: relative;
    max-width: 1200px;
    margin: auto;
    padding: 0 30px;
}

.categories-wrapper {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 25px;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

/* botones */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #d32fc5;
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(211, 47, 197, 0.35);
    z-index: 5;
}

.carousel-btn.left {
    left: -20px;
}

.carousel-btn.right {
    right: -10px;
}

/* =====================
   PRODUCTS GRID
===================== */
.products-section {
    padding: 40px 20px;
    background: #fffaf4;
}

.products-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 30px;
}

/* CARD */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative; /* 🔥 CLAVE */
}

.product-card:hover {
    transform: translateY(-6px);
}

/* LINK */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* IMAGE */
.product-img {
    background: #f4f4f4;
}

.product-img img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    padding: 15px;
}

/* CART BUTTON */
.add-cart {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #d32fc5;
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(211, 47, 197, 0.35);
    transition: 0.3s;
    z-index: 3;
}

.add-cart:hover {
    transform: scale(1.12);
}

/* INFO */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 40px;
}

.price .current {
    font-weight: 700;
    color: #000;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }

    .category-item img {
        width: 85px;
        height: 85px;
    }

    .product-img img {
        height: 200px;
    }
}
