* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0px;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

#top {
    width: 100%; 
    height: 48px; 
    background-color: rgb(12, 80, 69); 
    color: #FFF;
}

#top-content {
    width: 80%; 
    height: 48px; 
    margin: 0px auto;
}

#top-left {
    width: 70%; 
    height: 48px;  
    float: left; 
    line-height: 48px; 
    color: white; 
    font-size: 14px;
}

#top-right {
    width: 30%;
    height: 48px; 
    float: right; 
    line-height: 48px;
    text-align: right;
    font-size: 14px;
}

#top-right a {
    color: #FFF;
    text-decoration: none;
}

#top-right a:hover {
    text-decoration: underline;
}

#banner {
    width: 100%;
    height: 140px; 
    background-color: #ebeadd;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

#banner-content {
    width: 80%; 
    margin: 0 auto;
    display: flex;             
    align-items: center;       
    justify-content: space-between; 
}

#logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo img {
    max-height: 60px;
    border-radius: 50%;
}


.info-item {
    display: flex;
    align-items: center; 
    gap: 10px;           
}

.info-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}


.info-item .text {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

@media (max-width: 768px) {
    .info-item {
        display: none;
    }
}

#cart {
    height: 140px; 
    display: flex;
    align-items: center;
}

.cart-button {
    border-radius: 25px;
    background-color: orange;
    color: #FFF;
    padding: 0 30px;
    height: 98px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    font-size: 16px;
    justify-content: center;
    align-items: center;
}

.cart-button:hover {
    background-color: #c96712;
}

#header {
    width: 100%;
    position: relative;
    display: flex;         
    justify-content: center;
}

#slidetong {
    display: block;        
    margin: 0 auto;        
    max-width: 90%;      
    height: auto;
}

#menu {
    position: -webkit-sticky; 
    position: sticky;         
    top: 0;                   
    z-index: 9999;
    background-color: rgb(36, 57, 36);
    width: 100%;
    height: 48px;
    clear: both;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

#menu ul {
    display: flex;             
    justify-content: center;   
    width: 80%;
    margin: 0px auto;
    height: 48px;
    list-style: none;
    padding: 0;
}

#menu ul::after {
    content: "";
    display: table;
    clear: both;
}

#menu ul li {
    flex: 1;            
    height: 48px;
    position: relative;
    white-space: nowrap;
    text-align: center;
}

#menu li a { 
    color: #FFF;
    text-decoration: none;
    display: block;
    padding: 0px 24px;
    line-height: 48px;
    font-weight: bold;
    text-transform: capitalize; 
}

#menu a:hover {
    background-color: #004d00;
}

/* Menu cấp 2 */
#menu ul ul {
    display: none;
    position: absolute;
    top: 48px;
    left: 0px;
    z-index: 999;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

#menu li:hover ul {
    display: block;
}

#menu li li {
    float: none;
    width: 220px;
    height: auto;
    background-color: #FFF;
    border-bottom: 1px solid #EEE;
    border-left: 1px solid #CCC;
    border-right: 1px solid #CCC;
}

#menu li li a {
    color: #333;
    line-height: 40px;
    padding: 0px 15px;
    font-weight: normal;
}

#menu li li a:hover {
    background-color: #f5f5f5;
    color: green;
}

#wrapper {
    width: 100%;
    min-height: 1000px;
    background-color: #636b53;
    padding-top: 30px;
}

#container {
    width: 80%;
    min-height: 100px;
    margin: 0px auto;
}

#container::after {
    content: "";
    display: table;
    clear: both;
}

#list-cate {
    margin-bottom: 15px;
    width: 23%; 
    float: left; 
    border: 1px solid #E0E0E0; 
    border-radius: 16px; 
    overflow: hidden;   
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    background-image: url("OIP.jpg");
    text-transform: uppercase;
}

.product-title {
    background-color: rgb(7, 83, 7);
    color: #ffffff;
    font-size: 18px;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 45px;
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

#list-cate ul li {
    line-height: 43.5px; 
    border-bottom: 1px solid #0d5e34;
}

#list-cate ul li:last-child {
    border-bottom: none;
}

#list-cate ul li a {
    display: block;
    padding-left: 20px;
    text-decoration: none;
    color: #f5ffef;
    line-height: 43.5px; 
    transition: 0.2s;  
    text-align: center;
}

