* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
}

ul {
    list-style: none;
}

li a {
    text-decoration: none;
    color: #000;
}



.product-section {
    display: block;
    margin-top: 20px;
}

.container {
    margin-left: 15%;
    margin-right: 15%;
}

@media (max-width: 1300px) {
    .col-md-12 {
        gap: 30px;
    }
}

.col-md-12 {
    position: relative;

}

.product-title {
    background: #fbe0c6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: #e6e6e6 solid 1px;
    display: flex;
    gap: 15px;
}

.col-md-12 .col-md-3 {
    width: 25%;

}

.col-md-12 .col-md-9 {
    width: 75%;

}

.boxform {
    padding: 10px;
    border-bottom: rgb(182, 182, 182) solid 1px;
}

.product-introduce {
    margin-bottom: 10px;

}

.text-h {
    font-size: 1.1rem;
    white-space: nowrap;
    margin-bottom: 10px;
    font-family: 300;
}

.product-search {
    display: flex;
    background: #fdf8f4;
    border-radius: 5px;
    margin-bottom: 10px;
    border: #c4c4c4 solid 1px;
    height: 30px;

}

.product-search input {
    width: 80%;
    padding: 10px;
    border: none;
    outline: none;
    background: transparent;
}

.product-search button {
    width: 20%;
    height: auto;
    border: none;
    background: transparent;
    cursor: pointer;
}

.product-search button span {
    font-size: 20px;
}

input:focus {
    background: #eeecec;
    border-radius: 3px 0 0 5px;
    transition: all 0.3s ease;
}

.product-introduce-list {
    position: relative;
    max-height: 150px;
    overflow: auto;
}

.product-introduce-list::-webkit-scrollbar {
    width: 5px;
    /* Độ rộng thanh cuộn dọc */

}

.product-introduce-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Nền rãnh */
    border-radius: 5px;
}

.product-introduce-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9f43, #ffa3a3);
    border-radius: 8px;
}

.product-introduce-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b6b, #f39595);
}

.product-introduce-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 15px;
    height: 15px;
    border: 1px solid #a3a3a3;
    border-radius: 2px;
    margin-right: 8px;
    cursor: pointer;
    position: relative;
    background: rgb(255, 255, 255);

}

.product-introduce-list input[type="checkbox"]:checked {
    background: white;
    border-color: #f1a0a0;
}

.product-introduce-list input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -3px;
    left: 2px;
    color: #f57a7a;

}

.product-introduce-list label {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

label:hover {
    color: #ffb31a;
    font-weight: 400;
}

.product-introduce-list label:hover input[type="checkbox"] {
    border-color: #ffb31a;
}


.product-title-right {
    padding: 10px;
    margin-bottom: 10px;
    display: grid;
     grid-template-rows: auto 1fr auto; /* hàng trên, giữa mở rộng, dưới */
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
}

.product-item {
    max-width: 240px;
    max-height: 290px;
    background: white;
}

.product-item .col-frame {
    position: relative;

    height: 100%;
    transition: all 0.3s ease;
}

.col-frame:hover {
    height: 335px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.col-frame .product-image {
    padding: 5px;
    margin-bottom: 10px;
}

.col-frame .product-image img {
    position: relative;
    width: 100%;
    height: 200px;
}

.col-frame .product-text {
    padding: 0 5px;
    margin-bottom: 10px;

}

.col-frame .product-text label {
    position: relative;
    line-height: 1.4em;
    height: calc(1.2em * 2);
    /* 2 dòng thôi */
    color: #000;
    font-size: 14px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;

}

.product-text:hover label {
    color: #eea968;
    cursor: pointer;
}

p {
    padding: 0 5px;
    color: red;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
}

.col-frame .frame-sibmit {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 0;
    padding: 0 5px;
    overflow: hidden;
}

.col-frame:hover .frame-sibmit {
    height: 30px;
    transition: height 0.3s ease;
}

.frame-sibmit .box-sibmit {
    position: relative;
    width: 195px;
    height: 100%;
    background: #ffbf82;
    border-radius: 5px;
}

.frame-sibmit .box-sibmit button {
    background: transparent;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 15px;
    color: rgb(255, 243, 243);
    font-weight: 500;
}

.box-sibmit button:hover {
    background: #f7a252;
    border-radius: 5px;
    color: #e9e8e7;
}

.box-sibmit .icon-cart {
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 20px;
    transform: translateX(40px);
}

.frame-sibmit .frame-icon {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: #85858542 1px solid;
    border-radius: 5px;
    margin-left: 4px;
}

.frame-icon .tim {
    color: rgba(185, 149, 149, 0.473);
}

.frame-icon:hover {
    border: #f0000075 1px solid;

}

.frame-icon:hover .tim {
    color: rgba(255, 0, 0, 0.507);
}


.product-title-right .pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ccc;
    background:#ffffff;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #ff6600;
    color: white;
    font-weight: bold;
}
.alert-success {
    position: absolute;
    top: 21.3%;
    left: 0;
    background: #d4edda;
    color: #155724;
    padding: 10px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    z-index: 9999;
    
}