/* ===========================
   🧱 CẤU HÌNH MÀU CHỦ ĐỀ
   =========================== */
:root {
  --page-bg: #e0e0e0;         /* Màu nền tổng thể (xám nhạt) */
  --text-color: #000;         /* Màu chữ mặc định (đen) */
  --accent: #28a745;          /* Màu xanh lá chủ đạo (nút, hover) */
  --accent-dark: #218838;     /* Màu xanh lá đậm hơn (hover) */
  --footer-bg: #000;          /* Màu nền footer mobile */
}

/* ===========================
   🖋️ KIỂU CHỮ & NỀN TRANG
   =========================== */
body,
.container,
.main-wrapper,
.site-content,
.page-wrapper,
footer,
header {
  background-color: var(--page-bg) !important;
  color: var(--text-color) !important;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.4;
  color: inherit;
}

/* Chữ thông thường */
p, span, li, a, div {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: inherit;
}

/* Chữ trong footer nhỏ hơn 1 chút */
footer, footer p, footer a, footer li {
  font-size: 15px;
  font-weight: 400;
}

/* ===========================
   🔧 TIỆN ÍCH / CĂN CHỈNH
   =========================== */
.footer-middle { padding: 2.25rem 0; }
.text-right { text-align: right; }
.pt-90 { padding-top: 90px !important; }

/* ===========================
   🟢 NÚT (THÊM, THANH TOÁN, ĐẶT HÀNG)
   =========================== */
.btn-addtocart,
.btn-checkout,
.btn-order {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 6px;
  padding: 12px 20px;
  text-transform: uppercase;
  transition: background-color .25s ease;
}

/* Khi rê chuột vào nút → màu xanh đậm hơn */
.btn-addtocart:hover,
.btn-checkout:hover,
.btn-order:hover {
  background-color: var(--accent-dark) !important;
  border-color: #1e7e34 !important;
}

/* ===========================
   💰 GIÁ SẢN PHẨM
   =========================== */

/* Giá gốc (đỏ + gạch ngang) */
.price-old,
.product-card__price .old-price,
.product-card__price del,
span.money.price.price-old,
del {
    font-size: small;
  color: black !important;
  font-weight: normal;
  text-decoration: line-through;
}

/* Giá khuyến mãi / giá hiện tại (đậm, đen) */
.product-card__price,
.product-card__price .new-price,
.product-card__price ins,
.product-card__price span,
h6,
strong {
  color: var(--text-color) !important;
  font-weight: bold;
  font-size: 16px;
}

/* ===========================
   📏 CHỌN SIZE / MÀU
   =========================== */
.size-box {
  padding: 5px 10px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  transition: background-color .3s, color .3s;
}

.size-box.selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.color-box { position: relative; }

.checkmark {
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: none;
}

/* ===========================
   📑 TAB (GẠCH DƯỚI KHI CHỌN)
   =========================== */
.nav-tabs { justify-content: center; }

.nav-tabs .nav-link {
  position: relative;
}

.nav-tabs .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #000;
  transform: scaleX(0);
  transition: transform .25s ease-in-out;
}

/* Khi tab được chọn */
.nav-tabs .nav-link.active::after {
  transform: scaleX(1);
}

/* ===========================
   🔍 THANH TÌM KIẾM
   =========================== */
.search-box {
  position: relative;
  display: inline-block;
}

.search-box input[type="text"] {
  width: 0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: width .4s, opacity .3s;
  opacity: 0;
}

/* Khi bật thanh tìm kiếm */
.search-box.active input[type="text"] {
  width: 200px;
  opacity: 1;
}

/* ===========================
   📱 LIÊN KẾT MẠNG XÃ HỘI
   =========================== */
.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  list-style: none;
}

.social-links li a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  transition: transform .3s, background .3s;
  text-decoration: none;
}

.social-links li a i,
.social-links li a svg {
  font-size: 18px;
  width: 20px;
  height: 20px;
}

/* ===========================
   📞 FOOTER MOBILE (MÀU + ICON)
   =========================== */
.footer-mobile {
  background-color: var(--footer-bg) !important;
  color: #fff !important;
  border-top: 1px solid #222 !important;
}

.footer-mobile a,
.footer-mobile i,
.footer-mobile span {
  color: #fff !important;
}

