/* Product Section Styling - MOBILE OPTIMIZED VERSION */
.product-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Carousel */
.product-carousel {
    position: relative;
    padding: 0 60px;
}

.product-carousel .carousel-inner {
    padding: 20px 0;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 10px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.sale {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.product-badge.new {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.wishlist-btn:hover {
    background: #ff6b35;
    color: #fff;
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-category {
    color: #ff6b35;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: #ffa500;
    font-size: 14px;
}

.rating-count {
    color: #999;
    font-size: 13px;
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 26px;
    font-weight: 800;
    color: #ff6b35;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

/* Carousel Controls */
.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-carousel .carousel-control-prev {
    left: 0;
}

.product-carousel .carousel-control-next {
    right: 0;
}

.product-carousel .carousel-control-prev:hover,
.product-carousel .carousel-control-next:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
    filter: invert(1);
}

.product-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.product-carousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

/* ========================================
   MOBILE RESPONSIVE - IMPROVED DESIGN
   ======================================== */

@media (max-width: 768px) {
    .product-section {
        padding: 40px 0;
        background: #f5f5f5;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 26px;
        margin-bottom: 10px;
        font-weight: 800;
    }

    .section-header p {
        font-size: 14px;
        padding: 0 10px;
        line-height: 1.6;
    }

    .section-badge {
        font-size: 11px;
        padding: 6px 16px;
        margin-bottom: 12px;
    }

    /* Mobile Carousel Layout */
    .product-carousel {
        padding: 0 10px;
    }

    .product-carousel .carousel-inner {
        padding: 10px 0 20px 0;
    }

    /* 2 Cards per row on mobile - NO GAPS */
    .product-carousel .row {
        margin: 0 -6px;
    }

    .product-carousel .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 6px;
    }

    /* Hide 3rd and 4th products on mobile */
    .carousel-item .row > div:nth-child(n+3) {
        display: none !important;
    }

    /* Card Styling - More attractive */
    .product-card {
        margin: 0 0 12px 0;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        background: #fff;
    }

    .product-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    /* Product Image - Better proportions */
    .product-image {
        height: 170px;
        border-radius: 0;
        background: linear-gradient(to bottom, #f8f8f8, #fff);
    }

    .product-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* Remove hover effects on mobile */
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .product-card:hover .product-image img {
        transform: none;
    }

    /* Product Info - Optimized spacing */
    .product-info {
        padding: 12px 10px 14px 10px;
    }

    /* Category Badge - Smaller and cleaner */
    .product-category {
        font-size: 9px;
        padding: 4px 8px;
        background: #fff5f0;
        border-radius: 10px;
        display: inline-block;
        margin-bottom: 6px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }

    /* Product Title - Better readability */
    .product-title {
        font-size: 13px;
        line-height: 1.4;
        min-height: 36px;
        margin-bottom: 6px;
        font-weight: 700;
        color: #222;
    }

    /* Rating - Compact */
    .product-rating {
        margin-bottom: 8px;
        gap: 3px;
    }

    .stars {
        font-size: 10px;
    }

    .rating-count {
        font-size: 10px;
        color: #aaa;
    }

    /* Price - Bold and clear */
    .product-price {
        margin-bottom: 10px;
        gap: 6px;
    }

    .current-price {
        font-size: 17px;
        font-weight: 900;
        color: #ff6b35;
    }

    .original-price {
        font-size: 13px;
    }

    /* Add to Cart Button - Full width and attractive */
    .add-to-cart-btn {
        padding: 11px 12px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 8px;
        gap: 4px;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
    }

    .add-to-cart-btn:active {
        transform: scale(0.96);
    }

    /* Carousel Controls - Smaller and positioned better */
    .product-carousel .carousel-control-prev,
    .product-carousel .carousel-control-next {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(10px);
    }

    .product-carousel .carousel-control-prev {
        left: 5px;
    }

    .product-carousel .carousel-control-next {
        right: 5px;
    }

    .product-carousel .carousel-control-prev-icon,
    .product-carousel .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }

    /* View All Button */
    .view-all-container {
        margin-top: 25px;
        padding: 0 15px;
    }

    .view-all-btn {
        padding: 12px 28px;
        font-size: 13px;
        border-radius: 25px;
        font-weight: 700;
    }

    /* Product Badges - Smaller */
    .product-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 9px;
        border-radius: 12px;
    }

    .wishlist-btn {
        top: 8px;
        left: 8px;
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* Extra small devices (< 576px) */
@media (max-width: 576px) {
    .product-section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 13px;
    }

    /* Slightly smaller on very small screens */
    .product-image {
        height: 155px;
    }

    .product-title {
        font-size: 12px;
        min-height: 34px;
    }

    .current-price {
        font-size: 16px;
    }

    .add-to-cart-btn {
        font-size: 11px;
        padding: 10px 10px;
    }
}

/* Tablet - Show 3 cards */
@media (min-width: 769px) and (max-width: 991px) {
    .product-carousel .col-md-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding: 0 10px;
    }
    
    .product-image {
        height: 240px;
    }

    .product-card {
        margin: 0 0 15px 0;
    }
    
    /* Hide 4th product on tablet */
    /*.carousel-item .row > div:nth-child(4) {*/
    /*    display: none !important;*/
    /*}*/
}

/* Desktop - Show all 4 cards */
@media (min-width: 992px) {
    .product-carousel .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}