.navbar .nav-links > li > a:hover {
  color: #FFD700; /* vàng */
  transition: none;
}

/* Ẩn topbar và các mục navbar chính trên mobile & tablet */
@media (max-width: 1024px) {
  .topbar {
    display: none !important;
  }
  .navbar-center .nav-links > li.has-dropdown {
    display: none !important;
  }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
  }
html, body {
  overflow-x: hidden;
}
  body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #333;
  }
  
  /* Topbar */
.topbar {
    background-color: #84807e;
    color: white;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }
  .logo img {
    height: 88px;
    width: auto;
  }
  
  .topbar a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    position: relative;
    transition: 0.3s;
  }
  
  .topbar a:hover {
    background-color: #333;
    color: white;
    border-radius: 4px;
  }
  
  /*-------------------------------------------------------------------------*/
  
  /* Navbar */
  .navbar {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  
.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
  
.search {
  position: relative;
}
  
.search input {
  padding: 6px 30px 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
}
  
.search i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}
/*-----------------------Cart---------------------------*/
.cart {
  position: relative;
}

.cart i {
  color: black;
}

.cart .badge {  
  position: absolute;
  top: -5px;
  right: -10px;
  background: red;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

/*-----------------------Cart---------------------------*/

.navbar{
  position: sticky;
  top: 0;
  z-index: 3;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 3;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  font-size: 16px;
  color: #000;
  /* no transition for instant color change */
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: #FFD700; /* vàng ngay lập tức */
  transition: none;
}

/* ===== Dropdown / Mega Menu ===== */
.navbar-center .nav-links > li.has-dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  border-radius: 0; /* góc nhọn đồng bộ */
  z-index: 999;
  opacity: 0; /* hiệu ứng xuất hiện dần */
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.has-dropdown:hover > .mega-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Mở qua class JS để có độ trễ */
.has-dropdown.open > .mega-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Cầu nối hover để không bị mất khi di chuột xuống */
.navbar-center .nav-links > li.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px; /* khoảng chững ngắn */
  background: transparent;
}

/* Mega menu: Products (wide, column layout) */
.mega-menu-products {
  position: fixed; /* căn giữa theo chiều ngang, dọc giữ dưới navbar */
  top: var(--nav-bottom);
  left: 50%;
  transform: translate(-50%, 8px); /* giữ hiệu ứng slide */
  width: min(1200px, calc(100vw - 120px));
  padding: 28px 40px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,0.12); /* đường viền tinh tế cho gọn gàng */
}

.mega-menu-products .mega-row {
  display: grid;
  column-gap: 56px; /* khoảng cách cột ổn định như ảnh tham chiếu */
  row-gap: 28px;
  margin-bottom: 12px;
}

.mega-menu-products .mega-row.top {
  grid-template-columns: repeat(6, 1fr); /* 6 cột đều nhau */
}

.mega-menu-products .mega-row.bottom {
  grid-template-columns: repeat(6, 1fr); /* căn thẳng với hàng trên */
}

.mega-menu-products .mega-column h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #000;
}

.mega-menu-products .mega-column a {
  display: block;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.9;
  color: #000;
}

.mega-menu-products .mega-column a:hover {
  color: #FFD700; /* vàng khi hover */
}

/* Story dropdown: centered under the label */
.mega-menu-story {
  min-width: 280px;
  padding: 28px 32px; /* giống padding của products */
  position: fixed;
  top: var(--nav-bottom);
  left: 50%;
  transform: translate(-50%, 8px); /* slide như products */
}

.mega-menu-story .mega-column {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  column-gap: 24px;
  row-gap: 6px;
}

.mega-menu-story .mega-column a {
  display: block;
  text-decoration: none;
  font-size: 16px; /* giống products */
  line-height: 1.9; /* giống products */
  font-weight: 400;
  color: #000;
}

.mega-menu-story .mega-column a:hover {
  color: #FFD700; /* vàng khi hover */
}

/* Khi mở, giữ căn giữa và hoàn thành hiệu ứng slide */
.has-dropdown:hover > .mega-menu.mega-menu-products,
.has-dropdown.open > .mega-menu.mega-menu-products,
.has-dropdown:hover > .mega-menu.mega-menu-story,
.has-dropdown.open > .mega-menu.mega-menu-story {
  transform: translate(-50%, 0);
}

.outlet-menu {
  position: relative;
  text-align: center;
}

