/* Product Section */
.product-section {
    margin: 50px 0;
    overflow: visible;
    /* Prevent hover cutoff */
}

.section-title {
    font-size: 30px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

/* Category Pills Row */
.category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.category-pill {
    padding: 8px 18px;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    background: #f3f3f3;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.category-pill:hover {
    background: #e8e8e8;
}

.category-pill.active {
    border: none;
    color: #000;
    background: linear-gradient(90deg,
            #a59cf366,
            #f5cad466 47.5%,
            #f59fcb66);
}

/* Product Card */
.product-card {
    min-width: 290px;
    max-width: 289.891px;
    padding: 5px;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.product-link {
    text-decoration: none;
    color: black;
    display: block;
}

.product-image {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.product-image img {
    max-height: 200px;
    object-fit: contain;
}

.rating-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #fff7cc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.product-title {
    font-size: 15px;
    line-height: 1.3;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.product-variant {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 22px;
    font-weight: 600;
}

.product-price-small {
    font-size: 18px;
    font-weight: 600;
}

.product-old-price {
    font-size: 13px;
    color: #666;
    text-decoration: line-through;
}

.discount-badge {
    background: #1fa64b;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 600;
}

/* Action Row Buttons */
.wishlist-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wishlist-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.add-cart-btn {
    flex: 1;
    background: #ffd84d;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.add-cart-btn:hover {
    background: #f2c72b;
    color: #fff;
    transform: translateY(-2px);
}

/* Product Carousel */
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding-top: 10px;
    padding-bottom: 20px;
    /* space for drop shadow on hover */
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-carousel:active {
    cursor: grabbing;
}

/* Hide scrollbar visually */
.product-carousel::-webkit-scrollbar {
    display: none;
}

/* View All Button */
.view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg,
            #ffcc33,
            #ffb800);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg,
            #ffc107,
            #ffb000);
    color: #fff;
}