@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --page-bg: #f7f7f5;
  --ink: #161616;
  --muted: #5f5f5f;
  --brand: #166534;
  --brand-soft: #dcfce7;
  --accent: #f59e0b;
  --focus: #f59e0b;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --border: #e7e5e4;
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 20px 42px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 28px 56px rgba(15, 23, 42, 0.16);
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1rem;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 8% -2%, #dcfce7 0, transparent 34%),
    radial-gradient(circle at 95% 0, #bbf7d0 0, transparent 30%),
    linear-gradient(180deg, #f5fbf7 0%, #eef8f1 52%, #f5fbf7 100%);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 5% 25%, rgba(245, 158, 11, 0.09) 0, transparent 38%),
    radial-gradient(circle at 97% 85%, rgba(148, 163, 184, 0.14) 0, transparent 28%);
}

.shell-container {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.focus-ring:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.use-logo-image .brand-mark {
  background: transparent !important;
  padding: 0;
}

body.use-logo-image .brand-mark-text {
  display: none;
}

body.use-logo-image .brand-mark-image {
  display: block;
}

header {
  border-color: var(--border) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
}

header.sticky > div,
header.sticky .brand-mark,
header.sticky .brand-mark-text,
header.sticky nav[aria-label='Dieu huong chinh'] {
  transition: all 220ms var(--ease-smooth);
}

body.is-header-compact header.sticky > .bg-slate-900 {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

body.is-header-compact header.sticky > .shell-container {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

body.is-header-compact header.sticky .brand-mark {
  height: 2rem;
  width: 2rem;
}

body.is-header-compact header.sticky .brand-mark-text {
  font-size: 0.8rem;
}

body.is-header-compact header.sticky .text-xl.font-extrabold {
  font-size: 1.02rem;
}

body.is-header-compact header.sticky nav[aria-label='Dieu huong chinh'] {
  margin-top: 0.45rem;
}

header > .shell-container {
  position: relative;
}

header .bg-slate-900 {
  background: linear-gradient(90deg, #14532d 0%, #166534 58%, #14532d 100%) !important;
}

main article,
main section > article,
aside,
table,
main > div > section {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

main section {
  position: relative;
  z-index: 1;
}

section[aria-labelledby] > h2,
main h2[id] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

main a[class*='rounded'] {
  text-decoration: none;
}

button,
a[class*='px-'][class*='py-'] {
  transition: transform 160ms var(--ease-smooth), box-shadow 160ms var(--ease-smooth), background-color 160ms var(--ease-smooth), border-color 160ms var(--ease-smooth);
}

button:hover,
a[class*='px-'][class*='py-']:hover {
  transform: translateY(-1px);
}

button:active,
a[class*='px-'][class*='py-']:active {
  transform: translateY(0);
}

input,
textarea,
select {
  border-color: var(--border) !important;
  background: #fff;
  border-radius: var(--radius-md);
  transition: border-color 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth), background-color 180ms var(--ease-smooth);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14) !important;
}

#global-search-form.global-search-ready {
  position: relative;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 45;
  display: grid;
  gap: 0.2rem;
  border: 1px solid #dbe1ea;
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.35rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.search-suggest-item {
  appearance: none;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #0f172a;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: #f1f5f9;
  color: #14532d;
}

header nav[aria-label='Dieu huong chinh'] {
  border-radius: 0.95rem;
  border: 1px solid #dbe1ea;
  background: #fff;
  padding: 0.35rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

header button[data-collapse-toggle^='primary-nav-'] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.75rem;
  border-color: #14532d;
  background: linear-gradient(180deg, #166534 0%, #14532d 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(20, 83, 45, 0.24);
}

header button[data-collapse-toggle^='primary-nav-']:hover {
  border-color: #14532d;
  background: linear-gradient(180deg, #14532d 0%, #052e16 100%);
}

header button[data-collapse-toggle^='primary-nav-']::before {
  content: '';
  width: 0.9rem;
  height: 2px;
  border-radius: 9999px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

header button[data-collapse-toggle^='primary-nav-'][aria-expanded='true']::before {
  box-shadow: none;
}

header nav[id^='primary-nav-'] {
  transform-origin: top;
  transition: box-shadow 180ms var(--ease-smooth), border-color 180ms var(--ease-smooth), opacity 180ms var(--ease-smooth);
}

header nav[aria-label='Dieu huong chinh'] ul {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

header nav[aria-label='Dieu huong chinh'] ul > li {
  flex: 0 0 auto;
}

header nav[aria-label='Dieu huong chinh'] ul a {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.55rem 0.88rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

header nav[aria-label='Dieu huong chinh'] ul a:hover {
  border-color: #cbd5e1;
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

header nav[aria-label='Dieu huong chinh'] ul a[aria-current='page'] {
  border-color: #14532d;
  background: linear-gradient(180deg, #166534 0%, #14532d 100%);
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(20, 83, 45, 0.2);
}

header nav[aria-label='Dieu huong chinh'] ul a.is-active {
  border-color: #14532d;
  background: linear-gradient(180deg, #166534 0%, #14532d 100%);
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(20, 83, 45, 0.2);
}

nav[aria-label='Breadcrumb'] {
  border-radius: 0.85rem;
  border: 1px solid #e7e5e4;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.65rem 0.9rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-success { background: #dcfce7; color: #166534; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-danger { background: #fee2e2; color: #991b1b; }

.product-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: #e2e8f0;
  transition: transform 280ms var(--ease-smooth), filter 280ms var(--ease-smooth);
}

.rounded-xl.border,
.rounded-2xl.border,
.rounded-lg.border {
  border-color: var(--border) !important;
}

.bg-brand-600,
button.bg-brand-600,
a.bg-brand-600 {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 20px rgba(20, 83, 45, 0.28);
}

.bg-brand-600:hover,
button.bg-brand-600:hover,
a.bg-brand-600:hover {
  background: linear-gradient(135deg, #14532d 0%, #052e16 100%) !important;
}

.bg-accent-500,
button.bg-accent-500,
a.bg-accent-500 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
}

.bg-accent-500:hover,
button.bg-accent-500:hover,
a.bg-accent-500:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

#featured-products > article,
#product-grid > article,
#related-products > article,
#wishlist-products > article,
#article-list > article {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

main article.rounded-2xl,
main section > .rounded-2xl,
main div.rounded-2xl,
aside.rounded-2xl {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

#featured-products > article:hover,
#product-grid > article:hover,
#related-products > article:hover,
#wishlist-products > article:hover,
#article-list > article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#featured-products > article > div:last-child,
#product-grid > article > div:last-child,
#related-products > article > div:last-child,
#wishlist-products > article > div:last-child {
  margin-top: 0.8rem;
}

.detail-tab {
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #334155;
  letter-spacing: 0.01em;
}

.detail-tab:hover {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}

.detail-tab.bg-brand-600 {
  border-color: #166534;
  color: #fff;
  box-shadow: 0 10px 18px rgba(22, 101, 52, 0.22);
}

.account-hero {
  background:
    radial-gradient(circle at 6% 0, rgba(22, 163, 74, 0.12) 0, transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.1) 0, transparent 30%),
    #fff;
}

.account-feature-rail,
.account-workspace {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.account-rail-btn {
  background: #f8fafc;
  color: #334155;
  border-color: #d1d5db;
}

.account-rail-btn:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}

.account-tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.account-panel {
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 1rem;
}

#panel-addresses article {
  background: #fff;
}

.detail-panel {
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 1rem;
}

#tab-spec ul {
  margin: 0;
}

#tab-spec li {
  border-radius: 0.7rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.65rem 0.75rem;
}

#tab-desc p {
  line-height: 1.7;
}

#tab-reviews article {
  border-radius: 0.8rem;
  border-color: #d1d5db;
  background: #fff;
}

.mobile-only {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid #e7e5e4;
  box-shadow: var(--shadow-md);
}

.hero-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 420ms ease;
}

.hero-item-layout {
  display: grid;
  gap: 1.1rem;
  align-items: center;
}

.hero-item-image {
  width: 100%;
  max-width: 350px;
  justify-self: center;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px);
  padding: 0.4rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.26);
}

.hero-slide h1,
.hero-slide h2,
.hero-slide p {
  text-shadow: 0 8px 20px rgba(15, 23, 42, 0.26);
}

.hero-control {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  backdrop-filter: blur(2px);
}

.hero-dot {
  height: 0.55rem;
  width: 0.55rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.is-active {
  width: 1.4rem;
  background: #fbbf24;
}

.product-gallery-shell {
  display: grid;
  gap: 0.45rem;
}

.product-gallery-main {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.55rem;
}

.product-gallery-slide {
  display: none;
  margin: 0;
}

.product-gallery-slide.is-active {
  display: block;
  animation: heroFade 300ms ease;
}

.product-gallery-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1;
}

.product-gallery-control:hover {
  border-color: #86efac;
  color: #14532d;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.product-thumb {
  border-radius: 0.65rem;
  border: 1px solid #d1d5db;
  height: 0.6rem;
  background: #e2e8f0;
}

.product-thumb.is-active {
  border-color: #166534;
  background: #166534;
}

.category-layout {
  display: grid;
  gap: 1rem;
}

.category-sidebar {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  padding: 1rem;
  box-shadow: none;
}

.category-sidebar:hover {
  box-shadow: none;
}

.category-nav {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr);
}

details.category-group,
details.category-mini-group {
  border: 0;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: none;
}

details.category-group[open],
details.category-mini-group[open] {
  box-shadow: none;
}

.category-parent,
.category-mini-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 0.72rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
}

.category-parent::after,
.category-mini-parent::after {
  content: '+';
  font-size: 0.9rem;
  color: #64748b;
}

.category-group[open] > .category-parent::after,
.category-mini-group[open] > .category-mini-parent::after {
  content: '-';
}

.category-group > summary::-webkit-details-marker,
.category-mini-group > summary::-webkit-details-marker {
  display: none;
}

.category-subtree {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.6rem 0.6rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  border-radius: 0.8rem;
  border: 0;
  background: #fff;
  padding: 0.72rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
}

.category-mini-group .category-pill {
  margin-left: 0.2rem;
}

.category-pill:hover {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

#featured-products h3,
#product-grid h3,
#related-products h3,
#wishlist-products h3 {
  color: #0f172a;
}

#featured-products p,
#product-grid p,
#related-products p,
#wishlist-products p {
  color: #475569;
}