.outlet-menu .discount-label {
  font-size: 10px;
  color: red;
  font-weight: bold;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
 /*-------------------------------------------------------------------------*/


 /*MAIN*/
.contents {
  background: white;
  padding: 0;
}

.product-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 24px;
  max-width: 1200px;
  padding: 0 40px;
}

.product-filter button {
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #fff;
  color: #333;
}

.product-filter button:first-child {
  border-radius: 25px 0 0 25px;
}

.product-filter button:last-child {
  border-radius: 0 25px 25px 0;
}

.product-filter button.active {
  background-color: #000;
  color: white;
  box-shadow: 0 0 0 2px #000;
}

.product-filter button:not(.active):hover {
  background-color: #f7f7f7;
}

.product-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 30px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
}

.product-section .product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.product-section .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.product-section .product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.product-section .product-card p {
  padding: 16px 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hidden {
  display: none;
}

.gender-section {
  padding: 50px 0;
  background: #fff;
}

.gender-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.gender-card {
  flex: 1 1 500px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gender-card:hover {
  transform: translateY(-3px);
}

.gender-card img {
  width: 100%;
  height: auto;
  display: block;
}

.gender-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

.gender-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.gender-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

.gender-content .btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
}

.imagecontent {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

.imagecontent h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.imagecontent p {
  font-size: 16px;
  margin-bottom: 15px;
}

.imagecontent .btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
}

.big-image {
  width: 100vw;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin: 0;
  padding: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.big-image img{
  width: 100%;
  height: auto;
  display: block;
}

/* Đồ mặc hằng ngày */
.daily-product-section {
  padding: 40px 20px;
  max-width: 1300px;
  margin: auto;
  background: white;
  position: relative;
}

.daily-product-section h2 {
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Đồ mặc hằng ngày */
.daily-product-section {
  padding: 40px 20px;
  max-width: 1300px;
  margin: auto;
  position: relative;
}

.daily-product-section h2 {
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  margin-bottom: 0;
}

.view-more-btn {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.view-more-btn:hover {
  color: #333;
}

 /*-------------------------------------------------------------------------*/



 #scroll_top{
  display: block;
  width: 80px;
  height: 80px;
  text-align: center;
  line-height: 80px;
  font-size: 20px;
  background-color: #828282;
  border-radius: 50%;
  box-shadow: 0 0 5px #cccccc;
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 1;
  color: black;
}

html{
  scroll-behavior: smooth;
}


.custom-slick-prev{
  position: absolute;
  left: 50px;
  top: 45%; 
  z-index: 2;
  border: none;
  background-color: transparent;
}

.footer {
  background: #000;
  color: #fff;
  padding: 40px;
  font-size: 14px;
  line-height: 1.8;
}

.footer .feedback {
  text-align: center;
  margin-bottom: 40px;
}

.footer .feedback h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer .feedback-btn {
  margin-top: 20px;
  background-color: #fff;
  color: #000;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.footer .feedback-btn:hover {
  background-color: #f1f1f1;
}

.footer .contact {
  margin-top: 20px;
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 30px;
  gap: 30px;
}

.footer .footer-links .column {
  flex: 1;
  min-width: 200px;
}

.footer .footer-links h4 {
  font-size: 16px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: bold;
}

.footer .footer-links a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer .footer-links a:hover {
  color: #fff;
}

.footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.footer .footer-social a {
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s;
}

.footer .footer-social a:hover {
  color: #ccc;
  transform: scale(1.2);
}

/* ===== VietTrang Footer (white top, black bottom) ===== */
.vt-footer {
  background: #fff;
  color: #000;
  padding: 40px 40px 0; /* bỏ padding dưới để không còn khoảng trắng */
  border-top: 1px solid rgba(0,0,0,0.08);
}

.vt-footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.vt-logo {
  height: 72px;
  width: auto;
  margin-bottom: 24px;
}

.vt-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 24px;
}
.vt-email a {
  color: #000;
  text-decoration: none;
}

.vt-social { display: flex; gap: 24px; }
.social-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: #f1ece5;
  display: flex; align-items: center; justify-content: center;
  color: #000;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08) inset;
}
.social-circle:hover { background: #e9e3dc; }

.vt-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
.vt-footer-columns h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.vt-footer-columns a {
  display: block;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  line-height: 2.1;
}
.vt-footer-columns a:hover { color: #FFD700; }

.vt-footer-bottom {
  background: #000;
  color: #fff;
  margin-top: 32px;
  padding: 18px 40px; /* mảnh, kéo full width */
  font-size: 14px;
  line-height: 1.8;
  border-radius: 0; /* bỏ bo góc để không còn cảm giác đóng khung */
  /* Full-bleed strip across viewport */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.vt-footer-bottom p { margin: 0; text-align: center; opacity: 0.85; }

@media (max-width: 900px) {
  .vt-footer-top { grid-template-columns: 1fr; }
  .vt-footer-columns { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ===== Styles for main hero, search, categories, trending ===== */
.hero {
  background: linear-gradient(90deg, #f3fbf4 0%, #ffffff 100%);
  padding: 56px 0 32px;
}
.hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
  padding: 0 40px;
}
.kicker {
  display: inline-block;
  background: #e9f7ec;
  color: #2a7a3f;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #0b2233;
}
.hero .accent { color: #28c76f; }
.hero .lead { color: #667085; font-size: 16px; margin-bottom: 20px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.btn.primary { background: #28c76f; color: #fff; box-shadow: 0 8px 24px rgba(40,199,111,0.18); }
.btn.ghost { background: #eef2f5; color: #0b2233; }

.card-recipe { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 18px 40px rgba(39, 174, 96, 0.06); overflow: hidden; }
.card-recipe .card-img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; display: block; }
.card-footer { padding: 14px; background: #fff; border-radius: 12px; margin-top: -36px; box-shadow: 0 6px 18px rgba(4,20,24,0.06); }
.card-footer .tag { font-size: 12px; color: #27ae60; font-weight: 700; margin-bottom: 6px; }
.card-footer h3 { margin: 0 0 6px; font-size: 18px; }
.card-footer .meta { color: #8a98a8; font-size: 13px; }
.featured-detail-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: #28c76f;
  text-decoration: none;
  font-weight: 700;
}
.featured-detail-link:hover {
  text-decoration: underline;
}

.ai-search { background: #f3faf6; padding: 48px 0; }
.ai-search .wrap { max-width: 1000px; margin: 0 auto; padding: 0 40px; text-align: center; }
.ai-search h2 { font-size: 32px; margin-bottom: 8px; }
.ai-search .sub { color: #6b7280; margin-bottom: 20px; }
.search-box { display: inline-flex; align-items: center; gap: 12px; background: #fff; padding: 12px; border-radius: 36px; box-shadow: 0 14px 34px rgba(40,199,111,0.08); max-width: 760px; width: 100%; }
.search-box input { border: none; outline: none; flex: 1; padding: 12px 16px; font-size: 16px; border-radius: 28px; }
.search-box .btn.generate { background: #28c76f; color: white; border-radius: 28px; padding: 10px 22px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.feature-card { background: #fff; border-radius: 14px; padding: 20px; text-align: left; box-shadow: 0 10px 30px rgba(2,6,23,0.05); }
.feature-card .icon { font-size: 22px; background: #eefaf0; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: 10px; }
.feature-card h4 { margin: 0 0 6px; }
.feature-card p { margin: 0; color: #6b7280; font-size: 14px; }

.categories .wrap { max-width: 1200px; margin: 36px auto; padding: 0 40px; }
.categories h3 { margin-bottom: 18px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.categories h3 { margin: 0; }
.categories .view-more-btn { color: #28c76f; font-weight: 700; text-decoration: none; }
.categories .view-more-btn:hover { text-decoration: underline; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cat { position: relative; border-radius: 26px; overflow: hidden; height: 260px; background: #111; box-shadow: 0 18px 40px rgba(2,6,23,0.08); }
.cat img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; transition: transform 420ms cubic-bezier(.2,.9,.2,1); }
.cat::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(2,6,23,0.72) 100%); z-index: 1; }
.cat-content { position: absolute; left: 18px; bottom: 18px; z-index: 2; color: #fff; text-shadow: 0 6px 20px rgba(0,0,0,0.6); }
.cat-content h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.cat-content p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.95); }
.cat:hover img { transform: scale(1.04); }

.trending .wrap { max-width: 1200px; margin: 36px auto 80px; padding: 0 40px; }
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.food-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #edf1f5;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.05);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.food-card:hover {
  transform: translateY(-5px);
  border-color: #dce8df;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.08);
}
.food-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.trend-info { padding: 18px 18px 20px; }
.trend-info h4 { margin: 8px 0 6px; font-size: 1.15rem; color: #0b2233; }
.trend-info .meta { color: #667085; font-size: 13px; }
.badge.small { display: inline-block; background: #e8fbef; color: #2a7a3f; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }

@media (max-width: 1000px) {
  .hero .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .features { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .food-grid { grid-template-columns: 1fr; }
  .search-box { max-width: 100%; }
}
