/*
Theme Name: LeDuyNhat
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Chung */
#logo {
    width: 100% !important;
}
.logo a {
    text-transform: none;
	font-size: 24px;
}
.logo a:hover {
    text-decoration: none;
}
.nav-dropdown {
    padding: 10px 0px;
}
a:hover {
    text-decoration: underline;
}
.ldn-breadcrumbs {
    padding-top: 7px;
}
.breadcrumbs {
    font-weight: normal;
}
blockquote, dl, figure, form, ol, p, pre, ul {
    margin-bottom: 7px;
}
b, strong {
    font-weight: bold;
}
.footer-1, .footer-2 {
    border-top: 1px solid #bbb;
}

.footer .widget {
    margin-bottom: 0px;
}
.col {
    padding-bottom: 15px;
}
.page-wrapper {
    padding-bottom: 15px;
    padding-top: 15px;
}
.entry-content {
    padding-bottom: 10px;
    padding-top: 10px;
}
h1.entry-title.mb {
    margin-bottom: 15px;
}
td, th {
	font-size:80%;
	line-height: 110%;
}

/* Header */
.nav-tabs>li>a {
    background-color: #ccc;
    border: 1px solid #eee;
}
.nav-tabs>li>a:hover {
    background-color: #fff;
	text-decoration: none;
}
.nav-tabs > li.active > a {
    border-top-color: #fff !important;
}
.header-bottom-nav.nav > li.active > a {
    color: #0077b3 !important;
}
.header-bottom-nav.nav > li.active > a:hover {
    color: #334862 !important;
}
input[type=search] {
    box-shadow:none;
}
input[type=search]:hover {
    box-shadow: none;
}
/* DMBV */
.box-blog-post .box-text {
        padding: 10px 0 10px 0;
        border-bottom: 1px solid rgba(0,0,0,.05);
}
.box-blog-post .box-image {
        width: 0% !important;
}
.blog-archive .col {
        padding-bottom: 0px !important;
}
h5.post-title {
    color: #0077b3;
}
h5.post-title:hover {
    color: #334862;
}

/* List DMSP mặc định */
.box-normal {
    padding: 6px;
    border: solid 1px #ccc;
    border-radius: 4px;
}

/* Trang lưu trữ sản phẩm */
.category-page-row {
    padding-top: 7px;
}
h1.shop-page-title {
    margin-bottom: 0px;
}
.shop-container .term-description {
    margin-top: 10px;
}
.cart-item ul.nav-dropdown.nav-dropdown-simple {
    display: none;
}
h5.header-title {
    font-size: 17px;
    color:#0077b3;
}
h5.header-title:hover {
    color:#334862;
}
.woocommerce-LoopProduct-link {
    font-size: 120%;
}

.product-table {  
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
	margin-top: 20px;
}
.product-table th, .product-table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: left;
}
.product-table th {
    background-color: #f4f4f4;
    font-weight: normal;
    font-size: 80%;
    vertical-align: top;
    padding-top: 10px;
}
.product-table .product-add-to-cart .button {
    margin: 0;
	font-size: 90%;
}
.product-table .quantity.buttons_added {
    margin-right: 0px;
}

.product-table .quantity {
    margin-right: 5px;
}
/* Đảm bảo cột thuộc tính không quá hẹp 
.product-table .product-attribute {
    min-width: 50px;
}
*/
td.product-add-to-cart {
    min-width: 201px;
}
td.product-name {
	min-width: 201px;
}
td.product-add-to-cart form {
	margin:0px;
}
td.product-add-to-cart .tong-cong-wrapper {
    padding: 5px 0px 0px 0px;
}
/* Popup thông báo */
.simple-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        max-width: 500px;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        z-index: 10000;
        display: none;
    }
    .simple-popup.active {
        display: block;
    }
    .simple-popup .message-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #0077b3;
    }
    .simple-popup .popup-buttons {
        margin-top: 15px;
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }
    .simple-popup .continue-shopping,
    .simple-popup .view-cart {
        padding: 0px 16px;
        border-radius: 5px;
        text-decoration: none;
    }
    .simple-popup .continue-shopping:hover {
        background: #555;
        color: #fff;
    }
    .simple-popup .view-cart:hover {
        background: #777;
        color: #fff;
    }
    .message-container a {
    margin: 0;
    }
    .popup-buttons .button {
    margin: 0px;
   }