#featured-products .text-brand-700,
#product-grid .text-brand-700,
#related-products .text-brand-700,
#wishlist-products .text-brand-700 {
  color: #166534 !important;
}

#featured-products article,
#product-grid article,
#related-products article,
#wishlist-products article {
  position: relative;
}

#featured-products article::after,
#product-grid article::after,
#related-products article::after,
#wishlist-products article::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 42%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 520ms var(--ease-smooth);
}

#featured-products article:hover::after,
#product-grid article:hover::after,
#related-products article:hover::after,
#wishlist-products article:hover::after {
  transform: translateX(120%);
}

#featured-products article .product-image,
#product-grid article .product-image,
#related-products article .product-image,
#wishlist-products article .product-image {
  transition: transform 280ms ease;
}

#featured-products article:hover .product-image,
#product-grid article:hover .product-image,
#related-products article:hover .product-image,
#wishlist-products article:hover .product-image {
  transform: scale(1.03);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid #e7e5e4;
  background: #fff;
}

thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e7e5e4;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fffef7;
}

/* Standardized CMS content styling for HTML from Model.Text */
.cms-content {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.8;
}

.cms-content > * + * {
  margin-top: 1rem;
}

.cms-content h2,
.cms-content h3,
.cms-content h4 {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 1.35rem;
}

