*{
    margin: 0px;
    padding: 0px;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
    font-size: 17px;
    line-height: 1.6;
}

#header{
    background: linear-gradient(90deg, #f8b500 0%, #f6e1aa 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
    z-index: 1000;
}
.header_top{
    max-width:1300px ;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}
/*header top */
.logo {
    
    display: inline-block; /* co lại vừa với nội dung bên trong */
}

.logo img {
    width: 80px; /* điều chỉnh tùy ý, ví dụ 30% kích thước gốc ảnh */
    height: auto;
}
.search{
    position: relative;
    width: 600px;
    margin-left: -20px;
    height: 33px;
}
.search-icon{
    position: absolute;
    text-align: right;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(121, 119, 117, 0.889);

}
.search input{
    width: 100%;
    height: 100%;
    border-radius: 7px;
    border: 1px solid rgb(183, 106, 23);
} 

.log a{
    text-decoration: none;
    font-size: 20px;
    color: #333;
    margin: 0 12px;
    transition: color 0.2s;
} 
.log{
    margin-left: 70px;
}

.log a:hover{
    text-decoration: underline;
    color: cornflowerblue;
} 
.log a:active{
    text-decoration: underline;
    color: rgb(213, 10, 10);
}
.sell {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    border: none;
    border-radius: 25px;
    padding: 8px 32px;
    box-shadow: 0 2px 8px rgba(255,81,47,0.15);
    transition: background 0.3s;
}
.sell a{
    text-decoration: none;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

/* header bot */
.header_bot{
    width: 1300px;
    margin: 0 auto;
    padding: 10px 0px;
    position: relative;
}
.header_bot ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
}
.header_bot li {
    position: relative;
}
.header_bot .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}
.header_bot .dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: all 0.3s ease;
}
.header_bot .dropdown-content a:hover {
    background-color: #f8b50022;
    color: #d35400;
}
.header_bot li:hover .dropdown-content {
    display: block;
}
.header_bot li:hover > a {
    color: #d35400;
}
.header_bot a{
    text-decoration: none;
    font-size: 23px;
    color: black;   
    font-weight: bold;
}
.header_bot a:hover, .icon a:hover{
    background: #f8b50022;
    color: #d35400;
}

.header_bot a:active, .icon a:active{
    color: rgb(236, 7, 7);
    font-weight: bold;
}

.bi {
    padding: 0px 5px;   
}
.icon a{
    text-decoration: none;
    color: black;
}

