:root {
  --primary-red: #ec1313;
  --dark-red: #b60000;
  --primary-yellow: #facc15;
  --text-dark: #0f172a;
  --text-gray: #475569;
  --bg-light: #f8f6f6;
  --white: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  box-shadow: 0px 8px 10px -6px rgba(236, 19, 19, 0.3);
}

.btn-primary:hover {
  background-color: var(--dark-red);
}

.btn-outline {
  border: 1px solid rgba(236, 19, 19, 0.2);
  color: var(--primary-red);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(236, 19, 19, 0.05);
}

.section-title {
  text-align: center;
  color: var(--dark-red);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-divider {
  width: 96px;
  height: 6px;
  background-color: var(--dark-red);
  margin: 0 auto 40px;
  border-radius: 99px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 19px;
  }
}

/* Mặc định ẩn ngắt dòng trên desktop */
.mobile-break {
  display: none;
}

/* Hiển thị ngắt dòng khi thiết bị <= 768px */
@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
}

  @media (max-width: 768px) {
    .products-grid {
      display: none; /* Ẩn bản grid desktop trên mobile */
    }

    .products-swiper {
      display: block;
      padding: 1rem;
    }

    .swiper-slide {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      width: 270px;
      padding: 1rem;
    }

    .swiper-slide img {
      width: 100%;
      border-radius: 12px;
    }

    .swiper-button-prev, .swiper-button-next {
      color: #d00;
    }
  }

  @media (min-width: 769px) {
    .products-swiper {
      display: none; /* Ẩn bản swiper trên desktop */
    }
  }

  /* Hiệu ứng hover giống highlight */
.size-card:hover {
  background-color: #ffffff;
  border: 2px solid #ec1313;
  box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Đổi màu icon khi hover */
.size-card:hover .size-icon-bg {
  background-color: #ec1313;
  transition: all 0.3s ease;
}

/* Nếu icon bên trong là SVG màu đỏ */
.size-card:hover .size-icon-bg img {
  filter: brightness(0) invert(1);
}

.brand-name {
  font-size: 20px;
  font-weight: bold;
  color: #b60000;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .brand-name {
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  #testimonials-section .testi-text {
    font-size: 12px !important;   /* chỉnh 13px nếu muốn nhỏ hơn nữa */
    line-height: 1.5;
  }
}

/* ===== Testimonial 1 (.testi-card-anim): giống hiệu ứng card Brasserie ===== */

/* Giữ style card khi là thẻ a */
#testimonials-section a.testimonial-card.testi-card-anim,
#testimonials-section a.testimonial-card.testi-card-anim:hover,
#testimonials-section a.testimonial-card.testi-card-anim:focus,
#testimonials-section a.testimonial-card.testi-card-anim:active {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  cursor: pointer;
}

/* Hover đổi màu tên */
#testimonials-section .testi-card-anim .testi-name {
  transition: color 0.2s ease;
}

#testimonials-section .testi-card-anim:hover .testi-name,
#testimonials-section .testi-card-anim:focus-visible .testi-name {
  color: #b60000 !important;
}

/* ===== Hover sao đầy cho .testi-card-anim ===== */
#testimonials-section .testi-card-anim .stars {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;               /* giữ khoảng cách sao cũ */
  line-height: 1;
}

/* sao ảnh hiện tại (rỗng) */
#testimonials-section .testi-card-anim .stars img {
  height: 28px;           /* chỉnh theo size sao thực tế nếu cần */
  transition: opacity .2s ease;
}

/* lớp sao đầy (unicode) */
#testimonials-section .testi-card-anim .stars::after {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;        /* tinh chỉnh cho khớp size sao */
  letter-spacing: 6px;    /* tinh chỉnh cho khớp khoảng cách */
  color: #f5b800;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}

/* hover/focus: ẩn sao rỗng, hiện sao đầy */
#testimonials-section .testi-card-anim:hover .stars img,
#testimonials-section .testi-card-anim:focus-visible .stars img {
  opacity: 0;
}

#testimonials-section .testi-card-anim:hover .stars::after,
#testimonials-section .testi-card-anim:focus-visible .stars::after {
  opacity: 1;
}

/* mobile tap */
#testimonials-section .testi-card-anim:active .stars img {
  opacity: 0;
}
#testimonials-section .testi-card-anim:active .stars::after {
  opacity: 1;
}


/* Giữ style card khi đổi sang thẻ a */
#testimonials-section a.testimonial-card.testi-link-brasserie,
#testimonials-section a.testimonial-card.testi-link-brasserie:hover,
#testimonials-section a.testimonial-card.testi-link-brasserie:focus,
#testimonials-section a.testimonial-card.testi-link-brasserie:active {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  cursor: pointer;
}