.cms-content h2 {
  font-size: 1.5rem;
}

.cms-content h3 {
  font-size: 1.24rem;
}

.cms-content h4 {
  font-size: 1.08rem;
}

.cms-content p {
  margin: 0;
}

.cms-content ul,
.cms-content ol {
  margin: 0;
  padding-left: 1.35rem;
}

.cms-content ul {
  list-style: disc;
}

.cms-content ol {
  list-style: decimal;
}

.cms-content li + li {
  margin-top: 0.35rem;
}

.cms-content a {
  color: #166534;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cms-content a:hover {
  color: #14532d;
}

.cms-content img,
.cms-content video,
.cms-content iframe {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
}

.cms-content figure {
  margin: 1.1rem 0;
}

.cms-content figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.cms-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1rem 0;
  background: #fff;
}

.cms-content thead th {
  white-space: nowrap;
}

.cms-content th,
.cms-content td {
  border: 1px solid #e2e8f0;
  padding: 0.62rem 0.7rem;
  vertical-align: top;
}

.cms-content blockquote {
  margin: 1rem 0;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-left: 3px solid #22c55e;
  color: #334155;
}

.cms-content pre {
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.8rem;
  font-size: 0.84rem;
  line-height: 1.6;
}

.cms-content code {
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 0.9em;
}

