:root {
    --color-background: #482d2d;
    --color-slogan: #4f9a46;
    --color-subslogan: #808000;
    --color-nav: rgb(126, 39, 39);
    --color-buy: #4CAF50
}
main {
  padding: 30px 10.5%;
}
/* .main {
    padding:0
} */
.menu-product {
    background-color: #f9f9f9; /* Màu nền nhẹ nhàng */
    border-radius: 8px; /* Bo góc cho hộp */
    padding: 20px; /* Tạo khoảng cách bên trong hộp */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Thêm bóng đổ để tạo chiều sâu */
    max-width: 400px; /* Giới hạn chiều rộng tối đa của hộp */
    margin: 20px auto; /* Căn giữa hộp trên trang */
}

.menu-product span {
    display: block;
    font-size: 18px; /* Kích thước chữ lớn hơn cho tiêu đề */
    font-weight: bold;
    color: #333;
    margin-bottom: 15px; /* Khoảng cách dưới tiêu đề */
    text-align: center;
}

.menu-product a {
    display: block;
    font-size: 16px; /* Kích thước chữ cho các mục */
    color: #007bff; /* Màu chữ xanh dễ nhìn */
    text-decoration: none; /* Bỏ gạch chân */
    margin-bottom: 10px; /* Khoảng cách giữa các mục */
    padding-left: 10px; /* Tạo khoảng cách lề trái cho các mục */
    transition: color 0.3s ease, padding-left 0.3s ease; /* Hiệu ứng chuyển màu và dịch chuyển khi hover */
}

