/* ==================== 1. BIẾN MÀU & NỀN TẢNG ==================== */

:root{
  --green:#4fa8e8;
  --green-dark:#2f86c9;
  --green-soft:#e8f3fc;
  --text:#18212c;
  --muted:#6d7783;
  --line:#e5e9ee;
  --panel:#fff;
  --bg:#f4f7f9;
  --shadow:0 10px 35px rgba(26,42,55,.10);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--text);
  background:url("/Uploads/Background.png") center/cover fixed no-repeat;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  overflow-x:hidden;
}

button,input{
  font:inherit;
}

button{
  cursor:pointer;
}

.container{
  width:min(1260px,calc(100% - 32px));
  margin:auto;
}

::-webkit-scrollbar{
  width:10px;
  height:10px;
}

::-webkit-scrollbar-track{
  background:var(--green-soft);
}

::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--green),var(--green-dark));
  border-radius:6px;
  border:2px solid var(--green-soft);
}

::-webkit-scrollbar-thumb:hover{
  background:var(--green-dark);
}

* {
  scrollbar-width:thin;
  scrollbar-color:var(--green-dark) var(--green-soft);
}

/* ==================== 2. HEADER ==================== */

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}

.topbar{
  height:109px;
  background:#fff;
}

.topbar-inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:35px;
}

.brand-image{
  display:flex;
  align-items:center;
  flex:0 0 205px;
  height:75px;
  overflow:hidden;
  text-decoration:none;
}

.brand-image img{
  width:205px;
  height:95px;
  object-fit:contain;
  object-position:center;
}

.search-box{
  height:46px;
  display:flex;
  align-items:stretch;
  flex:1;
  max-width:720px;
  margin-left:auto;
  border:1px solid #dfe5eb;
  border-radius:5px;
  overflow:hidden;
  background:#fff;
}

.search-box input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:0 16px;
  color:#33404d;
}

.search-box input::placeholder{
  color:#97a0aa;
}

.search-box button{
  width:64px;
  border:0;
  background:var(--green);
  color:#fff;
  font-size:25px;
  line-height:1;
}

.search-box button:hover{
  background:var(--green-dark);
}

.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:4px;
}

.circle-btn{
  position:relative;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#f3f6f8;
  color:#787e87;
  font-size:20px;
  display:grid;
  place-items:center;
  transition:.2s;
}

.circle-btn:hover{
  transform:translateY(-1px);
  background:#eef0f2;
}

.circle-btn.notification i{
  position:absolute;
  right:-2px;
  top:-2px;
  width:19px;
  height:19px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ff9b00;
  color:#fff;
  font-size:10px;
  font-style:normal;
  font-weight:800;
  border:2px solid #fff;
}

.circle-btn.icon-accent{
  color:var(--green);
}

.circle-btn svg{
  display:block;
}

@media (hover:hover){
  .top-actions .circle-btn[aria-label]::after{
    content:attr(aria-label);
    position:absolute;
    top:calc(100% + 8px);
    left:50%;
    transform:translate(-50%,4px);
    padding:6px 10px;
    border-radius:6px;
    background:#18212c;
    color:#fff;
    font:600 12px/1.2 Inter,system-ui,sans-serif;
    white-space:nowrap;
    pointer-events:none;
    opacity:0;
    transition:opacity .15s ease,transform .15s ease;
    z-index:50;
  }

  .top-actions .circle-btn[aria-label]::before{
    content:"";
    position:absolute;
    top:calc(100% + 3px);
    left:50%;
    transform:translate(-50%,4px);
    border-style:solid;
    border-width:0 5px 5px;
    border-color:transparent transparent #18212c;
    pointer-events:none;
    opacity:0;
    transition:opacity .15s ease,transform .15s ease;
    z-index:50;
  }

  .top-actions .circle-btn[aria-label]:hover::after,
  .top-actions .circle-btn[aria-label]:hover::before{
    opacity:1;
    transform:translate(-50%,0);
    transition-delay:.3s;
  }

  .top-actions > .circle-btn:last-child::after{
    left:auto;
    right:0;
    transform:translate(0,4px);
  }

  .top-actions > .circle-btn:last-child:hover::after{
    transform:translate(0,0);
  }

  .top-actions .circle-btn.tip-off::after,
  .top-actions .circle-btn.tip-off::before{
    opacity:0 !important;
    visibility:hidden;
    transition:none !important;
  }

  .top-actions .circle-btn.no-tip::after,
  .top-actions .circle-btn.no-tip::before{
    content:none !important;
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
  }
}