.cms-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.15rem 0;
}

details {
  border: 1px solid var(--border);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

details[open] {
  border-color: #fdba74;
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.12);
}

.widget-toc {
  position: relative;
  margin: 1rem 0 1.25rem;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0, rgba(245, 158, 11, 0.12) 0, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.widget-toc::before {
  content: 'Muc luc bai viet';
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #14532d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.58rem;
  margin-bottom: 0.6rem;
}

.widget-toc > b,
.widget-toc > strong,
.widget-toc > h2,
.widget-toc > h3,
.widget-toc > p:first-child {
  display: block;
  margin: 0 0 0.55rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.widget-toc ol,
.widget-toc ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.widget-toc li {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.45;
}

.widget-toc li::marker {
  color: #166534;
  font-weight: 700;
}

.widget-toc a {
  color: #166534;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #86efac;
}

.widget-toc a:hover {
  color: #14532d;
  border-bottom-color: #14532d;
}

.widget-toc ol ol,
.widget-toc ul ul,
.widget-toc ol ul,
.widget-toc ul ol {
  margin-top: 0.35rem;
  border-left: 2px solid #dcfce7;
  padding-left: 0.8rem;
}

@media (max-width: 767px) {
  .widget-toc {
    padding: 0.82rem 0.85rem;
    margin: 0.85rem 0 1rem;
  }

  .widget-toc li {
    font-size: 0.9rem;
  }
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

footer {
  position: relative;
  border-color: var(--border) !important;
}

footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #f59e0b 48%, transparent 100%);
}

footer .shell-container {
  position: relative;
  z-index: 1;
}

.site-footer {
  background:
    radial-gradient(circle at 8% 0, rgba(245, 158, 11, 0.08) 0, transparent 32%),
    radial-gradient(circle at 95% 100%, rgba(148, 163, 184, 0.1) 0, transparent 30%),
    #fff;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.site-footer-grid h2 {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.site-footer-links ul,
.site-footer-contact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links a,
.site-footer-contact a {
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-contact a:hover {
  color: #166534;
}

.site-footer-cta {
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.52rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}

.site-footer-cta:hover {
  border-color: #166534;
  background: #f0fdf4;
  color: #14532d;
}

.footer-keyword-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(15, 23, 42, 0.65);
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #d1fae5;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-keyword-tags a:hover {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(6, 78, 59, 0.75);
  color: #ecfdf5;
  transform: translateY(-1px);
}

.footer-keyword-tags a:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.ad-popup {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.ad-popup.hidden {
  display: none;
}

.ad-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(2px);
}

.ad-popup-card {
  position: relative;
  width: min(560px, 100%);
  border-radius: 1rem;
  border: 1px solid #bbf7d0;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.2) 0, transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(22, 163, 74, 0.16) 0, transparent 34%),
    #ffffff;
  padding: 1.25rem;
  box-shadow: 0 28px 56px rgba(2, 6, 23, 0.32);
  animation: adPopupIn 220ms ease;
}

.ad-popup-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
  font-size: 1.1rem;
  line-height: 1;
}

.ad-popup-badge {
  display: inline-flex;
  border-radius: 9999px;
  background: #dcfce7;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-popup-title {
  margin-top: 0.6rem;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 800;
  color: #14532d;
  line-height: 1.2;
}

.ad-popup-desc {
  margin-top: 0.45rem;
  color: #475569;
  font-size: 0.95rem;
}

.ad-popup-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ad-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  padding: 0.58rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.ad-popup-btn-primary {
  border: 1px solid #166534;
  background: #166534;
  color: #fff;
}

.ad-popup-btn-primary:hover {
  background: #14532d;
}

.ad-popup-btn-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
}

.ad-popup-btn-secondary:hover {
  border-color: #86efac;
  color: #14532d;
  background: #f0fdf4;
}

.support-fab-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 65;
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.support-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  border: 1px solid #166534;
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  color: #fff;
  padding: 0.62rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(20, 83, 45, 0.32);
  text-decoration: none;
}