/* Hover đổi màu tên */
#testimonials-section .testi-link-brasserie .testi-name {
  transition: color 0.2s ease;
}

#testimonials-section .testi-link-brasserie:hover .testi-name,
#testimonials-section .testi-link-brasserie:focus-visible .testi-name {
  color: #b60000 !important;
}
/* ===== Hover sao đầy cho card Brasserie ===== */
#testimonials-section .testi-link-brasserie .stars {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;               /* giữ khoảng cách sao cũ */
  line-height: 1;
}

/* sao ảnh hiện tại (rỗng) */
#testimonials-section .testi-link-brasserie .stars img {
  height: 28px;
  transition: opacity .2s ease;
}

/* lớp sao đầy (unicode) */
#testimonials-section .testi-link-brasserie .stars::after {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;        /* tinh chỉnh cho khớp size sao */
  letter-spacing: 6px;    /* tinh chỉnh cho khớp khoảng cách */
  color: #f5b800;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}

/* hover/focus: ẩn sao rỗng, hiện sao đầy */
#testimonials-section .testi-link-brasserie:hover .stars img,
#testimonials-section .testi-link-brasserie:focus-visible .stars img {
  opacity: 0;
}

#testimonials-section .testi-link-brasserie:hover .stars::after,
#testimonials-section .testi-link-brasserie:focus-visible .stars::after {
  opacity: 1;
}

/* mobile tap */
#testimonials-section .testi-link-brasserie:active .stars img {
  opacity: 0;
}
#testimonials-section .testi-link-brasserie:active .stars::after {
  opacity: 1;
}

/* Nhịp tim KHÔNG phá layout */
.hero-cta .hero-btn.heartbeat-btn{
  position: relative;
  isolation: isolate;   /* đảm bảo layer hiệu ứng không ảnh hưởng phần khác */
  overflow: visible;
}

/* Vòng pulse */
.hero-cta .hero-btn.heartbeat-btn::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(182, 0, 0, 0.35);
  opacity: 0.9;
  animation: heartbeatRing 1.15s ease-out infinite;
}

/* Nhấn hover nhẹ, không đổi kích thước layout */
.hero-cta .hero-btn.heartbeat-btn:hover::after{
  animation-duration: 0.9s;
}

/* Active: dừng pulse để cảm giác bấm */
.hero-cta .hero-btn.heartbeat-btn:active::after{
  animation: none;
  box-shadow: 0 0 0 0 rgba(182, 0, 0, 0);
}

/* Keyframes chỉ tác động pseudo-element, không đụng nút thật */
@keyframes heartbeatRing{
  0%{
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(182, 0, 0, 0.35);
    opacity: 0.9;
  }
  70%{
    transform: scale(1.07);
    box-shadow: 0 0 0 10px rgba(182, 0, 0, 0);
    opacity: 0.25;
  }
  100%{
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(182, 0, 0, 0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-cta .hero-btn.heartbeat-btn::after{
    animation: none;
  }
}

/* Heartbeat rõ, không đổi bố cục */
.hero-cta .hero-btn.heartbeat-btn{
  animation: heartbeatBtn 1.05s ease-in-out infinite !important;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

/* Hover: đập nhanh hơn chút */
.hero-cta .hero-btn.heartbeat-btn:hover{
  animation-duration: .85s !important;
}

/* Click: dừng đập để cảm giác bấm */
.hero-cta .hero-btn.heartbeat-btn:active{
  animation: none !important;
  transform: scale(.96);
}

@keyframes heartbeatBtn{
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.08); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.08); }
  55%      { transform: scale(1); }
}

/* Tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce){
  .hero-cta .hero-btn.heartbeat-btn{
    animation: none !important;
  }
}

/* ====== ĐỐI TÁC SECTION ====== */
.partners {
  padding: clamp(28px, 4vw, 56px) 0;
  background: #f8f6f6; /* hợp tone nền hồng nhạt hiện tại */
  overflow: hidden; /* chặn tràn ngang do animation */
}

.partners .container {

  padding: 0 16px;            /* để “vừa khung” giống các section trên */
  box-sizing: border-box;
}




/* mask 2 đầu cho đẹp */
.partners-viewport::before,
.partners-viewport::after {
  content: "";
  position:absolute;
  top: 0;
  width: clamp(24px, 8vw, 70px);
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-viewport::before {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.partners-viewport::after {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}

/* track chạy ngang */
.partners-track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 clamp(24px, 8vw, 70px);
  width: max-content;
  animation: partners-scroll 22s linear infinite;
  will-change: transform;
}

/* hover thì pause */
.partners-viewport:hover .partners-track {
  animation-play-state: paused;
}


/* logo card */
.partner-logo {
  display: grid;
  place-items: center;
  width: clamp(110px, 16vw, 170px);
  height: clamp(56px, 7vw, 80px);
 
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
}

.partner-logo img {
  width: 160px;
  height: 65px;
  object-fit: cover;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

/* hover focus */
.partner-logo:hover,
.partner-logo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
  border-color: rgba(179,0,0,0.25);
  outline: none;
}

.partner-logo:hover img,
.partner-logo:focus-visible img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

/* animation: chạy từ 0 -> -50% (vì có 2 track giống nhau) */


/* ưu tiên người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partners .container{
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 16px;        /* giúp “đúng khung” giống các section trên */
  box-sizing: border-box;
}

