/* Style dropdown menu */
.navbar .dropdown-menu {
    border-radius: 8px;
    /* bo góc */
    padding: 8px 0;
    /* khoảng cách bên trong */
    border: none;
    /* bỏ viền */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    /* đổ bóng nhẹ */
    min-width: 220px;
    /* độ rộng tối thiểu */
}

/* Style item trong dropdown */
.navbar .dropdown-menu .dropdown-item {
    padding: 10px 18px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-radius: 6px;
    /* bo góc item */
}

/* Hover item */
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #8BC34A;
    /* xanh lá nhạt */
    color: #fff;
    /* chữ trắng */
}

/* Dropdown mở khi hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease-in-out;
    /* hiệu ứng mượt */
}

/* Hiệu ứng fade */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo css */
.logo-circle {
    margin-right: 10px;
    height: 70px;
    width: 70px;
    /* nên để bằng nhau để bo tròn đẹp */
    border-radius: 50%;
    /* bo tròn */
    object-fit: cover;
    /* giữ hình không méo */
    border: 3px solid #8BC34A;
    /* viền xanh lá đồng bộ với web */
    padding: 3px;
    /* cách viền một chút nếu muốn */
    background: white;
    /* nền trắng để viền nổi bật hơn */
}

/*Menu*/
.navbar {
    padding: 12px 20px;
    /* border-bottom: 1px solid #eee; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

/* Nav link */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #4CAF50 !important;
    /* xanh lá */
}

.navbar-nav .nav-link.active {
    color: #4CAF50 !important;
    font-weight: 600;
}

/* Gạch chân khi hover */
.navbar-nav .nav-link::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: #4CAF50;
    transition: width 0.3s;
    margin: auto;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.dropdown-menu .dropdown-item {
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: #4CAF50;
    color: #fff;
}

/*thêm */
/* ========= ẨN MŨI TÊN DROPDOWN (giữ nguyên logic) ========= */
.navbar .dropdown-toggle::after{
  display:none !important;
  content:none !important;
  border:0 !important;
  background:none !important;
}

/* ========= SEARCH: mặc định chỉ hiện kính lúp, bấm mới mở ========= */
/* Form search ở trạng thái thu gọn */
#headerSearchForm{
  width:44px;                          /* chỉ thấy icon kính lúp */
  background:#fff !important;
  border:1px solid #e5e7eb !important;
  border-radius:999px;
  overflow:hidden;
  gap:6px;
  transition: width .25s ease, border-color .2s ease, box-shadow .2s ease;
}
/* Ẩn input khi thu gọn */
#headerSearchForm .form-control{
  width:0; min-width:0; opacity:0; padding:0;
  pointer-events:none;
  background:transparent; color:#333;
  transition: width .25s ease, opacity .2s ease, padding .2s ease;
}
/* Màu kính lúp (theo xanh của bạn) */
#headerSearchForm .btn{ color:#4CAF50 !important; }
#headerSearchForm .btn:hover{ color:#43A047 !important; }

/* Khi focus trong form hoặc có class .open (JS đã thêm) -> mở rộng */
#headerSearchForm:focus-within,
#headerSearchForm.open{
  width: clamp(200px, 35vw, 200px);
  border-color:#4CAF50 !important;
  box-shadow:0 0 0 3px rgba(76,175,80,.18);
}
#headerSearchForm:focus-within .form-control,
#headerSearchForm.open .form-control{
  width:100%; opacity:1; padding:.6rem .5rem; pointer-events:auto;
}
#headerSearch::placeholder{ color:#9aa4b2; }

/* Nhỏ màn hình: mở rộng vừa phải */
@media (max-width: 576px){
  #headerSearchForm:focus-within,
  #headerSearchForm.open{ width:min(90vw, 360px); }
}

/* === Search popup: compact list, thấy được nhiều item === */
#searchPopup{
  width: min(640px, 100%);
  max-height: min(60vh, 420px);
  padding: .25rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  overflow: auto;
}