/* Icon SVG màu trắng */
.footer-mobile svg,
.footer-mobile svg * {
  fill: #fff !important;
  stroke: #fff !important;
}

/* Khi rê chuột vào → xanh lá */
.footer-mobile a:hover,
.footer-mobile i:hover,
.footer-mobile span:hover,
.footer-mobile a:hover svg,
.footer-mobile a:hover svg * {
  color: var(--accent) !important;
  fill: var(--accent) !important;
  stroke: var(--accent) !important;
}

/* ===========================
   🍔 NÚT MENU (3 GẠCH)
   =========================== */
.menu-toggle {
  width: 50px !important;
  height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  touch-action: manipulation; /* phản hồi nhanh trên điện thoại */
}

.menu-toggle i,
.menu-toggle svg {
  font-size: 24px;
  pointer-events: none;
}

/* ===========================
   🖼️ ẢNH SẢN PHẨM / DANH MỤC
   =========================== */
.category-banner__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.category-banner__item {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.product-item img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

.product-item {
  width: 220px;
  margin: 0 auto;
}

/* ===========================
   📱 RESPONSIVE (ĐIỆN THOẠI)
   =========================== */
@media (max-width: 768px) {
  .container { padding: 10px; }
  nav ul { 
  align-items: flex-start; }
  .product-item { width: 48%;
  margin-bottom: 10px; }
}

@media (max-width: 480px) {
  /* Thu nhỏ phần “Bạn Có Thể Thích” */
  .category-banner__item img,
  .product-item img {
    width: 80px !important;
    height: 80px !important;
  }

  .product-item {
    width: 100% !important;
    margin: 0 5px !important;
  }

  .product-item h3,
  .product-item p,
  .product-item span {
    font-size: 12px !important;
  }

  .section-title,
  .home-section h2,
  h3 {
    font-size: 16px !important;
  }

  .product-slider,
  .swiper-container {
    padding: 0 !important;
  }

  /* Dành chỗ cho footer cố định */
  body {
    padding-bottom: 70px;
  }
  
  /* Chữ thông thường */
    p, span, li, a, div {
      font-size: 14px;
      font-weight: 400;
      line-height: 1.6;
      color: inherit;
    }
}

/* ===========================
   💲 GIÁ / ĐƠN VỊ TIỀN
   =========================== */
.price, .currency {
  white-space: nowrap;
  display: inline-block;
  vertical-align: baseline;
}

.currency {
  margin-left: 2px;
  font-weight: normal;
}
/* ===========================
  /* ===========================
   📱 Hiển thị 3–4 ô trong slider "Bạn Có Thể Thích"
   =========================== */
/* ===========================
   📱 Hiển thị 3–4 ô trong slider "Bạn Có Thể Thích"
   =========================== */
/* ===========================
   📱 Hiển thị 3–4 ô trong slider "Bạn Có Thể Thích"
   =========================== */
/* ==============================================
   📱 Sửa phần "Bạn Có Thể Thích" cho mobile
   (Swiper nằm trong section.category-carousel)
   ============================================== */
@media (max-width: 768px) {
  /* 1️⃣ Mỗi ô nhỏ hơn — hiển thị được 3–4 ô */
  .category-carousel .swiper-slide {
    flex: 0 0 25% !important;      /* 4 ô / hàng */
    max-width: 25% !important;
    margin-right: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* 👉 Nếu muốn 3 ô / hàng: đổi 25% thành 33.33% */

  /* 2️⃣ Ảnh nhỏ lại, căn giữa */
  .category-carousel .swiper-slide img {
    width: 65px !important;
    height: 65px !important;
    display: block !important;
    margin: 0 auto 6px auto !important;
    object-fit: contain !important;
    border-radius: 50% !important; /* nếu bạn muốn ảnh tròn */
  }

  /* 3️⃣ Chữ nhỏ và đều */
  .category-carousel .swiper-slide p,
  .category-carousel .swiper-slide span,
  .category-carousel .swiper-slide h3 {
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 4️⃣ Giảm padding tổng thể */
  .category-carousel .swiper,
  .category-carousel .swiper-container {
    padding: 5px 0 !important;
  }
}
/* ==========================================
   🎯 Căn giữa & thu nhỏ khối chữ trên ảnh
   ========================================== */
.category-banner__item {
  position: relative;
  overflow: hidden;
}

/* Ảnh nền */
.category-banner__item img {
  width: 100%;
  border-radius: 15px;
  display: block;
}

/* Khối chữ trắng */
.category-banner__item-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; /* giảm kích thước khối trắng */
  background: rgba(255, 255, 255, 0.9); /* nền trắng trong suốt nhẹ */
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Chữ trong khối */
.category-banner__item-content h4,
.category-banner__item-content p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.2;
  color: #000;
}

/* Mobile tối ưu thêm */
/* 🎯 Căn giữa nội dung trong banner trên điện thoại */
/* 🎨 Tinh chỉnh banner trên điện thoại */
/* ===========================
   📱 FIX GIAO DIỆN MOBILE CHO BANNER
   =========================== */
@media (max-width: 768px) {
  .category-banner__item {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Ảnh nền — hiển thị to hơn một chút để tạo viền */
  .category-banner__item img {
        width: 350px !important;
        height: 160px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
  }

  /* Hộp trắng ở giữa — nhỏ hơn và nổi bật */
  .category-banner__item-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 65% !important; /* có thể chỉnh 60–70% tùy cảm giác */
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  /* Tiêu đề và nút */
  .category-banner__item-content h3 {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }

  .category-banner__item-content a {
    font-size: 11px !important;
  }
}
/* ===========================
   📱 FIX ICON MẠNG XÃ HỘI TRÊN MOBILE
   =========================== */
@media (max-width: 768px) {
 /* ===============================
   🔗 SOCIAL ICONS (Tối ưu hiển thị)
   =============================== */
.social-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  margin: 0 auto !important;
  list-style: none !important;
  flex-wrap: nowrap !important; /* tránh bị xuống hàng */
  background: transparent !important;
}

.social-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer__social-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease-in-out !important;
}

.footer__social-link:hover {
  transform: scale(1.1);
  background-color: #f5f5f5 !important;
}

.footer__social-link i,
.footer__social-link svg {
  color: #333 !important;
  font-size: 16px !important;
}

/* 📱 Responsive cho điện thoại */
@media (max-width: 768px) {
  .social-links {
    gap: 10px !important;
    padding: 8px 0 !important;
  }

  .footer__social-link {
    width: 36px !important;
    height: 36px !important;
  }

  .footer__social-link i,
  .footer__social-link svg {
    font-size: 14px !important;
  }
}
/* --- Sửa lỗi icon mạng xã hội bị dọc --- */
ul.social-links,
.container.social-links {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  list-style: none !important;
  margin: 10px 0 !important;
  padding: 0 !important;
}

/* Xóa mọi tác động từ Bootstrap container */
ul.social-links.container {
  max-width: none !important;
}

/* Li & link */
/* ==== Căn đều & chỉnh kích thước icon mạng xã hội ==== */

/* ==== Căn đều icon mạng xã hội cho mobile ==== */
@media (max-width: 768px) {
  ul.social-links,
  .container.social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 !important;
  }

  ul.social-links li {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  /* Phần link bao quanh icon */
  ul.social-links li a.footer__social-link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 18px !important;
    color: #333 !important;
    text-decoration: none !important;
  }

  ul.social-links li:hover {
    background-color: #f2f2f2 !important;
    transform: scale(1.08);
  }
}
.product-label:contains("-100%"),
.product-label:contains("100%") {
  display: none !important;
}
.product-label {
  display: none !important;
}

.product-card .product-label:not(:contains("-100%")) {
  display: flex !important;
}

/* Khung sản phẩm */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*.product-card:hover {*/
/*  transform: translateY(-6px);*/
/*  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);*/
/*}*/

/* Ảnh sản phẩm */
.pc__img-wrapper {
  position: relative;
  overflow: hidden;
}

.pc__img {
  width: 100%;
  transition: transform 0.5s ease;
}

/*.product-card:hover .pc__img {*/
/*  transform: scale(1.08);*/
/*}*/

/* ===== DISCOUNT LABEL (Ribbon Style - Top Right Corner) ===== */
.discount-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff4b5c, #e63946);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px 4px 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discount-label::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-top: 5px solid #c72c41; /* màu đậm hơn để tạo chiều sâu */
}

/* Hover effect */
.discount-label:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(230, 57, 70, 0.4);
}