/* ==================== 3. DROPDOWN TÀI KHOẢN & MENU NGÔN NGỮ ==================== */

.acc-wrap{
  position:relative;
  display:inline-flex;
}

.acc-dropdown{
  position:absolute;
  top:calc(100% + 14px);
  right:-6px;
  width:160px;
  background:var(--panel);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:16px 12px 14px;
  text-align:center;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:.18s ease;
  z-index:999;
}

.acc-dropdown::before{
  content:"";
  position:absolute;
  top:-6px;
  right:22px;
  width:12px;
  height:12px;
  background:var(--panel);
  transform:rotate(45deg);
  box-shadow:-3px -3px 6px rgba(26,42,55,.06);
}

.acc-wrap:hover .acc-dropdown,
.acc-wrap:focus-within .acc-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.acc-avatar{
  width:44px;
  height:44px;
  margin:0 auto 10px;
  border-radius:50%;
  background:var(--green-soft);
  color:var(--green-dark);
  display:flex;
  align-items:center;
  justify-content:center;
}

.acc-guest-title{
  margin:0 0 12px;
  font-family:"Barlow Condensed",sans-serif;
  font-size:16px;
  font-weight:700;
  color:var(--text);
}

.acc-login-btn,.acc-register-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:120px;
  padding:0 18px;
  height:38px;
  border-radius:8px;
  font-family:"Barlow Condensed",sans-serif;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:.18s;
  box-sizing:border-box;
  margin-left:auto;
  margin-right:auto;
}

.acc-login-btn{
  background:var(--green);
  border:1px solid var(--green);
  color:#fff;
  margin-bottom:8px;
}

.acc-login-btn:hover{
  background:var(--green-dark);
}

.acc-register-btn{
  background:transparent;
  border:1px solid var(--green);
  color:var(--green-dark);
}

.acc-register-btn:hover{
  background:var(--green-soft);
}

.lang-wrap{
  position:relative;
}

.lang-flags{
  position:fixed;
  width:0;
  height:0;
  z-index:1000;
  pointer-events:none;
}

.lang-flag-btn{
  position:absolute;
  left:0;
  top:0;
  width:var(--s,40px);
  height:var(--s,40px);
  padding:0;
  border:0;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  pointer-events:none;
  box-shadow:0 3px 10px rgba(0,0,0,.28);
  opacity:0;
  transform:translate(-50%,calc(-50% + 40px)) scale(.2);
  transition:transform .35s cubic-bezier(.2,.9,.3,1.3) var(--d), opacity .2s var(--d);
}

.lang-flag-btn img{
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
}

.lang-flags.open .lang-flag-btn{
  opacity:1;
  pointer-events:auto;
  transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1);
}

.lang-flags.open .lang-flag-btn:hover{
  transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1.25);
  z-index:5;
  transition-delay:0s;
}

.lang-flag-btn.active{
  box-shadow:0 0 0 3px var(--green),0 8px 22px rgba(0,0,0,.4);
}

.lang-tooltip{
  position:fixed;
  z-index:2000;
  padding:7px 12px;
  background:#18212c;
  color:#fff;
  font:600 13px/1.2 Inter,system-ui,sans-serif;
  border-radius:8px;
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s;
}

.lang-tooltip.show{
  opacity:1;
}

/* ==================== 4. MENU CHÍNH & DROPDOWN ==================== */

.main-nav{
  height:57px;
  background:var(--green);
  color:#fff;
}

.nav-inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:30px;
  overflow:visible;
}

.nav-item{
  height:100%;
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  text-decoration:none;
  color:#fff;
  font-family:"Barlow Condensed",Inter,sans-serif;
  font-weight:700;
  font-size:15px;
  letter-spacing:.01em;
  transition:.2s;
}

.nav-item:hover{
  color:#eef0f267;
}

.nav-item span{
  font-size:13px;
}

.nav-caret{
  display:inline-block;
  width:0;
  height:0;
  margin-left:2px;
  vertical-align:middle;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  transform:rotate(-90deg);
  transition:transform .2s ease;
}