.support-fab:hover {
  background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
}

.support-fab-alt {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.15);
}

.support-fab-alt:hover {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}

.support-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
}

.support-fab-alt .support-fab-icon {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 767px) {
  body.is-header-compact #favorites-link {
    display: none;
  }

  .support-fab-stack .support-fab-action {
    display: none;
  }

  .support-fab-stack.is-open .support-fab-action {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .support-fab-toggle {
    display: none;
  }
}

.support-popup {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.support-popup.hidden {
  display: none;
}

.support-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.54);
  backdrop-filter: blur(2px);
}

.support-popup-card {
  position: relative;
  width: min(440px, 100%);
  border-radius: 1rem;
  border: 1px solid #bbf7d0;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 26px 54px rgba(2, 6, 23, 0.28);
}

.support-popup-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1;
  appearance: none;
  cursor: pointer;
      padding: 0 7px;
}

.support-popup-close.focus-ring:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px #fff;
}

.support-popup-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #14532d;
}

.support-popup-desc {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #64748b;
}

.support-popup-note {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #94a3b8;
}

.support-popup-note a {
  color: #166534;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-popup-note a:hover {
  color: #14532d;
}

.support-popup-note a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.support-popup-form {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.6rem;
}

.support-popup-submit {
  border-radius: 0.7rem;
  border: 1px solid #166534;
  background: #166534;
  color: #fff;
  font-weight: 700;
  padding: 0.62rem 0.85rem;
}

.support-popup-submit:hover {
  background: #14532d;
}

.footer-social-link {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  color: #cbd5e1;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.footer-social-link img {
  filter: invert(88%) sepia(13%) saturate(377%) hue-rotate(175deg) brightness(91%) contrast(87%);
}

.footer-social-link:hover {
  border-color: #34d399;
  background: #064e3b;
}

.footer-social-link:hover img {
  filter: invert(73%) sepia(56%) saturate(417%) hue-rotate(103deg) brightness(95%) contrast(92%);
}

.support-chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
}

.support-chat-widget.hidden {
  display: none;
}

.support-chat-card {
  position: relative;
  width: min(480px, calc(100vw - 2rem));
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

.support-chat-card #support-chat-messages {
  max-height: 16rem;
  overflow-y: auto;
}

.support-chat-ai-icon {
  display: inline-block;
  margin-right: 0.25rem;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: -0.08em;
}

#support-chat-input:disabled {
  cursor: not-allowed;
  border-color: #cbd5e1;
  background-color: #f1f5f9;
  color: #64748b;
  opacity: 1;
}

@media (max-width: 767px) {
  .support-chat-widget {
    right: revert-rule;
    bottom: 0.75rem;
  }
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    align-items: flex-start;
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes adPopupIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1023px) {
  .mobile-only {
    display: inline-flex;
  }

  header nav[aria-label='Dieu huong chinh'] {
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  }

  header nav[aria-label='Dieu huong chinh'] ul a {
    border: 1px solid #e2e8f0;
    background: #fff;
    width: 100%;
    justify-content: flex-start;
    padding: 0.72rem 0.9rem;
  }

  header nav[id^='primary-nav-'] ul {
    display: grid;
    min-width: 0;
    gap: 0.42rem;
    padding: 0;
  }

  header nav[id^='primary-nav-']:not(.hidden) {
    animation: navDropIn 180ms var(--ease-smooth);
  }

  #product-filter {
    position: fixed;
    z-index: 50;
    top: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    max-height: calc(100vh - 1.6rem);
    overflow: auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-xl);
    background: #fff;
  }

  #product-filter.hidden-mobile {
    display: none;
  }
}

@media (min-width: 1024px) {
  .category-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }

  .hero-item-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1.4rem;
  }

  .category-sidebar {
    position: sticky;
    top: 6.75rem;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
  }

  header nav[id^='primary-nav-'] {
    overflow: visible;
  }
}

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