#list-cate ul li a:hover {
    background-color: #f9f9f9;
    color: rgb(19, 86, 56);
    font-weight: bold;
}

/* CỘT PHẢI - NỘI DUNG CHÍNH  */
#slideshow {
    margin-bottom: 15px;
    width: 75%; 
    height: 400px; 
    background-color: #b9f9ff; 
    float: right;
    border-radius: 20px; 
    margin-bottom: 30px;
    overflow: hidden;
}

#slideshow img {
    width: 100%;         
    height: 100%;        
    object-fit: cover;   
    display: block;  
}

/* .ads {
    width: 80%;
    float: none;
    margin: 10px auto 30px auto;
    display: flex; 
    gap: 20px;
}

.ads img {
    flex: 1;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
} */

/* NỘI DUNG */
.cate {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tiêu đề */
.cate-title {
    display: inline-block;
    background-color: #39563f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
    margin-top: 30px;
}
.cate-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.list-product {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.list-product > [class*="col-"] {
    padding: 12px; 
    box-sizing: border-box;
}

/* THẺ SẢN PHẨM */
.product {
    background: #ffffff;
    border: 1px solid #eef4ef;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
    box-sizing: border-box;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1ebd5;
} 

/* HÌNH ẢNH SẢN PHẨM */
.product .photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover; 
    background-color: transparent; 
    transition: transform 0.4s ease;
    display: block;
    margin-bottom: 10px;

}
.product .info-wrapper {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}
/* phóng to khi ấn vô sản phẩm */
.product:hover .photo {
    transform: scale(1.03);
}

/* TÊN SẢN PHẨM */
.product .name {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    display: block; 
}

/* GIÁ SẢN PHẨM */
.product .price {
    font-size: 18px;
    color: #e67e22; 
    font-weight: bold;
    display: block;
    margin-top: auto; 
    margin-bottom: 10px;
}

/* HỆ THỐNG ĐA NỀN TẢNG*/
[class*="col-"] {
    float: left;
    padding: 10px;
}

/* Thiết lập cho Desktop (Màn hình lớn) */
@media only screen and (min-width: 1200px) {
    #header, #quick-contact, #list-cate, #slideshow { display: block; }
    .ads { display: flex; }
    #container { width: 80%; }
    
    .col-x-1  { width: 8.33%; }
    .col-x-2  { width: 16.66%; }
    .col-x-3  { width: 25%; }
    .col-x-4  { width: 33.33%; }
    .col-x-5  { width: 41.66%; }
    .col-x-6  { width: 50%; }
    .col-x-7  { width: 58.33%; }
    .col-x-8  { width: 66.66%; }
    .col-x-9  { width: 75%; }
    .col-x-10 { width: 83.33%; }
    .col-x-11 { width: 91.66%; }
    .col-x-12 { width: 100%; }
}

/* Thiết lập cho Tablet (Màn hình trung bình) */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
    #header, #quick-contact { display: block; }
    #list-cate { display: none; }
    #slideshow, .ads, .cate { width: 100%; float: none; } 
    #container { width: 95%; }
    .ads { display: flex; gap: 15px; }

    .col-m-1  { width: 8.33%; }
    .col-m-2  { width: 16.66%; }
    .col-m-3  { width: 25%; }
    .col-m-4  { width: 33.33%; }
    .col-m-5  { width: 41.66%; }
    .col-m-6  { width: 50%; }
    .col-m-7  { width: 58.33%; }
    .col-m-8  { width: 66.66%; }
    .col-m-9  { width: 75%; }
    .col-m-10 { width: 83.33%; }
    .col-m-11 { width: 91.66%; }
    .col-m-12 { width: 100%; }
}

/* Thiết lập cho Mobile (Màn hình nhỏ) */
@media only screen and (max-width: 767px) {
    #header, #quick-contact, #list-cate, .ads { display: none; }
    #slideshow, .cate { width: 100%; float: none; }
    #slideshow { height: 220px; }
    #container { width: 95%; }
    .product { margin-bottom: 10px; }
    .col-s-1  { width: 8.33%; }
    .col-s-2  { width: 16.66%; }
    .col-s-3  { width: 25%; }
    .col-s-4  { width: 33.33%; }
    .col-s-5  { width: 41.66%; }
    .col-s-6  { width: 50%; }
    .col-s-7  { width: 58.33%; }
    .col-s-8  { width: 66.66%; }
    .col-s-9  { width: 75%; }
    .col-s-10 { width: 83.33%; }
    .col-s-11 { width: 91.66%; }
    .col-s-12 { width: 100%; }
}