/* main*/
#main{
    max-width:1300px ;
    margin: 0 auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 30px 24px;
    margin-top: 18px;
}
.banner {
    height: 500px;  
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.banner .slide {
    
    position: absolute;
    top: 42%;
    left: 50%;
    width: 85%;
    height: 80%;
    border-radius: 4px;
    object-position: center;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner .slide.active {
    opacity: 1;
    z-index: 1;
}

/* Sản phẩm */
.title{
    display: flex;
    justify-content: space-between;
}
.title h1{
    color: red;
    text-decoration: none;
    margin-left: 12px;
}
.title a{
    font-size: 20px;
    font-weight: bold;
    color: red ;
    margin-right: 12px;
}
.title a:hover{
    color: rgb(164, 58, 58);
    
}

.card{
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 18px;
}
.anh{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.anh:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.anh img{
    width: 250px;
    height: 320px;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    margin-bottom: 10px;
}
.ten{   
    text-align: center;
    font-weight: bold;  
}
.ten h2 {
    font-size: 22px;
    color: #f76d1a;
    margin-bottom: 6px;
}

.gia_thue{
    font-size: 18px;
    font-weight: bold;
    color: red;
}
.gia_ban{
    font-size: 18px;
    margin:0px 12px 10px;
}
hr {
    background: linear-gradient(90deg, #f8b500 0%, #ff512f 100%);
    height: 3px;
    border-radius: 2px;
    margin: 30px 0;
}

/* footer */
.footer {
    background: linear-gradient(90deg, #f8b500 0%, #f6e1aa 100%);
    padding: 60px 0 0;
    margin-top: 50px;
    

}
.footer_hienthi{
    max-width: 1300px;
    margin: 0 auto;
}
.footer-top {
    padding-bottom: 40px;
}

.footer-single-widget {
    margin-bottom: 30px;
}

.widget-body{
    font-size: 30px;
}
.widget-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ff512f;
}

.widget-body {
    color: #666;
    line-height: 1.8;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #666;
}

.contact-item i {
    margin-right: 10px;
    color: #ff512f;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px 0;
}

.footer-copyright {
    text-align: center;
    color: #666;
    font-size: 16px;
}

.footer-copyright a {
    color: #ff512f;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-single-widget {
        margin-bottom: 40px;
    }
    
    .widget-title {
        font-size: 20px;
    }
}

/* Login Form Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f8b500 0%, #f6e1aa 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
   
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 16px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.form-group input {
    width: 80%;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #f8b500;
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.forgot-password {
    color: #f8b500;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #f8b500 0%, #ff512f 100%);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.social-login {
    text-align: center;
    margin-top: 20px;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: background 0.3s;
}

.social-btn i {
    margin-right: 5px;
}

.social-btn.google:hover {
    background: #f1f1f1;
}

.social-btn.facebook:hover {
    background: #f1f1f1;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register-link a {
    color: #f8b500;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}




/* Giới thiệu */
.content_GT {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content_anh {
    text-align: center;
    margin-bottom: 30px;
}

.content_anh img {
    max-width: 200px;
    height: auto;
}

.mota {
    padding: 20px;
}

.mota h2 {
    color: #f76d1a;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.mota p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

.mota ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mota ul li {
    margin: 15px 0;
    font-size: 16px;
    color: #444;
    display: flex;
    align-items: center;
}

.mota ul li a {
    color: #f76d1a;
    text-decoration: none;
    margin-left: 5px;
    font-weight: bold;
}

.mota ul li a:hover {
    text-decoration: underline;
}

/* Responsive cho trang giới thiệu */
@media screen and (max-width: 1200px) {
    .content_GT {
        margin: 30px 20px;
    }
}

@media screen and (max-width: 700px) {
    .content_GT {
        margin: 20px 10px;
        padding: 15px;
    }

    .mota h2 {
        font-size: 24px;
    }

    .mota p, .mota ul li {
        font-size: 14px;
    }
}





/* Responsive styles */
@media (max-width: 768px) {
    .labs .card {
        margin-bottom: 20px;
    }
    
    .labs .card-title {
        font-size: 18px;
    }
}

/* Responsive cho màn hình < 1200px */
@media screen and (max-width: 1200px) {
    .header_top, .header_bot, #main, .footer_hienthi {
        max-width: 95%;
    }

    .search {
        width: 400px;
    }

    .card {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .anh {
        width: calc(50% - 20px);
        max-width: 300px;
    }

    .anh img {
        width: 100%;
        height: auto;
    }

    .footer-single-widget {
        margin-bottom: 30px;
    }
}

/* Responsive cho màn hình < 700px */
@media screen and (max-width: 700px) {
    .header_top {
        flex-wrap: wrap;
        gap: 15px;
        padding: 10px;
    }

    .logo img {
        width: 60px;
    }

    .search {
        width: 100%;
        order: 3;
        margin: 10px 0;
    }

    .log, .icon, .sell {
        margin: 5px 0;
    }

    .header_bot ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .header_bot li {
        width: auto;
    }

    .header_bot .dropdown-content {
        width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }

    .banner {
        height: 300px;
    }

    .banner .slide {
        width: 95%;
        height: 90%;
    }

    .card {
        flex-direction: column;
        align-items: center;
    }

    .anh {
        width: 100%;
        max-width: 300px;
    }

    .footer-top {
        padding: 20px 10px;
    }

    .widget-body {
        font-size: 16px;
    }

    .contact-item {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 14px;
    }
}

/* Thêm responsive cho dropdown menu */
@media screen and (max-width: 700px) {
    .header_bot .dropdown-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        width: 80%;
        max-width: 300px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        border-radius: 10px;
        padding: 20px;
        display: none;
    }

    .header_bot li:hover .dropdown-content {
        display: block;
    }

    .header_bot .dropdown-content a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .header_bot .dropdown-content a:last-child {
        border-bottom: none;
    }
}

/* About Page Styles */
.about-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f8b500 0%, #ff512f 100%);
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 30px;
    color: #f8b500;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

.features-section {
    margin-top: 60px;
}

.features-section h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 40px;
    color: #f8b500;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #f8b500 0%, #ff512f 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.feature-link:hover {
    transform: translateY(-2px);
}

/* Lab TH Styles */
.labs {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 24px;
}

.labs .card {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.labs .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.labs .card-body {
    padding: 20px;
}

.labs .card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.labs .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.labs .card-title a:hover {
    color: #f8b500;
}

.labs .card-text {
    margin-bottom: 10px;
}

.labs .card-text a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.labs .card-text a:hover {
    color: #f8b500;
}

.labs .btn-primary {
    background: linear-gradient(90deg, #f8b500 0%, #ff512f 100%);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
}

.labs .btn-primary:hover {
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #f8b500 0%, #ff512f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
}
