




/* ===== RESET / BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; }

/* ===== HEADER LAYOUT ===== */
.site-header { background:whitesmoke; border-bottom: 1px solid rgba(0,0,0,0.06); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}

/* logo trái */
.logo img { width: 120px; height: auto; display: block; }

/* nav ở giữa */
.main-menu { flex: 1; }
.main-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 36px;
  align-items: center;
}

.main-menu li { position: relative; }
.main-menu a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  padding: 8px 12px;
  display: inline-block;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.main-menu a:hover { background: rgba(216,27,36,0.08); color:#d81b24; }

/* ===== SUBMENU ===== */
.menu_an {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 230px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 999;
}

.main-menu li.has-sub:hover > .menu_an {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}


.menu_an li { display: block; }
.menu_an li a {
  display: block;
  padding: 10px 16px;
  color: #222;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  border-bottom: 1px solid #f4f4f4;
}
.menu_an li:last-child a { border-bottom: none; }
.menu_an li a:hover { background: #d81b24; color: #fff; }

/* ===== HIỆU ỨNG HIỆN MENU CON ===== */
.main-menu li.has-sub:hover > .menu_an,
.main-menu li.has-sub:focus-within > .menu_an {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== HOTLINE ===== */
.hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 40px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.hotline .icon {
  background: #d81b24;
  color:#fff;
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hotline .phone { font-weight:700; color:#222; }
.hotline .text  { font-size:12px; color:#666; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-menu ul { gap: 18px; }
  .logo img { width: 100px; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-menu { order: 3; width: 100%; }
  .main-menu ul { justify-content: space-around; }
  .hotline { order: 2; }
}
 /* NỘI DUNG CHUNG & SCROLL OFFSET MỚI */
        section {
            /* Đảm bảo ID của section không bị header che khuất và có khoảng trống */
            scroll-margin-top: 100px; /* Lệnh giúp căn giữa khi cuộn đến ID */
            
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            padding: 20px; /* Thêm padding cơ bản cho section */
            padding-bottom: 20px;
            line-height: 1.6;
            box-sizing: border-box; 
        }
   /* Tùy chỉnh cho section Story */
        section#story { 
            max-width: 800px;
            padding: 30px 20px 50px 20px;
            text-align: center;
            line-height: 1.8;
            margin-top: 10px; 
        }
        
        section#story img {
            width: 200px;
            height: auto;
            margin-bottom: 20px;
        }
        /* Product Grid for Story Section */
.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.product-item {
    width: 100%; /* Adjust as needed */
    height: 250px; /* Uniform height for visual impact */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white; /* Text color */
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}
.product-item:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Specific styling for each product type using the image as background */
.product-item.tra {
    background-image: url('/img/trongtra.webp'); /* Assuming image_90cadc.jpg is accessible */
    background-position: 0% center; /* Adjust to show the 'Trà' part */
}

.product-item.cafe {
    background-image: url('/img/hatcf.jpg');
    background-position: 50% center; /* Adjust to show the 'Cà phê' part */
}

.product-item.kem {
    background-image: url('/img/bo.webp');
    background-position: 100% center; /* Adjust to show the 'Kem' part */
}

/* ============ CSS MỚI CHO PHẦN THỐNG KÊ VÀ ĐĂNG KÝ ============ */

/* --- Container tổng thể cho phần CSR và Call to Action --- */
.csr-container {
    padding: 50px 0;
    margin: 50px auto;
    max-width: 1000px;
    text-align: center;
    color: #cc0010;
    font-weight: bold;
    font-size: large;
}

/* --- Lưới thống kê 4 cột (Phần trên của ảnh) --- */
.csr-stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    background-color: #f8f8f8; /* Nền nhẹ nhàng cho phần thống kê */
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.csr-stats-item {
    width: 20%;
    min-width: 150px;
}

.csr-stats-item h3 {
    font-size: 32px;
    font-weight: bold;
    color: #e60012;
    margin-bottom: 5px;
}

.csr-stats-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* --- Khối Call to Action (Phần dưới nút Đăng ký) --- */
.cta-box {
    margin-top: 50px;
    background-color: #ffffff; /* Nền trắng nổi bật */
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-box h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* --- Nút Đăng ký --- */
.register-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #e60012;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.4);
}

.register-button:hover {
    background-color: #cc0010;
    transform: translateY(-2px);
}


/* Footer trên (thông tin – sản phẩm – liên kết) */
.footer-section {
    padding: 30px 10%;
    color: #fff;
    background-color: #CC0000;
}

.footer-section h2 {
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-section p {
    margin: 3px 0;
    font-size: 14px;
}

/* QR Footer */
.social-qr-footer {
    background-color: #CC0000;
    padding: 30px 15px;
}

.qr-item {
    text-align: center;
    margin-bottom: 25px;
}

.qr-box {
    background-color: white;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
}

.qr-box img {
    width: 100%;
    max-width: 120px;
    border-radius: 6px;
}

.social-label {
    color: white;
    font-size: 1em;
    font-weight: 500;
    margin-top: 8px;
}

.social-label i {
    margin-right: 4px;
}