.nav-item:hover .nav-caret{
  transform:rotate(0deg);
}

.nav-item-wrap:hover .nav-caret{
  transform:rotate(0deg);
}

.nav-item-wrap{
  position:relative;
  height:100%;
  display:inline-flex;
  align-items:center;
}

.nav-dropdown{
  position:absolute;
  top:calc(100% - 6px);
  left:0;
  min-width:245px;
  background:#fff;
  border-radius:6px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  padding:6px 0;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:.18s ease;
  z-index:999;
}

.nav-item-wrap:hover .nav-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.nav-dropdown-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 16px;
  color:#222;
  text-decoration:none;
  font-family:"Barlow Condensed",Inter,sans-serif;
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  transition:.15s;
}

.nav-dropdown-item:hover{
  background:#f2f5f2;
  color:var(--green);
}

.nav-dropdown-icon{
  font-size:15px;
  line-height:1;
}

.nav-dropdown-history,
.nav-dropdown-category{
  min-width:268px;
  padding:8px 0;
}

.nav-dropdown-category{
  display:grid;
  grid-template-columns:repeat(2,max-content);
  column-gap:6px;
  min-width:0;
  padding:8px 6px;
}

.nav-dropdown-history .nav-dropdown-item,
.nav-dropdown-category .nav-dropdown-item{
  gap:14px;
  padding:9px 22px;
  font-size:15px;
  font-weight:500;
}

.nav-dropdown-history .nav-dropdown-item svg,
.nav-dropdown-category .nav-dropdown-item svg{
  flex:0 0 auto;
}

/* ==================== 5. TRANG CHỦ - BANNER & KHUNG ĐĂNG NHẬP ==================== */

.showcase{
  position:relative;
  overflow:hidden;
  background:transparent;
}

.showcase-inner{
  position:relative;
  padding:15px 0 10px;
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}

.hero-carousel{
  height:353px;
  position:relative;
  overflow:hidden;
  border-radius:5px;
  background:#1c77d4;
  box-shadow:var(--shadow);
}

.carousel-track{
  height:100%;
  display:flex;
  transition:transform .55s cubic-bezier(.65,0,.35,1);
}

.promo-slide{
  position:relative;
  flex:0 0 100%;
  height:100%;
  overflow:hidden;
}

.promo-image-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.promo-link{
  display:block;
  width:100%;
  height:100%;
}

#products{
  scroll-margin-top:180px;
}

.carousel-arrow{
  position:absolute;
  top:50%;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.25);
  backdrop-filter:blur(5px);
  color:#fff;
  font-size:26px;
  line-height:1;
  display:grid;
  place-items:center;
  z-index:2;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
}

.arrow-prev{
  left:12px;
  transform:translate(-14px,-50%);
}

.arrow-next{
  right:12px;
  transform:translate(14px,-50%);
}

.hero-carousel:hover .carousel-arrow{
  opacity:1;
  pointer-events:auto;
}

.hero-carousel:hover .arrow-prev{
  transform:translate(0,-50%);
}

.hero-carousel:hover .arrow-next{
  transform:translate(0,-50%);
}

.carousel-arrow:hover{
  background:rgba(0,0,0,.42);
}

.carousel-dots{
  position:absolute;
  left:50%;
  bottom:9px;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
  z-index:3;
}

.carousel-dots button{
  width:8px;
  height:8px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.6);
  padding:0;
}

.carousel-dots button.active{
  width:24px;
  border-radius:5px;
  background:#fff;
}

/* ==================== 6. TRANG CHỦ - DANH MỤC, SẢN PHẨM ==================== */

.section{
  padding:62px 0;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:25px;
}

.section-head h2{
  margin:6px 0 0;
  font-family:"Barlow Condensed",sans-serif;
  font-size:36px;
  line-height:1;
  font-weight:800;
  color:#25313e;
}

.section-kicker{
  color:#6b7178;
  font-family:"Barlow Condensed",sans-serif;
  font-size:14px;
  letter-spacing:.08em;
  font-weight:800;
}

section#categories,
section.products-section{
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:40px 30px;
  margin-bottom:28px;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:15px;
}

