/* 2.371.0 - Menu chính thiết kế lại (desktop: nút Danh mục + nhóm mua sắm/ưu đãi + nhóm nội dung căn phải; mobile: danh sách dọc). Nạp sau responsive-universal.css. */
.bods-nav{background:#fff;border-bottom:1px solid var(--bods-line);box-shadow:0 1px 0 rgba(36,75,58,.03)}
.bods-nav .bods-nav-inner{display:flex;align-items:stretch;flex-wrap:wrap;gap:2px;min-height:52px;padding-block:0;overflow:visible;font-size:14px;font-weight:600;letter-spacing:.005em;color:#2f4338}
.bods-nav .bods-nav-inner>*{flex:0 0 auto;white-space:nowrap}
.bods-nav .bods-nav-inner>a{position:relative;display:inline-flex;align-items:center;min-height:52px;padding:0 14px;color:inherit;transition:color .15s ease,background-color .15s ease}
.bods-nav .bods-nav-inner>a::after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:var(--bods-gold);transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.bods-nav .bods-nav-inner>a:hover{color:var(--bods-green);text-decoration:none;background:rgba(36,75,58,.04)}
.bods-nav .bods-nav-inner>a:hover::after,.bods-nav .bods-nav-inner>a.is-active::after{transform:scaleX(1)}
.bods-nav .bods-nav-inner>a.is-active{color:var(--bods-green);font-weight:700;box-shadow:none;align-self:auto}
.bods-nav .bods-nav-inner>a:focus-visible,.bods-cats-toggle:focus-visible{outline:2px solid var(--bods-green);outline-offset:-2px;border-radius:6px}

/* Nút danh mục */
.bods-nav .bods-nav-cats{display:flex;align-items:center;margin-right:10px;padding-right:12px;border-right:1px solid var(--bods-line);position:relative}
.bods-nav .bods-cats-toggle{display:inline-flex;align-items:center;gap:9px;height:38px;padding:0 14px 0 12px;border:0;border-radius:8px;background:var(--bods-green);color:#fff;font:inherit;font-weight:700;cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}
.bods-nav .bods-cats-toggle:hover,.bods-nav .bods-cats-toggle[aria-expanded="true"]{background:var(--bods-green-2);box-shadow:0 4px 12px rgba(36,75,58,.22)}
.bods-nav .bods-cats-toggle .bods-icon{width:18px;height:18px}
.bods-cats-caret{width:7px;height:7px;margin:-3px 0 0 2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease}
.bods-cats-toggle[aria-expanded="true"] .bods-cats-caret{transform:rotate(-135deg);margin-top:3px}
@media (hover:hover) and (pointer:fine){.bods-nav-cats:hover .bods-cats-caret{transform:rotate(-135deg);margin-top:3px}}

/* Danh sách danh mục thả xuống */
.bods-nav .bods-category-menu{top:calc(100% - 2px);left:0;width:280px;padding:8px;border:1px solid var(--bods-line);border-radius:12px;box-shadow:0 18px 40px rgba(20,40,30,.14);animation:bods-nav-pop .16s ease-out}
.bods-nav .bods-category-menu a{display:flex;align-items:center;min-height:42px;padding:0 12px;border-radius:8px;font-weight:500;font-size:14px;color:#2f4338;text-decoration:none}
.bods-nav .bods-category-menu a:hover{background:var(--bods-soft);color:var(--bods-green);text-decoration:none}
@keyframes bods-nav-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* Ưu đãi */
.bods-nav .bods-nav-inner>a.bods-nav-flash{gap:8px;color:#b42318;font-weight:700}
.bods-nav .bods-nav-inner>a.bods-nav-flash:hover{background:#fef3f2;color:#912018}
.bods-nav .bods-nav-inner>a.bods-nav-deal{color:#b54708;font-weight:700}
.bods-nav .bods-nav-inner>a.bods-nav-deal:hover{background:#fffaeb;color:#93370d}
.bods-nav .bods-nav-inner>a.bods-nav-flash.is-active,.bods-nav .bods-nav-inner>a.bods-nav-deal.is-active{color:var(--bods-green)}

/* Nhóm nội dung căn phải, màu nhạt hơn */
.bods-nav .bods-nav-inner>a.bods-nav-end{margin-left:auto}
.bods-nav .bods-nav-inner>a.bods-nav-end~a:not(.bods-nav-flash):not(.bods-nav-deal){color:#5a645c;font-weight:500}
.bods-nav .bods-nav-inner>a.bods-nav-end~a.is-active{color:var(--bods-green);font-weight:700}
.bods-nav .bods-nav-inner>a.bods-nav-sponsor{font-weight:600}

/* Laptop nhỏ: thu gọn khoảng cách thay vì cuộn ngang (cuộn sẽ cắt danh sách thả xuống) */
@media (min-width:901px) and (max-width:1199px){
  .bods-nav .bods-nav-inner{overflow:visible;gap:0;font-size:13.5px}
  .bods-nav .bods-nav-inner>a{padding:0 10px}
  .bods-nav .bods-nav-inner>a::after{left:10px;right:10px}
  .bods-nav .bods-nav-cats{margin-right:6px;padding-right:8px}
}

/* Mobile / tablet dọc: menu mở ra thành danh sách dọc */
@media (max-width:900px){
  .bods-nav{box-shadow:0 16px 28px rgba(15,23,42,.1)}
  .bods-nav .bods-nav-inner{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:0;padding-top:6px;padding-bottom:10px;overflow:visible;font-size:15px}
  .bods-nav .bods-nav-inner>*{white-space:normal}
  .bods-nav .bods-nav-cats{display:block;margin:4px 0 8px;padding:0;border:0}
  .bods-nav .bods-cats-toggle{width:100%;height:46px;justify-content:flex-start;padding:0 14px}
  .bods-nav .bods-cats-toggle .bods-cats-caret{margin-left:auto}
  .bods-nav .bods-category-menu{position:static;width:100%;max-width:none;max-height:none;margin-top:6px;box-shadow:none;border-radius:10px;background:var(--bods-soft);border-color:transparent;animation:none}
  .bods-nav .bods-category-menu.is-open{display:grid}
  .bods-nav .bods-category-menu a{background:transparent}
  .bods-nav .bods-nav-inner>a{display:flex;min-height:48px;padding:0 6px;border-bottom:1px solid var(--bods-line);justify-content:flex-start}
  .bods-nav .bods-nav-inner>a:last-child{border-bottom:0}
  .bods-nav .bods-nav-inner>a::after{display:none}
  .bods-nav .bods-nav-inner>a.is-active{box-shadow:inset 3px 0 0 var(--bods-gold);padding-left:12px;background:var(--bods-soft)}
  .bods-nav .bods-nav-inner>a.bods-nav-end{margin-left:0;margin-top:6px;border-top:1px solid var(--bods-line)}
}
@media (prefers-reduced-motion:reduce){.bods-nav .bods-category-menu{animation:none}.bods-nav .bods-nav-inner>a::after,.bods-cats-caret{transition:none}}