/* Item kiểu list, thấp – để hiện được nhiều */
#searchPopup .sug-item{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
#searchPopup .sug-item + .sug-item{ margin-top: .25rem; }

#searchPopup .sug-item:hover{
  background: #f8fafc;
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

/* Ảnh thu nhỏ cố định – tránh bị phóng to như hình bạn gửi */
#searchPopup .sug-item img{
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
}

/* Tiêu đề 2 dòng, không tràn; giá nhỏ gọn */
#searchPopup .sug-item .title{
  font-weight: 600; color:#0f172a; line-height:1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
#searchPopup .sug-item .price{
  color:#475569; font-weight:700; font-size:.95rem;
}

/* Bỏ highlight chữ trùng (mark) — nhìn như text bình thường */
#searchPopup mark{
  background: transparent !important;
  color: inherit !important;
  font-weight: inherit !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
/* One-line nav trên màn ≥ xl */
@media (min-width: 1200px){
  /* Toàn khối navbar không wrap */
  .navbar .navbar-collapse{
    display:flex !important;
    align-items:center;
    flex-wrap: nowrap !important;
    gap:16px;
    min-width: 0; /* cho phép co giãn hợp lý */
  }

  /* Brand + search + nav + utilities phân bổ theo 1 hàng */
  .navbar .navbar-brand{ margin-right: 12px; flex:0 0 auto; }
  .header-search{ flex: 0 1 360px; min-width:260px; } /* chỉnh tùy bạn */
  .navbar-nav{
    flex: 1 1 auto;
    justify-content:center;
    flex-wrap: nowrap !important;   /* quan trọng */
    white-space: nowrap;            /* không xuống dòng */
    min-width: 0;
  }
  .navbar-nav .nav-item{ flex:0 0 auto; }
  .navbar-nav .nav-link{
    padding: .6rem .8rem !important; /* thu padding để đủ chỗ */
  }
  .navbar .d-flex.ms-auto.nav-utilities{ flex:0 0 auto; }
}

/* Với màn hẹp 1200–1366: co thêm để vẫn 1 hàng */
@media (min-width: 1200px) and (max-width: 1366px){
  .navbar-nav .nav-link{ font-size: .98rem; padding:.55rem .7rem !important; }
  /* nếu search đang chiếm chỗ, thu nhỏ chút khi mở */
  #headerSearchForm:focus-within,
  #headerSearchForm.open{ width: clamp(220px, 24vw, 320px); }
}
:root{
  --brand:#63C047;         /* đổi theo mã xanh thương hiệu của bạn */
  --brand-600:#43a72f;
  --brand-700:#2f8e22;
  --brand-soft:rgba(99,192,71,.12);
  --brand-border:rgba(99,192,71,.22);
  --ink:#111827;
  --muted:#6b7280;
  --radius:14px;
  --shadow:0 10px 24px rgba(18,38,63,.06);
  --shadow-lg:0 18px 42px rgba(18,38,63,.12);
}

/* Breadcrumb */
.breadcrumb{ --bs-breadcrumb-divider:"›"; }
.breadcrumb .breadcrumb-item a{ color:var(--brand-700); text-decoration:none; }
.breadcrumb .breadcrumb-item a:hover{ text-decoration:underline; }

/* Hero */
.wty-hero{
  position:relative; height:240px;
  background: linear-gradient(135deg, rgba(99,192,71,.14), rgba(67,167,47,.08)),
              url('https://i.pinimg.com/originals/e4/b8/77/e4b8777a1bbaa76fc01923727e971fa9.jpg') center/cover no-repeat;
  border:1px solid var(--brand-border);
}
.wty-hero__overlay{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.35)); }
.wty-hero__content{
  position:relative; z-index:1; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#fff;
}
.wty-hero h1{ font-weight:900; letter-spacing:.2px; }