.category-card{
  position:relative;
  min-height:auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#fff;
  color:#273342;
  overflow:hidden;
  transition:.25s;
}

.category-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:#d6dde5;
}

.cat-icon-img{
  width:48px;
  height:48px;
  border-radius:12px;
  object-fit:cover;
  margin-bottom:8px;
}

.category-card b{
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

.product-card{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  transition:.25s;
}

.product-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
  border-color:#d5dde5;
}

.product-image{
  height:185px;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:radial-gradient(circle at 50% 35%,rgba(146,152,161,.17),transparent 48%),#f2f5f7;
}

.product-image img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.product-image .symbol{
  position:relative;
  font-size:60px;
  color:#9298a1;
  text-shadow:0 0 28px rgba(146,152,161,.24);
}

.tag{
  position:absolute;
  top:12px;
  left:12px;
  padding:5px 8px;
  border-radius:7px;
  background:var(--green);
  color:#fff;
  font-size:9px;
  font-weight:800;
}

.product-body{
  padding:15px;
}

.product-body h3{
  margin:0;
  font-size:14px;
}

.product-body .category{
  margin:7px 0;
  color:var(--muted);
  font-size:10px;
}

.product-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:17px;
}

.product-bottom strong{
  font-size:16px;
  color:#6b7178;
}

.buy-btn{
  border:1px solid #d7e0e7;
  background:#fff;
  color:#455564;
  border-radius:8px;
  padding:8px 10px;
  font-size:11px;
  font-weight:800;
}

.buy-btn:hover{
  border-color:var(--green);
  color:#6b7178;
  background:#f4f5f6;
}

.load-more-btn{
  display:flex;
  margin:26px auto 0;
}

.trust-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:27px;
  background:#fff;
  box-shadow:0 4px 20px rgba(27,45,57,.05);
}

.trust-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#eef0f2;
  color:#6b7178;
  font-size:22px;
}

.trust-card h2{
  margin:6px 0 8px;
  font-family:"Barlow Condensed",sans-serif;
  font-size:29px;
}

.trust-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  max-width:700px;
}

.primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:7px;
  padding:12px 16px;
  font-weight:800;
  font-size:13px;
  text-decoration:none;
  color:#fff;
  background:var(--green);
}

.primary-btn:hover{
  background:var(--green-dark);
}

/* ==================== 7. FOOTER ==================== */

.footer{
  margin-top:25px;
  color:#fff;
  background:var(--green);
  font-family:"Barlow Condensed",Inter,sans-serif;
}

.footer-main{
  padding:39px 0 37px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.35fr .8fr .85fr 1fr;
  gap:55px;
}

.footer-about{
  max-width:390px;
}

.footer-logo{
  display:block;
  width:112px;
  height:42px;
  overflow:hidden;
  margin-bottom:7px;
}

.footer-logo img{
  width:115px;
  height:53px;
  object-fit:contain;
}

.footer h3{
  font-size:18px;
  line-height:1.05;
  margin:0 0 14px;
  font-weight:800;
}

.footer p,.footer a{
  font-size:15px;
  line-height:1.35;
}

.footer-about p{
  margin:0;
  color:rgba(255,255,255,.96);
}

.footer-grid>div:not(.footer-about) h4{
  font-size:19px;
  margin:2px 0 13px;
  font-weight:800;
}

.footer-grid>div:not(.footer-about) a{
  display:block;
  color:#fff;
  text-decoration:none;
  margin:0 0 8px;
}

.footer-grid>div:not(.footer-about) a:hover{
  text-decoration:underline;
}

.contact-line{
  margin:0 0 9px;
  color:#fff;
}

.footer-bottom{
  height:69px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.045);
  font-size:15px;
  text-align:center;
  padding:0 16px;
}

/* ==================== 8. TOAST ==================== */

.toast{
  position:fixed;
  left:50%;
  bottom:25px;
  transform:translate(-50%,20px);
  background:#172027;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 15px 40px rgba(0,0,0,.22);
  color:#fff;
  padding:12px 16px;
  border-radius:9px;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition:.25s;
  z-index:99;
}

.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

/* ==================== 9. GOOGLE TRANSLATE ==================== */

#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
iframe.skiptranslate,
.goog-tooltip,
.goog-te-spinner-pos{
  display:none !important;
}

