/* ==========================================================================
   1. QUY TẮC CHUNG & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #FFF;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Khung chứa trung tâm cho các trang nội dung */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Tiêu đề chính trang con (Chính sách, Giới thiệu...) */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}
.main-header h1 {
    font-size: 32px;
    color: #1e8449;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.main-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   2. HEADER, BANNER & THANH ĐIỀU HƯỚNG
   ========================================================================== */
#header {
    height: 100px;
    width: 100%;
}

#top {
    width: 100%;
    height: 45px;
    background-color: green;
    text-align: center;
    color: white;   
}

#top a {
    color: white;
    text-decoration: none;
}

#top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    height: 100%;
}

#top-content-left {
    width: 20%;
    color: #FFFFD6;
    text-align: left;
}

#top-content-right {
    width: 20%;
    text-align: right;
}

#banner {
    width: 100%;
    height: 100px;
    background-color: #FFFFFF;
}

#banner-content {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

#banner-content-logo { width: 20%; }
#banner-content-logo img { height: 80px; }

#banner-content-center {
    width: 50%; 
    display: flex;
    align-items: center;
    border: 2px solid #4CAF50; 
    border-radius: 25px; 
    overflow: hidden; 
    background-color: white;
}

#banner-content-center input {
    width: 85%;
    height: 40px;
    border: none; 
    padding-left: 20px;
    font-size: 15px;
    outline: none; 
}

#banner-content-center button {
    width: 15%;
    height: 40px; 
    background-color: #4CAF50; 
    color: white; 
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease; 
}

#banner-content-center button:hover { background-color: #388E3C; }
#banner-content-center button i { color: white; }
#banner-content-right { width: 20%; text-align: right; }
i { font-size: 20px; color: green; }

/* --- MENU CHÍNH & SUBMENU --- */
#menu {
    margin-top: 10px; 
}

.menu-content {
    color: black;
    width: 100%;          
    margin: 0 auto;    
}

#menu .menu-content ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#menu .menu-content > ul {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    background-color: #FAF0E7;   
    padding: 0 20px;                                  
    margin: 0;
}

#menu .menu-content > ul > li {
    position: relative;          
    padding: 15px 0;
    display: flex;
    align-items: center;
}

#menu .menu-content ul li a {
    text-decoration: none;
    color: black; 
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    transition: background 0.3s;
}

#menu .menu-content > ul > li > a:hover {
    background-color: #1e8449;   
    border-radius: 4px;
    color: white;
}

#menu .menu-content ul .submenu {
    display: none;               
    position: absolute;          
    top: 100%;                    
    left: 0;
    background-color: #e8f8f5;   
    min-width: 230px;            
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15); 
    z-index: 999;                
}

#menu .menu-content > ul > li:hover > .submenu,
#menu .menu-content > ul > li:focus-within > .submenu {
    display: block;
}

#menu .menu-content ul .submenu li {
    border-bottom: 1px solid #1abc9c; 
}

#menu .menu-content ul .submenu li:last-child {
    border-bottom: none;
}

#menu .menu-content ul .submenu li a {
    color: #2c3e50; 
    font-weight: normal;
    padding: 12px 15px;
}

#menu .menu-content ul .submenu li a:hover {
    background-color: #a3e4d7; 
    color: #000;
}

#menu .menu-content ul li a.btn-san-pham {
    color: white; 
    background-color: #1e8449 ; 
    border-radius: 4px ; 
}

#menu .menu-content ul li a.btn-san-pham:hover { background-color: #145a32; }

#menu .menu-content > ul > li:not(:last-child)::after {
    content: "|";
    color: #999;
    margin-left: 8px; 
    margin-right: 8px;
    font-weight: normal;
}

.menu-content > div {
    width: 75%;          
    margin: 0 auto;      
    display: flex;
    justify-content: flex-start; 
}

.menu-content > div img {
    display: block;
    width: calc(100% - 210px); 
    height: auto;
}

#menu .menu-content > ul > li:nth-child(5) > a,
#menu .menu-content > ul > li:nth-child(8) > a {
    background-color: white !important; 
    border-radius: 4px;      
    padding: 10px 15px; 
}

#menu .menu-content > ul > li:nth-child(5) > a:hover,
#menu .menu-content > ul > li:nth-child(8) > a:hover {
    background-color: #e0e0e0 !important; 
    color: black !important; 
}

.menu4, .menu7 {
    text-align: center; 
    margin-top: 20px;   
    width: 100%;
}

/* ==========================================================================
   3. DANH SÁCH SẢN PHẨM & FEEDBACK
   ========================================================================== */
.list-product, .second-product {
    display: flex;               
    justify-content: flex-start; 
    width: 90%;                                  
    margin: 40px auto;           
    gap: 20px;    
    flex-wrap: wrap;
}