.partners-viewport{
  width: 100%;            /* khung theo container */
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;       /* cắt phần chạy */
  box-sizing: border-box;
}

.partners-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background: transparent;   /* ✅ bỏ nền trắng */
  box-shadow: none;        /* ✅ bỏ shadow */
  border-radius: 0;         /* ✅ bỏ bo góc khung */
  padding: 6px 0;         /* gọn hơn để giống nền section */
}

/* nút mũi tên */
.partners{ overflow:hidden; background:#f8f6f6; padding: clamp(28px, 4vw, 56px) 0; }
.partners .container{ width:min(1200px,92%); margin:0 auto; padding:0 16px; box-sizing:border-box; }

.partners-slider{ position:relative; width:100%; max-width:100%; }

/* viewport là khung cắt + cho scroll */
.partners-viewport{
  overflow:hidden;
  width:100%;
  max-width:100%;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.partners-viewport::-webkit-scrollbar{ display:none; }

/* track ngang */
.partners-track{
  display:flex;
  align-items:center;
  gap: clamp(12px, 2vw, 24px);
  padding: 6px 0;
  width: max-content;
}

/* logo */
.partner-logo{
  flex:0 0 auto;
  width: clamp(110px, 28vw, 170px);
  height: clamp(56px, 14vw, 80px);
  display:grid;
  place-items:center;
  text-decoration:none;
}
.partner-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding: clamp(6px, 1vw, 10px);
}

/* nút mũi tên */
.partners-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  color:#b30000;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:5;
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.partners-arrow:hover{ background:rgba(255,255,255,1); transform:translateY(-50%) scale(1.05); }

.partners-prev{ left:4px; }
.partners-next{ right:4px; }

.partners-arrow.is-disabled{
  opacity:.35;
  pointer-events:none;
}
@media (min-width: 768px){
  .partners-prev{ left:-10px; }
  .partners-next{ right:-10px; }
}

.partners-viewport{
  overflow-x: auto ;        /* QUAN TRỌNG: cho phép scroll ngang */
  overflow-y: hidden ;
  scroll-behavior: smooth ; /* bấm là lướt mượt */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.partners-viewport::-webkit-scrollbar{ display:none; }

.partners-track{
  display:flex;
  align-items:center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 24px);
  width: max-content;      /* dải dài để scroll */
  
}
.partner-logo{
  flex: 0 0 auto;
}

.partners { overflow: hidden; background:#f8f6f6; padding: clamp(28px, 4vw, 56px) 0; }
.partners .container{ width:min(1200px,92%); margin:0 auto; padding:0 16px; box-sizing:border-box; }

.partners-slider{ position:relative; width:100%; max-width:100%; }

.partners-viewport{
  position: relative;
  overflow: hidden;              /* ✅ cắt đẹp, không lộ scroll */
  width: 100%;
  max-width: 100%;
}

/* mask 2 bên (đổi màu theo nền section nếu cần) */
.partners-viewport::before,
.partners-viewport::after{
  content:"";
  position:absolute;
  top:0;
  width: clamp(18px, 6vw, 70px);
  height:100%;
  z-index:2;
  pointer-events:none;
}
.partners-viewport::before{ left:0; background: linear-gradient(to right, #f8f6f6, rgba(248,246,246,0)); }
.partners-viewport::after{ right:0; background: linear-gradient(to left, #f8f6f6, rgba(248,246,246,0)); }

/* inner track sẽ do JS clone -> chạy bằng translateX trên wrapper */
.partners-track{
  display:flex;
  align-items:center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}

/* logo */
.partner-logo{ flex:0 0 auto; width: clamp(110px, 28vw, 170px); height: clamp(56px, 14vw, 80px); display:grid; place-items:center; }
.partner-logo img{ width:100%; height:100%; object-fit:contain; display:block; padding: clamp(6px, 1vw, 10px); }

/* nút mũi tên */
.partners-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:30px; height:30px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  color:#b30000;
  display:grid; place-items:center;
  cursor:pointer;
  z-index:5;
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
}
.partners-prev{ left:4px; }
.partners-next{ right:4px; }
@media(min-width:768px){ .partners-prev{ left:-10px; } .partners-next{ right:-10px; } }