/* ===== 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; }
}


/* Container tổng cho sản phẩm */
#product {
  display: flex;
  flex-wrap: wrap;           /* cho phép xuống hàng khi màn hình nhỏ */
  justify-content: center;   /* căn giữa các sản phẩm */
  gap: 20px;                 /* khoảng cách giữa các sản phẩm */
  padding: 20px;
}
h1{
  color: #CC0000;
  margin-top: 25px;
  margin-bottom: 20px;
}

/* Từng sản phẩm */
.product {
  background: #fff;
  border: 1px solid pink;
  border-radius: 10px;
  width: 220px;              /* vừa gọn, có thể thay đổi */
  text-align: center;
  padding: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hover đẹp */
.product:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Ảnh sản phẩm */
.product img {
  width: 60%;
  height: 145px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Tên sản phẩm */
.product h2 {
  font-size: 1em;
  color: #333;
  margin: 5px 0;
  min-height: 40px;         /* giữ đều chiều cao tên */
}

/* Mô tả sản phẩm */
.product p {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
  min-height: 35px;         /* giữ chiều cao đồng đều */
}

/* Giá sản phẩm */
.product span, .product:has(span) span, .product p + span, .product p + text {
  display: block;
  font-weight: bold;
  color: #ff6600;
  margin-top: 5px;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .product {
    width: 45%;              /* 2 sản phẩm 1 hàng */
  }
}

@media (max-width: 480px) {
  .product {
    width: 90%;              /* 1 sản phẩm 1 hàng */
  }
}






/* mixue icon sản phẩm */

    h1, h2 {
      text-align: center;
    }

    .product-header {
      text-align: center;
      margin-top: 30px;
    }

    .mixue-icon {
      width: 100px;
    }

    /* Mixue mascot */
    .mixue-side {
      position: fixed;
      bottom: 0;
      right: 0;
      z-index: 1;
      transform: translate(0, 10%);
    }

    .mixue-character {
      width: 120px;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .horizontal-images img {
        width: 100%;
      }

      .product {
        width: 45%;
      }
    }

    @media (max-width: 480px) {
      .product {
        width: 90%;
      }
    }
  
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
      background: #ffffff;
      overflow-x: hidden;
    }

    /* --- Container chính --- */
    .slider {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: hidden;
    }

    /* --- Mỗi slide --- */
    .slide {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
      background-size: cover;
      background-position: center;
    }

    .slide.active {
      opacity: 1;
    }

    /* --- Overlay mờ để chữ nổi bật --- */
    .overlay {
      position: absolute;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.45);
      top: 0;
      left: 0;
    }

    /* --- Text trong banner --- */
    .content {
      position: absolute;
      top: 50%;
      left: 10%;
      transform: translateY(-50%);
      color: #fff;
      max-width: 600px;
    }

    .content h1 {
      font-size: 64px;
      font-weight: 800;
    }

    .content p {
      font-size: 22px;
      margin: 20px 0;
    }

    .content button {
      background: #f9c000;
      color: #000;
      padding: 12px 30px;
      font-size: 18px;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 600;
    }

    .content button:hover {
      background: #fff000;
    }

    /* --- Nút điều hướng trái phải --- */
    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 40px;
      color: white;
      background: rgba(0, 0, 0, 0.4);
      width: 60px;
      height: 60px;
      text-align: center;
      line-height: 60px;
      border-radius: 50%;
      cursor: pointer;
      user-select: none;
    }

    .arrow:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .arrow.left {
      left: 30px;
    }

    .arrow.right {
      right: 30px;
    }

    /* --- Dấu chấm nhỏ --- */
    .dots {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 12px;
    }

    .dots span {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #bbb;
      cursor: pointer;
      transition: 0.3s;
    }

    .dots span.active {
      background: #fff;
      width: 18px;
    }


    /* footer */

        .footer {
            padding: 30px 10%;
            color: rgb(255, 245, 245);
            display: flex;
            gap: 20px;
            justify-content: space-between;
            font-size: small;
            background-color: #CC0000;
        }

        .cuoitrang {
            align-items: center;
            background-color: #CC0000;
            color: white;
            font-weight: 20;
            border: 1px solid white;
            padding: 20px;
            text-align: center;
        }
.social-qr-footer {
    background-color: #CC0000; /* Màu đỏ nổi bật */
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex; /* Sử dụng Flexbox để chia cột */
    justify-content: space-around; /* Căn đều các item */
    gap: 20px;
}

.qr-item {
    text-align: center;
    width: 25%; /* Mỗi item chiếm khoảng 1/4 */
}

.social-qr-footer {
    background-color: #CC0000; /* Màu đỏ nổi bật */
    padding: 30px 15px; /* Giảm padding tổng thể */
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 800px; /* Thu hẹp độ rộng tối đa của container (Làm mọi thứ nhỏ lại) */
    margin: 0 auto;
    display: flex; 
    justify-content: space-between; /* Giữ khoảng cách giữa các item */
    gap: 15px; /* Giảm khoảng cách giữa các item */
}

.qr-item {
    text-align: center;
    width: 25%; 
    padding: 0 5px; /* Thêm padding ngang nhẹ cho item */
}

/* 2. Định dạng Hộp QR Code */
.qr-box {
    background-color: white;
    padding: 5px; /* Giảm padding (khoảng đệm trắng) bên trong */
    border-radius: 12px; /* Bo góc nhỏ hơn */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Giảm bóng đổ cho nhẹ nhàng */
    display: inline-block;
    position: relative;
    overflow: hidden; 
}

.qr-box img {
    width: 100%;
    max-width: 120px; /* **GIẢM KÍCH THƯỚC TỐI ĐA CỦA QR CODE** */
    height: auto;
    display: block;
    border-radius: 6px; 
}

/* 3. Định dạng Tên Mạng Xã Hội */
.social-label {
    color: white; 
    font-size: 1em; /* Giảm kích thước font */
    font-weight: 500; /* Giảm độ đậm của font */
    margin-top: 8px; /* Giảm khoảng cách */
}

.social-label i {
    margin-right: 4px;
    font-size: 1.1em;
}

/* 4. Tùy chỉnh cho mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; 
    }
    .qr-item {
        width: 100%;
        margin-bottom: 15px;
    }
}





/* ===== ORDER BUTTON ===== */
.order-btn {
  background: #ff4747;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 71, 71, 0.3);
}

.order-btn:hover {
  background: #ff7b00;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 123, 0, 0.4);
}

/* Nút Order nằm giữa sản phẩm */
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
}
section#product {
  max-width: 1250px;
  margin: 30px auto;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}