/* =======================================================
   1. RESET & KHUNG HEADER (QUAN TRỌNG ĐỂ KHÔNG BỊ DỌC)
======================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; color: #000; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

#site-header {
  /* 1. Luôn đè lên banner và sát trần */
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 3000;
  
  /* 2. Trạng thái mặc định: TRONG SUỐT TUYỆT ĐỐI */
  background-color: transparent !important;
  border-bottom: none !important;
  transition: background-color 0.3s ease, border 0.3s ease;
}

/* 3. Chỉ hiện nền trắng khi có class .is-active */
/* Chúng ta sẽ dùng class .is-active trực tiếp trên #site-header cho chắc cú */
#site-header.is-active {
  background-color: #fff !important;
  border-bottom: 1px solid #eee !important;
}

/* 4. Triệt tiêu khoảng hở trần do hệ thống tự chèn */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}
main, .main-content, #MainContent {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.header-container {
  display: flex !important; /* Ép buộc dàn hàng ngang */
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
}

/* =======================================================
   2. LOGO & MENU CHÍNH (FIX LỖI DỌC Ở ĐÂY)
======================================================== */
.header-logo h2 {
  font-size: 28px;
  font-weight: 900;
  color: #000;
  letter-spacing: 2px;
}

.header-nav {
  display: block;
}

.main-menu-list {
  display: flex !important; /* Ép buộc menu dàn hàng ngang */
  flex-direction: row;
  gap: 30px;
}

.main-menu-list > li > a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 0;
  color: #000;
  display: block;
}

/* Hover & Active về đen hết */
.main-menu-list > li > a:hover,
.menu-link-active {
  color: #000 !important;
  opacity: 0.6;
}

/* =======================================================
   3. MEGA MENU (MENU XỔ XUỐNG)
======================================================== */
.has-mega-menu { position: static; }

.mega-menu-dropdown {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.has-mega-menu:hover .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
}

.mega-menu-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 50px;
}

.mega-menu-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.col-title, .col-title a {
  font-size: 13px;
  font-weight: 700;
  color: #000 !important;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.menu-col ul li a {
  font-size: 13px;
  color: #000; /* Chuyển xám thành đen */
  opacity: 0.8;
}

.menu-col ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.mega-menu-image { width: 250px; flex-shrink: 0; }
.mega-menu-image img { width: 100%; border-radius: 4px; }

/* =======================================================
   4. CỤM ICON (SEARCH, CART, HEART)
======================================================== */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.h-icon {
  display: flex;
  align-items: center;
  color: #000 !important;
}

.cart-icon { position: relative; }

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #000; /* Số thông báo màu đen */
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#wishlist-count-header {
  background-color: #000 !important; /* Fix lỗi #ff000 của bro */
}
/* --- MEGA MENU LEVEL 3 & 4 --- */

.level-3-wrapper {
  display: flex;
  align-items: center;
  gap: 5px; /* Kéo mũi tên sát vào chữ (cách nhau 5px) */
  margin-bottom: 8px;
}
.level-3-link {
  font-weight: bold;
}
.toggle-arrow {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 5px;
  user-select: none;
  transition: transform 0.2s ease; /* Hiệu ứng xoay mượt mà */
}
/* Xoay mũi tên cắm xuống khi menu mở */
.toggle-arrow.is-open {
  transform: rotate(90deg);
}
/* ẨN MENU CẤP 4 MẶC ĐỊNH */
.level-4-list {
  display: none; 
  list-style: none;
  padding-left: 15px; /* Thụt lề vào cho đẹp */
  margin: 5px 0;
}

/* KHI BẤM VÀO MŨI TÊN (CÓ CLASS IS-OPEN) THÌ HIỆN RA */
.level-4-list.is-open {
  display: block !important;
}

/* HIỆU ỨNG XOAY MŨI TÊN KHI MỞ */
.toggle-arrow {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0 5px;
  font-weight: bold;
}
.toggle-arrow.is-open {
  transform: rotate(90deg); /* Xoay xuống khi mở */
}

.level-3-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
/* =======================================================
   MOBILE MENU DRAWER & RESPONSIVE
======================================================== */
.mobile-header-left, .mobile-drawer, .mobile-drawer-overlay { display: none; }

/* Đảm bảo Header luôn nổi lên trên cùng để che cái rèm menu lúc kéo lên */
#site-header {
  z-index: 3000 !important; 
  position: relative;
}

