/* Recommended Products Section */
.recommended-products-section {
    padding: 40px 20px;
    background-color: #fff;
}

.recommended-products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-tabs-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.products-section-title {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-section-title .emoji {
    font-size: 1em;
}

.products-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    overflow-y: hidden;
}

.products-tabs-nav li {
    margin: 0;
}

.products-tabs-nav li a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.products-tabs-nav li.active a,
.products-tabs-nav li a:hover {
    color: #ff8200;
    border-bottom-color: #ff8200;
}

.products-tabs-content {
    position: relative;
}

.products-tabs-content .tab-pane {
    display: none;
}

.products-tabs-content .tab-pane.active {
    display: block;
}

.products-carousel-wrapper {
    position: relative;
    padding-right: 50px;
}

.products-carousel {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

/* Support both custom product-card and WooCommerce product structure */
.product-card,
.products-carousel .berocket_lgv_grid,
.products-carousel .type-product {
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.products-carousel .berocket_lgv_grid:hover,
.products-carousel .type-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-prices {
    margin-bottom: 10px;
}

.product-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.product-member-price {
    font-size: 14px;
    color: #333;
}

.product-member-price .price-value {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.product-view-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 2px solid #ff8200;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-view-more span:first-child {
    font-size: 12px;
    color: #ff8200;
    font-weight: 600;
}

.product-view-more .more-text {
    font-size: 10px;
    color: #ff8200;
    margin-top: 2px;
}

.product-card:hover .product-view-more {
    background-color: #ff8200;
}

.product-card:hover .product-view-more span {
    color: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: #ff8200;
    border-color: #ff8200;
    color: #fff;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .products-carousel {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .recommended-products-section {
        padding: 40px 15px;
    }

    .products-tabs-header {
        flex-direction: column;
        align-items: center;
    }

    .products-section-title {
        font-size: 24px;
        text-align: center;
        width: 100%;
    }

    .products-tabs-nav {
        width: 100%;
        overflow-x: auto;
    }

    .products-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        min-width: 150px;
    }

    .product-image {
        height: 180px;
    }

    .products-carousel-wrapper {
        padding-right: 0;
    }

    .carousel-arrow {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .products-carousel {
        grid-template-columns: 1fr;
    }
}

