.container-boxed {
    max-width: 1505px;
    margin: 0 auto; 
    box-sizing: border-box; 
    padding: 0 10px;
}
.container-fullwidth {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto; 
}

.title-home {
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 300;
    line-height: 19.6px;
    text-align: left;
    padding: 20px 0;
}

.container-boxed-banner {
    text-align: center;
    width: 1505px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: Ford Antenna;
    font-size: 36px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 0.015em;
}
.container-boxed-form {
    max-width: 1505px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #F5F5F5;
    padding: 30px;
    border-radius: 8px;
    margin-top: 5px;
}
.input-field {
    display: flex;
    flex-direction: column;
}
.search-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
label {
    margin-bottom: 8px;
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    text-align: left;
    color: #2C2C2C;

}

.input-field input[type="text"],
.input-field  input[type="number"], select {
    padding: 12px;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 300;
    line-height: 19.6px;
    text-align: left;
    margin-bottom: 20px;

}
.year-selection {
    display: flex;
    gap: 20px;
}
.table-3-radio label{
    font-weight: 300;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.btn-refresh {
    width: 48%;
    border-radius: 8px;
    color: #fff;
    font-family: Ford Antenna;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.btn-refresh.disabled {
    background-color: #d9d9d9; 
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-refresh.enabled {
    background-color: #d9d9d9; 
    color: #2C2C2C;
    cursor: pointer;
    opacity: 1;
}
.sort-container {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.sort-by select, .sort-newest select {
    padding: 5px;
    font-size: 14px;
    width: auto;
    border: none;
}

.sort-by {
    display: flex;
}
.sort-by span {
    margin-right: 5px; 
    white-space: nowrap;
}
.container-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-bottom: 1px solid #EDEDED;
}
.container-title p{
font-family: Ford Antenna;
font-size: 20px;
font-weight: 600;
line-height: 36px;
text-align: left;
}

.container-title span{
    color: #1E00AE;
}
.sort-by p {
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    display: flex;
    align-items: center;
    margin-top: -5px;
}
.input-container {
    display: flex;
    gap: 10px; /* Khoảng cách giữa 2 ô input */
}

/* phần dưới */












#keyword-search {
    width: 100%;
    height: 130px;
    resize: none;
    overflow-wrap: break-word;
    padding: 10px;
    border: 1px solid #EDEDED;
    border-radius: 8px;
    font-family: Ford Antenna;
    font-size: 14px;
    font-weight: 300;
    line-height: 19.6px;
    text-align: left;
    margin-bottom: 45px;
}




button.btn-search {
    background-color: #1E00AE;
    width: 48%;
    border-radius: 8px;
    color: #fff;
    font-family: Ford Antenna;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

button.btn-search:hover{
    background-color: #007bff;
}
.search-table-1 ,.search-table-2 {
    border-right: 1px solid #E8E8E8;
    padding-right: 20px;
}

#select-ics {
    margin: 0;
}
#select-lang {
    margin: 0;
}

.year-selection {
    display: flex;
}


/* Đặt chiều rộng cho hộp Select2 */
.select2-selection {
    padding: 10px !important;
    border: 1px solid #EDEDED !important;
    border-radius: 8px !important;
    font-family: 'Ford Antenna' !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 19.6px !important;
    text-align: left !important;
    margin-bottom: 20px !important;
    height: 40px !important;
    width: 100% !important;
    
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 8px;
    padding-right: 20px;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 30px;
    white-space: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    margin: -5px;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none;
}


.product-list {
    display: grid;
    gap: 20px;
}

.home-link {
    text-decoration: none !important;
    color: #2C2C2C;
}
.search-box {
    font-family: Ford Antenna;
    font-size: 24px !important;
    font-weight: 600;
    line-height: 36px;
    text-align: left;
}

.icon1{
    font-size: 20px;
}
.icon1.disabled{
    color: #fff;
}

.icon1.enabled{
    filter: invert(1);
}


/* responsive */
@media screen and (max-width: 1510px) {
    .container-boxed-banner {
        width: 99%;
    }
    .title-home {
        padding: 20px 10px;
    }
    .product-list {
        gap: 10px;
    }
}
@media screen and (max-width: 1300px) {
    /* .product-list {
        grid-template-columns: repeat(5, 1fr);
    } */
}

@media screen and (max-width: 1100px) {
    /* .product-list {
        grid-template-columns: repeat(4, 1fr);
    } */
    .icon1 , .icon2 {
        height: 20px;
    }
    .btn-refresh ,.btn-search {
        font-size: 12px;
    }
    .action-buttons {
        gap: 10px;
    }
}

@media screen and (max-width: 900px) {
    /* .product-list {
        grid-template-columns: repeat(3, 1fr);
    } */

    .product-list .product-item{
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    /* .product-list {
        grid-template-columns: repeat(2, 1fr);
    } */
}


@media screen and (max-width: 767px) {
    .search-box h2{
        font-size: 18px !important;
    }
    .search-panel {
        display: grid;
        grid-template-columns: none;
        gap: 20px;
    }
    .container-title p {
        font-size: 16px;
    }
    .titile-banner {
        font-size: 24px;
    }
    .search-table-1, .search-table-2 {
        border-right: none;
        padding-right: 0;
    }
}
@media screen and (max-width: 370px) {
.year-selection {
    display: flex;
    flex-direction: column;
}
}
#page-size-select-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
    margin-left: -10px;
}

#page-size-select {
  
    width: 100px;
}
