/* Chips */
.wty-chip{
  display:flex; gap:.75rem; align-items:center;
  border:1px solid var(--brand-border); border-radius:12px; background:#fff;
  padding:.75rem .9rem; box-shadow:var(--shadow);
}
.wty-chip i{ color:var(--brand-700); font-size:20px; }
.wty-chip strong{ display:block; line-height:1.15; }
.wty-chip small{ color:var(--muted); }

/* Cards */
.wty-card{
  border:1px solid var(--brand-border);
  border-radius:var(--radius);
  background:#fff;
  padding:1.1rem 1.1rem 1.2rem;
  box-shadow:var(--shadow);
}
.wty-card + .wty-card{ margin-top:1rem; }
.wty-card:hover{ box-shadow:var(--shadow-lg); }
.wty-card h2{ font-size:1.25rem; font-weight:900; color:var(--brand-700); margin-bottom:.6rem; }

/* Lists */
.wty-list{ margin:0; padding-left:0; list-style:none; }
.wty-list > li{
  position:relative; padding-left:1.6rem; margin:.35rem 0; color:#1f2937;
}
.wty-list > li::before{
  content:""; position:absolute; left:.2rem; top:.45rem;
  width:.85rem; height:.85rem; border-radius:50%; background:var(--brand);
  box-shadow:0 0 0 4px var(--brand-soft);
}

/* Table (matrix) */
.wty-table thead th{ background:#f7faf7; color:#1f2937; border-bottom:2px solid var(--brand-border); }
.wty-table th, .wty-table td{ vertical-align:middle; }
.wty-table tbody tr:hover{ background:#fbfdfb; }

/* Steps timeline */
.wty-steps{ counter-reset: step; margin:0; padding-left:0; }
.wty-steps > li{
  list-style:none; counter-increment: step; position:relative;
  padding-left:2.2rem; margin:.6rem 0;
}
.wty-steps > li::before{
  content: counter(step);
  position:absolute; left:0; top:.1rem;
  width:1.6rem; height:1.6rem; border-radius:50%;
  background:#fff; border:2px solid var(--brand); color:var(--brand-700);
  display:flex; align-items:center; justify-content:center; font-weight:800;
}
.wty-steps h6{ font-weight:800; margin-bottom:.2rem; }

/* Exceptions */
.wty-bad{
  display:flex; gap:.7rem; border:1px solid var(--brand-border); border-radius:12px;
  padding:.75rem; background:#fff;
}
.wty-bad i{ color:#ef4444; font-size:20px; }

/* FAQ */
.wty-faq{
  border:1px solid var(--brand-border); border-radius:12px; padding:.75rem .9rem; margin-bottom:.6rem;
  background:#fff;
}
.wty-faq > summary{
  cursor:pointer; font-weight:700; list-style:none; outline:none;
}
.wty-faq > summary::-webkit-details-marker{ display:none; }
.wty-faq[open]{ box-shadow:var(--shadow); }
.wty-faq p{ margin:.6rem 0 0; color:#1f2937; }

/* Support box */
.wty-support .btn-ghost{
  background:var(--brand-soft); border:1px solid var(--brand-border); color:var(--brand-700);
}
.wty-support .btn-ghost:hover{ background:rgba(99,192,71,.18); border-color:var(--brand); }
.wty-updated{ font-size:.95rem; color:var(--muted); }
.wty-note{
  display:flex; gap:.7rem; align-items:flex-start; margin-top:1rem;
}
.wty-note i{ color:#0ea5e9; font-size:18px; }
.wty-note h6{ margin:0; font-weight:800; }

/* Buttons (brand) */
.btn-success, .btn-primary{
  background:var(--brand) !important; border-color:var(--brand) !important;
}
.btn-success:hover, .btn-primary:hover{
  background:var(--brand-600) !important; border-color:var(--brand-600) !important;
  transform:translateY(-1px); box-shadow:0 12px 26px rgba(99,192,71,.22);
}
.btn-outline-success{ border-color:var(--brand); color:var(--brand-700); }
.btn-outline-success:hover{ background:var(--brand); color:#fff; }

/* Responsive */
@media (max-width:575.98px){
  .wty-hero{ height:180px; }
}