.product-card__price {
    font-size: 13px;
}
/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
      .discount-label {
        top: 6px;
        right: 6px;
        font-size: 0.7rem;
        padding: 3px 9px;
      }
      
      .product-card__price,
    .product-card__price .new-price,
    .product-card__price ins,
    .product-card__price span,
    h6,
    strong {
      color: var(--text-color) !important;
      font-weight: bold;
      font-size: 12px;
    }
    .my-account .page-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}
}

@media (max-width: 480px) {
  .discount-label {
    top: 4px;
    right: 4px;
    font-size: 0.65rem;
    padding: 2px 8px;
  }
}


/* --- PHẦN NÚT ẨN TRÊN ẢNH --- */
.anim_appear-bottom {
  position: absolute !important;
  bottom: -100%; /* Ẩn xuống dưới */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  gap: 10px;
  transition: all 0.35s ease-in-out;
  z-index: 10;
}

/* Khi hover vào khung ảnh thì xuất hiện */
.product-card:hover .anim_appear-bottom {
  bottom: 0;
}

/* Nút giỏ hàng */
.js-add-cart {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.js-add-cart:hover {
  background: #e63946;
  color: #fff;
}

/* Nút yêu thích */
.pc__btn-wl {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}

.pc__btn-wl:hover {
  background: #e63946;
  border-color: #e63946;
}

.pc__btn-wl svg {
  fill: #555;
  transition: fill 0.3s ease;
}

.pc__btn-wl:hover svg {
  fill: #fff;
}

/* Tiêu đề và giá */
.pc__info {
  
}

.pc__title a {
  color: #222;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.pc__title a:hover {
  color: #e63946;
}

.price {
  font-weight: 600;
  
}

.price-old {
  text-decoration: line-through;
  color: #999;
}

.price-sale {
  color: #e63946;
  font-size: 18px;
}

.mobile-nav-activator {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-activator:focus,
.mobile-nav-activator:active {
  outline: none;
  box-shadow: none;
}
/* ---------- 📱 MOBILE MENU (chuẩn & gọn) ---------- */

/* Nút mở menu */
.mobile-nav-activator {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu chính */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 2100;
  box-shadow: 2px 0 18px rgba(0,0,0,0.12);
  transition: left 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

/* Nút đóng */
.mobile-menu__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* Danh sách link */
.mobile-menu__list {
  list-style: none;
  padding: 60px 0 20px;
  margin: 0;
}

.mobile-menu__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu__list li a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  display: block;
}

/* Overlay nền tối */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Body khi mở menu */
body.menu-open {
  overflow: hidden;
}

/* ẨN menu mobile trên màn hình lớn */
@media (min-width: 992px) {
  .header-mobile,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* HIỆN menu mobile trên thiết bị nhỏ */
@media (max-width: 991px) {
  .header-mobile {
    display: block !important;
  }
  .header-desktop,
  .menu-desktop,
  .nav-desktop {
    display: none !important;
  }
}
/* --- FIX ẨN MENU MOBILE TRÊN DESKTOP --- */
@media (min-width: 992px) {
  body .header-mobile,
  body .mobile-menu,
  body .mobile-menu-overlay,
  body .menu-drawer,
  body .drawer-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}
/* --- ẨN MENU MOBILE TRÊN DESKTOP --- */
@media (min-width: 992px) {
  .header-mobile,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transition: none !important;
    animation: none !important;
    position: absolute !important;
    z-index: -9999 !important;
  }
}
/* Ẩn cưỡng bức menu mobile khi ở desktop */
.force-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  transition: none !important;
}
/* Ẩn menu mobile hoàn toàn ở desktop để tránh chớp */
@media (min-width: 992px) {
  .header-mobile,
  .mobile-menu,
  .mobile-menu-overlay,
  .menu-drawer,
  .drawer-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Chỉ hiển thị khi dưới 992px */
@media (max-width: 991px) {
  .header-mobile,
  .mobile-menu,
  .mobile-menu-overlay {
    display: block;
    visibility: visible;
    opacity: 1;
  }
}
/* --- Fix overlay mobile bị tối --- */
@media (max-width: 991px) {
  .mobile-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .mobile-menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Lớp overlay tối chỉ bật khi menu mở */
  .mobile-menu-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
#logout-form button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
/* --- Auth Buttons --- */
.auth-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-links li {
  list-style: none;
}

.auth-links a {
  display: inline-block;
  min-width: 110px;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 15px;
}

/* Đăng nhập nút đen */
.btn-login {
  background: #111;
  color: #fff;
}

.btn-login:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Đăng ký nút viền */
.btn-register {
  border: 2px solid #111;
  color: #111;
  background: transparent;
}

.btn-register:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

/* Căn giữa tổng thể khu vực đăng nhập */
.mobile-user-menu {
  text-align: center;
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
}
/* === MENU MOBILE MỚI === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.35s ease, box-shadow 0.35s ease;
  border-radius: 0 16px 16px 0;
  font-family: "Inter", sans-serif;
}

.mobile-menu.active {
  left: 0;
  box-shadow: 3px 0 25px rgba(0, 0, 0, 0.15);
}

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 9998;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.mobile-menu__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #333;
  position: absolute;
  top: 12px;
  right: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}
.mobile-menu__close:hover {
  transform: rotate(90deg);
}

/* Main menu */
.mobile-menu__list li {
  list-style: none;
}
.mobile-menu__list a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
}
.mobile-menu__list a:hover {
  background: #f5f7fa;
  color: #007bff;
}

/* User section */
.mobile-user-menu {
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 12px;
}
.mobile-user-menu img {
  border: 2px solid #eaeaea;
}
.mobile-user-menu strong {
  font-size: 15px;
  color: #222;
}
.mobile-user-menu .small {
  font-size: 13px;
  color: #777;
}

/* Account links */
.account-menu li a {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}
.account-menu li a:hover {
  background: #f0f3f8;
  color: #007bff;
}

/* Logout button */
.account-menu form button {
  display: flex;
  align-items: center;
  margin: 8px 18px;
  color: #e74c3c;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
}
.account-menu form button:hover {
  text-decoration: underline;
}
/* ----- NỀN ĐEN TOÀN MENU ----- */
nav.mobile-menu {
  background-color: #111;
  color: #fff;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Khi menu mở */
nav.mobile-menu.active {
  transform: translateX(0);
}

/* ----- TIÊU ĐỀ MENU ----- */
nav.mobile-menu::before {
  content: "Menu";
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: 0.5px;
}

/* ----- DANH SÁCH MENU CHÍNH ----- */
.mobile-menu__list li a {
  display: block;
  padding: 12px 22px;
  color: #f5f5f5;
  font-size: 0.96rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__list li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #00bcd4;
}

/* ----- PHẦN USER BÊN DƯỚI ----- */
.mobile-user-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  color: #ddd;
}

.mobile-user-menu img {
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-user-menu a {
  color: #ccc;
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-user-menu a:hover {
  color: #00bcd4;
}

/* ----- NÚT ĐÓNG MENU ----- */
.mobile-menu__close {
  color: #fff !important;
  font-size: 26px;
  background: transparent;
  border: none;
  position: absolute;
  top: 12px;
  right: 18px;
  cursor: pointer;
}

/* ----- OVERLAY MỜ ----- */
.mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* ----- CHỮ TRONG PHẦN USER MENU ----- */
.mobile-user-menu,
.mobile-user-menu * {
  color: #fff !important; /* chữ trắng */
}

.mobile-user-menu a {
  color: #fff !important;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
}

.mobile-user-menu a:hover {
  color: #00bcd4 !important; /* màu xanh nhạt khi hover */
}

/* Ẩn dấu chấm đầu dòng */
.mobile-user-menu ul,
.mobile-user-menu li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

/* Giữ avatar và email gọn gàng */
.mobile-user-menu img {
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  width: 36px;
  height: 36px;
}

.mobile-user-menu span,
.mobile-user-menu p,
.mobile-user-menu small {
  color: #fff !important;
  font-size: 0.9rem;
}
/* --- Tối ưu khối "Khuyến Mãi Hấp Dẫn" cho mobile --- */
@media (max-width: 768px) {
  .promotion-section { /* class bao quanh khối tiêu đề, thay bằng class thực tế của bạn */
    text-align: center;
    margin: 0;
  }

  .promotion-section h2, /* Khuyến Mãi Hấp Dẫn */
  .promotion-section h3, /* Ưu đãi */
  .promotion-section h4 { /* Đặc biệt của Lóc Việt Minh Trí */
    font-size: 18px;
    line-height: 1.3;
    margin: 5px 0;
  }

  .promotion-section h2 {
    font-weight: 700;
    font-size: 20px;
  }

  .promotion-section h3,
  .promotion-section h4 {
    font-weight: 600;
  }

  .promotion-section h4 br {
    display: none; /* Ẩn xuống dòng cưỡng bức nếu có <br> */
  }
}
@media (max-width: 768px) {
  .promotion-section h3 {
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    margin: 10px 0 15px;
    font-weight: 700;
  }

  .promotion-section h3 br {
    display: none;
  }
}
/* --- Shop Product Card Custom --- */
.product-card {
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    background: #fff !important;
}

/*.product-card:hover {*/
/*    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;*/
/*    transform: translateY(-5px) !important;*/
/*}*/

.product-card .pc__title a {
    color: #222 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.product-card .pc__title a:hover {
    color: #007bff !important;
}

.pc-label_sale {
    background-color: #ff4747 !important;
    font-weight: bold !important;
    border-radius: 50px !important;
    padding: 3px 10px !important;
}

.price-old {
    text-decoration: line-through !important;
    color: #999 !important;
    font-size: 14px;
}

.price-sale {
    color: red !important;
    font-weight: 450 !important;
}

.pc__atc {
   background-color: #28a745 !important;
        color: #fff !important;
        font-size: 14px !important;
        padding: 8px 7px !important;
        border-radius: 79px !important;
}

.pc__atc:hover {
    background-color: #218838 !important;
}
/* ---- CARD SẢN PHẨM ---- */
div.swiper-slide.product-card {
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  background: #fff !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

/*div.swiper-slide.product-card:hover {*/
/*  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;*/
/*  transform: translateY(-5px) !important;*/
/*}*/


/* Thu nhỏ ảnh bên trong để vừa khung */
.related-products .product-card img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-bottom: 1px solid #eee !important;
}
/* Tinh chỉnh sản phẩm liên quan */
#related_products .product-card {
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 auto !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease !important;
}

/*#related_products .product-card:hover {*/
/*  transform: translateY(-5px) !important;*/
/*  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;*/
/*}*/

#related_products .pc__img {
  width: 100% !important;
  height: 230px !important;
  object-fit: contain !important;
}

#related_products .pc__info {
  text-align: center !important;
}
.related-products h3 {
  font-size: 22px;
  color: #ff6600;
  border-bottom: 2px solid #ff6600;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 25px;
}
/* ========== Swiper - SẢN PHẨM LIÊN QUAN ========== */
.related-products-swiper .swiper-slide {
  width: 178px;
  margin-right: 14px;
  height: auto;
}

.related-products-swiper .swiper-wrapper {
  height: 306px;
}

.related-products-swiper .product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*.related-products-swiper .product-card:hover {*/
/*  transform: translateY(-4px);*/
/*  box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
/*}*/

.related-products-swiper .pc__img {
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.related-products-swiper .pc__img:hover {
  transform: scale(1.03);
}
/* ==== CHỈ ÁP DỤNG CHO SẢN PHẨM LIÊN QUAN ==== */
#related_products.related-products-swiper .swiper-wrapper {
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
}

#related_products.related-products-swiper .swiper-slide {
  width: 178px !important;
  margin-right: 14px !important;
  height: auto !important;
}

#related_products.related-products-swiper .product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/*#related_products.related-products-swiper .product-card:hover {*/
/*  transform: translateY(-4px);*/
/*  box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
/*}*/


/* --- Safari Speed Boost --- */
* {
  /*-webkit-transform: translateZ(0);*/
  -webkit-backface-visibility: hidden;
}
img {
  decoding: async;
  loading: lazy;
}
.backdrop-blur {
  backdrop-filter: blur(2px);
}
/* --- Căn giữa nút "Thêm vào giỏ hàng" trong sản phẩm --- */
.product-card form[name="addtocart-form"] {
  position: absolute !important;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99 !important;
  pointer-events: auto;
  width: 90%; /* đảm bảo nút vừa khít nội dung */
  margin: 0 auto;
  text-align: center;
}

/* Nút Add to Cart */

/* Khi hover sản phẩm thì hiện nút */
/*.product-card:hover .pc__atc {*/
/*  opacity: 1;*/
/*  visibility: visible;*/
/*  transform: translateY(-3px);*/
/*}*/

/* Nền mờ overlay khi hover */
/*.product-card:hover .pc__img-wrapper::after {*/
/*  content: "";*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  background: rgba(0, 0, 0, 0.35);*/
/*  z-index: 2;*/
/*  transition: opacity 0.3s ease;*/
/*}*/


@media (max-width: 768px) {

  /* Hộp điều khiển số lượng (qty-control) */
  .qty-control {
    position: relative;
    display: inline-block;
    width: 5.5rem; /* chiều ngang nhỏ gọn hơn */
  }

  .qty-control input::-webkit-outer-spin-button,
  .qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  .qty-control__number {
    width: 100%;
    height: 2.5rem;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    text-align: center;
    background-color: #fff;
    border: 1px solid #b9b9b9;
    border-radius: 10px;
    outline: none;
    -moz-appearance: textfield;
  }

  .qty-control__reduce,
  .qty-control__increase {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    text-align: center;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    cursor: pointer;
    user-select: none;
    color: #333;
  }

  /*.qty-control__reduce {*/
  /*  left: 0.5rem;*/
  /*}*/

  /*.qty-control__increase {*/
  /*  right: 0.5rem;*/
  /*}*/

  /* Trong trang chi tiết sản phẩm */
  .product-single__addtocart .qty-control {
    min-width: 5.5rem;
  }

  .product-single__addtocart .qty-control__number {
    height: 2.75rem;
    padding: 0 1.25rem;
    border: 1px solid #E4E4E4;
    border-radius: 10px;
    min-width: 5rem;
  }

  .product-single__addtocart .qty-control__reduce,
  .product-single__addtocart .qty-control__increase {
    font-size: 0.9rem;
  }

  /* Trong giỏ hàng */
  .shopping-cart .cart-table tbody td .remove-cart {
    position: static;
  }

  .shopping-cart .cart-table .qty-control {
    width: 5.5rem;
    margin: 0.5rem auto;
  }

  .shopping-cart .cart-table .qty-control__number {
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid #b9b9b9;
    border-radius: 10px;
  }

  /*.shopping-cart .cart-table .qty-control__reduce {*/
  /*  left: 0.75rem;*/
  /*}*/

  /*.shopping-cart .cart-table .qty-control__increase {*/
  /*  right: 0.75rem;*/
  /*}*/

  /* Loại sản phẩm màu nền tối */
  .product-single__type-3 .product-single__addtocart .qty-control__number {
    background: transparent;
    border-color: #767676;
    color: #fff;
  }

  .product-single__type-3 .product-single__addtocart .qty-control__reduce,
  .product-single__type-3 .product-single__addtocart .qty-control__increase {
    color: #fff;
  }
  /* Ẩn vị trí mặc định của nút xóa */
  .shopping-cart .cart-table tbody td .remove-cart {
    position: absolute !important;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
  }

  /* Đảm bảo ô chứa sản phẩm có position: relative để nút xóa bám góc phải */
  .shopping-cart .cart-table tbody tr {
    position: relative;
  }

  /* Tùy chỉnh kích thước icon cho phù hợp màn hình nhỏ */
  .shopping-cart .cart-table tbody td .remove-cart svg {
    width: 0.9rem;   /* nhỏ lại (khoảng 14px) */
    height: 0.9rem;
    stroke: #666;
    transition: all 0.2s ease;
  }

  .shopping-cart .cart-table tbody td .remove-cart:hover svg {
    stroke: red;
    transform: scale(1.1);
  }
  .product-single__addtocart .qty-control__reduce {
  padding-left: 0;
}
.product-single__addtocart .qty-control__increase {
  padding-right: 0;}
.product-single__addtocart .qty-control__reduce, .product-single__addtocart .qty-control__increase {
      font-size: 1rem;
      text-align: center;
      top: 50%;
      transform: translateY(-50%);
      width: 2rem;
      align-content: center;
      }
.shopping-cart .cart-table-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 0;
  gap: 1.875rem;
  flex-wrap: wrap;
}   
.shopping-cart .cart-table-footer .form-control {
  border-radius: 15px;
  width: 300px;
  max-width: 100%;
  height: 2.5rem;
}
.shopping-cart__totals-wrapper .sticky-content {
  padding-top: 0;
}
.checkout-form .checkout__totals-wrapper .sticky-content {
    padding-top: 0; }
.checkout-form .checkout__payment-methods {
    margin-bottom: 0; }
}

.swiper-container js-swiper-slider swiper-container-initialized swiper-container-horizontal swiper-container-pointer-events {
  width: 100% !important;
  height: auto !important;
}