/* CSS cho bộ lọc sản phẩm */
.filterable {
    cursor: pointer;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 150px;
}

.filter-dropdown ul {
    list-style: none;
    margin: 0;
    padding-top: 10px;
    padding-left: 0px !important;
    padding-right: 0px;
    padding-bottom: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.filter-dropdown li {
    padding: 5px 10px;
    margin-bottom: 0px;
}

.filter-dropdown a {
    text-transform: initial !important;
    font-weight: normal;
}

/* CSS cho tìm kiếm sản phẩm */
.search-container {
    display: flex;
    gap: 5px;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 10;
}
.product-search {
    width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.search-button {
    padding: 3px 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0px;
    width: 100%;
    font-size: 100%;
    font-weight: bold;
    text-transform: none;
}
.search-button:hover {
    background-color: #005f8b;
}

button.clear-search-button {
    color: #fff;
    background: #aaa;
    margin: 7px 0px 0px 0px;
    width: 100%;
    border-radius: 5px;
}

/* Định vị icon ở góc dưới bên phải */
.shop-table.product-table th.searchable,
.shop-table.product-table th.filterable {
    position: relative; /* Làm tham chiếu cho icon */
    padding-bottom: 20px; /* Tạo khoảng trống để icon không đè nội dung */
}

.shop-table.product-table .search-icon,
.shop-table.product-table .filter-icon {
    position: absolute;
    bottom: -1px;
    right: -1px;
    cursor: pointer;
    line-height: 0px;
}

.shop-table.product-table i.icon-filter {
    border: 1px solid #ddd;
    padding: 2px;
    line-height: 0px;
    color: #aaa;
}

.shop-table.product-table i.icon-down-b-arrow {
    border: 1px solid #ddd;
    padding: 1px;
    line-height: 0px;
    color: #aaa;
}

.shop-table.product-table i.icon-filter:hover, .shop-table.product-table i.icon-down-b-arrow:hover {
    background: #fff;
}

/* Đảm bảo dropdown và search container không bị ảnh hưởng */
.shop-table.product-table .search-container,
.shop-table.product-table .filter-dropdown {
    position: absolute;
    top: 100%; /* Đặt bên dưới ô th */
    right: 0;
    z-index: 10; /* Đảm bảo hiển thị trên các phần tử khác */
}


/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
}
.pagination li {
    margin: 0 5px;
}
.pagination a, .pagination span {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.pagination a:hover {
    background: #f5f5f5;
}
.pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Sản phẩm */
#product-sidebar .is-sticky-column__inner{
    position:sticky!important;top:0!important;bottom:unset!important;left:unset!important;transform:none!important;width:auto!important
}
.is-sticky-column{position:relative}
.is-sticky-column__inner{will-change:transform;transition:transform 0.2s ease}
.is-sticky-column[style]{position:sticky!important;top:0!important;transform:none!important}
.product__details--sidebar{border:2px solid #0077b3;border-radius:5px;padding:0 0;margin:0 0 20px 0}
.product-stock-box{margin-bottom:10px;align-items:center;display:flex;padding:30px 20px;background-color:#f2f2f2}
.product__details--sidebar .stock-status-icon{background-color:#0077b3;color:#fff}
.stock-status-icon{position:relative;width:30px;height:30px;border-radius:100%;margin-right:15px}
.product__details--sidebar .stock-status-icon::before{right:9px;top:6px;width:10px;height:16px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg);content:"";position:absolute}
.product__stock.available{border:1px solid #0077b3}
.product__stock{border-radius:5px;width:90%}.product__stock.available .product__stock--quantity{background:#0077b3;color:#fff}
.product__stock .product__stock--quantity{width:45%;padding:4px 10px;font-weight:700;text-align:center;display:inline-block}
.product__stock .product__stock--text{width:50%;font-weight:700;text-align:center;display:inline-block}
.ldn-price-wrapper{padding:10px 20px}
.ldn-dh-toi-thieu{padding:0 20px;margin-bottom: 10px;}.gia-sp-don{font-size:200%;font-weight:700;color:var(--primary-color)}
.dv-sp-don{font-weight:700;color:var(--primary-color)}
.kv-gio-hang-sp-don{display:flex;align-items:center;padding:0 20px 0px 20px}
.tong-cong-wrapper{padding:0px 20px 30px 20px}
.sticky-add-to-cart.sticky-add-to-cart--active .kv-gio-hang-sp-don{padding:0 20px 0 20px}
.kv-gio-hang-sp-don a.add_to_cart_button,.khu_vuc_gio_hang a.add_to_cart_button{margin-bottom:0;border-radius:5px}
.ldn-price-wrapper .price {
    font-size: 200%;
}
.ldn-price-wrapper .price .price-suffix {
    font-size: 70%;
}
.ldn-price-wrapper .price-wrapper {
    display: inline-block;
}
.image-tools.absolute.bottom.left.z-3 {
    display: none;
}
.product-section {
    border-top: 0px;
}
.woocommerce-Price-currencySymbol {
    font-size: 75%;
    vertical-align: top;
}
span.amount {
    color: #0077b3;
}

.woocommerce-product-attributes.shop_attributes {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;
}
.woocommerce-product-attributes.shop_attributes th,
.woocommerce-product-attributes.shop_attributes td {
    color: inherit;
    font-size: 90%;
    width: 50%;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    text-transform: none;
}
.woocommerce-product-attributes.shop_attributes th {
    background-color: #ffffff;
    font-weight: inherit;
}
.woocommerce-product-attributes.shop_attributes td p {
    margin: 0;
}

.panel.entry-content {
    padding-bottom: 0px;
}

.stars a+a {
    border-left: 0px solid #ececec;
    margin-left: 0px;
}

.stars a {
    margin-left: 0px;
    margin-right: 50px;
}

.box-product {
    border: 1px solid #ccc; 
    border-radius: 4px; 
    padding: 6px; 
}
.product-section-title-related {
    font-size: 130%;
    font-weight: bold;
}

.anh-tskt {
    border-top: 1px solid #ccc;
    padding: 20px 0px;
}

/* Chỉnh sửa tiêu đề widget*/
.tieu-de-widget, .tieu-de-widget p {
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.7em;
    letter-spacing: .02em;
    font-weight: 600;
   margin-bottom: 15px;
}


/**---------------- CSS Menu sổ xuống ----------------**/
.nav-dropdown>li>a {
    color: #0077b3;
    font-size: 100%;
    padding: 7px 15px;
}

.nav-dropdown>li>a:hover{
    color: #334862;
}
.nav-dropdown.nav-dropdown-simple>li>a:hover {
    background-color: transparent;
}
.header-bottom-nav > li > a {
    font-weight: bold;
}

/* Ẩn thanh ngang dưới tiêu đề bài viết*/
.entry-divider.is-divider.small {
    display: none;
}

.box-blog-post .is-divider {
    display: none;
}
.widget .is-divider {
    display: none;
}


/* Thụt đầu dòng danh sách trong danh mục và trang */
.category-page-row ul {
    padding-left: 20px;
}
/**--- START chú thích ---**/
blockquote {
font-style: normal;
font-size: 100%;
}
/**--- END chú thích ---**/
/**--- bài viết đơn ---**/
.blog-single .entry-header-text {
    padding: 0px;
}
h1.entry-title {
    margin: 0px;
}
.blog-single .col {
    padding-bottom: 0px;
}
.blog-single article {
    margin: 0px;
}

/* Sửa text footer 2*/
.footer-secondary {
    padding: 0px;
}

/* Responsive cho mobile */
@media (max-width: 767px) {
    .product-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .product-table th, .product-table td {
        min-width: 120px;
    }
}

/*Thêm CSS cho kích thước máy tính bảng và điện thoại*/
@media only screen and (max-width: 768px){
/*************** TABLETS AND DOWN ONLY CSS HERE  ***************/
.product-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;    
}
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.logo a {
    font-size: 16px;
}	
.simple-popup {
    width: 100%;
    max-width: 90%;
}
.simple-popup .popup-buttons {
    flex-direction: column;
}
.kv-product-price {
    display: none;
    width: 0px !important;
}
.kv-product-info{
    max-width: 100% !important;
}
.stars a {
    display: block;
    margin-right: 0px;
}

}