/**
 * ============================================
 * BEST SELLER PRODUCTS STYLES
 * ============================================
 * Styles cho shortcode: [best_seller_products]
 * Hiển thị sản phẩm bán chạy với filter theo category
 */

/* ============================================
   SECTION 1: WRAPPER
   ============================================ */
.best-seller-wrapper {
    margin: 40px 0;
}

/* ============================================
   SECTION 2: HEADER & TITLE
   ============================================ */
.best-seller-wrapper .best-seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.best-seller-wrapper .best-seller-title-wrapper {
    display: flex;
    align-items: center;
}

.best-seller-wrapper .best-seller-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION 3: FILTER BUTTONS
   ============================================ */
.best-seller-wrapper .best-seller-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.best-seller-wrapper .best-seller-filter-btn {
    padding: 12px 30px;
    background-color: #fff;
    border: 2px solid #446084;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.best-seller-wrapper .best-seller-filter-btn:hover,
.best-seller-wrapper .best-seller-filter-btn.active {
    background-color: #446084;
    border-color: #446084;
    color: #fff;
}

/* ============================================
   SECTION 4: PRODUCTS GRID
   ============================================ */
.best-seller-wrapper .best-seller-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* ============================================
   SECTION 5: PRODUCT CARD
   ============================================ */
.best-seller-wrapper .best-seller-product {
    margin-bottom: 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

.best-seller-wrapper .best-seller-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SECTION 6: PRODUCT IMAGE
   ============================================ */
.best-seller-wrapper .best-seller-product-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-seller-wrapper .best-seller-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.best-seller-wrapper .best-seller-product-image:hover img {
    transform: scale(1.05);
}

.best-seller-wrapper .best-seller-product-image a {
    display: block;
    text-decoration: none;
    width: 100%;
}

/* ============================================
   SECTION 7: PRODUCT TITLE
   ============================================ */
.best-seller-wrapper .best-seller-product h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.best-seller-wrapper .best-seller-product h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.best-seller-wrapper .best-seller-product h3 a:hover {
    color: #446084;
}

/* ============================================
   SECTION 8: PRODUCT PRICE
   ============================================ */
.best-seller-wrapper .best-seller-product-price {
    margin: 10px 0;
    font-size: 14px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.6;
}

.best-seller-wrapper .best-seller-product-price .regular-price {
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.best-seller-wrapper .best-seller-product-price .sale-price {
    color: red;
    font-weight: bold;
    font-size: 16px;
}

/* ============================================
   SECTION 9: PRODUCT DESCRIPTION
   ============================================ */
.best-seller-wrapper .best-seller-product-description {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 14px;
}

.best-seller-wrapper .best-seller-product p:last-child {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 15px;
}

/* ============================================
   SECTION 10: PRODUCT BUTTON
   ============================================ */
.best-seller-wrapper .best-seller-product-button {
    display: block;
    padding: 12px 20px;
    background-color: #446084;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0;
}

.best-seller-wrapper .best-seller-product-button:hover {
    background-color: #35506b;
    color: #fff;
}

/* ============================================
   SECTION 11: VIEW MORE BUTTON
   ============================================ */
.best-seller-wrapper .best-seller-view-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 100%;
}

.best-seller-wrapper .best-seller-view-more-btn {
    padding: 10px 30px;
    background-color: #446084;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.best-seller-wrapper .best-seller-view-more-btn:hover {
    background-color: #35506b;
}

/* ============================================
   SECTION 12: RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .best-seller-wrapper .best-seller-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .best-seller-wrapper .best-seller-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .best-seller-wrapper .best-seller-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .best-seller-wrapper .best-seller-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .best-seller-wrapper .best-seller-title-wrapper {
        width: 100%;
    }
    
    .best-seller-wrapper .best-seller-title {
        font-size: 22px;
    }
    
    .best-seller-wrapper .best-seller-filters {
        gap: 10px;
    }
    
    .best-seller-wrapper .best-seller-filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .best-seller-wrapper .best-seller-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .best-seller-wrapper .best-seller-product {
        padding: 12px;
    }
    
    .best-seller-wrapper .best-seller-product h3 {
        font-size: 15px;
        min-height: 44px;
    }
    
    .best-seller-wrapper .best-seller-product-price {
        font-size: 13px;
        min-height: 45px;
    }
    
    .best-seller-wrapper .best-seller-view-more-btn {
        padding: 12px 40px;
        font-size: 14px;
    }
}