.product-image {
    width: 200px;
    height: 183px;
    margin: 12px 0;
    border-radius: 5px;
    padding: 0px 15px;
    background-color: #fff; 
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover; 
}
.discount {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    color: #fff;
    border-radius: 5px;
    margin: -10px;
    height: 25px;
    transition: all 0.3s ease;
    position: relative;
}
.product-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #157FFF;
    cursor: pointer;
}

.has-discount {
    background-color: #FF2E00;
}

.no-discount {
    background-color: transparent;
}

.product-category, .product-title, .product-group, .product-price {
    min-height: 20px;
}

.product-category {
    color: #157FFF;
    margin-top: -10px;
    font-family: Ford Antenna;
    font-size: 12px;
    font-weight: 300;
    line-height: 36px;
}

.product-title {
    font-family: Ford Antenna;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 5px;
}

.product-group {
    font-family: Ford Antenna;
    font-size: 12px;
    font-weight: 300;
    line-height: 21px;
    color: #7E7E7E;
    margin-bottom: 5px;
}

.product-price {
    font-family: Ford Antenna;
    font-size: 16px;
    font-weight: 500;
    line-height: 27px;
    margin-bottom: 5px;
}

.product-icons-list-book{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-right: -10px;
}
.icon-list-book1{
    display: none;
    border-right: 1px solid #EDEDE8;
    padding-right: 20px;
}
.icon-list-book2{
    display: none;
}

.product-item:hover .icon-list-book1,
.product-item:hover .icon-list-book2{
    display: flex;
}
.product-item:hover .product-image {
    clip-path: inset(0 0 20% 0); 
    height: 183px;
}

.product-item:hover .product-category{
    margin-top: -50px;
}

.product-item {
    flex: 0 0 208px;
    box-sizing: border-box;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #EDEDED;
    text-decoration: none !important;
    color: #2c2c2c;
}

.product-category,
.product-title,
.product-group,
.product-price {
    min-height: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; 
    line-height: 1.5; 
    max-height: 3em; 
    visibility: visible; 
}

.product-category:empty::before,
.product-title:empty::before,
.product-group:empty::before,
.product-price:empty::before,
.product-image:empty::before  {
    content: '\00a0'; 
    visibility: hidden; 
}
 
@media screen and (max-width: 440px){
    .product-item {
        flex: 0 0 160px !important; 
        box-sizing: border-box;

}

    .product-image{
        height: 140px !important;
        padding: 0px 10px !important;
        width: 120px !important;
    }
    .product-category {
    font-size: 10px !important;
    }
    .product-title {
   font-size: 12px !important;
    }
    .product-group{
        font-size: 10px !important;
    }
    .product-price{
        font-size: 12px !important;
    }

 
}


.custom-pagination {
    display: flex;
    justify-content: center; 
    margin: 20px;
}

.custom-pagination .btn-page, .custom-pagination span{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid #EDEDED;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 8px;
}
.custom-pagination span{
    width: 42px;
}
.custom-pagination .current {
    background-color: #2C2C2C;
    color: #fff;
    border-color: #2C2C2C;
}

.custom-pagination .btn-page {
    background-color: #fff;
    color: #000;
}

.custom-pagination .btn-page:hover {
    background-color: #f0f0f0;
}

.custom-pagination .prev,
.custom-pagination .next {
    width: auto;
    padding: 0 10px;
}

.custom-pagination .dots {
    background-color: transparent;
    border: none;
    pointer-events: none;
    width: auto;
}
.btn-page.active {
    background: #000;
    color: #fff;
}

/* CSS để đưa loading ra giữa */
#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8); 
    z-index: 9999; 
  }
  
  #loading-container i {
    font-size: 80px; 
    color: #1e00ae; 
    animation: spin 1s linear infinite; 
  }
  
  @keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
  }











  .product-item-search {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.product-image-search {
    width: 160px;
    height: auto;
    margin-right: 20px;
}

.info-search {
    flex-grow: 1;
    max-width: 70%;
}

.product-title-search {
    font-size: 18px;
    color: #1E00AE;
    margin: 0;
    font-family: Ford Antenna;
    font-weight: 600;
}

.product-group-search {
    font-size: 14px;
    color: #2c2c2c;
    margin: 5px 0;
    font-family: Ford Antenna;
}

.product-category-search {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 300px;
}

.product-price-search {
    font-size: 16px;
    color: #c00;
    font-weight: bold;
    margin: 5px 0;
}

.button-search {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
}

.button-cart-search, .button-wishlist-search {
    background-color: transparent;
    border: 1px solid;
    cursor: pointer;
    margin-top: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    width: 100px;
    font-family: Ford Antenna;
}
.button-cart-search img,
.button-wishlist-search img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.button-cart-search ,.button-wishlist-search {
    color: #2c2c2c;
    font-family: Ford Antenna;
    font-weight: 500;
}


.link-search {
    margin-right: 20px;
}

@media (max-width: 768px) {
    .product-item-search {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-image-search {
        width: 160px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .button-search {
        align-items: flex-start;
        margin-top: 10px;
    }

    .product-title-search {
        font-size: 16px;
    }

    .product-price-search {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-item-search {
        padding: 10px;
    }

    .product-image-search {
        width: 160px;
    }

    .product-title-search {
        font-size: 14px;
    }

    .product-group-search,
    .product-category-search,
    .product-price-search {
        font-size: 12px;
    }

    .button-cart-search,
    .button-wishlist-search {
        font-size: 12px;
    }
}