.menu-product a:hover {
    color: #0056b3; /* Màu chữ đậm hơn khi hover */
    padding-left: 20px; /* Dịch chuyển lề trái khi hover */
}
.buy-now{
    color:var(--color-buy);
    font-weight: bold;
    
}
.intro-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Tiêu đề chính */
.intro-section h2.gt-h2 {
    font-size: 28px;
    color: #d9534f;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Tiêu đề phụ */
.intro-section h3 {
    font-size: 22px;
    color: #555;
    margin-top: 10px;
    font-weight: bold;
}

/* Phong cách đoạn văn */
.intro-section p {
    font-size: 16px;
    line-height: 2.0;
    color: #555;
    margin-bottom: 20px;
}

/* Định dạng cho danh sách */
.intro-section .dp-bl {
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

/* Phong cách hình ảnh */
.intro-section .sub-item {
    display: flex;
    align-items: center;
    margin-top: 20px;
    flex-direction: column;
}



.intro-section .sub-item h3 {
    
    color: #d9534f;
    margin: 12px;
    font-weight: 100;
    font-style: italic;
    font-size: 18px;
    text-align: center;
}



.product-image {
    align-self: center; /* Căn giữa hình ảnh */
    margin-bottom: 20px;
}

/* Phong cách cho các mục nhỏ */
.intro-section .sub-item img {
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.products-about {
    /* max-width: 1200px; */
    text-align: center;
}

.products-about hr {
    max-width: 1200px;
    opacity: 0.5;
}
.z-flex {
    display: flex;
    align-items: center;
    max-width: 266px;
    text-decoration: none;
    color: blue;
    font-weight: bold;
}
.margin-0 {
    margin: 0;
}
.hotline-product a {
    text-decoration: none;
    color: red;
    font-weight: bold;
}
.color-red {
    color:red
}
.product-other span {
    font-weight: bold;
    font-size: 18px;
}
.product-other li {
    padding: 5px;
}
.product-other a {
    text-decoration: none;
    color: blue;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 3rem;
    margin-bottom: 3rem;
    gap: 5rem;
}
.product-item .detail {
    text-decoration: none;
    margin-bottom: 30px;
}
.sub-item .w-h {
    width: 1000px;
    height: 563px;
}
.item {
    border: 1px solid #ddd;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s, box-shadow 0.3s;
}

.item img {
    width: 340px;
    height: 340px;
    margin-bottom: 15px;
}

.sub-item .sp {
    width: auto;
    height: auto;
}

.sub-item p {
    font-style: italic;
    margin-bottom: 30px;
}
.sub-item h3 {
    font-weight: 100;
    font-style: italic;
    font-size: 16px;
}
.ab {
    text-align: center;
}
.ab img {
    width: 800px;
    height: 450px;
}

.product-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-image img {
    max-width: 100%;
    
    display: block;
    /* border-radius: 8px; */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.thumbnails {
    flex: 1 1 50%;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: calc(20% - 10px); /* 20% width with gap of 10px */
    margin-bottom: 10px;
    margin-right: 3px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    object-fit: cover; /* Thêm thuộc tính này để đảm bảo hình ảnh vừa khung */
}

.thumbnail:hover {
    transform: scale(1.05);
}

.product-details {
    flex: 1 1 100%;
    margin-top: 20px;
}




.product-des {
    text-align: center;
}
.product-des h2 {
    margin: 0.5rem 0;
    font-size: 18px;
    text-transform: uppercase;
    line-height: 24px;
}

#ml1,#ml2,#ml3,#ml4,#ml5,#ml6,#ml7,#ml8 {
    font-size: 25px;
    font-weight: bold;
    line-height: 30px;
    color: #d9534f;
}

.dp-bl {
    display: block;
    padding-bottom: 5px;
}
.h2 h2{
    color: var(--color-nav);
}
.container h2 a {
    color: var(--color-nav);
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.overlay-content p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.overlay-content button {
    width: 100%;
    margin: 10px 0;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.overlay-content button:nth-child(2) {
    background-color: #28a745; /* Xanh lá cây cho "Gọi điện" */
}

.overlay-content button:nth-child(3) {
    background-color: #007bff; /* Xanh dương cho "Nhắn tin Zalo" */
}

.overlay-content button:nth-child(2):hover {
    background-color: #218838;
    transform: translateY(-3px);
}

.overlay-content button:nth-child(3):hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}
.gt-h2 {
    font-size: 20px;
    margin: 0.8rem 0;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.intro-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Tiêu đề chính */
.intro-section h2.gt-h2 {
    font-size: 28px;
    color: #d9534f;
    margin-bottom: 15px;
    font-weight: bold;
}
.contact-section .gt-h2 {
    font-size: 28px;
    color: #d9534f;
    margin-bottom: 15px;
    font-weight: bold;
} 




/* Định dạng cho danh sách */
.intro-section .dp-bl {
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

/* Phong cách hình ảnh */
.intro-section .sub-item {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.intro-section .sub-item img.sp {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
}







/* Phong cách cho liên hệ */
.contact-section {
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.contact-section .bold {
    font-weight: bold;
    color: #d9534f;
}

.contact-section .hotline-product a {
    color: #d9534f;
    font-weight: bold;
    text-decoration: none;
    margin-right: 5px;
}

.contact-section .zalo {
    display: flex;
    align-items: center;
    background-color: #d9534f;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    max-width: 300px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.contact-section .zalo img {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.contact-section .zalo:hover {
    background-color: #c9302c;
}

.product-item {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px; /* Tăng khoảng cách giữa các sản phẩm */
    padding: 20px;
}

.item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item.chaogang {
    max-width: 350px;
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.thumbnail img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail img:hover {
    border-color: #007bff;
    outline: none; /* Đảm bảo không có viền outline khi hover */
}

.product-des {
    margin-top: 20px;
}

.describe {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.describe.chaogang {
    font-size: 20px;
}

.sale {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price {
    font-size: 20px;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-button:hover {
    background-color: #218838;
}

.intro-section .why {
    font-weight: bold;
    color: #555;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9); 
}

/* Modal Content (the image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Add if needed */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

/* Add Animation - Zoom in the Modal */
.modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Thời gian và hiệu ứng chuyển đổi */
}

.product-image img:hover {
    transform: scale(1.1); /* Phóng to 10% */
    cursor: pointer;
}

.products-detail {
    text-align: center;
    margin-bottom: 30px;
}

.products-detail h1 {
    font-size: 32px;
    color: #d9534f;
    font-weight: bold;
    margin-bottom: 15px;
    TEXT-TRANSFORM: UPPERCASE;
}
.chaogang .fz {
    display: block;
    font-size: 20px;
    margin-top: 10px;
}

.products-detail hr {
    width: 60%;
    border: 0;
    border-top: 3px solid #d9534f;
    margin: 0 auto 25px;
}

/* CSS cho menu sản phẩm */
.menu-product {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.menu-product span {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 20px;
}

.menu-product a {
    display: block;
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 12px;
    padding: 8px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 25px;
}

.menu-product a:hover {
    background-color: #d9534f;
    color: #fff;
    text-decoration: none;
}
.intro-section ul li {
    line-height: 22px;
}
.kt-size {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 30px;
    font-weight: bold;
    font-family: 'Merriweather', serif
}

@media (max-width: 768px) {
    main {
        padding: 10px 2.5%;
      }
      .sub-item .w-h {
        width: 100%;
        height: auto;
    }
    .describe.chaogang {
        font-size: 18px;
    }
    .thumbnail img {
        width: 46px;
        height: 46px;
       
    }
    #ml1,#ml2,#ml3,#ml4,#ml5,#ml6,#ml7,#ml8 {
        font-size: 20px;
        line-height: 30px;
        
    }
    .product-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
    }
   
    .item {
        margin-bottom: 30px;
    }
    .item img {
        /* width: 100%;
        height: 100%; */
        margin-bottom: 15px;
    }
   
    .ab img {
        width: 100%;
        height: auto;
    }
    .products-detail {
        display: block;
        justify-content: center;
    }
    
    .container {
        flex-direction: column;
    }
    
    .product-image,
    .thumbnails,
    .product-info {
        flex: 1 1 100%;
    }

    .thumbnails {
        justify-content: center;
    }
    .intro-section h2.gt-h2 {
        font-size: 22px;
    }
    .chaogang .fz {
        display: block;
        font-size: 16px;
        margin-top: 5px;
    }
    .intro-section .sub-item img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);}
        .products-detail {
            margin-bottom: 20px;
            padding: 0 10px;
            text-align: center;
        }
    
        .products-detail h1 {
            font-size: 24px;
            line-height: 1.5;
            margin-bottom: 15px;
            color: #d9534f;
        }
       
        .products-detail h1.chaogang {
            font-size: 22px;
        }
    
        .products-detail hr {
            width: 50px;
            border: 0;
            border-top: 3px solid #d9534f;
            margin: 10px auto 20px;
        }
    
        .menu-product {
            padding: 20px;
            max-width: 95%;
            margin: 0 auto;
            border-radius: 10px;
            background-color: #ffffff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
    
        .menu-product span {
            font-size: 18px;
            margin-bottom: 15px;
            color: #343a40;
            text-align: center;
            display: block;
        }
    
        .menu-product a {
            display: block;
            font-size: 16px;
            color: #007bff;
            text-decoration: none;
            padding: 12px;
            margin-bottom: 10px;
            background-color: #f8f9fa;
            border-radius: 5px;
            transition: background-color 0.3s ease, color 0.3s ease;
            line-height: 22px;
        }
    
        .menu-product a:hover {
            background-color: #007bff;
            color: #ffffff;
        }
  
}


