/* 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: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f3f5;
    -webkit-overflow-scrolling: touch;
}

/* Modern Minimalist Bottom Slider for PC view */
.category-pills::-webkit-scrollbar {
    height: 6px;
}

.category-pills::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

.category-pills::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.category-pills::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.category-pills::-webkit-scrollbar-thumb:active {
    background: #6b7280;
}

@media (max-width: 768px) {
    .category-pills {
        padding-bottom: 2px;
        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: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    /* padding: 8px !important; */
}

.product-image img {
    width: 100%;
    height: 100%;
    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;
    z-index: 2;
}

.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: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2937;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .01em;
    box-shadow: none;
    transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}

.add-cart-btn:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.add-cart-btn-small {
    flex: 1;
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2937;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .01em;
    box-shadow: none;
    transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}

.add-cart-btn-small:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #d1d5db;
}

/* 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: .35em;
    width: auto;
    justify-content: center;
    padding: 9px 24px;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f5f6f8;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
    transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}

.view-all-btn:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}