/*
Theme Name: Tld Ecommerce
Theme URI: http://beargital.com
Author: Tinh Le
Author URI: http://beargital.com
Description: Le Thanh Tinh
Version: 1.0
License: thanhtinhcntt299
Text Domain: beargital.dev
*/
/* Ẩn slider mobile mặc định */
.mobile-banner {
    display: none !important;
}
/* Ẩn slider desktop trên màn hình nhỏ hơn 768px */
@media (max-width: 767.98px) {
    .desktop-banner {
        display: none !important;
    }

    .mobile-banner {
        display: block !important;
    }
}

/* Reset lại tất cả các style trước đó cho banner */
.sc_slide-home {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.sc_slide-home .item {
    display: block;
    width: 100%;
}

.sc_slide-home .item img.pic {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Đảm bảo không có element nào có height cố định */
.desktop-banner, 
.mobile-banner, 
.desktop-banner .item, 
.mobile-banner .item {
    height: auto !important;
}

/* iPad Pro sử dụng banner mobile */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1366px)
and (-webkit-min-device-pixel-ratio: 2) {
    .desktop-banner {
        display: none !important;
    }
    
    .mobile-banner {
        display: block !important;
    }
}


/* Giảm kích thước logo */
.headerMain .logo img {
    max-width: 80%; /* Giảm 20% so với kích thước ban đầu */
    height: auto;
}

/* Thu nhỏ hơn trên mobile */
@media (max-width: 768px) {
    .headerMain .logo img {
        max-width: 70%;
    }
}


/* Cấu hình font Montserrat cho toàn bộ website */
body {
    font-family: 'Montserrat', sans-serif !important;
}
body.home .menu-topbar-container {
    font-size: 13px;
}
body.home h3 {
    font-size: 16px;
}
.footerTop {
    font-size: 14px;
}
.sc_block-footer-title {
    font-size: 16px;
    font-weight: bold;
}
.footer_logo1 {
    max-width: 150px !important; /* Giảm kích thước theo nhu cầu */
    height: auto; /* Đảm bảo không bị méo hình */
	margin-bottom: 16px;
}
footer {
    background-color: #F4F4F4; /* Màu nền mới */
}
footer {
    margin-top: 30px; /* Điều chỉnh khoảng cách tùy ý */
}
/* Thêm CSS này vào file stylesheet của theme hoặc custom CSS */

.feature-products-carousel {
    position: relative;
    margin: 0 -10px;
}

.feature-products-carousel .product {
    padding: 0 10px;
}

.feature-products-nav {
    text-align: center;
    margin-top: 20px;
}

.feature-prev-btn,
.feature-next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.feature-prev-btn:hover,
.feature-next-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Ẩn nút next/prev mặc định của Slick để dùng nút tùy chỉnh */
.feature-products-carousel .slick-arrow {
    display: none !important;
}

/* Đảm bảo sản phẩm hiển thị đẹp trong carousel */
.feature-products-carousel .product {
    height: 100%;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .feature-prev-btn,
    .feature-next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
/* Lưới bài viết liên quan */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.related-post-item {
    display: flex;
    flex-direction: column;
}

.related-post-item .picbox {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.related-post-item .pic {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.related-post-item:hover .pic {
    transform: scale(1.05);
}

.related-post-item .title {
    color: var(--cl-1);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 5px;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
 
/* CSS mạnh hơn cho bảng */
.entry-content table,
.post-content table,
.page-content table,
.content-area table,
.woocommerce-product-details__short-description table,
.woocommerce-tabs table,
table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    border: 1px solid #ddd !important;
}

.entry-content table th,
.entry-content table td,
.post-content table th,
.post-content table td,
.page-content table th,
.page-content table td,
.content-area table th,
.content-area table td,
.woocommerce-product-details__short-description table th,
.woocommerce-product-details__short-description table td,
.woocommerce-tabs table th,
.woocommerce-tabs table td,
table th,
table td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
}