/* =======================================================
   MOBILE MENU DRAWER & RESPONSIVE (UPDATE FULL MÀN HÌNH + TRÊN XUỐNG)
======================================================== */
.mobile-header-left, .mobile-drawer, .mobile-drawer-overlay { display: none; }

@media (max-width: 1024px) {
  .header-nav { display: none !important; }
  .mobile-header-left { display: flex; align-items: center; gap: 15px; }
  .m-hide-mobile { display: none !important; }
  .m-hide-desktop { display: flex !important; }
  
 /* NÚT HAMBURGER CHUẨN */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #000 !important; /* Ép sang màu đen cho dễ thấy */
  padding: 0;
  z-index: 3001;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hamburger-btn svg {
  width: 24px; /* Thu nhỏ lại chút cho thanh thoát */
  height: 18px;
  transition: transform 0.3s ease;
}

.hamburger-btn svg line {
  stroke: currentColor;
  stroke-width: 2px; /* Độ dày vừa phải, không bị bết */
  stroke-linecap: butt; /* Để đầu bằng cho giống menu 3 gạch chuẩn */
  transition: all 0.3s ease;
  transform-origin: center;
}

/* HIỆU ỨNG BIẾN THÀNH X KHI ACTIVE */
.hamburger-btn svg line { 
  transition: all 0.3s ease; 
  transform-origin: center; 
}
.hamburger-btn.is-active svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-btn.is-active svg line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

  /* OVERLAY (Nền mờ) */
  .mobile-drawer-overlay {
    display: block; position: fixed; top: 80px; left: 0; width: 100vw; height: calc(100vh - 80px);
    background: rgba(0,0,0,0.5); z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
  }
  .mobile-drawer-overlay.is-open { opacity: 1; visibility: visible; }

  /* NGĂN KÉO DRAWER - FULL MÀN HÌNH, TỪ TRÊN XUỐNG */
  .mobile-drawer {
    display: flex; flex-direction: column;
    position: fixed; 
    top: 80px; /* Bắt đầu ngay dưới header */
    left: 0; 
    width: 100%; /* Cập nhật thành 100% full màn hình */
    height: calc(100vh - 80px); /* Full màn hình trừ đi cái header */
    background: #f9f9f9; 
    z-index: 2001;
    transform: translateY(-150%); /* Đổi từ trượt ngang thành KÉO TỪ TRÊN XUỐNG */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Hiệu ứng rớt xuống mượt hơn */
  }
  .mobile-drawer.is-open { transform: translateY(0); }

  /* TABS VUỐT NGANG (LEVEL 1) */
  .drawer-tabs {
    display: flex; overflow-x: auto; background: var(--white);
    border-bottom: 1px solid #eee; scrollbar-width: none;
  }
  .drawer-tabs::-webkit-scrollbar { display: none; }
  .drawer-tab-btn {
    padding: 20px 15px; background: none; border: none; border-bottom: 2px solid transparent;
    font-size: 13px; font-weight: 700; color: #999; white-space: nowrap; cursor: pointer;
  }
  .drawer-tab-btn.active { color: var(--text-color); border-bottom-color: var(--text-color); }

  /* NỘI DUNG TAB & ACCORDION */
  .drawer-content-area { flex: 1; overflow-y: auto; padding: 20px; }
  .drawer-tab-content { display: none; animation: fadeIn 0.3s; }
  .drawer-tab-content.active { display: block; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .m-accordion { 
    margin-bottom: 20px; 
    list-style: none !important; /* Xóa dấu chấm cho toàn bộ danh sách */
    padding-left: 0 !important;  /* Bỏ khoảng thụt lề mặc định */
  }
  
  .m-accordion > li { 
    border-bottom: 1px solid #eee; 
    padding: 15px 0; 
    list-style: none !important; /* Đề phòng sót ở thẻ li */
  }
  .m-accordion-header { display: flex; justify-content: space-between; align-items: center; }
  .m-link-lv2 { font-size: 13px; font-weight: 700; text-transform: uppercase; }
  .m-plus-icon { font-size: 20px; font-weight: 300; cursor: pointer; width: 30px; text-align: right; }
  
  .m-accordion-body { display: none; padding-top: 10px; padding-left: 10px; }
  .m-accordion-body li { margin-bottom: 10px; }
  .m-accordion-body a { font-size: 13px; color: #666; }

  /* GỢI Ý SẢN PHẨM */
  .m-drawer-products { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .m-product-card {
    display: flex; align-items: center; gap: 15px; background: var(--white);
    padding: 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  }
  .m-product-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
  .m-product-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-color); }
  .m-product-info p { font-size: 12px; color: #666; }

  /* NÚT VIEW ALL & FOOTER */
  .m-view-all-btn {
    display: block; width: 100%; padding: 12px; text-align: center;
    border: 1px solid var(--text-color); border-radius: 25px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px;
  }
  .drawer-footer { background: var(--white); padding: 20px; border-top: 1px solid #eee; }
  .drawer-footer a { display: block; font-size: 12px; font-weight: 700; margin-bottom: 15px; }
}
/* Làm đẹp khoảng cách giữa link con và sản phẩm gợi ý trong ngăn kéo */
  .m-sub-links-list { margin-bottom: 15px; }
  .m-drawer-products.has-border-top { 
    margin-top: 15px; 
    border-top: 1px dashed #e0e0e0; 
    padding-top: 15px; 
  }/* =======================================================
   DIỆT TẬN GỐC DẤU CHẤM TRONG MOBILE DRAWER
======================================================== */
.mobile-drawer ul, 
.mobile-drawer li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Tiêu diệt luôn dấu chấm nếu theme dùng phần tử giả (pseudo-element) để vẽ */
.mobile-drawer li::before,
.mobile-drawer li::after {
  display: none !important;
  content: none !important;
}
/* =======================================================
   CART DRAWER (GIỎ HÀNG TRƯỢT PHẢI)
======================================================== */
.cart-drawer-overlay {
  display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); z-index: 4000; /* Nổi hơn cả menu */
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.cart-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100vh;
  background: #fff; z-index: 4001;
  transform: translateX(100%); /* Giấu bên ngoài mép PHẢI màn hình */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -5px 0 15px rgba(0,0,0,0.05);
}
.cart-drawer.is-open { transform: translateX(0); } /* Kéo vào trong màn hình */

/* Header của giỏ hàng */
.cart-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid #eee;
}
.cart-drawer-header h3 { font-size: 16px; font-weight: 700; color: #000; margin: 0; }
.cart-close-btn { background: none; border: none; font-size: 32px; line-height: 1; cursor: pointer; color: #000; padding: 0 10px; }
.cart-close-btn:hover { opacity: 0.5; }

/* Body giỏ hàng (Chứa sản phẩm) */
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.empty-cart-message { text-align: center; margin-top: 50px; }
.empty-cart-message svg { margin-bottom: 15px; }
.empty-cart-message p { color: #666; margin-bottom: 25px; font-size: 14px; }
.continue-shopping-btn {
  display: inline-block; padding: 12px 25px; background: #000; color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 25px;
}
.continue-shopping-btn:hover { opacity: 0.8; }

/* Footer giỏ hàng (Chứa tổng tiền và nút Thanh toán) */
.cart-drawer-footer { padding: 20px; border-top: 1px solid #eee; background: #fafafa; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.cart-subtotal span { font-size: 13px; font-weight: 700; color: #666; }
.cart-subtotal strong { font-size: 18px; font-weight: 700; color: #000; }
.checkout-btn {
  display: block; width: 100%; padding: 15px; background: #000; color: #fff;
  text-align: center; font-size: 14px; font-weight: 700; text-transform: uppercase; border-radius: 4px;
}
.checkout-btn:hover { background: var(--sobie-blue); }
/* --- SEARCH MODAL CSS --- */
.search-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #fff; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.4s;
  transform: translateY(-20px);
}
.search-modal.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.search-modal-container { width: 90%; max-width: 800px; position: relative; text-align: center; }
.search-close-btn { 
  position: absolute; top: -100px; right: 0; background: none; border: none; 
  font-size: 40px; cursor: pointer; 
}

.search-modal-form { display: flex; border-bottom: 2px solid #000; padding: 10px 0; }
.search-modal-form input { 
  flex: 1; border: none; outline: none; font-size: 24px; 
  font-weight: 700; text-transform: uppercase; 
}
.search-modal-form button { background: none; border: none; cursor: pointer; }

.search-suggestions { margin-top: 20px; font-size: 14px; color: #999; }
.search-suggestions a { margin-left: 15px; color: #000; text-decoration: underline; }

/* --- WISHLIST DRAWER CSS (Giống hệt Cart Drawer) --- */
.wishlist-drawer-overlay {
  display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); z-index: 4000; opacity: 0; visibility: hidden; transition: 0.3s;
}
.wishlist-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.wishlist-drawer {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100vh;
  background: #fff; z-index: 4001; transform: translateX(100%); transition: transform 0.4s;
  display: flex; flex-direction: column;
}
.wishlist-drawer.is-open { transform: translateX(0); }
/* =======================================================
   ÉP LƯỚI SẢN PHẨM TÌM KIẾM THÀNH 6 CỘT NGANG
======================================================== */
.suggested-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important; /* Ép buộc chia 6 cột đều nhau */
  gap: 20px;
  width: 100%;
}

.suggested-product-card { 
  display: block; 
  text-decoration: none; 
  text-align: left !important; /* Ép chữ căn trái, không bị ra giữa màn hình */
}

.spc-image { 
  overflow: hidden; 
  border-radius: 4px; 
  margin-bottom: 12px; 
  aspect-ratio: 3/4; 
  background: #f5f5f5;
  width: 100%;
}

.spc-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

/* =======================================================
   SEARCH MODAL CSS (FULL 6 CỘT & GỌN GÀNG)
======================================================== */
/* Nới rộng khung viền trên PC để chứa đủ 6 hình */
.search-modal-container { width: 95%; max-width: 1300px; position: relative; text-align: left; margin-bottom: 50px;}

.suggested-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important; /* Luôn là 6 cột trên PC */
  gap: 15px !important;
}

.suggested-product-card { display: block; text-decoration: none; text-align: left; }
.spc-image { overflow: hidden; border-radius: 4px; margin-bottom: 10px; aspect-ratio: 3/4; background: #f5f5f5; }
.spc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.suggested-product-card:hover .spc-image img { transform: scale(1.05); }

.spc-name { font-size: 13px; color: #111; margin-bottom: 5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spc-price { font-size: 14px; font-weight: 700; color: #000; }

/* ÉP KÍCH THƯỚC TRÊN MOBILE CHUẨN APP */
@media (max-width: 768px) {
  .search-modal { padding-top: 50px; }
  .search-close-btn { top: -40px; font-size: 35px; }
  
  /* Form tìm kiếm */
  .search-modal-form input { font-size: 16px; }
  .search-suggestions-text { font-size: 11px; margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 8px;}
  .search-suggestions-text a { margin-left: 0; padding: 4px 10px; background: #f5f5f5; border-radius: 20px;}
  
  /* Lưới sản phẩm: Chia 3 cột siêu gọn */
  .suggested-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  
  /* Thu nhỏ chữ sản phẩm */
  .suggested-title { font-size: 12px; margin-bottom: 10px; }
  .spc-image { margin-bottom: 6px; }
  .spc-name { font-size: 10px; margin-bottom: 2px; }
  .spc-price { font-size: 11px; }
}
/* =======================================================
   CSS TRANG CHỦ (INDEX)
======================================================== */
.luxe-section { padding: 50px 0; clear: both; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.container-logo-aligned { max-width: 1280px; } /* Căn lề chuẩn bằng logo */

.section-title { font-size: 24px; font-weight: 800; text-transform: uppercase; margin: 0 0 30px; letter-spacing: 2px; color: #111; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-header-flex .section-title { margin-bottom: 0; }
.view-all-link { font-size: 12px; font-weight: 700; color: #999; text-transform: uppercase; border-bottom: 2px solid #eee; padding-bottom: 3px; transition: 0.3s; }
.view-all-link:hover { color: #111; border-color: #111; }

/* Nút Banner */
.hero-btn { display: inline-block; padding: 12px 30px; background: #fff; color: #111; font-weight: 700; border-radius: 25px; text-transform: uppercase; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.hero-dot.active { background: #fff; transform: scale(1.2); }

/* Sliders vuốt ngang chung */
.slider-wrapper {display: flex !important;justify-content: flex-start !important; /* Chìa khóa đây: Ép dồn hết sang trái */gap: 20px !important; /* Chỉnh số này: 8px, 10px hay 15px tùy mắt bro nhìn */
}.slider-wrapper::-webkit-scrollbar { display: none; }
.slider-wrapper:active { cursor: grabbing; }

/* Kích thước thẻ sản phẩm trong Slider */
.slider-wrapper .product-card { flex: 0 0 calc(60% - 30px); min-width: 650px; }

/* Content Pages Slider */
.content-page-card { flex: 0 0 320px; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; background: #000; }
.content-page-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.5s; }
.content-page-card:hover img { opacity: 0.5; transform: scale(1.05); }
.content-page-info { position: absolute; bottom: 20px; left: 20px; color: #fff; z-index: 2; }
.content-page-info h4 { font-size: 18px; font-weight: 800; margin: 0 0 5px; text-transform: uppercase; }

/* Men Collection Special Banner */
.men-section-special { padding-top: 0; }
.men-banner-wrap { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; aspect-ratio: 21/9; overflow: hidden; background: #000; margin-bottom: 30px;}
.men-banner-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.men-banner-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; }
.men-banner-text h3 { font-size: 40px; font-weight: 800; margin: 0 0 15px; letter-spacing: 2px; }
.men-banner-text span { font-size: 14px; font-weight: 700; border-bottom: 2px solid #fff; padding-bottom: 5px; }

/* Blog Slider (Fix out khung) */
.blog-card { flex: 0 0 calc(25% - 15px); min-width: 280px; display: block; text-decoration: none; }
.blog-img { overflow: hidden; border-radius: 8px; margin-bottom: 15px; aspect-ratio: 3/2; background: #f4f4f4; width: 100%; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; display: block; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-info h4 { font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; margin: 0 0 8px; }
.blog-info p { font-size: 12px; color: #999; margin: 0; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .luxe-section { padding: 0px 0; }
  .section-title { font-size: 18px; }
  .slider-wrapper .product-card { flex: 0 0 calc(50% - 10px); min-width: 160px; }
  .content-page-card { flex: 0 0 250px; }
  .men-banner-wrap { aspect-ratio: 16/9; }
  .men-banner-text h3 { font-size: 28px; }
  .blog-card { flex: 0 0 calc(80% - 10px); min-width: 250px; }
}
/* ===================================================
     CẤU TRÚC: CỘT TRÁI CỐ ĐỊNH + SLIDER TRÀN VIỀN PHẢI
  =================================================== */
  .bleed-slider-section {
    display: flex;
    align-items: stretch;
    padding: 50px 0;
    /* Căn lề trái tự động khớp với logo (1280px), lề phải thả rông 100% */
    padding-left: max(20px, calc((100% - 1280px) / 2)); 
    gap: 30px;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  /* Cột Banner / Menu bên trái */
  .bleed-left-zone {
    flex: 0 0 300px; /* Độ rộng cột trái là 300px (có thể chỉnh to nhỏ tùy ý) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .bleed-left-banner {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
  }
  .bleed-left-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
  }
  .bleed-left-banner:hover img { transform: scale(1.05); }

  /* Khu vực chứa sản phẩm tràn viền phải */
  .bleed-right-col {
    flex: 1; /* Lấy hết phần không gian còn lại kéo dài ra mép màn hình */
    min-width: 0; /* Sửa lỗi Flexbox tràn ngang */
  }
  .bleed-right-col .slider-wrapper {
    padding-right: max(20px, calc((100% - 1280px) / 2)); /* Chừa khoảng trống bên mép phải khi cuộn hết */
    padding-bottom: 15px;
  }

  /* Định dạng Menu dọc (như hình Phụ kiện) */
  .side-menu-title { font-size: 24px; font-weight: 800; text-transform: uppercase; margin: 0 0 30px; color: #111; letter-spacing: 1px; }
  .side-menu-list { list-style: none; padding: 0; margin: 0; }
  .side-menu-list li { margin-bottom: 20px; font-size: 14px; font-weight: 600; color: #666; cursor: pointer; text-transform: uppercase; transition: 0.3s; display: flex; align-items: center; gap: 8px;}
  .side-menu-list li:hover, .side-menu-list li.active { color: #111; font-weight: 800; transform: translateX(5px); }
  .side-menu-list li.sale-text { color: #ff4444 !important; }

  /* Mobile Responsive */
  @media (max-width: 768px) {
    .bleed-slider-section { flex-direction: column; padding-left: 20px; gap: 20px; }
    .bleed-left-zone { flex: 0 0 auto; width: calc(100% - 20px); }
    .bleed-left-banner { min-height: 200px; aspect-ratio: 16/9; }
    .side-menu-list { display: flex; overflow-x: auto; gap: 20px; white-space: nowrap; scrollbar-width: none; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .side-menu-list li { margin-bottom: 0; }
    .side-menu-list li:hover, .side-menu-list li.active { transform: none; border-bottom: 2px solid #111; }
  }


#livechat-container{display: none !important
/* Skip render các section dưới viewport - cải thiện FCP/LCP đáng kể */
.pdp-bottom-related,
.home-section-block,
.bottom-related-grid,
.pdp-slider-wrapper {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* Cho phép browser ưu tiên render text trước ảnh */
img {
  content-visibility: auto;
}