/* NhatDX Themes — trang cửa hàng, danh mục, tìm kiếm sản phẩm. */

.nt-shop-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.nt-shop-top .nt-crumbs { margin: 18px 0 18px; }
.nt-shop-cols { display: block; }
.nt-shop.has-side .nt-shop-cols { display: grid; grid-template-columns: minmax(0, 312px) minmax(0, 1fr); gap: 30px; align-items: start; }
.nt-shop-main { min-width: 0; }
.nt-shop-h1 { margin: 0 0 18px; font-size: 26px; }
@media (max-width: 849px) { .nt-shop.has-side .nt-shop-cols { grid-template-columns: 1fr; } }

/* ---------- Sắp xếp ---------- */
.nt-sort { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; font-size: 14.5px; }
.nt-sort-lb { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-weight: 600; color: #342A22; }
.nt-sort a, .nt-sort summary { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; color: #60564C; white-space: nowrap; cursor: pointer; }
.nt-sort a:hover, .nt-sort summary:hover { color: var(--nt-p-d); background: #FFF4E6; }
.nt-sort a.is-on, .nt-sort-price.is-on summary { color: var(--nt-p); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nt-sort-price { position: relative; }
.nt-sort-price summary { list-style: none; }
.nt-sort-price summary::-webkit-details-marker { display: none; }
.nt-sort-price > div { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); min-width: 170px; padding: 6px; background: #fff; border: 1px solid var(--nt-line); border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(46, 33, 24, .3); }
.nt-sort-price > div a { display: block; border-radius: 8px; }
.nt-sort.is-loop { display: none; }
@media (max-width: 849px) {
  .nt-sort.is-top { display: none; }
  .nt-sort.is-loop { display: flex; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -15px 14px; padding: 0 15px; scrollbar-width: none; font-size: 13.5px; }
  .nt-sort.is-loop .nt-sort-lb { display: none; }
  .nt-sort.is-loop a, .nt-sort.is-loop summary { border: 1px solid var(--nt-line); background: #fff; }
  .nt-sort.is-loop a.is-on { text-decoration: none; border-color: var(--nt-p); background: var(--nt-p); color: #fff; }
  .nt-sort-price > div { left: 0; right: auto; }
}

/* ---------- Khung mở đầu danh mục (mang H1) ---------- */
.nt-hero-cat { position: relative; margin: 0 0 18px; padding: 18px 26px 16px; border-radius: 16px; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #543D2C 0%, #302319 55%, #271C14 100%); box-shadow: 0 14px 34px rgba(48, 35, 25, .18); }
.nt-hero-cat::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: repeating-linear-gradient(135deg, #E6CD93 0 1px, transparent 1px 14px); }
.nt-hero-cat::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--nt-p), #E6CD93 50%, rgba(230, 205, 147, 0)); }
.nt-hero-cat-img { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; background-size: cover; background-position: center; opacity: .35; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.nt-hero-cat-b { position: relative; max-width: 78%; }
.nt-hero-cat-eye { margin: 0 0 4px; font-size: 11.5px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: #6FCB93; }
.nt-hero-cat-eye strong { color: #fff; }
.nt-gem { display: inline-block; width: 8px; height: 8px; margin: 0 8px 0 1px; vertical-align: 1px; transform: rotate(45deg); background: linear-gradient(135deg, var(--nt-p), #E6CD93); box-shadow: 0 0 0 3px rgba(230, 205, 147, .18); }
.nt-hero-cat-h { margin: 0 0 6px; font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: .01em; color: #fff; }
.nt-hero-cat-in { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .86); }
.nt-hero-cat-in p { margin: 0; }
.nt-hero-cat-in a { color: #F3D9B8; }
.nt-hero-cat-in.is-open { display: block; }
.nt-hero-cat-more { margin: 4px 0 0; padding: 0; border: 0; background: none; color: #E6CD93; font-size: 13px; font-weight: 700; cursor: pointer; }
.nt-hero-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.nt-hero-cat-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border: 1px solid rgba(221, 162, 110, .28); border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 12.5px; font-weight: 600; }
.nt-hero-cat-chips span { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: var(--nt-a-l); color: var(--nt-a); }
.nt-hero-cat-chips a { color: #E6A56F; font-weight: 700; }
.nt-hero-cat.is-paged .nt-hero-cat-chips { display: none; }
@media (max-width: 849px) {
  .nt-hero-cat { padding: 18px 16px 14px; }
  .nt-hero-cat-b { max-width: 100%; }
  .nt-hero-cat-img { width: 50%; opacity: .18; }
  .nt-hero-cat-eye { font-size: 10.5px; letter-spacing: .08em; }
  .nt-hero-cat-h { font-size: 21px; }
  .nt-hero-cat-in { -webkit-line-clamp: 3; }
}

/* ---------- Dải danh mục cùng cấp / danh mục con ---------- */
.nt-catstrip { position: relative; margin: 0 0 18px; }
.nt-catstrip-track { display: flex; gap: 8px; overflow-x: auto; padding: 2px 34px; scroll-behavior: smooth; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); }
.nt-catstrip-track::-webkit-scrollbar { display: none; }
.nt-catstrip a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--nt-line); border-radius: 999px; background: #fff; color: var(--nt-ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .2s, background .2s; }
.nt-catstrip a:hover { border-color: var(--nt-p); }
.nt-catstrip a span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--nt-sand); color: #6F6257; font-size: 11.5px; text-align: center; }
.nt-catstrip a.is-on { border-color: var(--nt-p); background: var(--nt-p); color: #fff; }
.nt-catstrip a.is-on span { background: rgba(255, 255, 255, .25); color: #fff; }
.nt-catstrip-btn { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; border: 0; border-radius: 50%; background: #fff; color: var(--nt-p); box-shadow: 0 2px 8px rgba(46, 33, 24, .14); display: grid; place-items: center; cursor: pointer; }
.nt-catstrip-btn.is-prev { left: 0; } .nt-catstrip-btn.is-next { right: 0; }
.nt-catstrip-btn[hidden] { display: none; }
@media (max-width: 849px) {
  .nt-catstrip { margin: 0 -15px 12px; }
  .nt-catstrip-track { padding: 2px 15px; -webkit-mask: none; mask: none; }
  .nt-catstrip a { padding: 8px 14px; font-size: 13.5px; }
  .nt-catstrip-btn { display: none; }
}

/* ---------- Bài viết cuối danh mục (nội dung SEO) ---------- */
.nt-cat-seo { position: relative; margin: 36px 0 10px; padding: 26px 28px 18px; background: #fff; border: 1px solid #ECE4D3; border-radius: 16px; box-shadow: 0 10px 30px rgba(46, 33, 24, .05); }
.nt-cat-seo.is-clamp:not(.is-open) .nt-cat-seo-in { max-height: 480px; overflow: hidden; position: relative; }
.nt-cat-seo.is-clamp:not(.is-open) .nt-cat-seo-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.nt-cat-more { display: block; margin: 14px auto 0; padding: 8px 26px; border: 1px solid var(--nt-p); border-radius: 99px; background: #fff; color: var(--nt-ink); font-weight: 700; cursor: pointer; }
.nt-cat-more:hover { background: #FFF4E6; }
.nt-cat-seo h2 { position: relative; margin: 22px 0 10px; padding-left: 14px; font-size: 21px; }
.nt-cat-seo h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: linear-gradient(var(--nt-p), #E6CD93); }
.nt-cat-seo h3 { margin: 18px 0 8px; font-size: 17px; }
.nt-cat-seo table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.nt-cat-seo th { background: var(--nt-ink); color: #fff; padding: 9px 12px; text-align: left; }
.nt-cat-seo td { padding: 9px 12px; border-bottom: 1px solid #F0EAE1; }
.nx-cs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.nx-cs-card { display: flex; flex-direction: column; border: 1px solid #EDE6D6; border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.nx-cs-card:hover { box-shadow: 0 12px 28px rgba(46, 33, 24, .1); transform: translateY(-2px); }
.nx-cs-card-img { display: block; aspect-ratio: 4 / 3; background: var(--nt-sand); overflow: hidden; }
.nx-cs-card-img img { width: 100%; height: 100%; object-fit: cover; }
.nx-cs-card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.nx-cs .nx-cs-card h3 { margin: 0 0 4px; font-size: 16px; }
.nx-cs .nx-cs-card h3 a { color: var(--nt-ink); }
.nx-cs-count { align-self: flex-start; margin-bottom: 6px; padding: 1px 9px; border-radius: 99px; background: #FBF4E4; color: var(--nt-p-d); font-size: 11.5px; font-weight: 700; }
.nx-cs-card p { flex: 1; margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--nt-body); }
.nx-cs .nx-cs-btn { align-self: flex-start; padding-bottom: 1px; border-bottom: 1.5px solid var(--nt-p); font-size: 13px; font-weight: 700; color: var(--nt-ink); }
.nx-cs-steps { list-style: none; counter-reset: st; margin: 12px 0 22px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.nx-cs-steps li { counter-increment: st; position: relative; margin: 0 !important; padding: 14px 14px 14px 58px; border: 1px solid #EFE5D8; border-radius: 12px; background: #FBF7F1; }
.nx-cs-steps li::before { content: counter(st); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nt-ink); color: #F3D9B8; font-weight: 800; }
.nx-cs-steps strong { display: block; margin-bottom: 3px; color: var(--nt-ink); }
.nx-cs-steps span { font-size: 13.5px; line-height: 1.6; color: var(--nt-body); }
.nx-cs-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 22px; }
.nx-cs-feat { padding: 16px; border-radius: 12px; background: linear-gradient(160deg, #3A2A1E, #2E2118); color: #fff; }
.nx-cs-feat strong { display: block; margin-bottom: 4px; color: #F3D9B8; }
.nx-cs-feat p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.nx-cs-feat a { color: #F3D9B8; }
.nx-cs-ic { display: inline-flex; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--nt-p), #E6CD93); color: var(--nt-ink); font-weight: 800; }
.nx-cs-ic[class*="nx-ic-"]::before { content: ""; width: 16px; height: 16px; background: var(--nt-ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.nx-ic-ok { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
.nx-ic-tool { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z'/%3E%3C/svg%3E"); }
.nx-ic-truck { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v9H2zM13 9h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.nx-ic-phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.nx-cs-faq { margin: 0 0 8px; border: 1px solid #ECE4D3; border-radius: 10px; background: #fff; overflow: hidden; }
.nx-cs-faq summary { position: relative; padding: 12px 44px 12px 16px; font-weight: 700; color: var(--nt-ink); cursor: pointer; list-style: none; }
.nx-cs-faq summary::-webkit-details-marker { display: none; }
.nx-cs-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--nt-p); }
.nx-cs-faq[open] summary::after { content: "–"; }
.nx-cs-faq[open] summary { background: #FBF8F1; }
.nx-cs-faq p { margin: 0 !important; padding: 10px 16px 14px; line-height: 1.65; color: var(--nt-body); }
@media (max-width: 600px) { .nt-cat-seo { padding: 18px 16px 14px; } .nt-cat-seo table { display: block; overflow-x: auto; } }

/* Nội dung thường trong bài cuối danh mục (dùng chung kiểu chữ với bài viết) */
.nt-prose { font-size: 15.5px; line-height: 1.75; color: #3E3026; }
.nt-prose a { color: var(--nt-p-d); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--nt-p) 55%, transparent); text-underline-offset: 3px; }
.nt-prose img { border-radius: 12px; }