body{
  top:0 !important;
}

.goog-text-highlight{
  background:none !important;
  box-shadow:none !important;
}

/* ==================== 10. NÚT ĐỔI SÁNG/TỐI & HIỆU ỨNG CHUYỂN ==================== */

.circle-btn .icon-sun{
  display:none;
}

html[data-theme="dark"] .circle-btn .icon-moon{
  display:none;
}

html[data-theme="dark"] .circle-btn .icon-sun{
  display:block;
}

html.theme-anim,
html.theme-anim *{
  transition:background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease !important;
}

::view-transition-old(root),
::view-transition-new(root){
  animation:none;
  mix-blend-mode:normal;
}

::view-transition-old(root){
  z-index:1;
}

::view-transition-new(root){
  z-index:2147483646;
}

html.theme-inward::view-transition-old(root){
  z-index:2147483646;
}

html.theme-inward::view-transition-new(root){
  z-index:1;
}

@keyframes themeIconIn{
  from{
    transform:rotate(-90deg) scale(.3);
    opacity:0;
  }
  to{
    transform:none;
    opacity:1;
  }
}

html.theme-switching .circle-btn .icon-sun,
html.theme-switching .circle-btn .icon-moon{
  animation:themeIconIn .5s cubic-bezier(.2,.9,.3,1.3);
}

/* ==================== 11. GIAO DIỆN TỐI (DARK MODE) ==================== */

html[data-theme="dark"]{
  color-scheme:dark;
  --text:#e2e8f0;
  --text-strong:#f1f5f9;
  --muted:#94a3b8;
  --line:#2a3850;
  --panel:#172033;
  --bg:#0f172a;
  --surface:#172033;
  --surface-2:#1e2a40;
  --surface-hover:#26344d;
  --accent-text:#7cc0f0;
  --green-soft:#1b2c47;
  --shadow:0 10px 35px rgba(0,0,0,.45);
}