/*FOOTER VÀ TIỆN ÍCH KHÁC*/
#footer {
    width: 100%;
    background-color: rgb(67, 113, 67);
    margin-top: 50px;
    clear: both;
}

#footer-content {
    width: 90%;
    max-width: 1200px; 
    margin: auto;
    display: flex;
    flex-wrap: wrap; /*tự xuống dòng*/
    padding: 30px 0;
    color: white;
    gap: 40px;
}
#footer-content > div { 
    flex: 1 1 200px;
}

#footer-content h4 { margin-top: 0; margin-bottom: 15px;}
#footer-content p { margin: 5px 0; font-size: 14px;}
#footer-content span { color: yellow; }
#footer-content ul { line-height: 2; padding-left: 20px; list-style-type: disc; }
#footer-content a { color: white; text-decoration: none; }
#footer-content a:hover { text-decoration: underline; }
.footer-logo { 
    max-width: 100%;
    width: 150px; 
    height: auto; 
    border-radius: 5px; 
}

/*tự giảm padding*/
@media (max-width: 900px) {
    #menu li a {
        padding: 0px 12px;    
        font-size: 14px;       
    }
}
.khung-ngoai { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
}

.hop-chua {
    width: 600px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nhóm hàng  */
.nhom-truong { 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    gap: 15px; 
}

.nhan-ten { 
    width: 180px; 
    text-align: right; 
    font-weight: bold; 
    color: #333; 
}

.o-nhap-chuan { 
    width: 300px; 
    height: 38px; 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
}
.o-chon-chuan { 
    width: 145px; 
    height: 38px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
}

.khung-nut { 
    display: flex; 
    margin-top: 25px; 
    padding: auto;
}
.khoang-trang-can-le { 
    width: 195px; 
} 

.nut-dang-ky {
    width: 100%;  
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    display: inline-block;
}
.nut-dang-ky:hover { 
    background-color: #e68900; 
}
.nut-chuan.nut-facebook{
    width: 100px;
    height: 35px;
    background-color: rgb(65, 65, 193);
}
.nut-chuan.nut-google{
    width: 100px;
    height: 35px;
    background-color: rgb(222, 26, 26);
}
.nut-chuan.nut-google:hover {
    background-color: rgb(180, 20, 20);
}
.nut-chuan.nut-chuan.nut-facebook:hover {
    background-color: rgb(13, 42, 157);
}
.thong-bao {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
    font-weight: 500;
}

.thong-bao.loi {
    background-color: #ffe6e6;
    color: #d9534f;
    border-left: 4px solid #d9534f;
    display: block;
}

.thong-bao.thanh-cong {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* biểu tượng ở góc  */
#quick-contact {
    width: 80px;
    height: 80px;
    border-radius: 50%; 
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: orange;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    cursor: pointer;  
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#quick-contact .lienhe {
    width: 185%;     
    height: auto;
    object-fit: contain;
    margin-left: -11%;
    margin-top: 4%;
}
/* giỏ hàng */
.order-item{
	display: flex;
    flex-wrap: wrap;     
    align-items: center;  
    gap: 15px;
    margin-top: 40px;
    margin-left: 30px;
    margin-right: 120px;
    border: 2px solid #333;
    border-radius: 25px;
}

.order-photo, .order-name, .order-price, .order-action{
	flex: 1 1 200px;       /* Tự co giãn với kích thước cơ bản là 200px */
    line-height: normal;   
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 25px;
}

.order-action {
    display: flex;
    gap: 10px;            
    justify-content: center;
}
.remove-btn{
    padding: 20px 30px; 
    font-size: 16px;
}
.buy{
    padding: 20px 40px;
    border: #77c486;
    background-color: #486830;
    color: whitesmoke;
    font-size: 14px;
    cursor: pointer;
}
.buy:hover {
    background-color: #2d4f3a;
}
/*trang giới thiệu*/
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.gioi-thieu, .san-pham {
    padding: 20px;
    text-align: center;
}

.danh-sach {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.item {
    border: 1px solid #ddd;
    padding: 15px;
    width: 200px;
}
.ve-chung-toi {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.san-pham .danh-sach {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.item {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.item:hover {
    transform: translateY(-10px);
}

.danh-gia {
    padding: 40px 20px;
    background-color: #e8f5e9;
    text-align: center;
}

.test-item {
    margin: 20px 0;
    font-style: italic;
}
/* liên hệ*/
.contact-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.contact-title { 
    color: #2e7d32; 
    text-align: center; 
    margin-bottom: 10px; 
}

.contact-desc { 
    text-align: center; 
    color: #666; 
    margin-bottom: 30px; 
}

.lien-he-content { 
    display: flex; 
    gap: 40px; 
}
.thong-tin, .form-lien-he { flex: 1; }

/* Định dạng các ô nhập liệu */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box; 
    transition: 0.3s;
}

input:focus, textarea:focus { border-color: #2e7d32; outline: none; }

/* Nút bấm */
button {
    width: 100%;
    padding: 12px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

button:hover { background-color: #1b5e20; }

@media (max-width: 768px) {
    .lien-he-content { flex-direction: column; }
}
/*trang hướng dẫn- cham sóc*/
.container { max-width: 800px; margin: auto; background: white; padding: 40px; border-radius: 10px; }
h1 { 
    color: #2e7d32; 
    text-align: center; 
}
h2 {
    color: #1b5e20; 
    border-bottom: 2px solid #a5d6a7; 
    padding-bottom: 10px; 
}
table {
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0; 
}
th, td { border: 1px solid #ddd; 
    padding: 12px; 
    text-align: left; 
}
th { 
    background-color: #e8f5e9; 
}
.factors ul, .notes ol {
     background: #f9f9f9; 
     padding: 20px 40px; 
     border-radius: 5px; 
    }

/*thông tin sản phẩm*/
#product-fame{
    width: 100%; 
    border: 2px solid orange; 
    border-radius: 20px; 
    padding: 20px; 
    margin-top: 20px; 
    min-height: 350px;
}
.product-child {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    margin-left: 30px;
    margin-right: 40px;
}

.product-photo {
    flex: 4;
}
.product-photo img{
    width: 100%; 
    height: 300px; 
    object-fit: contain; 
    border-radius: 10px;
    
}
.product-information{
    display: flex;
    flex-direction: column;
    flex: 6;
    padding-left: 20px;
}
.product-information span{
    color: orange;
    font-weight: bold;
    
    
}
.product-action {
    margin-top: 10px;
}
@media (max-width: 600px) {
    .product-child {
        flex-direction: column; 
        text-align: center;
    }
    
    .product-information {
        align-items: center; 
        margin-top: 20px;
    }
}
.buy2 {
    background-color: #d1e7dd; 
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    
}

.cate-title {
    display: inline-block;
    background-color: #39563f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
    margin-top: 30px;
}

/*chính sách*/
.policy-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.policy-container h2 { color: #2c3e50; border-bottom: 2px solid #27ae60; padding-bottom: 10px; }
.policy-container h3 { color: #27ae60; margin-top: 20px; }
.policy-container ul { padding-left: 20px; }
.policy-container li { margin-bottom: 10px; }
.contact-info {
    margin-top: 30px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #27ae60;
}
/*thanh toán*/
.payment-page { max-width: 600px; margin: 50px auto; padding: 30px; border: 1px solid #ddd; border-radius: 10px; font-family: sans-serif; }
.payment-page h2 { text-align: center; color: #000000; }
.method { border: 1px solid #eee; padding: 15px; margin: 15px 0; border-radius: 8px; transition: 0.3s; }
.method:hover { border-color: #27ae60; background: #f9fff9; }
.method h4 { margin: 0 0 5px 0; color: #333; }
.method p { margin: 0; color: #666; font-size: 0.9em; }
    
/* Container chính chứa sản phẩm */
#sanpham {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
    background-color: #fff;
    text-align: center;
}

/* Ảnh sản phẩm */
#sanpham img {
    width: 60%;
    height: auto;
    object-fit: cover; 
    border-radius: 20px;
    margin-bottom: 20px;
}

#sanpham-text {
    margin-top: 15px;
    line-height: 2.0; /* Tăng khoảng cách dòng để dễ đọc */
    color: #333;
    margin-bottom: 15px;
}
#sanpham b {
    color: #e74c3c; /* Màu đỏ cho giá */
}