.product {
    width: calc((100% - 60px) / 4);                   
    text-align: center;          
    border: 1px solid #e0e0e0;   
    padding: 15px;               
    border-radius: 8px;          
    background-color: #fff;      
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    transition: all 0.3s ease;   
}

.product img.photo {
    width: 100%;                 
    height: 200px;               
    object-fit: cover;           
    border-radius: 4px;          
}

.product h1.name, .product h2.name {
    font-size: 18px;             
    margin: 15px 0 10px 0;       
    color: #333;
}

.product span.price {
    color: #e74c3c;              
    font-weight: bold;           
    font-size: 16px;
}

/* --- DANH MỤC ẢNH SẢN PHẨM (LIST-PRODUCT-1) --- */
.list-product-1 {
    display: flex;
    gap: 20px;
    width: 90%; 
    margin: 0 auto 20px auto; 
    flex-wrap: wrap;            
}

.list-product-1 .product {
    position: relative; 
    display: block; 
    overflow: hidden; 
    border-radius: 8px; 
    text-decoration: none; 
    width: calc((100% - 60px) / 4); 
    padding: 0;
}

.list-product-1 .photo {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease; 
}

.list-product-1 .name {
    position: absolute; 
    bottom: 0; 
    left: 0;
    width: 100%;
    margin: 0;
    padding: 15px 10px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff; 
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.list-product-1 .product:hover .photo { transform: scale(1.05); }
.list-product-1 .product:hover .name { color: #4CAF50; }

/* --- PHẦN ĐÁNH GIÁ (FEEDBACK) --- */
.feedback-container {
    width: 100%;
    background-color: #e6e6e6; 
    padding: 40px 0; 
}

.list-product-2 {
    display: flex;
    justify-content: space-between; 
    gap: 15px; 
    max-width: 1200px; 
    width: 90%; 
    margin: 0 auto; 
}

.list-product-2 .product {
    background-color: #ffffff; 
    padding: 15px; 
    width: 23%; 
    text-decoration: none; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.list-product-2 .photo {
    width: 100%;
    height: auto; 
    object-fit: cover; 
}

.list-product-2 .name {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 16px;
    color: #52403C; 
    font-weight: bold;
    text-align: center;
}

.list-product-2 .name-green { color: #558b2f; }

/* --- NÚT BẤM DÙNG CHUNG --- */
.btn-add-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
}
.btn-add-cart:hover { background-color: #45a049; }

.btn-xem-them {
    display: inline-block;    
    padding: 12px 30px;      
    border-radius: 5px;       
    background-color: #8B4513; 
    color: #ffffff;            
    text-decoration: none;    
    font-weight: bold;        
    font-size: 16px;          
    text-align: center;       
    transition: all 0.3s ease; 
    cursor: pointer;          
}
.btn-xem-them:hover {
    background-color: #654321; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}

.wrap-button { text-align: center; margin: 30px 0; }

.tieu-de-thong-tin, .tieu {
    font-weight: bold;     
    color: #52403C;     
    text-align: center;    
    font-size: 18px;       
    margin: 20px 0;        
}
.tieu { font-size: 16px; }
.tieu:hover {
    background-color: #967B7C; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}

/* ==========================================================================
   4. PHÂN HỆ CÁC TRANG NỘI DUNG (GIỚI THIỆU, CHĂM SÓC, CHÍNH SÁCH)
   ========================================================================== */

/* --- ĐIỀU HƯỚNG MỤC LỤC NHANH (Chính sách & Chăm sóc) --- */
.policy-nav, .toc-nav {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 15px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
}
.policy-nav a, .toc-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #f1f5f9;
    transition: all 0.2s ease-in-out;
}
.policy-nav a:hover, .toc-nav a:hover {
    background-color: #1e8449;
    color: #ffffff;
}

.toc-nav a {
    color: #1e8449;
    border: 1px solid #1e8449;
    border-radius: 20px;
}

/* --- TRANG GIỚI THIỆU (.about-container) --- */
.about-container {
    width: 80%;
    max-width: 1000px;
    margin: 40px auto; 
}
.page-title {
    color: #1e8449; 
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    position: relative;
}
.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #27ae60;
    margin: 10px auto 0 auto;
}
.about-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
.about-section h2 {
    color: #1e8449;
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #27ae60; 
    padding-left: 10px;
}
.about-section p { text-align: justify; margin-bottom: 15px;}
.about-section ul { margin-left: 20px; margin-bottom: 15px; }
.about-section ul li { margin-bottom: 8px; list-style-type: square; }
.partners-text { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #e0e0e0;}
.partners-text span { font-weight: bold; color: #27ae60; }

/* --- TRANG CẨM NANG CHĂM SÓC CÂY (.care-card) --- */
.welcome-box {
    background: linear-gradient(135deg, #1e8449, #27ae60);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(30, 132, 73, 0.2);
}
.welcome-box h1 { font-size: 28px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;}
.welcome-box p { font-size: 16px; opacity: 0.9; max-width: 800px; margin: 0 auto;}

.care-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border-top: 5px solid #1e8449;
}
.card-title {
    color: #1e8449;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f8f5;
}
.grid-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.info-block {
    background: #fcfdfc;
    border: 1px solid #eaf2ed;
    padding: 20px;
    border-radius: 8px;
}
.info-block h4 {
    color: #27ae60;
    font-size: 16px;
    margin-bottom: 10px;
    gap: 8px;
}

.care-list {
    list-style: none;
    margin-left: 5px;
    padding: 0;
}
.care-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.care-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* --- TRANG CHÍNH SÁCH (.policy-section) --- */
.policy-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1e8449;
}
.policy-section h2 {
    font-size: 24px;
    color: #1e8449;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.policy-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 25px 0 12px 0;
}
.policy-section ul, .policy-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}
.policy-section li { margin-bottom: 8px; }
.policy-section li strong { color: #1a202c; }

/* Khối lưu ý / Hộp cảnh báo */
.note-box, .alert-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #475569;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}
.note-box h4 {
    color: #475569;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.danger-box, .alert-box {
    background-color: #fffaf0;
    border: 1px solid #feebc8;
    border-left: 4px solid #dd6b20;
}
.danger-box h4, .alert-box h4 { color: #dd6b20; }

.grid-two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.data-table, .table-style {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}
.data-table th, .data-table td, .table-style th, .table-style td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}
.data-table th, .table-style th {
    background-color: #e8f8f5;
    color: #1e8449;
    font-weight: 600;
}
.data-table tr:nth-child(even), .table-style tr:nth-child(even) {
    background-color: #f8fafc;
}

/* ==========================================================================
   5. POPUP GIỎ HÀNG, FORM ĐĂNG KÝ & SLIDESHOW
   ========================================================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    background-color: #fff;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: black; }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}
.cart-item-info { flex-grow: 1; }

.btn-remove {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 15px;
}
.btn-remove:hover { background-color: #cc0000; }

.btn-checkout {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    border-radius: 5px;
    font-weight: bold;
}
.btn-checkout:hover { background-color: #e68a00; }


/* --- SLIDESHOW BANNER --- */
.slideshow-container {
    position: relative; 
    width: 100%;
    max-width: 1200px;  
    margin: 20px auto;  
    overflow: hidden;
}
#main-img {
    width: 100%;
    height: 280px;       
    object-fit: contain;
    background-color: #f5f5f5; 
    display: block;
}
.btn-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); 
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }
.btn-slide:hover { background-color: rgba(0, 0, 0, 0.8); }

/* ==========================================================================
   6. FOOTER & STICKY BAR (LIÊN HỆ CỐ ĐỊNH)
   ========================================================================== */
.footer-container {
    background-color: #f4f1e9; 
    padding: 40px 20px;
    color: #333;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.footer-column { flex: 1; }
.footer-column h3 { color: #4CAF50; text-transform: uppercase; font-size: 18px; margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 10px; line-height: 1.6; }
.footer-column a { text-decoration: none; color: #333; }
.footer-column a:hover { color: #4CAF50; }

.sticky-contact-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px; 
    align-items: flex-end;
    z-index: 9999;
}
.contact-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}
.contact-icon:hover { transform: scale(1.1); }
.map-icon { background-color: #5cb85c; }
.map-icon i { font-size: 26px; margin-bottom: 3px; color: white; }
.map-icon .bottom-text { font-size: 12px; font-weight: bold; }

.img-icon { background-color: transparent; box-shadow: none; }
.img-icon img {
    width: 60px; height: 60px;
    border-radius: 50%; object-fit: contain; 
    background-color: white; padding: 8px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}

.main-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

/* ==========================================================================
   7. RESPONSIVE (TƯƠNG THÍCH MÀN HÌNH ĐIỆN THOẠI/TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    .product, .list-product-1 .product {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .footer-content, .grid-two-columns { 
        grid-template-columns: 1fr;
        flex-direction: column; 
    }
    .policy-section { padding: 20px; }
    .main-header h1 { font-size: 24px; }
    .policy-nav a, .toc-nav a { padding: 8px 12px; font-size: 13px; }
    .welcome-box h1 { font-size: 22px; }
    .care-card { padding: 20px; }
}

@media (max-width: 600px) {
    .product, .list-product-1 .product {
        width: 100%;
    }
}