/* ===== 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;
}





/* 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;
}





/* ===== STORE GALLERY ===== */
.store-gallery {
  background: linear-gradient(180deg, #fff9f9, #ffffff);
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.store-gallery h2 {
  font-size: 1.8em;
  color: #e60012;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Khung tổng */
.slider-frame {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Đường chạy hình ảnh */
.slide-track {
  display: flex;
  width: calc(250px * 10); /* 10 hình × 250px */
  animation: scroll 30s linear infinite;
}

.slide-track img {
  width: 250px;
  height: 180px;
  border-radius: 15px;
  margin: 0 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.slide-track img:hover {
  transform: scale(1.08);
}

/* Hiệu ứng trượt ngang vô hạn */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .slide-track img {
    width: 180px;
    height: 130px;
  }
}








.image-column {
    flex: 1.2; /* Cột hình ảnh lớn hơn một chút */
    position: relative;
    padding: 20px;
    background-color: #222; /* Hoặc màu nền phù hợp với ảnh */
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; /* Bo góc nhẹ cho ảnh bên trong */
}

.text-column {
    flex: 1; 
    padding: 40px;
    background-color: white;
    /* Áp dụng đường cong vào phần này để tạo hiệu ứng */
    /* Tuy nhiên, hiệu ứng cong phức tạp cần dùng thêm pseudo-element hoặc SVG */
}

.section-heading {
    font-family: 'Arial', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #CC0000; /* Màu đỏ mạnh/Màu cam của VNSport #FF8C00 */
    margin-bottom: 10px;
}

.section-subheading, .description-list {
    font-family: 'Arial', sans-serif;
    color: #555;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px;
    background-color: #CC0000; /* Màu Đỏ */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #990000;
}

/* Hiệu ứng HOVER cho ảnh */

.image-gallery {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 10px;
}

/* Điều chỉnh khoảng cách giữa các ảnh lớn hơn */
.row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; /* Tăng khoảng cách (gap) giữa các ảnh để tạo không gian trắng */
    margin-bottom: 15px; 
}

.gallery-item {
    overflow: hidden; 
    /* Thêm padding vào bên trong gallery-item để 'thu nhỏ' ảnh bên trong */
    padding: 10px; 
    
    /* Quan trọng: Thiết lập transition và cursor cho hover */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer; 
    
    /* Tùy chọn: Thêm nền trắng nhẹ cho mỗi item */
    background-color: #ffffff; 
    border-radius: 8px; /* Bo góc nhẹ cho khung ảnh */
}

/* Hiệu ứng HOVER (Vẫn giữ nguyên và hoạt động) */
.gallery-item:hover {
    transform: scale(1.03); 
    z-index: 10; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); 
}

.gallery-item img {
    width: 100%; 
    height: auto; 
    display: block;
    transition: filter 0.3s ease-in-out;
    /* Tùy chọn: Bo góc nhẹ cho chính hình ảnh bên trong */
    border-radius: 4px;
}
.gallery-item img {
    width: 100%; 
   
    display: block;
    /* Nếu bạn muốn tất cả ảnh có cùng chiều cao, hãy sử dụng: */
     object-fit: cover; 
       height: 200px; 
}

.gallery-item:hover img {
    filter: brightness(90%); 
}


/* Thiết lập cơ bản */
body {
    margin: 0;
    font-family: sans-serif; /* Sử dụng font chữ dễ đọc, bạn có thể thay đổi */
}

.mixue-hero {
    /* Đặt chiều cao và chiều rộng cho khu vực hiển thị */
    width: 100%;
    height: 600px; /* Chiều cao mẫu, điều chỉnh theo ý muốn */
    background-image: url('https://www.cukcuk.vn/wp-content/uploads/2024/10/mastcot-mixue.jpg'); 
    background-size: cover; /* Đảm bảo ảnh nền phủ kín khu vực */
    background-position: center bottom; /* Căn ảnh nền ở giữa và phía dưới */
    position: relative; /* Quan trọng cho việc định vị lớp phủ và nội dung */
    color: #fff; /* Màu chữ mặc định là trắng */
}

.mixue-overlay {
    /* Tạo lớp phủ màu tối nhẹ (hoặc gradient) để làm nổi bật chữ */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dùng gradient nếu cần tái tạo hiệu ứng chuyển màu trên ảnh gốc */
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.4) 0%, /* Màu đen mờ bên trái */
        rgba(0, 0, 0, 0.2) 50%, /* Màu ít mờ hơn ở giữa */
        rgba(0, 0, 0, 0.4) 100% /* Màu đen mờ bên phải */
    );
    display: flex;
    justify-content: center; /* Căn nội dung theo chiều ngang */
    align-items: center; /* Căn nội dung theo chiều dọc */
    text-align: center;
}

.mixue-content {
    /* Thiết lập cho khối nội dung chính */
    z-index: 10;
    padding: 20px;
}

.cta-heading {
    /* Thiết lập cho dòng chữ lớn "Gia nhập MIXUE ngay hôm nay" */
    font-size: 2.5em; /* Kích thước chữ lớn */
    font-weight: bold;
    margin-bottom: 5px;
    /* Dùng màu trắng */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Tạo bóng chữ để dễ đọc */
}

.cta-subtext {
    /* Thiết lập cho dòng chữ nhỏ "Điền vào mẫu đăng ký nhượng quyền" */
    font-size: 1.1em;
    font-weight: 300;
    margin-top: 5px;
    margin-bottom: 20px;
    /* Dùng màu trắng hoặc trắng nhạt */
}

.btn-register {
    /* Thiết lập cho nút "Đăng ký ngay" */
    display: inline-block;
    padding: 15px 30px;
    background-color: #e50012; /* Màu đỏ đặc trưng của MIXUE */
    color: #fff;
    text-decoration: none; /* Bỏ gạch chân */
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px; /* Bo tròn góc nút */
    transition: background-color 0.3s ease; /* Hiệu ứng chuyển màu khi hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Bóng nút nổi bật */
}

.btn-register:hover {
    background-color: #ff3344; /* Màu đỏ sáng hơn khi rê chuột vào */
}

.arrow-icon {
    margin-left: 10px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* --------------------
   MEDIA QUERIES (Tối ưu cho thiết bị di động)
   -------------------- */
@media (max-width: 768px) {
    .mixue-hero {
        height: 400px; /* Giảm chiều cao trên thiết bị nhỏ */
    }

    .cta-heading {
        font-size: 1.8em; /* Giảm kích thước chữ lớn */
    }

    .cta-subtext {
        font-size: 1em;
    }

    .btn-register {
        padding: 12px 25px;
        font-size: 1em;
    }
}