html[data-theme="dark"] body{
  background-color:#0f172a;
  background-image:
    linear-gradient(rgba(148,163,184,.1) 1px,transparent 1px),
    linear-gradient(90deg,rgba(148,163,184,.1) 1px,transparent 1px);
  background-size:45px 45px;
  background-position:0 0;
  background-repeat:repeat;
  background-attachment:fixed;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .topbar{
  background:var(--surface);
}

html[data-theme="dark"] .site-header{
  box-shadow:0 2px 12px rgba(0,0,0,.35);
}

html[data-theme="dark"] .search-box{
  background:var(--surface-2);
  border-color:var(--line);
}

html[data-theme="dark"] .search-box input{
  background:transparent;
  color:var(--text);
}

html[data-theme="dark"] .search-box input::placeholder{
  color:#64748b;
}

html[data-theme="dark"] .circle-btn{
  background:var(--surface-2);
  color:#94a3b8;
}

html[data-theme="dark"] .circle-btn:hover{
  background:var(--surface-hover);
}

html[data-theme="dark"] .circle-btn.icon-accent{
  color:var(--green);
}

html[data-theme="dark"] .circle-btn.notification i{
  border-color:var(--surface);
}

@media (hover:hover){
  html[data-theme="dark"] .top-actions .circle-btn[aria-label]::after{
    background:#2f3f5c;
  }

  html[data-theme="dark"] .top-actions .circle-btn[aria-label]::before{
    border-color:transparent transparent #2f3f5c;
  }
}

html[data-theme="dark"] .main-nav{
  background:#143a5c;
}

html[data-theme="dark"] .nav-dropdown{
  background:var(--surface-2);
  box-shadow:0 10px 24px rgba(0,0,0,.5);
}

html[data-theme="dark"] .nav-dropdown-item{
  color:var(--text);
}

html[data-theme="dark"] .nav-dropdown-item:hover{
  background:var(--surface-hover);
  color:var(--accent-text);
}

html[data-theme="dark"] .acc-dropdown::before{
  box-shadow:-3px -3px 6px rgba(0,0,0,.3);
}

html[data-theme="dark"] .acc-guest-title{
  color:var(--text);
}

html[data-theme="dark"] .section-head h2{
  color:var(--text-strong);
}

html[data-theme="dark"] .section-kicker{
  color:var(--muted);
}

html[data-theme="dark"] section#categories,
html[data-theme="dark"] section.products-section{
  background:var(--surface);
}

html[data-theme="dark"] .category-card{
  background:var(--surface-2);
  color:var(--text);
}

html[data-theme="dark"] .category-card:hover,
html[data-theme="dark"] .product-card:hover{
  border-color:#3b4d6b;
}

html[data-theme="dark"] .product-card{
  background:var(--surface-2);
}

html[data-theme="dark"] .product-image{
  background:radial-gradient(circle at 50% 35%,rgba(148,163,184,.12),transparent 48%),#1a2438;
}

html[data-theme="dark"] .product-bottom strong{
  color:var(--text-strong);
}

html[data-theme="dark"] .buy-btn{
  background:var(--surface);
  border-color:var(--line);
  color:var(--text);
}

html[data-theme="dark"] .buy-btn:hover{
  background:var(--surface-hover);
  border-color:var(--green);
  color:var(--accent-text);
}

html[data-theme="dark"] .trust-card{
  background:var(--surface);
  box-shadow:0 4px 20px rgba(0,0,0,.3);
}

html[data-theme="dark"] .trust-icon{
  background:var(--surface-2);
  color:var(--muted);
}

html[data-theme="dark"] .footer{
  background:#0b1324;
  border-top:1px solid var(--line);
}

html[data-theme="dark"] .footer-bottom{
  background:rgba(255,255,255,.03);
}

/* ==================== 12. RESPONSIVE (luôn để cuối cùng) ==================== */

@media(max-width:1050px){
  .topbar-inner{
    gap:18px;
  }
  .top-actions{
    gap:6px;
  }
  .circle-btn{
    width:39px;
    height:39px;
  }
  .nav-inner{
    gap:22px;
  }
  .footer-grid{
    grid-template-columns:1.25fr .85fr .85fr 1fr;
    gap:25px;
  }
}

@media(max-width:860px){
  .topbar{
    height:92px;
  }
  .brand-image{
    flex-basis:150px;
    width:150px;
  }
  .brand-image img{
    width:155px;
  }
  .search-box{
    max-width:none;
  }
  .top-actions .circle-btn:nth-child(2),
  .top-actions .circle-btn:nth-child(3){
    display:none;
  }
  .hero-carousel{
    height:auto;
    aspect-ratio:940/360;
  }
  .category-grid,.product-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
  .footer-about{
    max-width:none;
  }
}

@media(max-width:560px){
  .container{
    width:min(100% - 20px,1260px);
  }
  .topbar{
    height:auto;
  }
  .topbar-inner{
    padding:9px 0;
    flex-wrap:wrap;
    gap:8px;
  }
  .brand-image{
    flex:0 0 140px;
    height:54px;
  }
  .brand-image img{
    width:145px;
    height:67px;
  }
  .search-box{
    order:3;
    flex:1 1 100%;
    height:42px;
  }
  .search-box button{
    width:56px;
  }
  .top-actions{
    margin-left:auto;
  }
  .top-actions .circle-btn:nth-child(4){
    display:none;
  }
  .main-nav{
    height:50px;
  }
  .nav-inner{
    gap:20px;
  }
  .nav-item{
    font-size:14px;
  }
  .showcase-inner{
    padding-top:10px;
  }
  .hero-carousel{
    aspect-ratio:940/390;
  }
  .section{
    padding:45px 0;
  }
  .section-head{
    align-items:flex-start;
    flex-direction:column;
    margin-bottom:18px;
  }
  .section-head h2{
    font-size:32px;
  }
  .category-grid,.product-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .category-card{
    min-height:145px;
    padding:15px;
  }
  .product-image{
    height:145px;
  }
  .product-body{
    padding:12px;
  }
  .trust-card{
    grid-template-columns:1fr;
  }
  .trust-card .primary-btn{
    width:100%;
  }
  .footer-grid{
    grid-template-columns:1fr;
    gap:28px;
  }
  .footer-main{
    padding:30px 0;
  }
  .footer h3{
    font-size:17px;
  }
  .footer p,.footer a,.footer-grid>div:not(.footer-about) h4,.footer-bottom{
    font-size:14px;
  }
}

@media (max-width:640px){
  .acc-dropdown{
    right:-40px;
  }
}
