/* ═══════════════════════════════════════════════════════════
   Đệm Bắc Ninh — Design System CSS
   Liquid Glass | Slate + Royal Gold | Luxury E-commerce
   ═══════════════════════════════════════════════════════════ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

@layer reset, tokens, animations, base, components, pages, theme, utilities;


@layer tokens {
/* === DESIGN TOKENS === */
:root {
   --primary: #0F172A;
   --primary-light: #1E293B;
   --primary-mid: #334155;
   --accent: #D4A853;
   --accent-light: #E8C275;
   --accent-dark: #B8954F;
   --accent-glow: rgba(212, 168, 83, 0.12);
   --blue: #3B82F6;
   --blue-light: #60A5FA;
   --blue-glow: rgba(59, 130, 246, 0.10);
   --bg: #020617;
   --bg-card: rgba(15, 23, 42, 0.55);
   --surface: #0F172A;
   --surface-light: #1E293B;
   --text: #CBD5E1;
   --text-muted: #64748B;
   --text-heading: #F1F5F9;
   --white: #ffffff;
   --success: #E8C275;
   --danger: #ef4444;
   --warning: #f59e0b;
   --glass: rgba(15, 23, 42, 0.70);
   --glass-border: rgba(148, 163, 184, 0.08);
   --glass-border-accent: rgba(212, 168, 83, 0.15);
   --glass-blur: 20px;
   --radius: 14px;
   --radius-lg: 22px;
   --radius-sm: 8px;
   --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
   --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px var(--accent-glow);
   --font-heading: 'Raleway', serif;
   --font-body: 'Montserrat', sans-serif;
   --ease: cubic-bezier(0.16, 1, 0.3, 1);
   --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
   --ease-fluid: cubic-bezier(0.4, 0, 0.2, 1);
   --transition: 0.4s var(--ease);
}

} /* end @layer tokens */

@layer theme {
/* === LIGHT MODE — Soft Slate ☀️ === */
html[data-theme="light"] {
   --primary: #F8FAFC;
   --primary-light: #F1F5F9;
   --primary-mid: #E2E8F0;
   --accent: #B8954F;
   --accent-light: #D4A853;
   --accent-dark: #9A7A3C;
   --accent-glow: rgba(184, 149, 79, 0.06);
   --blue-glow: rgba(59, 130, 246, 0.06);
   --bg: #ffffff;
   --bg-card: rgba(255, 255, 255, 0.85);
   --surface: #F8FAFC;
   --surface-light: #FFFFFF;
   --text: #1E293B;
   --text-muted: #475569;
   --text-heading: #0F172A;
   --glass: rgba(255, 255, 255, 0.88);
   --glass-border: rgba(15, 23, 42, 0.06);
   --glass-border-accent: rgba(184, 149, 79, 0.12);
   --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
   --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.06);
}

/* Smooth theme transition — all visible elements, lightweight */
html.theme-transition body,
html.theme-transition body * {
   transition: background-color 0.6s var(--ease-fluid),
               color 0.6s var(--ease-fluid) !important;
}
/* Secondary: border + shadow only on key interactive elements */
html.theme-transition .product-card,
html.theme-transition .why-card,
html.theme-transition .blog-card,
html.theme-transition .category-card,
html.theme-transition .cart-summary,
html.theme-transition .cart-item,
html.theme-transition .btn,
html.theme-transition .btn-primary,
html.theme-transition .btn-outline,
html.theme-transition .search-input,
html.theme-transition .toast,
html.theme-transition footer,
html.theme-transition header {
   transition: background-color 0.6s var(--ease-fluid),
               color 0.6s var(--ease-fluid),
               border-color 0.6s var(--ease-fluid),
               box-shadow 0.6s var(--ease-fluid) !important;
}

/* Light mode: hide stars */
html[data-theme="light"] .stars { opacity: 0; pointer-events: none; transition: opacity 0.8s ease 0.1s; }
html:not([data-theme="light"]) .stars { transition: opacity 0.6s ease 0.05s; }
html[data-theme="light"] .hero-bg-img { opacity: 0.18; filter: saturate(0.4) brightness(1.15); }
html[data-theme="light"] .hero-bg::after {
   background:
      linear-gradient(to right, rgba(248,250,252,0.96) 0%, transparent 28%, transparent 68%, rgba(248,250,252,0.96) 100%),
      linear-gradient(to top, rgba(248,250,252,0.92) 0%, transparent 55%);
}
html[data-theme="light"] .hero-bg .orb { opacity: 0.04; }
html[data-theme="light"] .hero h1 { color: #0F172A; }
html[data-theme="light"] .hero p { color: #475569; }
html[data-theme="light"] .hero-badge {
   background: rgba(255,255,255,0.9);
   border: 1px solid rgba(15,23,42,0.06);
   color: #475569;
}

/* Light mode: nav */
html[data-theme="light"] nav a { color: #475569; }
html[data-theme="light"] nav a:hover,
html[data-theme="light"] nav a.active { color: #0F172A; }
html[data-theme="light"] .logo-sub { -webkit-text-fill-color: #94A3B8; }

/* Light mode: login/register buttons */
html[data-theme="light"] .btn-header-login {
   color: #fff;
   background: linear-gradient(135deg, #B8954F, #D4A853);
}
html[data-theme="light"] .btn-header-register {
   color: #475569;
   border-color: rgba(15,23,42,0.12);
}

/* Light mode: product badge */
html[data-theme="light"] .product-badge.best-seller { color: #fff; }

/* Light mode: footer — warm sand/cream tone */
html[data-theme="light"] footer {
   background: linear-gradient(180deg, #F5F0E8, #EDE6D8);
   color: #4A3F35;
   border-top: 1px solid rgba(184, 149, 79, 0.15);
}
html[data-theme="light"] footer h4 { color: #2D2418; }
html[data-theme="light"] footer a { color: #6B5D4F; }
html[data-theme="light"] footer a:hover { color: #B8954F; }
html[data-theme="light"] footer .logo-text {
   background: linear-gradient(135deg, #B8954F, #96783E);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}
html[data-theme="light"] footer .logo-sub { -webkit-text-fill-color: #8B7D6B; }
html[data-theme="light"] footer .footer-bottom {
   border-top-color: rgba(184, 149, 79, 0.12);
   color: #8B7D6B;
}

/* Light mode: misc elements */
html[data-theme="light"] .search-input {
   background: rgba(15,23,42,0.02);
   border: 1px solid rgba(15,23,42,0.08);
   color: #0F172A;
}
html[data-theme="light"] .search-results {
   background: #ffffff;
   border: 1px solid rgba(15,23,42,0.06);
   box-shadow: 0 12px 40px rgba(15,23,42,0.08);
}
html[data-theme="light"] .auth-dropdown {
   background: #ffffff;
   border: 1px solid rgba(15,23,42,0.06);
   box-shadow: 0 12px 40px rgba(15,23,42,0.08);
}
html[data-theme="light"] .mobile-menu-overlay {
   background: rgba(255,255,255,0.98);
}
html[data-theme="light"] .mobile-menu-overlay a { color: #334155; }
html[data-theme="light"] .toast { background: #ffffff; color: #0F172A; box-shadow: 0 4px 20px rgba(15,23,42,0.08); }

/* Light mode: product card image */
html[data-theme="light"] .product-img {
   background: linear-gradient(135deg, #FFF9F0, #F0F4FF);
}
html[data-theme="light"] .product-card:hover .product-img {
   background: linear-gradient(135deg, #FFF3E0, #E8F0FE);
}

/* Light mode: footer social Zalo */
html[data-theme="light"] .footer-social a {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   color: #F1F5F9;
   background: rgba(0, 104, 255, 0.12);
   padding: 8px 16px;
   border-radius: 10px;
   border: 1px solid rgba(0, 104, 255, 0.2);
   transition: all 0.3s ease;
}
html[data-theme="light"] .footer-social a:hover {
   background: rgba(0, 104, 255, 0.18);
   color: #0050cc;
}

/* Light mode: top-bar Zalo button */
html[data-theme="light"] .top-bar-right a {
   background: linear-gradient(135deg, #B8954F, #D4A853);
   color: white;
}
html[data-theme="light"] .top-bar-right a:hover {
   box-shadow: 0 0 20px rgba(184, 149, 79, 0.35);
}

/* Light mode: Zalo floating button */
html[data-theme="light"] .zalo-btn {
   background: linear-gradient(135deg, #0068ff, #0050cc) !important;
   box-shadow: 0 4px 20px rgba(0, 104, 255, 0.3);
}

/* Light mode: blog thumb */
html[data-theme="light"] .blog-thumb {
   background: linear-gradient(135deg, #FFF9F0, #F0F4FF);
}

/* Theme toggle button */
.theme-toggle {
   background: none;
   border: 1px solid var(--glass-border);
   color: var(--text-muted);
   font-size: 1.1rem;
   padding: 10px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.4s ease;
   position: relative;
   overflow: visible;
}
.theme-toggle:hover {
   border-color: var(--accent);
   color: var(--accent);
}
.theme-toggle .theme-icon {
   transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
   display: inline-flex;
   align-items: center;
   justify-content: center;
}

/* Golden Hour — Icon morph animation */
.theme-icon.morph-out {
   animation: iconMorphOut 0.28s var(--ease-fluid) forwards;
}
.theme-icon.morph-in {
   animation: iconMorphIn 0.35s var(--ease-bounce) forwards;
}

/* Golden Hour — Glow ring effect */
.theme-glow-ring {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   transform: translate(-50%, -50%) scale(0);
   pointer-events: none;
   z-index: -1;
   background: radial-gradient(circle, var(--glow-color, rgba(232,194,117,0.35)) 0%, transparent 70%);
   animation: themeGlowRing 0.7s var(--ease) forwards;
}

} /* end @layer theme */

@layer reset {
/* === RESET === */
*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html {
   scroll-behavior: smooth;
   -webkit-text-size-adjust: 100%;
}

body {
   font-family: var(--font-body);
   background: var(--bg);
   color: var(--text);
   line-height: 1.6;
   overflow-x: hidden;
   min-height: 100vh;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition);
}

img {
   max-width: 100%;
   display: block;
}

button {
   cursor: pointer;
   font-family: var(--font-body);
}

input,
select,
textarea {
   font-family: var(--font-body);
}

ul,
ol {
   list-style: none;
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 24px;
}

/* === ACCESSIBILITY === */
.skip-link {
   position: absolute;
   top: -100%;
   left: 16px;
   background: var(--accent);
   color: var(--primary);
   padding: 12px 24px;
   border-radius: var(--radius-sm);
   font-weight: 600;
   z-index: 10000;
   transition: top 0.3s ease;
   text-decoration: none;
}

.skip-link:focus {
   top: 16px;
}

:focus-visible {
   outline: 2px solid var(--accent);
   outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
   outline: none;
}

} /* end @layer reset */

@layer animations {
/* === ANIMATIONS KEYFRAMES === */
@keyframes fadeUp {
   from {
      opacity: 0;
      transform: translateY(40px);
   }

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

@keyframes fadeIn {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

@keyframes slideRight {
   from {
      opacity: 0;
      transform: translateX(-30px);
   }

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

@keyframes shimmer {
   0% {
      background-position: -200% center;
   }

   100% {
      background-position: 200% center;
   }
}

@keyframes float {

   0%,
   100% {
      transform: translateY(0);
   }

   50% {
      transform: translateY(-8px);
   }
}

@keyframes glow {

   0%,
   100% {
      box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
   }

   50% {
      box-shadow: 0 0 35px rgba(37, 99, 235, 0.5), 0 0 60px rgba(37, 99, 235, 0.15);
   }
}

@keyframes borderGlow {

   0%,
   100% {
      border-color: rgba(212, 168, 83, 0.12);
   }

   50% {
      border-color: rgba(212, 168, 83, 0.35);
   }
}

@keyframes scaleIn {
   from {
      opacity: 0;
      transform: scale(0.85);
   }

   to {
      opacity: 1;
      transform: scale(1);
   }
}

@keyframes starPulse {

   0%,
   100% {
      opacity: 0.3;
      transform: scale(1);
   }

   50% {
      opacity: 1;
      transform: scale(1.5);
   }
}

@keyframes spin {
   to {
      transform: rotate(360deg);
   }
}

/* === GOLDEN HOUR — Theme Transition Keyframes === */
@keyframes themeGlowRing {
   0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 1;
   }
   60% {
      opacity: 0.6;
   }
   100% {
      transform: translate(-50%, -50%) scale(18);
      opacity: 0;
   }
}

@keyframes iconMorphOut {
   0% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
   }
   100% {
      transform: scale(0.3) rotate(90deg);
      opacity: 0;
   }
}

@keyframes iconMorphIn {
   0% {
      transform: scale(0.3) rotate(-90deg);
      opacity: 0;
   }
   60% {
      opacity: 1;
   }
   100% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
   }
}

/* === REVEAL ANIMATIONS === */
.reveal {
   opacity: 0;
   transform: translateY(40px);
   transition: all 0.8s var(--ease);
}

.reveal.visible {
   opacity: 1;
   transform: translateY(0);
}

.reveal-left {
   opacity: 0;
   transform: translateX(-40px);
   transition: all 0.8s var(--ease);
}

.reveal-left.visible {
   opacity: 1;
   transform: translateX(0);
}

.reveal-scale {
   opacity: 0;
   transform: scale(0.9);
   transition: all 0.8s var(--ease);
}

.reveal-scale.visible {
   opacity: 1;
   transform: scale(1);
}

.stagger {
   transition-delay: calc(var(--i, 0) * 120ms);
}

/* === STARS BACKGROUND — Cinematic Night Sky === */
.stars {
   position: fixed;
   inset: 0;
   z-index: 0;
   pointer-events: none;
   overflow: hidden;
}

/* --- Layer 1: Tiny distant stars (twinkle slowly) --- */
.star {
   position: absolute;
   border-radius: 50%;
   background: white;
   will-change: opacity, transform;
}

.star--sm {
   width: 1px;
   height: 1px;
   opacity: 0.4;
   animation: starTwinkle 4s ease-in-out infinite;
}

.star--md {
   width: 2px;
   height: 2px;
   opacity: 0.55;
   animation: starTwinkle 3s ease-in-out infinite;
}

.star--lg {
   width: 3px;
   height: 3px;
   opacity: 0.7;
   animation: starBreathe 5s ease-in-out infinite;
   box-shadow: 0 0 6px 1px rgba(180, 200, 255, 0.4);
}

/* --- Layer 2: Colored accent stars --- */
.star--gold {
   background: var(--accent-light);
   box-shadow: 0 0 8px 2px var(--accent-glow);
}

.star--blue {
   background: var(--blue-light);
   box-shadow: 0 0 8px 2px var(--blue-glow);
}

/* --- Layer 3: Shooting stars --- */
.shooting-star {
   position: absolute;
   width: 2px;
   height: 2px;
   background: white;
   border-radius: 50%;
   opacity: 0;
   will-change: transform, opacity;
}

.shooting-star::after {
   content: '';
   position: absolute;
   top: 0;
   right: 0;
   width: 80px;
   height: 1px;
   background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
   transform-origin: right center;
}

.shooting-star.active {
   animation: shootingStar 1.2s ease-out forwards;
}

/* --- Layer 4: Nebula glow patches --- */
.nebula {
   position: absolute;
   border-radius: 50%;
   filter: blur(80px);
   opacity: 0;
   will-change: opacity;
   animation: nebulaGlow 12s ease-in-out infinite;
}

.nebula--blue {
   background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.nebula--gold {
   background: radial-gradient(circle, rgba(212, 168, 83, 0.05) 0%, transparent 70%);
}

.nebula--purple {
   background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
}

/* --- Keyframes --- */
@keyframes starTwinkle {

   0%,
   100% {
      opacity: 0.2;
      transform: scale(1);
   }

   50% {
      opacity: 1;
      transform: scale(1.3);
   }
}

@keyframes starBreathe {

   0%,
   100% {
      opacity: 0.4;
      transform: scale(1);
      box-shadow: 0 0 4px 0 rgba(180, 200, 255, 0.2);
   }

   50% {
      opacity: 1;
      transform: scale(1.6);
      box-shadow: 0 0 12px 3px rgba(180, 200, 255, 0.6);
   }
}

@keyframes shootingStar {
   0% {
      opacity: 1;
      transform: translate(0, 0) rotate(-35deg);
   }

   70% {
      opacity: 1;
   }

   100% {
      opacity: 0;
      transform: translate(-300px, 200px) rotate(-35deg);
   }
}

@keyframes nebulaGlow {

   0%,
   100% {
      opacity: 0;
      transform: scale(0.8);
   }

   50% {
      opacity: 1;
      transform: scale(1.1);
   }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {

   .star,
   .shooting-star,
   .nebula {
      animation: none !important;
   }

   .star--sm {
      opacity: 0.3;
   }

   .star--md {
      opacity: 0.4;
   }

   .star--lg {
      opacity: 0.5;
   }

   .btn-primary,
   .logo-text {
      animation: none !important;
   }

   .hero-bg .orb,
   .hero-orb-1,
   .hero-orb-2 {
      animation: none !important;
   }

   .reveal,
   .reveal-left,
   .reveal-scale {
      transition: none !important;
      opacity: 1 !important;
      transform: none !important;
   }

   .cloud,
   .sunshine-ray {
      animation: none !important;
   }

   /* Golden Hour — disable morph + glow in reduced-motion */
   .theme-icon.morph-out,
   .theme-icon.morph-in {
      animation: none !important;
      transform: none !important;
      opacity: 1 !important;
   }

   .theme-glow-ring {
      animation: none !important;
      display: none !important;
   }
}

} /* end @layer animations */

@layer base {
/* === TYPOGRAPHY === */
h1,
h2,
h3 {
   font-family: var(--font-heading);
   color: var(--text-heading);
   line-height: 1.2;
}

h1 {
   font-size: 3.2rem;
   font-weight: 700;
}

h2 {
   font-size: 2.4rem;
   font-weight: 600;
}

h3 {
   font-size: 1.6rem;
   font-weight: 600;
}

h4 {
   font-size: 1.1rem;
   font-weight: 600;
   color: var(--text-heading);
}

p {
   color: var(--text);
}

.text-accent {
   color: var(--accent);
}

.text-muted {
   color: var(--text-muted);
}

.text-gradient {
   background: linear-gradient(135deg, var(--accent), var(--accent-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

} /* end @layer base */

@layer components {
/* ═══════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════ */
.top-bar {
   background: rgba(6, 13, 26, 0.9);
   padding: 8px 0;
   font-size: 0.82rem;
   border-bottom: 1px solid var(--glass-border);
   position: relative;
   z-index: 101;
   backdrop-filter: blur(10px);
}

.top-bar .container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.top-bar-left {
   display: flex;
   gap: 24px;
   color: var(--text-muted);
}

.top-bar-left span {
   display: flex;
   align-items: center;
   gap: 6px;
}

.top-bar-right a {
   background: linear-gradient(135deg, #0068ff, #0050cc);
   color: white;
   padding: 5px 18px;
   border-radius: 20px;
   font-weight: 500;
   font-size: 0.78rem;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   transition: all 0.3s ease;
}

.top-bar-right a:hover {
   transform: scale(1.05);
   box-shadow: 0 0 20px rgba(0, 104, 255, 0.4);
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
header {
   background: var(--glass);
   backdrop-filter: blur(30px);
   -webkit-backdrop-filter: blur(30px);
   border-bottom: 1px solid var(--glass-border);
   position: sticky;
   top: 0;
   z-index: 100;
   transition: all 0.4s ease;
}

header.scrolled {
   background: rgba(6, 13, 26, 0.95);
   box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-main {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 10px 0;
}

.logo {
   font-family: var(--font-heading);
   font-size: 1.55rem;
   font-weight: 700;
   letter-spacing: 0.5px;
}

.logo a {
   display: block;
}

.logo-text {
   background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--accent));
   background-size: 200%;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   animation: shimmer 4s linear infinite;
}

.logo-sub {
   font-size: 0.58rem;
   display: block;
   font-family: var(--font-body);
   -webkit-text-fill-color: var(--text-muted);
   font-weight: 400;
   letter-spacing: 3px;
   text-transform: uppercase;
}

nav ul {
   display: flex;
   gap: 24px;
}

nav a {
   font-size: 0.82rem;
   font-weight: 500;
   color: var(--text-muted);
   position: relative;
   padding: 4px 0;
}

nav a::after {
   content: '';
   position: absolute;
   bottom: -4px;
   left: 50%;
   width: 0;
   height: 2px;
   background: linear-gradient(90deg, transparent, var(--accent), transparent);
   transition: all 0.4s ease;
   transform: translateX(-50%);
}

nav a:hover,
nav a.active {
   color: var(--text-heading);
}

nav a:hover::after,
nav a.active::after {
   width: 100%;
}

.header-actions {
   display: flex;
   gap: 8px;
   align-items: center;
   flex-wrap: nowrap;
}

.header-actions button:not(.menu-toggle):not(.menu-close),
.header-actions a {
   background: none;
   border: 1px solid var(--glass-border);
   color: var(--text-muted);
   font-size: 0.95rem;
   padding: 8px;
   border-radius: 10px;
   transition: all 0.4s ease;
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
}

.header-actions button:not(.menu-toggle):not(.menu-close):hover,
.header-actions a:hover {
   background: var(--accent-glow);
   border-color: var(--accent);
   color: var(--accent);
   transform: scale(1.08);
}

.auth-header-btn {
   display: none;
}

.cart-header-btn {
   text-decoration: none;
}

.cart-count {
   position: absolute;
   top: -2px;
   right: -2px;
   background: var(--blue);
   color: white;
   font-size: 0.6rem;
   font-weight: 700;
   width: 18px;
   height: 18px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
   display: none;
   background: none;
   border: none;
   color: var(--text);
   font-size: 1.5rem;
   padding: 8px;
   cursor: pointer;
}

/* ═══════════════════════════════════════
   HEADER AUTH AREA
   ═══════════════════════════════════════ */
.auth-header-area {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-shrink: 0;
   flex-wrap: nowrap;
}

.btn-header-login {
   padding: 7px 14px;
   font-size: 0.78rem;
   font-weight: 600;
   color: var(--primary);
   background: linear-gradient(135deg, var(--accent), var(--accent-light));
   border-radius: 8px;
   transition: all 0.3s var(--ease);
   white-space: nowrap;
}

.btn-header-login:hover {
   transform: translateY(-1px);
   box-shadow: 0 4px 16px rgba(212, 168, 83, 0.35);
}

.btn-header-register {
   padding: 7px 14px;
   font-size: 0.78rem;
   font-weight: 600;
   color: var(--accent);
   border: 1px solid rgba(212, 168, 83, 0.35);
   border-radius: 8px;
   transition: all 0.3s var(--ease);
   white-space: nowrap;
}

.btn-header-register:hover {
   background: var(--accent-glow);
   border-color: var(--accent);
   transform: translateY(-1px);
}

/* Avatar (logged in) */
.auth-avatar-wrap {
   position: relative;
}

.auth-avatar-btn {
   width: 38px;
   height: 38px;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--accent), var(--accent-light));
   color: var(--primary);
   font-weight: 700;
   font-size: 0.95rem;
   border: 2px solid transparent;
   cursor: pointer;
   transition: all 0.3s ease;
   font-family: var(--font-body);
   display: flex;
   align-items: center;
   justify-content: center;
}

.auth-avatar-btn:hover {
   transform: scale(1.08);
   box-shadow: 0 0 16px rgba(212, 168, 83, 0.4);
}

/* Auth Dropdown */
.auth-dropdown {
   position: absolute;
   right: 0;
   top: calc(100% + 10px);
   min-width: 220px;
   background: rgba(13, 25, 50, 0.95);
   backdrop-filter: blur(20px);
   border: 1px solid var(--glass-border);
   border-radius: var(--radius);
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
   z-index: 200;
   opacity: 0;
   transform: translateY(-8px);
   pointer-events: none;
   transition: all 0.25s ease;
   overflow: hidden;
}

.auth-dropdown.visible {
   opacity: 1;
   transform: translateY(0);
   pointer-events: auto;
}

.auth-dropdown-header {
   padding: 14px 16px;
   border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.auth-dropdown-name {
   display: block;
   font-weight: 600;
   color: var(--text-heading);
   font-size: 0.9rem;
}

.auth-dropdown-email {
   display: block;
   font-size: 0.75rem;
   color: var(--text-muted);
   margin-top: 2px;
}

.auth-dropdown-item {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 11px 16px;
   font-size: 0.85rem;
   color: var(--text);
   transition: all 0.2s ease;
   text-decoration: none;
   width: 100%;
   border: none;
   background: none;
   cursor: pointer;
   font-family: var(--font-body);
   text-align: left;
}

.auth-dropdown-item:hover {
   background: rgba(212, 168, 83, 0.08);
   color: var(--accent);
}

.auth-dropdown-logout {
   border-top: 1px solid rgba(148, 163, 184, 0.08);
   color: #fca5a5;
}

.auth-dropdown-logout:hover {
   background: rgba(239, 68, 68, 0.1);
   color: #fca5a5;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 15px 34px;
   border-radius: 50px;
   font-weight: 600;
   font-size: 0.9rem;
   cursor: pointer;
   border: none;
   font-family: var(--font-body);
   transition: all 0.4s var(--ease-bounce);
   position: relative;
   overflow: hidden;
}

.btn::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
   transform: translateX(-100%);
   transition: transform 0.6s ease;
}

.btn:hover::before {
   transform: translateX(100%);
}

.btn-primary {
   background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--accent));
   background-size: 200%;
   color: var(--primary);
   animation: shimmer 3s linear infinite;
   box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
   transform: translateY(-3px) scale(1.03);
   box-shadow: 0 8px 35px rgba(212, 168, 83, 0.45);
}

.btn-outline {
   background: transparent;
   border: 2px solid var(--accent);
   color: var(--accent);
}

.btn-outline:hover {
   background: var(--accent-glow);
   transform: translateY(-3px);
}

.btn-zalo {
   background: linear-gradient(135deg, #0068ff, #0050cc);
   color: white;
   box-shadow: 0 4px 20px rgba(0, 104, 255, 0.3);
}

.btn-zalo:hover {
   transform: translateY(-3px) scale(1.03);
   box-shadow: 0 8px 35px rgba(0, 104, 255, 0.45);
}

.btn-sm {
   padding: 10px 22px;
   font-size: 0.82rem;
}

.btn-block {
   width: 100%;
   justify-content: center;
}

.btn-ghost {
   background: transparent;
   color: var(--text-muted);
   border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
   border-color: var(--accent);
   color: var(--accent);
   background: var(--accent-glow);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
   position: relative;
   min-height: 600px;
   display: flex;
   align-items: center;
   overflow: hidden;
   background: linear-gradient(160deg, var(--bg) 0%, var(--primary) 40%, var(--primary-mid) 100%);
}

.hero-bg {
   position: absolute;
   inset: 0;
}

.hero-bg-img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center 40%;
   opacity: 0.15;
   z-index: 0;
   pointer-events: none;
   filter: saturate(0.6);
}

.hero-bg::after {
   content: '';
   position: absolute;
   inset: 0;
   z-index: 1;
   background:
      linear-gradient(to right, var(--bg) 0%, transparent 35%, transparent 70%, var(--bg) 100%),
      linear-gradient(to top, var(--bg) 0%, transparent 40%);
   pointer-events: none;
}

.hero-bg .orb {
   position: absolute;
   border-radius: 50%;
   filter: blur(80px);
   animation: float 8s ease-in-out infinite;
   z-index: 2;
}

.orb-1 {
   width: 500px;
   height: 500px;
   background: rgba(37, 99, 235, 0.08);
   top: -100px;
   right: -100px;
}

.orb-2 {
   width: 300px;
   height: 300px;
   background: rgba(212, 168, 83, 0.06);
   bottom: -50px;
   left: 10%;
   animation-delay: 2s !important;
}

.orb-3 {
   width: 200px;
   height: 200px;
   background: rgba(37, 99, 235, 0.05);
   top: 40%;
   right: 30%;
   animation-delay: 4s !important;
}

.hero-lines {
   position: absolute;
   inset: 0;
   overflow: hidden;
   opacity: 0.04;
}

.hero-lines .line {
   position: absolute;
   width: 1px;
   height: 100%;
   background: linear-gradient(transparent, var(--accent), transparent);
}

.hero-content {
   position: relative;
   z-index: 2;
   max-width: 620px;
   animation: fadeUp 1s ease-out;
}

.hero-badge {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   background: var(--accent-glow);
   border: 1px solid rgba(212, 168, 83, 0.25);
   padding: 8px 20px;
   border-radius: 30px;
   font-size: 0.78rem;
   color: var(--accent-light);
   margin-bottom: 28px;
   backdrop-filter: blur(10px);
   animation: borderGlow 3s ease-in-out infinite;
}

.hero h1 em {
   font-style: normal;
   background: linear-gradient(135deg, var(--accent), var(--accent-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.hero p {
   font-size: 1.05rem;
   color: var(--text-muted);
   margin-bottom: 36px;
   max-width: 480px;
   line-height: 1.8;
}

.hero-btns {
   display: flex;
   gap: 16px;
   flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.trust-bar {
   background: linear-gradient(180deg, var(--surface), var(--bg));
   border-top: 1px solid var(--glass-border);
   border-bottom: 1px solid var(--glass-border);
   padding: 24px 0;
}

.trust-items {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 20px;
}

.trust-item {
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 0.85rem;
   color: var(--text-muted);
   cursor: default;
   transition: all 0.5s ease;
   flex: 1 1 auto;
   justify-content: center;
   min-width: 140px;
}

.trust-item:hover {
   color: var(--accent-light);
   transform: translateY(-2px);
}

.trust-icon {
   width: 44px;
   height: 44px;
   border-radius: 12px;
   background: linear-gradient(135deg, var(--blue-glow), var(--accent-glow));
   border: 1px solid var(--glass-border-accent);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.2rem;
   flex-shrink: 0;
   transition: all 0.5s ease;
}

.trust-item:hover .trust-icon {
   border-color: var(--accent);
   box-shadow: 0 0 20px var(--accent-glow);
   transform: scale(1.1) rotate(5deg);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section {
   padding: 90px 0;
   position: relative;
   z-index: 1;
}

.section-alt {
   background: linear-gradient(180deg, var(--surface), var(--bg));
}

.section-header {
   text-align: center;
   margin-bottom: 56px;
}

.section-header h2 {
   margin-bottom: 12px;
   letter-spacing: 0.5px;
}

.section-header p {
   color: var(--text-muted);
   font-size: 0.95rem;
   max-width: 480px;
   margin: 0 auto;
}

.gold-line {
   width: 60px;
   height: 2px;
   background: linear-gradient(90deg, transparent, var(--accent), transparent);
   margin: 16px auto 0;
}

/* ═══════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════ */
.products-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px;
}

.product-card {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   border: 1px solid var(--glass-border);
   overflow: hidden;
   transition: all 0.5s var(--ease-bounce);
   position: relative;
   backdrop-filter: blur(10px);
}

.product-card:hover {
   transform: translateY(-8px) scale(1.02);
   box-shadow: var(--shadow-hover);
   border-color: rgba(212, 168, 83, 0.3);
}

.product-badge {
   position: absolute;
   top: 14px;
   left: 14px;
   padding: 5px 14px;
   border-radius: 20px;
   font-size: 0.72rem;
   font-weight: 600;
   z-index: 2;
   backdrop-filter: blur(10px);
   color: white;
}

.product-badge.hot {
   background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(234, 88, 12, 0.9));
}

.product-badge.new {
   background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.9));
}

.product-badge.sale {
   background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
}

.product-badge.best-seller {
   background: linear-gradient(135deg, var(--accent), var(--accent-dark));
   color: var(--primary);
}

.product-badge.premium {
   background: linear-gradient(135deg, #D4A853, #B8954F);
}

.product-img {
   height: 230px;
   background: linear-gradient(135deg, var(--primary-light), var(--primary-mid));
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 4rem;
   position: relative;
   overflow: hidden;
   transition: all 0.5s ease;
}

.product-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.6s var(--ease), opacity 0.4s ease;
   opacity: 0;
}

.product-img img[src] {
   opacity: 1;
}

.product-card:hover .product-img img {
   transform: scale(1.08);
}

.product-card:hover .product-img {
   background: linear-gradient(135deg, var(--primary-mid), #1e3a6e);
}

.product-img::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 80px;
   background: linear-gradient(transparent, var(--bg-card));
   pointer-events: none;
   z-index: 1;
}

.product-img-fallback {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 4rem;
   background: linear-gradient(135deg, var(--primary-light), var(--primary-mid));
}

.product-info {
   padding: 18px 22px 22px;
}

.product-brand {
   font-size: 0.7rem;
   color: var(--accent);
   text-transform: uppercase;
   letter-spacing: 2px;
   font-weight: 600;
   margin-bottom: 8px;
}

.product-name {
   font-size: 0.95rem;
   font-weight: 600;
   color: var(--text-heading);
   margin-bottom: 12px;
   line-height: 1.4;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.product-name a {
   color: inherit;
}

.product-name a:hover {
   color: var(--accent);
}

.product-price {
   display: flex;
   align-items: baseline;
   gap: 10px;
   margin-bottom: 16px;
}

.price-sale {
   font-size: 1.2rem;
   font-weight: 700;
   color: var(--accent);
}

.price-original {
   font-size: 0.8rem;
   color: var(--text-muted);
   text-decoration: line-through;
}

.price-discount {
   font-size: 0.72rem;
   color: var(--danger);
   font-weight: 600;
}

.product-card .btn {
   width: 100%;
   justify-content: center;
   padding: 11px;
   font-size: 0.82rem;
   border-radius: 12px;
}

/* ═══════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════ */
.categories-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
}

.category-card {
   border-radius: var(--radius-lg);
   overflow: hidden;
   position: relative;
   min-height: 300px;
   display: flex;
   align-items: flex-end;
   cursor: pointer;
   transition: all 0.6s var(--ease-bounce);
   border: 1px solid var(--glass-border);
}

.category-card::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
   transition: all 0.6s ease;
}

.category-card:hover {
   transform: translateY(-6px) scale(1.02);
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
   border-color: rgba(212, 168, 83, 0.25);
}

.category-card:hover::before {
   background: linear-gradient(135deg, #1a3560, #1e3a6e);
}

.category-icon {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -60%);
   font-size: 5rem;
   opacity: 0.12;
   transition: all 0.6s ease;
}

.category-card:hover .category-icon {
   opacity: 0.2;
   transform: translate(-50%, -65%) scale(1.1);
}

.category-content {
   position: relative;
   z-index: 2;
   padding: 28px;
   width: 100%;
   background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.category-content h3 {
   margin-bottom: 4px;
   letter-spacing: 0.5px;
}

.category-content p {
   color: var(--text-muted);
   font-size: 0.88rem;
}

.category-link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: var(--accent);
   font-weight: 600;
   font-size: 0.88rem;
   margin-top: 10px;
   transition: all 0.4s ease;
}

.category-link:hover {
   gap: 12px;
   color: var(--accent-light);
}

/* ═══════════════════════════════════════
   WHY US / FEATURES GRID
   ═══════════════════════════════════════ */
.why-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px;
}

.why-card {
   text-align: center;
   padding: 36px 22px;
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   border: 1px solid var(--glass-border);
   transition: all 0.5s var(--ease-bounce);
   backdrop-filter: blur(10px);
}

.why-card:hover {
   transform: translateY(-6px) scale(1.03);
   border-color: rgba(212, 168, 83, 0.3);
   box-shadow: var(--shadow-hover);
}

.why-icon {
   width: 68px;
   height: 68px;
   margin: 0 auto 18px;
   border-radius: 18px;
   background: linear-gradient(135deg, var(--blue-glow), var(--accent-glow));
   border: 1px solid var(--glass-border-accent);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.8rem;
   transition: all 0.5s ease;
}

.why-card:hover .why-icon {
   transform: scale(1.15) rotate(8deg);
   border-color: var(--accent);
   box-shadow: 0 0 25px var(--accent-glow);
}

.why-card h4 {
   margin-bottom: 10px;
}

.why-card p {
   font-size: 0.82rem;
   color: var(--text-muted);
   line-height: 1.6;
}

/* ═══════════════════════════════════════
   BLOG FILTERS
   ═══════════════════════════════════════ */
.blog-filters {
   display: flex;
   gap: 10px;
   justify-content: center;
   flex-wrap: wrap;
   margin-bottom: 32px;
}

.filter-pill {
   padding: 8px 20px;
   border-radius: 100px;
   border: 1px solid var(--glass-border);
   background: var(--bg-card);
   color: var(--text-muted);
   font-size: 0.82rem;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.35s var(--ease);
   white-space: nowrap;
   backdrop-filter: blur(8px);
}

.filter-pill:hover {
   border-color: var(--accent);
   color: var(--text-heading);
   transform: translateY(-2px);
   box-shadow: 0 4px 15px var(--accent-glow);
}

.filter-pill.active {
   background: linear-gradient(135deg, var(--accent), var(--accent-dark, #9a7a3a));
   color: var(--primary, #0a1628);
   border-color: var(--accent);
   font-weight: 600;
   box-shadow: 0 4px 20px var(--accent-glow);
}

.filter-pill .filter-count {
   opacity: 0.7;
   font-size: 0.75rem;
   margin-left: 2px;
}

.filter-pill.active .filter-count {
   opacity: 0.85;
}

/* ═══════════════════════════════════════
   BLOG CARDS
   ═══════════════════════════════════════ */
.blog-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
}

.blog-card {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   border: 1px solid var(--glass-border);
   overflow: hidden;
   transition: all 0.4s var(--ease-bounce);
   backdrop-filter: blur(10px);
   opacity: 1;
   transform: scale(1) translateY(0);
}

.blog-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
   border-color: var(--glass-border-accent);
}

.blog-card.filter-hidden {
   opacity: 0;
   transform: scale(0.92) translateY(10px);
   pointer-events: none;
   position: absolute;
   visibility: hidden;
}

.blog-thumb {
   height: 190px;
   background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 3.5rem;
   transition: all 0.5s ease;
   overflow: hidden;
}

.blog-card:hover .blog-thumb {
   background: linear-gradient(135deg, #1a3560, #1e3a6e);
}

.blog-body {
   padding: 22px;
}

.blog-tag {
   display: inline-block;
   background: var(--blue-glow);
   border: 1px solid var(--glass-border-accent);
   color: var(--blue-light);
   padding: 4px 12px;
   border-radius: 20px;
   font-size: 0.7rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 12px;
}

.blog-body h3 {
   font-size: 1rem;
   font-weight: 600;
   color: var(--text-heading);
   line-height: 1.5;
   margin-bottom: 8px;
   font-family: var(--font-body);
}

.blog-body p {
   font-size: 0.82rem;
   color: var(--text-muted);
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

/* ═══════════════════════════════════════
   FORMS
   ═══════════════════════════════════════ */
.form-group {
   margin-bottom: 20px;
}

.form-label {
   display: block;
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--text-heading);
   margin-bottom: 8px;
}

.form-label .required {
   color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
   width: 100%;
   padding: 14px 18px;
   border-radius: var(--radius);
   border: 1px solid var(--glass-border);
   background: var(--surface);
   color: var(--text-heading);
   font-size: 0.9rem;
   transition: all 0.3s ease;
   outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
   border-color: var(--accent);
   box-shadow: 0 0 15px var(--accent-glow);
}

.form-input::placeholder {
   color: var(--text-muted);
}

.form-textarea {
   resize: vertical;
   min-height: 100px;
}

.form-error {
   font-size: 0.78rem;
   color: var(--danger);
   margin-top: 6px;
   display: none;
}

.form-group.error .form-input {
   border-color: var(--danger);
}

.form-group.error .form-error {
   display: block;
}

.form-radio,
.form-checkbox {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 14px 18px;
   border-radius: var(--radius);
   border: 1px solid var(--glass-border);
   background: var(--surface);
   cursor: pointer;
   transition: all 0.3s ease;
}

.form-radio:hover,
.form-checkbox:hover {
   border-color: var(--accent);
}

.form-radio.selected,
.form-checkbox.selected {
   border-color: var(--accent);
   background: var(--accent-glow);
}

/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */
.breadcrumb {
   padding: 16px 0;
   font-size: 0.82rem;
   color: var(--text-muted);
}

.breadcrumb a {
   color: var(--text-muted);
}

.breadcrumb a:hover {
   color: var(--accent);
}

.breadcrumb .sep {
   margin: 0 8px;
   opacity: 0.5;
}

/* ═══════════════════════════════════════
   TABS
   ═══════════════════════════════════════ */
.tabs {
   display: flex;
   gap: 4px;
   border-bottom: 1px solid var(--glass-border);
   margin-bottom: 24px;
}

.tab-btn {
   padding: 12px 24px;
   font-size: 0.9rem;
   font-weight: 500;
   color: var(--text-muted);
   background: none;
   border: none;
   border-bottom: 2px solid transparent;
   cursor: pointer;
   transition: all 0.3s ease;
}

.tab-btn:hover {
   color: var(--text-heading);
}

.tab-btn.active {
   color: var(--accent);
   border-bottom-color: var(--accent);
}

.tab-content {
   display: none;
   animation: fadeIn 0.3s ease;
}

.tab-content.active {
   display: block;
}

/* ═══════════════════════════════════════
   TOAST / NOTIFICATION
   ═══════════════════════════════════════ */
.toast-container {
   position: fixed;
   top: 90px;
   right: 24px;
   z-index: 1000;
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.toast {
   padding: 14px 24px;
   border-radius: var(--radius);
   background: var(--surface-light);
   border: 1px solid var(--glass-border);
   color: var(--text-heading);
   font-size: 0.85rem;
   display: flex;
   align-items: center;
   gap: 10px;
   animation: slideRight 0.4s var(--ease);
   box-shadow: var(--shadow);
   max-width: 360px;
}

.toast.success {
   border-color: var(--success);
}

.toast.error {
   border-color: var(--danger);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
   background: var(--primary);
   border-top: 1px solid var(--glass-border);
   padding: 70px 0 30px;
   position: relative;
   z-index: 1;
}

.footer-grid {
   display: grid;
   grid-template-columns: 1.5fr 1fr 1fr 1fr;
   gap: 40px;
   margin-bottom: 50px;
}

.footer-brand .logo {
   font-size: 1.5rem;
   margin-bottom: 14px;
}

.footer-brand p {
   font-size: 0.82rem;
   color: var(--text-muted);
   margin-bottom: 18px;
   line-height: 1.7;
}

.footer-social {
   display: flex;
   gap: 10px;
}

.footer-social a {
   width: 40px;
   height: 40px;
   border-radius: 12px;
   background: var(--surface);
   border: 1px solid var(--glass-border);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1rem;
   transition: all 0.4s ease;
}

.footer-social a:hover {
   background: var(--accent);
   color: var(--primary);
   transform: translateY(-3px) scale(1.1);
   box-shadow: 0 8px 20px var(--accent-glow);
}

footer h4 {
   font-size: 0.9rem;
   font-weight: 600;
   color: var(--text-heading);
   margin-bottom: 18px;
   letter-spacing: 0.5px;
   font-family: var(--font-body);
}

footer li {
   margin-bottom: 12px;
}

footer li a {
   font-size: 0.82rem;
   color: var(--text-muted);
}

footer li a:hover {
   color: var(--accent);
   padding-left: 4px;
}

.footer-bottom {
   border-top: 1px solid var(--glass-border);
   padding-top: 24px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 0.78rem;
   color: var(--text-muted);
   flex-wrap: wrap;
   gap: 16px;
}

.bct-badge {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 7px 16px;
   background: var(--accent-glow);
   border: 1px solid rgba(212, 168, 83, 0.25);
   border-radius: 10px;
   font-size: 0.72rem;
   color: var(--accent);
   transition: all 0.4s ease;
}

.bct-badge:hover {
   box-shadow: 0 0 20px var(--accent-glow);
}

/* ═══════════════════════════════════════
   ZALO FLOAT
   ═══════════════════════════════════════ */
.zalo-float {
   position: fixed;
   bottom: 28px;
   right: 28px;
   z-index: 999;
}

.zalo-btn {
   width: 62px;
   height: 62px;
   border-radius: 50%;
   background: linear-gradient(135deg, #0068ff, #0050cc);
   color: white;
   border: none;
   font-size: 1.6rem;
   display: flex;
   align-items: center;
   justify-content: center;
   animation: glow 2.5s ease-in-out infinite;
   transition: all 0.4s ease;
}

.zalo-btn:hover {
   transform: scale(1.15);
}

.zalo-label {
   position: absolute;
   right: 74px;
   top: 50%;
   transform: translateY(-50%);
   background: white;
   color: #333;
   padding: 9px 18px;
   border-radius: 10px;
   font-size: 0.78rem;
   font-weight: 500;
   white-space: nowrap;
   box-shadow: var(--shadow);
   opacity: 0;
   transition: all 0.4s ease;
   pointer-events: none;
}

.zalo-float:hover .zalo-label {
   opacity: 1;
   right: 78px;
}

.zalo-label::after {
   content: '';
   position: absolute;
   right: -6px;
   top: 50%;
   transform: translateY(-50%);
   border: 6px solid transparent;
   border-left-color: white;
}

.zalo-ring {
   position: absolute;
   inset: -4px;
   border-radius: 50%;
   border: 2px solid rgba(0, 104, 255, 0.3);
   animation: glow 2.5s ease-in-out infinite;
   pointer-events: none;
}

/* ═══════════════════════════════════════
   SCROLL-TO-TOP BUTTON
   ═══════════════════════════════════════ */
.scroll-to-top {
   position: fixed;
   bottom: 100px;
   right: 28px;
   z-index: 998;
   width: 48px;
   height: 48px;
   border-radius: 50%;
   background: rgba(13, 25, 50, 0.85);
   backdrop-filter: blur(15px);
   -webkit-backdrop-filter: blur(15px);
   border: 1px solid var(--glass-border-accent);
   color: var(--accent);
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   opacity: 0;
   transform: translateY(20px) scale(0.8);
   transition: all 0.4s var(--ease);
   pointer-events: none;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
   opacity: 1;
   transform: translateY(0) scale(1);
   pointer-events: auto;
}

.scroll-to-top:hover {
   background: var(--accent);
   color: var(--primary);
   transform: translateY(-3px) scale(1.1);
   box-shadow: 0 8px 30px var(--accent-glow);
}

/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════ */
.scroll-progress {
   position: fixed;
   top: 0;
   left: 0;
   height: 2px;
   width: 0%;
   background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
   background-size: 200%;
   animation: shimmer 3s linear infinite;
   z-index: 9999;
   transition: width 0.1s linear;
   pointer-events: none;
}

/* ═══════════════════════════════════════
   CART BOUNCE ANIMATION
   ═══════════════════════════════════════ */
.cart-bounce {
   animation: cartBounce 0.5s var(--ease-bounce);
}

@keyframes cartBounce {
   0% { transform: scale(1); }
   30% { transform: scale(1.35); }
   50% { transform: scale(0.9); }
   70% { transform: scale(1.15); }
   100% { transform: scale(1); }
}

} /* end @layer components */

@layer utilities {
/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.grid-2 {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 24px;
}

.grid-3 {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
}

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

.flex-center {
   display: flex;
   align-items: center;
   justify-content: center;
}

.flex-between {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.gap-sm {
   gap: 8px;
}

.gap-md {
   gap: 16px;
}

.gap-lg {
   gap: 24px;
}

.mt-1 {
   margin-top: 8px;
}

.mt-2 {
   margin-top: 16px;
}

.mt-3 {
   margin-top: 24px;
}

.mt-4 {
   margin-top: 32px;
}

.mb-1 {
   margin-bottom: 8px;
}

.mb-2 {
   margin-bottom: 16px;
}

.mb-3 {
   margin-bottom: 24px;
}

.mb-4 {
   margin-bottom: 32px;
}

.text-center {
   text-align: center;
}

.hidden {
   display: none !important;
}

} /* end @layer utilities */

@layer components {
/* ═══════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════ */
.search-wrap {
   position: relative;
   display: flex;
   align-items: center;
}

.search-toggle {
   background: none;
   border: 1px solid var(--glass-border);
   color: var(--text-muted);
   font-size: 1.1rem;
   padding: 10px;
   border-radius: 12px;
   cursor: pointer;
   transition: all 0.4s ease;
   display: flex;
   align-items: center;
   justify-content: center;
}

.search-toggle:hover {
   background: var(--accent-glow);
   border-color: var(--accent);
   color: var(--accent);
   transform: scale(1.08);
}

.search-input {
   width: 0;
   padding: 0;
   border: none;
   background: transparent;
   color: var(--text-heading);
   font-size: 0.9rem;
   transition: all 0.4s var(--ease);
   outline: none;
   opacity: 0;
}

.search-wrap.expanded .search-input {
   width: 220px;
   padding: 10px 14px;
   border: 1px solid var(--glass-border);
   background: var(--surface);
   border-radius: 12px;
   opacity: 1;
   margin-left: 8px;
}

.search-wrap.expanded .search-input:focus {
   border-color: var(--accent);
   box-shadow: 0 0 15px var(--accent-glow);
}

.search-results {
   position: absolute;
   top: calc(100% + 8px);
   right: 0;
   width: 380px;
   max-height: 400px;
   overflow-y: auto;
   background: rgba(15, 25, 50, 0.98);
   backdrop-filter: blur(25px);
   -webkit-backdrop-filter: blur(25px);
   border: 1px solid var(--glass-border);
   border-radius: var(--radius-lg);
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
   z-index: 100;
   display: none;
}

.search-results.visible {
   display: block;
   animation: fadeIn 0.2s ease;
}

.search-item {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 14px 18px;
   border-bottom: 1px solid var(--glass-border);
   transition: all 0.3s ease;
}

.search-item:last-child {
   border-bottom: none;
}

.search-item:hover {
   background: var(--accent-glow);
}

.search-item-icon {
   font-size: 1.8rem;
   flex-shrink: 0;
}

.search-item-info {
   display: flex;
   flex-direction: column;
   gap: 4px;
   min-width: 0;
}

.search-item-name {
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--text-heading);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.search-item-price {
   font-size: 0.78rem;
   color: var(--accent);
}

.search-item-price s {
   color: var(--text-muted);
   margin: 0 4px;
}

.search-item-price em {
   color: var(--danger);
   font-style: normal;
   font-weight: 600;
}

.search-empty {
   padding: 28px;
   text-align: center;
   color: var(--text-muted);
   font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   WISHLIST
   ═══════════════════════════════════════ */
.wishlist-btn {
   position: absolute;
   top: 12px;
   right: 12px;
   z-index: 5;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: rgba(10, 22, 40, 0.7);
   backdrop-filter: blur(10px);
   border: 1px solid var(--glass-border);
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.3s ease;
   font-size: 1rem;
   padding: 0;
}

.wishlist-btn:hover {
   transform: scale(1.15);
   border-color: rgba(239, 68, 68, 0.5);
   background: rgba(239, 68, 68, 0.1);
}

.wishlist-btn.active {
   animation: heartPop 0.4s ease;
}

@keyframes heartPop {
   0% {
      transform: scale(1);
   }

   50% {
      transform: scale(1.3);
   }

   100% {
      transform: scale(1);
   }
}

.wishlist-count {
   position: absolute;
   top: -2px;
   right: -2px;
   background: #ef4444;
   color: white;
   font-size: 0.6rem;
   font-weight: 700;
   width: 18px;
   height: 18px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
}

.wishlist-dropdown {
   position: absolute;
   top: calc(100% + 12px);
   right: 0;
   width: 340px;
   max-height: 360px;
   overflow-y: auto;
   background: rgba(15, 25, 50, 0.98);
   backdrop-filter: blur(25px);
   -webkit-backdrop-filter: blur(25px);
   border: 1px solid var(--glass-border);
   border-radius: var(--radius-lg);
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
   z-index: 100;
   display: none;
}

.wishlist-dropdown.visible {
   display: block;
   animation: fadeIn 0.2s ease;
}

.wishlist-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 12px 16px;
   border-bottom: 1px solid var(--glass-border);
}

.wishlist-item:last-child {
   border-bottom: none;
}

.wishlist-item-info {
   display: flex;
   align-items: center;
   gap: 12px;
   flex: 1;
   min-width: 0;
}

.wishlist-item-icon {
   font-size: 1.5rem;
   flex-shrink: 0;
}

.wishlist-item-name {
   font-size: 0.82rem;
   font-weight: 500;
   color: var(--text-heading);
   display: block;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.wishlist-item-price {
   font-size: 0.75rem;
   color: var(--accent);
   display: block;
   margin-top: 2px;
}

.wishlist-item-remove {
   background: none;
   border: none;
   color: var(--text-muted);
   cursor: pointer;
   font-size: 1rem;
   padding: 4px 8px;
   border-radius: 6px;
   transition: all 0.3s ease;
   flex-shrink: 0;
}

.wishlist-item-remove:hover {
   color: #ef4444;
   background: rgba(239, 68, 68, 0.1);
}

.wishlist-empty {
   padding: 28px;
   text-align: center;
   color: var(--text-muted);
   font-size: 0.85rem;
}

.wishlist-header-btn:hover {
   background: rgba(239, 68, 68, 0.1) !important;
   border-color: rgba(239, 68, 68, 0.5) !important;
}

/* ═══════════════════════════════════════
   PRODUCT RATING (Stars)
   ═══════════════════════════════════════ */
.product-rating {
   display: flex;
   align-items: center;
   gap: 6px;
   margin-bottom: 6px;
}

.stars-mini {
   color: #f59e0b;
   font-size: 0.8rem;
   letter-spacing: 1px;
}

.rating-count {
   font-size: 0.72rem;
   color: var(--text-muted);
}

/* ═══════════════════════════════════════
   REVIEWS TAB
   ═══════════════════════════════════════ */
.reviews-summary {
   display: flex;
   align-items: center;
   gap: 24px;
   padding: 24px;
   background: var(--surface);
   border-radius: var(--radius-lg);
   border: 1px solid var(--glass-border);
   margin-bottom: 24px;
}

.reviews-avg {
   text-align: center;
   min-width: 100px;
}

.reviews-avg .big-number {
   font-size: 2.8rem;
   font-weight: 700;
   color: var(--accent);
   line-height: 1;
}

.reviews-avg .stars-display {
   color: #f59e0b;
   font-size: 1.1rem;
   letter-spacing: 2px;
   margin: 6px 0;
}

.reviews-avg .review-total {
   font-size: 0.78rem;
   color: var(--text-muted);
}

.reviews-list {
   display: flex;
   flex-direction: column;
   gap: 16px;
}

.review-card {
   padding: 20px;
   background: var(--surface);
   border-radius: var(--radius);
   border: 1px solid var(--glass-border);
   transition: all 0.3s ease;
}

.review-card:hover {
   border-color: var(--glass-border-accent);
}

.review-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 10px;
}

.review-author {
   display: flex;
   align-items: center;
   gap: 10px;
}

.review-avatar {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--blue-glow), var(--accent-glow));
   border: 1px solid var(--glass-border-accent);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.85rem;
   font-weight: 600;
   color: var(--accent);
}

.review-name {
   font-size: 0.88rem;
   font-weight: 600;
   color: var(--text-heading);
}

.review-verified {
   font-size: 0.7rem;
   color: var(--success);
   display: flex;
   align-items: center;
   gap: 4px;
}

.review-date {
   font-size: 0.75rem;
   color: var(--text-muted);
}

.review-stars {
   color: #f59e0b;
   font-size: 0.9rem;
   letter-spacing: 1px;
   margin-bottom: 8px;
}

.review-content {
   font-size: 0.85rem;
   color: var(--text);
   line-height: 1.6;
}

.review-cta {
   text-align: center;
   margin-top: 24px;
   padding: 20px;
   background: var(--surface);
   border-radius: var(--radius);
   border: 1px dashed var(--glass-border);
}

.review-cta p {
   font-size: 0.85rem;
   color: var(--text-muted);
   margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   FLASH SALE SECTION
   ═══════════════════════════════════════ */
.flash-sale-section {
   padding: 50px 0;
   position: relative;
   overflow: hidden;
}

.flash-sale-section::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, transparent 50%, rgba(245, 158, 11, 0.05) 100%);
   pointer-events: none;
}

.flash-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 32px;
   flex-wrap: wrap;
   gap: 16px;
}

.flash-title {
   display: flex;
   align-items: center;
   gap: 12px;
}

.flash-title h2 {
   font-size: 2rem;
}

.flash-icon {
   font-size: 2rem;
   animation: flashPulse 1.5s ease-in-out infinite;
}

@keyframes flashPulse {

   0%,
   100% {
      transform: scale(1);
      opacity: 1;
   }

   50% {
      transform: scale(1.2);
      opacity: 0.8;
   }
}

.countdown {
   display: flex;
   align-items: center;
   gap: 6px;
}

.countdown-label {
   font-size: 0.85rem;
   color: var(--text-muted);
   margin-right: 6px;
}

.countdown-unit {
   background: linear-gradient(135deg, #dc2626, #ef4444);
   color: white;
   padding: 8px 12px;
   border-radius: 10px;
   font-size: 1.2rem;
   font-weight: 700;
   min-width: 48px;
   text-align: center;
   box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.countdown-sep {
   font-size: 1.2rem;
   font-weight: 700;
   color: var(--text-muted);
}

.flash-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
}

.flash-ended {
   text-align: center;
   padding: 40px;
   color: var(--text-muted);
   font-size: 1rem;
}

.product-badge.flash {
   background: linear-gradient(135deg, #dc2626, #ef4444);
   animation: flashBadge 2s ease-in-out infinite;
}

@keyframes flashBadge {

   0%,
   100% {
      box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
   }

   50% {
      box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
   }
}

.flash-stock {
   font-size: 0.72rem;
   color: var(--danger);
   margin-top: 6px;
   font-weight: 600;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {

   .products-grid,
   .why-grid,
   .grid-4 {
      grid-template-columns: repeat(2, 1fr);
   }

   .footer-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .flash-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {
   h1 {
      font-size: 2.2rem;
   }

   h2 {
      font-size: 1.8rem;
   }

   .hero {
      min-height: 450px;
   }

   .hero h1 {
      font-size: 2.2rem;
   }

   .categories-grid,
   .blog-grid,
   .grid-3 {
      grid-template-columns: 1fr;
   }

   nav ul {
      display: none;
   }

   .menu-toggle {
      display: block;
   }

} /* end @layer components */

@layer components {
   /* === MOBILE HEADER CLEANUP === */
   /* Hide non-essential elements on mobile — accessible via mobile menu */
   .search-wrap,
   .wishlist-header-btn,
   .auth-header-area,
   .auth-header-btn,
   .btn-header-register,
   .btn-header-login {
      display: none !important;
   }

   /* Compact logo for mobile */
   .logo {
      font-size: 1.35rem;
   }

   .logo-sub {
      font-size: 0.5rem;
      letter-spacing: 2px;
   }

   /* Cleaner header actions — only theme, cart, menu */
   .header-actions {
      gap: 6px;
   }

   .header-actions button:not(.menu-toggle):not(.menu-close),
   .header-actions > a {
      padding: 8px;
      font-size: 1rem;
   }

   /* Ensure minimum 44px touch targets */
   .menu-toggle {
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
   }

   .theme-toggle {
      min-width: 44px;
      min-height: 44px;
   }

   .top-bar {
      display: none;
   }

   .products-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
   }

   .product-img {
      height: 170px;
   }

   .section {
      padding: 60px 0;
   }

   .trust-items {
      gap: 14px;
   }

   .trust-item {
      font-size: 0.8rem;
      min-width: 120px;
   }

   .footer-grid {
      grid-template-columns: 1fr;
      gap: 28px;
   }

   .why-grid {
      grid-template-columns: 1fr 1fr;
      gap: 14px;
   }

   .container {
      padding: 0 16px;
   }

   .hero-btns {
      flex-direction: column;
   }

   .hero-btns .btn {
      width: 100%;
      justify-content: center;
   }

   .btn {
      padding: 13px 24px;
      font-size: 0.85rem;
   }

   .search-results,
   .wishlist-dropdown {
      width: calc(100vw - 32px);
      right: -60px;
   }

   .flash-grid {
      grid-template-columns: 1fr;
   }

   .flash-header {
      flex-direction: column;
      align-items: flex-start;
   }

   .reviews-summary {
      flex-direction: column;
      text-align: center;
   }

   /* === MOBILE MENU ENHANCEMENTS === */
   .mobile-menu-search {
      margin-bottom: 20px;
   }

   .mobile-menu-search input {
      width: 100%;
      padding: 14px 18px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      color: var(--text-heading);
      font-size: 0.95rem;
      font-family: var(--font-body);
      outline: none;
      transition: all 0.3s ease;
   }

   .mobile-menu-search input::placeholder {
      color: var(--text-muted);
   }

   .mobile-menu-search input:focus {
      border-color: var(--accent);
      background: rgba(255, 255, 255, 0.1);
   }

   .mobile-menu-auth {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
   }

   .mobile-menu-auth a {
      flex: 1;
      text-align: center;
      padding: 12px 0;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 600;
      transition: all 0.3s ease;
   }

   .mobile-menu-auth .btn-mobile-login {
      background: linear-gradient(135deg, var(--accent), var(--accent-light));
      color: var(--primary);
   }

   .mobile-menu-auth .btn-mobile-register {
      border: 1px solid rgba(212, 168, 83, 0.4);
      color: var(--accent);
   }

}

/* ═══════════════════════════════════════
   MOBILE MENU OVERLAY (body-level)
   ═══════════════════════════════════════ */
.mobile-menu-overlay {
   position: fixed;
   inset: 0;
   z-index: 9999;
   background: rgba(6, 13, 26, 0.98);
   backdrop-filter: blur(30px);
   -webkit-backdrop-filter: blur(30px);
   display: flex;
   flex-direction: column;
   padding: 80px 32px 32px;
   opacity: 0;
   transform: translateX(100%);
   transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-overlay.visible {
   opacity: 1;
   transform: translateX(0);
}

.mobile-menu-overlay.closing {
   opacity: 0;
   transform: translateX(100%);
}

.mobile-menu-close {
   position: absolute;
   top: 20px;
   right: 24px;
   width: 44px;
   height: 44px;
   border-radius: 12px;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid var(--glass-border);
   color: var(--text-heading);
   font-size: 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.3s ease;
}

.mobile-menu-close:hover {
   background: rgba(239, 68, 68, 0.15);
   border-color: #ef4444;
   color: #ef4444;
}

.mobile-menu-overlay ul {
   list-style: none;
   padding: 0;
   margin: 0;
   flex: 1;
}

.mobile-menu-overlay li {
   border-bottom: 1px solid var(--glass-border);
}

.mobile-menu-overlay li a {
   display: block;
   padding: 18px 0;
   font-size: 1.1rem;
   color: var(--text-heading);
   font-weight: 500;
   transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu-overlay li a:hover,
.mobile-menu-overlay li a.active {
   color: var(--accent);
   padding-left: 12px;
}

.mobile-menu-footer {
   text-align: center;
   padding-top: 24px;
   border-top: 1px solid var(--glass-border);
}

.mobile-menu-footer .btn {
   width: 100%;
   justify-content: center;
   margin-bottom: 12px;
}

.mobile-menu-footer p {
   font-size: 0.85rem;
   color: var(--text-muted);
}

@media (max-width: 480px) {
   h1 {
      font-size: 1.8rem;
   }

   h2 {
      font-size: 1.5rem;
   }

   h3 {
      font-size: 1.2rem;
   }

   .hero {
      min-height: 380px;
   }

   .hero h1 {
      font-size: 1.8rem;
      line-height: 1.3;
   }

   .hero p {
      font-size: 0.9rem;
      line-height: 1.7;
      margin-bottom: 24px;
   }

   .hero-badge {
      font-size: 0.72rem;
      padding: 6px 14px;
      margin-bottom: 18px;
   }

   .container {
      padding: 0 14px;
   }

   .section {
      padding: 44px 0;
   }

   .section-header {
      margin-bottom: 36px;
   }

   .section-header p {
      font-size: 0.85rem;
   }

   /* Trust bar — 2 columns on small mobile */
   .trust-items {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
   }

   .trust-item {
      font-size: 0.75rem;
      gap: 8px;
      min-width: unset;
      justify-content: flex-start;
   }

   .trust-item:last-child {
      grid-column: 1 / -1;
      justify-self: center;
   }

   .trust-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
   }

   /* Products grid */
   .products-grid {
      gap: 10px;
   }

   .product-info {
      padding: 14px 16px 16px;
   }

   .product-name {
      font-size: 0.85rem;
   }

   .price-sale {
      font-size: 1rem;
   }

   /* Category cards smaller */
   .category-card {
      min-height: 200px;
   }

   /* Why cards */
   .why-grid {
      grid-template-columns: 1fr;
      gap: 12px;
   }

   .why-card {
      padding: 20px;
   }

   /* Footer */
   .footer-bottom {
      flex-direction: column;
      gap: 8px;
      text-align: center;
   }

   /* Buttons smaller */
   .btn {
      padding: 12px 20px;
      font-size: 0.82rem;
   }
}

} /* end @layer components */

@layer theme {
/* ═══════════════════════════════════════════════════════
   LIGHT MODE — Component-Level Overrides ☀️
   ═══════════════════════════════════════════════════════ */

/* — Hero — */
html[data-theme="light"] .hero {
   background: linear-gradient(170deg, #FFF9F0 0%, #FFFDF8 40%, #F0F4FF 100%);
}
html[data-theme="light"] .hero::before {
   background: none;
}
html[data-theme="light"] .hero-bg-img {
   opacity: 0.2;
   filter: saturate(0.7) brightness(1.1);
}
html[data-theme="light"] .hero-orb-1 {
   background: radial-gradient(circle, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
}
html[data-theme="light"] .hero-orb-2 {
   background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}
html[data-theme="light"] .hero p {
   color: #64748b;
}

/* — Hero Buttons — refined, not aggressive — */
html[data-theme="light"] .hero-btns .btn-primary {
   background: linear-gradient(135deg, #C49C51, #D4A853);
   color: #fff;
   box-shadow: 0 4px 16px rgba(184, 149, 79, 0.25);
   padding: 14px 36px;
}
html[data-theme="light"] .hero-btns .btn-primary:hover {
   box-shadow: 0 6px 24px rgba(184, 149, 79, 0.35);
}
html[data-theme="light"] .hero-btns .btn-zalo {
   background: linear-gradient(135deg, #0068ff, #0057d9);
   color: #fff;
   box-shadow: 0 4px 16px rgba(0, 104, 255, 0.2);
   padding: 14px 36px;
}
html[data-theme="light"] .hero-btns .btn-zalo:hover {
   box-shadow: 0 6px 24px rgba(0, 104, 255, 0.3);
}

/* — Section backgrounds — */
html[data-theme="light"] .section {
   background: var(--bg);
}
html[data-theme="light"] .section-alt {
   background: linear-gradient(180deg, #FAFAF7, #FFF9F0);
}
html[data-theme="light"] .section-header p {
   color: #64748B;
}

/* — Trust Bar — premium card-style — */
html[data-theme="light"] .trust-bar {
   background: linear-gradient(180deg, #FFFDF8, #FFF8EF);
   border-top: 1px solid rgba(212, 168, 83, 0.1);
   border-bottom: 1px solid rgba(212, 168, 83, 0.1);
   padding: 28px 0;
}
html[data-theme="light"] .trust-item {
   color: #5D534A;
   font-weight: 500;
}
html[data-theme="light"] .trust-icon {
   background: linear-gradient(135deg, #FFF3E0, #FFECD2);
   border: 1px solid rgba(212, 168, 83, 0.2);
   color: #B8954F;
   box-shadow: 0 2px 8px rgba(212, 168, 83, 0.1);
}
html[data-theme="light"] .trust-item:hover .trust-icon {
   border-color: #D4A853;
   box-shadow: 0 4px 16px rgba(212, 168, 83, 0.2);
   background: linear-gradient(135deg, #FFECD2, #FFE0B2);
}

/* — Cards & Glass — */
html[data-theme="light"] .product-card {
   background: #fff;
   border-color: rgba(0, 0, 0, 0.06);
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .product-card:hover {
   box-shadow: 0 12px 36px rgba(184, 149, 79, 0.12);
   border-color: rgba(184, 149, 79, 0.25);
}
html[data-theme="light"] .product-img {
   background: linear-gradient(135deg, #FAFAF7, #F5F0E8);
}
html[data-theme="light"] .product-card:hover .product-img {
   background: linear-gradient(135deg, #FFF8EF, #FFF3E0);
}

/* — Category cards — */
html[data-theme="light"] .category-card {
   border-color: rgba(0, 0, 0, 0.06);
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .category-card::before {
   background: linear-gradient(135deg, #FAFAF7, #F5F0E8);
}
html[data-theme="light"] .category-card:hover {
   box-shadow: 0 16px 40px rgba(184, 149, 79, 0.12);
   border-color: rgba(184, 149, 79, 0.25);
}
html[data-theme="light"] .category-card:hover::before {
   background: linear-gradient(135deg, #FFF8EF, #FFF3E0);
}
html[data-theme="light"] .category-content {
   background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
}
html[data-theme="light"] .category-content h3 {
   color: #1E293B;
}
html[data-theme="light"] .category-icon {
   color: #D4A853;
}

/* — Why cards — premium warm glass — */
html[data-theme="light"] .why-card {
   background: #fff;
   border-color: rgba(0, 0, 0, 0.05);
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .why-card:hover {
   box-shadow: 0 12px 32px rgba(184, 149, 79, 0.1);
   border-color: rgba(184, 149, 79, 0.2);
   background: #FFFDF8;
}
html[data-theme="light"] .why-icon {
   background: linear-gradient(135deg, #FFF3E0, #FFECD2);
   border-color: rgba(212, 168, 83, 0.2);
   color: #B8954F;
   box-shadow: 0 2px 8px rgba(212, 168, 83, 0.08);
}
html[data-theme="light"] .why-card:hover .why-icon {
   background: linear-gradient(135deg, #FFECD2, #FFE0B2);
   border-color: #D4A853;
   box-shadow: 0 4px 20px rgba(212, 168, 83, 0.2);
}
html[data-theme="light"] .why-card h4 {
   color: #2D2418;
}
html[data-theme="light"] .why-card p {
   color: #6B5D4F;
}

/* — Buttons — */
html[data-theme="light"] .btn-primary {
   background: linear-gradient(135deg, #C49C51, #D4A853);
   color: #fff;
   border: none;
   box-shadow: 0 2px 10px rgba(184, 149, 79, 0.2);
}
html[data-theme="light"] .btn-primary:hover {
   background: linear-gradient(135deg, #B8954F, #C49C51);
   box-shadow: 0 4px 20px rgba(184, 149, 79, 0.3);
}
html[data-theme="light"] .btn-outline {
   border-color: #D4A853;
   color: #B8954F;
   background: transparent;
}
html[data-theme="light"] .btn-outline:hover {
   background: rgba(212, 168, 83, 0.06);
   border-color: #B8954F;
   color: #96783E;
}

/* — Header & Nav — */
html[data-theme="light"] header {
   background: rgba(255, 255, 255, 0.95);
   border-bottom: 1px solid rgba(0, 0, 0, 0.05);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] header.scrolled {
   background: rgba(255, 255, 255, 0.98);
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .top-bar {
   background: linear-gradient(90deg, #F8F4EC, #FFF9F0);
   color: #475569;
   border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .top-bar a {
   color: #475569;
}
html[data-theme="light"] nav a {
   color: #475569;
}
html[data-theme="light"] nav a:hover,
html[data-theme="light"] nav a.active {
   color: #B8954F;
}
html[data-theme="light"] .header-actions button:not(.menu-toggle):not(.menu-close),
html[data-theme="light"] .header-actions a {
   border-color: rgba(0, 0, 0, 0.08);
   color: #6B5D4F;
}
html[data-theme="light"] .header-actions button:not(.menu-toggle):not(.menu-close):hover,
html[data-theme="light"] .header-actions a:hover {
   background: rgba(212, 168, 83, 0.08);
   border-color: #D4A853;
   color: #B8954F;
}

/* — Text gradient — */
html[data-theme="light"] .text-gradient {
   background: linear-gradient(135deg, #B8954F, #D4A853, #C49C51);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

/* — Footer — warm, professional — */
html[data-theme="light"] footer {
   background: linear-gradient(180deg, #F8F4EC, #F3EDE2);
   border-top: 1px solid rgba(212, 168, 83, 0.12);
}
html[data-theme="light"] footer h4 {
   color: #2D2418;
}
html[data-theme="light"] footer li a {
   color: #6B5D4F;
}
html[data-theme="light"] footer li a:hover {
   color: #B8954F;
}
html[data-theme="light"] .footer-brand p {
   color: #6B5D4F;
}
html[data-theme="light"] .footer-social a {
   background: #fff;
   border-color: rgba(0, 0, 0, 0.08);
   color: #6B5D4F;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .footer-social a:hover {
   background: #0068ff;
   color: #fff;
   border-color: #0068ff;
   box-shadow: 0 4px 16px rgba(0, 104, 255, 0.25);
}
html[data-theme="light"] .footer-bottom {
   border-top-color: rgba(0, 0, 0, 0.06);
   color: #94887A;
}
html[data-theme="light"] .bct-badge {
   background: rgba(212, 168, 83, 0.06);
   border-color: rgba(212, 168, 83, 0.15);
   color: #96783E;
}

/* — Blog badges/cards — */
html[data-theme="light"] .blog-card {
   background: #fff;
   border-color: rgba(0, 0, 0, 0.06);
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .blog-card:hover {
   background: #FFFDF8;
   box-shadow: 0 12px 36px rgba(184, 149, 79, 0.1);
   border-color: rgba(184, 149, 79, 0.2);
}
html[data-theme="light"] .blog-thumb {
   background: linear-gradient(135deg, #FAFAF7, #F5F0E8);
}
html[data-theme="light"] .blog-card:hover .blog-thumb {
   background: linear-gradient(135deg, #FFF3E0, #FFECD2);
}
html[data-theme="light"] .filter-pill {
   background: #fff;
   border-color: #E0D5C5;
   color: #6B5D4F;
}
html[data-theme="light"] .filter-pill:hover {
   border-color: #B8954F;
   color: #2D2418;
}
html[data-theme="light"] .filter-pill.active {
   background: linear-gradient(135deg, #D4A853, #B8954F);
   color: #fff;
   border-color: #B8954F;
}
html[data-theme="light"] .blog-tag {
   background: rgba(184, 149, 79, 0.08);
   border-color: rgba(184, 149, 79, 0.2);
   color: #96783E;
}
html[data-theme="light"] .blog-body h3 { color: #2D2418; }
html[data-theme="light"] .blog-body p { color: #6B5D4F; }

/* — Toast — */
html[data-theme="light"] .toast {
   background: #fff;
   border-color: rgba(0, 0, 0, 0.08);
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
   color: #2D2418;
}

/* — Scroll-to-top — */
html[data-theme="light"] .scroll-to-top {
   background: rgba(255, 255, 255, 0.92);
   border-color: rgba(212, 168, 83, 0.2);
   color: #B8954F;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .scroll-to-top:hover {
   background: #D4A853;
   color: #fff;
   box-shadow: 0 6px 24px rgba(184, 149, 79, 0.3);
}

/* — Zalo Float — */
html[data-theme="light"] .zalo-label {
   background: #fff;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
   color: #475569;
}

/* — Stars hidden in light mode — */
html[data-theme="light"] .star {
   display: none;
}
html[data-theme="light"] .nebula {
   display: none;
}

/* — Gold line — */
html[data-theme="light"] .gold-line {
   background: linear-gradient(90deg, transparent, #D4A853, transparent);
   opacity: 0.35;
}

/* ═══════════════════════════════════════════════════════
   LIGHT MODE — Cloud & Sunshine Effect ☁️🌤️
   "Đệm được phơi nắng sẽ thơm tho"
   ═══════════════════════════════════════════════════════ */

html[data-theme="light"] .hero-bg::after {
   content: '';
   position: absolute;
   top: -40px;
   right: -60px;
   width: 320px;
   height: 320px;
   background: radial-gradient(circle, rgba(255, 200, 50, 0.18) 0%, rgba(255, 180, 40, 0.06) 50%, transparent 75%);
   border-radius: 50%;
   animation: sunshine-pulse 6s ease-in-out infinite;
   z-index: 0;
   pointer-events: none;
}

@keyframes sunshine-pulse {
   0%, 100% { opacity: 0.6; transform: scale(1); }
   50% { opacity: 1; transform: scale(1.12); }
}

/* Floating clouds */
html[data-theme="light"] .hero::after {
   content: '';
   position: absolute;
   top: 20%;
   left: -10%;
   width: 200px;
   height: 60px;
   background: rgba(255, 255, 255, 0.7);
   border-radius: 50px;
   box-shadow: 
      60px -25px 0 8px rgba(255, 255, 255, 0.6),
      30px -10px 0 15px rgba(255, 255, 255, 0.65),
      90px -5px 0 10px rgba(255, 255, 255, 0.5);
   animation: cloud-drift 25s linear infinite;
   z-index: 0;
   pointer-events: none;
   opacity: 0.5;
}

@keyframes cloud-drift {
   0% { transform: translateX(-100px); }
   100% { transform: translateX(calc(100vw + 200px)); }
}

/* Second cloud — smaller, different speed */
html[data-theme="light"] .hero-content::before {
   content: '';
   position: absolute;
   top: 8%;
   right: -5%;
   width: 140px;
   height: 40px;
   background: rgba(255, 255, 255, 0.5);
   border-radius: 40px;
   box-shadow: 
      40px -15px 0 6px rgba(255, 255, 255, 0.45),
      20px -8px 0 10px rgba(255, 255, 255, 0.5);
   animation: cloud-drift-2 35s linear infinite;
   z-index: 0;
   pointer-events: none;
   opacity: 0.35;
}

@keyframes cloud-drift-2 {
   0% { transform: translateX(calc(100vw + 100px)); }
   100% { transform: translateX(-300px); }
}

/* Warm golden tint overlay on hero */
html[data-theme="light"] .hero-content {
   position: relative;
}

} /* end @layer theme */

@layer components {
/* ═══════════════════════════════════════════════════════
   PRODUCT TOOLTIP — Blog Backlinks with Hover Preview
   Usage: <a href="product.html?slug=xxx" data-product-slug="xxx">Tên SP</a>
   ═══════════════════════════════════════════════════════ */

a[data-product-slug] {
   color: var(--accent);
   text-decoration: underline;
   text-decoration-color: rgba(212, 168, 83, 0.3);
   text-underline-offset: 3px;
   cursor: pointer;
   position: relative;
   transition: color 0.3s ease;
}
a[data-product-slug]:hover {
   color: var(--accent-light);
   text-decoration-color: var(--accent);
}

.product-tooltip {
   position: absolute;
   bottom: calc(100% + 12px);
   left: 50%;
   transform: translateX(-50%) translateY(8px);
   width: 240px;
   background: var(--glass);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border: 1px solid var(--glass-border-accent);
   border-radius: var(--radius);
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
   padding: 12px;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
   z-index: 1000;
   pointer-events: none;
}
a[data-product-slug]:hover .product-tooltip {
   opacity: 1;
   visibility: visible;
   transform: translateX(-50%) translateY(0);
}
.product-tooltip img {
   width: 100%;
   height: 120px;
   object-fit: cover;
   border-radius: calc(var(--radius) - 4px);
   margin-bottom: 8px;
}
.product-tooltip .tooltip-name {
   font-weight: 600;
   font-size: 0.9rem;
   color: var(--text);
   margin-bottom: 4px;
}
.product-tooltip .tooltip-price {
   color: var(--accent);
   font-weight: 700;
   font-size: 0.95rem;
}

/* === MOBILE: Disable backdrop-filter for performance === */
@media (max-width: 768px) {
   .product-card,
   .why-card,
   .blog-card,
   .cart-summary,
   .cart-item,
   .product-tooltip {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
   }
}


} /* end @layer components */

@layer pages {
/* ═══════════════════════════════════════════════════════

   PAGE-SPECIFIC STYLES (extracted from inline <style>)

   ═══════════════════════════════════════════════════════ */



/* — PRODUCT DETAIL PAGE — */


        .product-detail-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: start;
        }

        .product-gallery {
            position: sticky;
            top: 100px;
        }

        .gallery-main {
            height: 400px;
            background: linear-gradient(135deg, var(--primary-light), var(--primary-mid));
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8rem;
            border: 1px solid var(--glass-border);
            margin-bottom: 12px;
            overflow: hidden;
            cursor: crosshair;
            position: relative;
        }

        .gallery-main img {
            transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), transform-origin 0s;
            will-change: transform, transform-origin;
        }

        .gallery-main.gallery-zoomed img {
            transform: scale(2.5);
        }

        /* Zoom hint */
        .gallery-main .zoom-hint {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(6px);
            color: #fff;
            font-size: 0.72rem;
            padding: 5px 10px;
            border-radius: 20px;
            pointer-events: none;
            z-index: 2;
            opacity: 1;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .gallery-main.gallery-zoomed .zoom-hint {
            opacity: 0;
        }

        .gallery-thumbs {
            display: flex;
            gap: 10px;
        }

        .gallery-thumb {
            width: 70px;
            height: 70px;
            border-radius: var(--radius-sm);
            background: var(--surface);
            border: 2px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .gallery-thumb:hover,
        .gallery-thumb.active {
            border-color: var(--accent);
            box-shadow: 0 0 15px var(--accent-glow);
        }

        .product-detail-info h1 {
            font-size: 2rem;
            margin-bottom: 12px;
        }

        .product-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .product-meta span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .product-meta span svg {
            flex-shrink: 0;
            width: 16px;
            height: 16px;
        }

        .product-price-detail {
            display: flex;
            align-items: baseline;
            gap: 16px;
            margin-bottom: 20px;
            padding: 18px 22px;
            background: var(--accent-glow);
            border: 1px solid rgba(184, 149, 79, 0.2);
            border-radius: var(--radius);
        }

        .product-price-detail .price-sale {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent);
        }

        .product-price-detail .price-original {
            font-size: 1rem;
        }

        .product-price-detail .price-discount {
            background: var(--danger);
            color: white;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
        }

        .product-desc {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.8;
            margin-bottom: 24px;
        }

        .product-options {
            margin-bottom: 24px;
        }

        .option-group {
            margin-bottom: 18px;
        }

        .option-group label {
            display: block;
            font-size: 0.88rem;
            font-weight: 500;
            color: var(--text-heading);
            margin-bottom: 10px;
        }

        .size-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .size-btn {
            padding: 10px 24px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--glass-border);
            background: var(--surface);
            color: var(--text-muted);
            font-size: 0.88rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .size-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .size-btn.active {
            background: var(--accent-glow);
            border-color: var(--accent);
            color: var(--accent-light);
            font-weight: 600;
        }

        /* --- Color Swatches (Gallery Switch) --- */
        .color-swatches {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            padding: 4px 0;
        }

        .color-swatch {
            position: relative;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            cursor: pointer;
            overflow: hidden;
            border: 2px solid transparent;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .color-swatch img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            transition: transform 0.4s ease;
        }

        .color-swatch .swatch-emoji {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 1.5rem;
            background: var(--surface);
        }

        .color-swatch .swatch-ring {
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 2.5px solid transparent;
            pointer-events: none;
            transition: border-color 0.35s ease, box-shadow 0.35s ease;
        }

        .color-swatch:hover {
            transform: scale(1.12);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
        }

        .color-swatch:hover img {
            transform: scale(1.15);
        }

        .color-swatch.active {
            border-color: var(--accent);
        }

        .color-swatch.active .swatch-ring {
            border-color: var(--accent);
            box-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(212, 175, 55, 0.15);
        }

        @keyframes swatch-pulse {
            0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
            50% { box-shadow: 0 0 18px var(--accent-glow), 0 0 30px rgba(212, 175, 55, 0.2); }
        }

        .color-swatch.active .swatch-ring {
            animation: swatch-pulse 2.5s ease-in-out infinite;
        }

        .qty-control {
            display: inline-flex;
            align-items: center;
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-sm);
            overflow: hidden;
        }

        .qty-control button {
            width: 44px;
            height: 44px;
            background: var(--surface);
            border: none;
            color: var(--text-heading);
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .qty-control button:hover {
            background: var(--accent-glow);
            color: var(--accent);
        }

        .qty-control input {
            width: 50px;
            height: 44px;
            text-align: center;
            border: none;
            border-left: 1px solid var(--glass-border);
            border-right: 1px solid var(--glass-border);
            background: var(--primary-light);
            color: var(--text-heading);
            font-size: 1rem;
            font-weight: 600;
            outline: none;
        }

        .qty-control input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }

        .product-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;
        }

        .product-trust {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            padding: 18px;
            background: var(--surface);
            border-radius: var(--radius);
            border: 1px solid var(--glass-border);
            font-size: 0.82rem;
            color: var(--text-muted);
        }

        .product-trust div {
            padding: 4px 0;
        }

        .product-tabs {
            margin-top: 60px;
        }

        .specs-table {
            width: 100%;
            border-collapse: collapse;
        }

        .specs-table td {
            padding: 14px 18px;
            border-bottom: 1px solid var(--glass-border);
            font-size: 0.88rem;
        }

        .specs-table td:first-child {
            color: var(--text-muted);
            width: 40%;
        }

        .specs-table td:last-child {
            color: var(--text-heading);
            font-weight: 500;
        }

        .features-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .feature-tag {
            padding: 8px 18px;
            background: var(--blue-glow);
            border: 1px solid var(--glass-border-blue);
            border-radius: 30px;
            font-size: 0.82rem;
            color: var(--blue-light);
        }

        @media (max-width: 768px) {
            .product-detail-layout {
                grid-template-columns: 1fr;
                gap: 28px;
            }

            .product-gallery {
                position: static;
            }

            .gallery-main {
                height: 280px;
                font-size: 5rem;
            }

            .product-detail-info h1 {
                font-size: 1.5rem;
            }

            .product-price-detail .price-sale {
                font-size: 1.5rem;
            }
        }





/* — CATEGORY PAGE — */


        .category-layout {
            display: grid;
            grid-template-columns: 260px 1fr;
            gap: 32px;
            align-items: start;
        }

        .filter-sidebar {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            padding: 28px;
            backdrop-filter: blur(10px);
            position: sticky;
            top: 100px;
        }

        .filter-section {
            margin-bottom: 28px;
        }

        .filter-section:last-child {
            margin-bottom: 0;
        }

        .filter-section h4 {
            font-size: 0.88rem;
            color: var(--text-heading);
            margin-bottom: 14px;
            font-family: var(--font-body);
        }

        .filter-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .filter-option:hover {
            background: var(--surface-light);
            color: var(--text-heading);
        }

        .filter-option.active {
            background: var(--accent-glow);
            color: var(--accent-light);
            border-left: 2px solid var(--accent);
        }

        .filter-option input {
            display: none;
        }

        .sort-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding: 14px 20px;
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(10px);
        }

        .sort-bar span {
            font-size: 0.88rem;
            color: var(--text-muted);
        }

        #sort-select {
            background: var(--surface);
            color: var(--text-heading);
            border: 1px solid var(--glass-border);
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            cursor: pointer;
            outline: none;
        }

        #sort-select:focus {
            border-color: var(--accent);
        }

        @media (max-width: 768px) {
            .category-layout {
                grid-template-columns: 1fr;
            }

            .filter-sidebar {
                position: static;
            }

            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
        }





/* — CART PAGE — */


        .cart-page {
            min-height: 50vh;
        }

        .cart-layout {
            display: grid;
            grid-template-columns: 1fr 360px;
            gap: 32px;
            align-items: start;
        }

        .cart-items {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .cart-item {
            display: grid;
            grid-template-columns: 80px 1fr auto auto;
            align-items: center;
            gap: 20px;
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 18px 22px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .cart-item:hover {
            border-color: rgba(184, 149, 79, 0.2);
        }

        .cart-item-img {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-light), var(--primary-mid));
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
        }

        .cart-item-info {}

        .cart-item-name {
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--text-heading);
            margin-bottom: 4px;
        }

        .cart-item-meta {
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        .cart-item-qty {
            display: flex;
            align-items: center;
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-sm);
            overflow: hidden;
        }

        .cart-item-qty button {
            width: 36px;
            height: 36px;
            background: var(--surface);
            border: none;
            color: var(--text-heading);
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .cart-item-qty button:hover {
            background: var(--accent-glow);
            color: var(--accent);
        }

        .cart-item-qty span {
            width: 40px;
            text-align: center;
            font-weight: 600;
            color: var(--text-heading);
            font-size: 0.9rem;
        }

        .cart-item-right {
            text-align: right;
            min-width: 130px;
        }

        .cart-item-price {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 6px;
        }

        .cart-item-remove {
            font-size: 0.78rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            background: none;
            border: none;
        }

        .cart-item-remove:hover {
            color: var(--danger);
        }

        .cart-summary {
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 28px;
            backdrop-filter: blur(10px);
            position: sticky;
            top: 100px;
        }

        .cart-summary h3 {
            font-size: 1.1rem;
            margin-bottom: 20px;
            font-family: var(--font-body);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            font-size: 0.88rem;
            color: var(--text-muted);
        }

        .summary-row.total {
            border-top: 1px solid var(--glass-border);
            margin-top: 10px;
            padding-top: 18px;
            color: var(--text-heading);
            font-weight: 700;
            font-size: 1.1rem;
        }

        .summary-row.total .price-sale {
            color: var(--accent);
            font-size: 1.3rem;
        }

        .cart-empty {
            text-align: center;
            padding: 80px 0;
        }

        .cart-empty h2 {
            margin-bottom: 12px;
        }

        .cart-empty p {
            color: var(--text-muted);
            margin-bottom: 32px;
        }

        @media (max-width: 768px) {
            .cart-layout {
                grid-template-columns: 1fr;
            }

            .cart-item {
                grid-template-columns: 60px 1fr;
                gap: 14px;
            }

            .cart-item-qty {
                grid-column: 2;
            }

            .cart-item-right {
                grid-column: 2;
                text-align: left;
            }

            .cart-summary {
                position: static;
            }
        }





/* — ABOUT PAGE — */


        .about-hero {
            padding: 80px 0;
            text-align: center;
        }

        .about-hero h1 {
            margin-bottom: 16px;
        }

        .about-hero p {
            max-width: 600px;
            margin: 0 auto;
            color: var(--text-muted);
            font-size: 1.05rem;
            line-height: 1.8;
        }

        .about-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            margin: 60px 0;
        }

        .stat-card {
            text-align: center;
            padding: 36px 16px;
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(10px);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            font-family: var(--font-heading);
            color: var(--accent);
            margin-bottom: 6px;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .about-story {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: center;
            margin: 60px 0;
        }

        .about-img {
            height: 350px;
            background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6rem;
        }

        .about-text h2 {
            margin-bottom: 18px;
        }

        .about-text p {
            color: var(--text-muted);
            line-height: 1.9;
            margin-bottom: 14px;
            font-size: 0.92rem;
        }

        .cert-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            margin-top: 40px;
        }

        .cert-card {
            padding: 28px;
            text-align: center;
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--glass-border);
        }

        .cert-card .icon {
            font-size: 2.5rem;
            margin-bottom: 12px;
        }

        .cert-card h4 {
            margin-bottom: 6px;
            font-size: 0.92rem;
        }

        .cert-card p {
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        @media (max-width: 768px) {
            .about-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .about-story {
                grid-template-columns: 1fr;
            }

            .cert-grid {
                grid-template-columns: 1fr;
            }
        }





/* — CONTACT PAGE (v2) — */

        .contact-cards-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 40px;
            align-items: stretch;
        }

        .contact-card-v2 {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 28px 24px;
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            backdrop-filter: blur(10px);
            transition: all 0.4s ease;
            text-decoration: none;
            color: inherit;
            position: relative;
        }

        .contact-card-v2:hover {
            border-color: rgba(184, 149, 79, 0.3);
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        }

        .contact-card-zalo {
            border-color: rgba(0, 132, 255, 0.2);
            background: linear-gradient(135deg, rgba(0, 132, 255, 0.06), var(--bg-card));
        }

        .contact-card-zalo:hover {
            border-color: rgba(0, 132, 255, 0.4);
            box-shadow: 0 12px 32px rgba(0, 132, 255, 0.12);
        }

        .contact-card-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--accent-glow), rgba(212, 168, 83, 0.12));
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--accent);
        }

        .contact-card-zalo .contact-card-icon {
            background: linear-gradient(135deg, rgba(0, 132, 255, 0.15), rgba(0, 132, 255, 0.06));
            border-color: rgba(0, 132, 255, 0.2);
            color: #0084ff;
        }

        html[data-theme="light"] .contact-card-zalo .contact-card-icon {
            color: #006bbf;
        }

        .contact-card-content h3 {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 6px;
            font-family: var(--font-body);
        }

        .contact-card-content p {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .contact-card-status {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--success, #22c55e);
            font-weight: 500;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--success, #22c55e);
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
            animation: statusPulse 2s ease-in-out infinite;
        }

        @keyframes statusPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .contact-card-arrow {
            margin-left: auto;
            font-size: 1.2rem;
            color: var(--text-muted);
            transition: transform 0.3s ease;
            flex-shrink: 0;
            padding-top: 2px;
        }

        .contact-card-v2:hover .contact-card-arrow {
            transform: translateX(4px);
            color: var(--accent);
        }

        .contact-map {
            margin-top: 32px;
            margin-bottom: 24px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        }

        .contact-map iframe {
            display: block;
            width: 100%;
            min-height: 380px;
        }

        @media (max-width: 1024px) {
            .contact-cards-row {
                grid-template-columns: 1fr 1fr;
            }

            .contact-cards-row > :last-child {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 640px) {
            .contact-cards-row {
                grid-template-columns: 1fr;
                gap: 14px;
            }

            .contact-cards-row > :last-child {
                grid-column: auto;
            }

            .contact-card-v2 {
                padding: 22px 20px;
            }

            .contact-map iframe {
                min-height: 280px;
            }
        }






/* — BLOG POST PAGE — */


        .blog-article {
            max-width: 760px;
            margin: 40px auto 0;
        }

        .blog-article-header {
            margin-bottom: 36px;
        }

        .blog-article-header h1 {
            font-size: 2.2rem;
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .blog-article-meta {
            display: flex;
            gap: 16px;
            align-items: center;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .blog-article-body h2 {
            font-size: 1.3rem;
            margin: 28px 0 12px;
            color: var(--accent);
        }

        .blog-article-body h3 {
            font-size: 1.1rem;
            margin: 22px 0 10px;
            color: var(--accent-light);
        }

        .blog-article-body p {
            color: var(--text);
            font-size: 0.95rem;
            line-height: 1.9;
            margin-bottom: 16px;
        }

        .blog-article-body ul {
            padding-left: 20px;
            margin-bottom: 16px;
            list-style: disc;
        }

        .blog-article-body li {
            color: var(--text);
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 6px;
        }

        .blog-cta {
            margin-top: 40px;
            padding: 28px;
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            text-align: center;
        }

        .blog-cta h3 {
            margin-bottom: 10px;
            font-family: var(--font-body);
            color: var(--accent);
        }

        .blog-cta p {
            color: var(--text-muted);
            margin-bottom: 20px;
            font-size: 0.88rem;
        }
        .blog-article-body a {
            color: var(--accent);
            font-weight: 700;
            text-decoration: none;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 1px;
            transition: all 0.25s ease;
            position: relative;
        }

        .blog-article-body a:hover {
            color: #fff;
            background: var(--accent);
            border-radius: 3px;
            padding: 2px 6px;
            margin: 0 -6px;
            border-bottom-color: transparent;
            box-shadow: 0 2px 8px rgba(212, 168, 83, 0.35);
            transform: translateY(-1px);
        }

        html[data-theme="light"] .blog-article-body a {
            color: #8B6914;
            border-bottom-color: #C9A84C;
        }

        html[data-theme="light"] .blog-article-body a:hover {
            color: #fff;
            background: #B8941E;
            border-bottom-color: transparent;
            box-shadow: 0 2px 8px rgba(184, 148, 30, 0.3);
        }

        /* Ảnh minh họa trong bài viết */
        .blog-article-body img {
            max-width: 80%;
            max-height: 420px;
            height: auto;
            display: block;
            margin: 20px auto;
            border-radius: 12px;
            object-fit: contain;
        }

        .blog-article-body figure {
            margin: 28px 0;
            text-align: center;
        }

        .blog-article-body figure img {
            margin: 0 auto 8px;
        }

        .blog-article-body figcaption {
            text-align: center;
            font-size: 0.82rem;
            color: var(--text-muted);
            margin-top: 4px;
            font-style: italic;
        }

        /* Blog Table Styling */
        .blog-article-body table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 28px 0;
            border-radius: 12px;
            border: 1px solid var(--glass-border-accent, rgba(212, 168, 83, 0.2));
            overflow: hidden;
            background: var(--bg-card, rgba(15, 25, 50, 0.6));
            font-size: 0.88rem;
        }

        .blog-article-body table thead th,
        .blog-article-body table th {
            background: rgba(10, 20, 45, 0.8);
            color: var(--accent, #D4A853);
            font-weight: 600;
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 14px 18px;
            text-align: left;
            border-bottom: 2px solid var(--accent, #D4A853);
        }

        .blog-article-body table td {
            padding: 12px 18px;
            border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
            color: var(--text-body, #c8ccd4);
            line-height: 1.6;
        }

        .blog-article-body table tbody tr:last-child td {
            border-bottom: none;
        }

        .blog-article-body table tbody tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.02);
        }

        .blog-article-body table tbody tr:hover {
            background: rgba(212, 168, 83, 0.06);
        }

        html[data-theme="light"] .blog-article-body table {
            background: rgba(255, 255, 255, 0.8);
            border-color: rgba(0, 0, 0, 0.1);
        }

        html[data-theme="light"] .blog-article-body table thead th,
        html[data-theme="light"] .blog-article-body table th {
            background: rgba(245, 240, 230, 0.9);
            color: var(--accent, #9a7a3a);
            border-bottom-color: var(--accent, #9a7a3a);
        }

        html[data-theme="light"] .blog-article-body table td {
            color: #333;
            border-bottom-color: rgba(0, 0, 0, 0.06);
        }

        html[data-theme="light"] .blog-article-body table tbody tr:nth-child(even) {
            background: rgba(0, 0, 0, 0.02);
        }

        html[data-theme="light"] .blog-article-body table tbody tr:hover {
            background: rgba(168, 144, 96, 0.08);
        }

        @media (max-width: 768px) {
            .blog-article-body table {
                display: block;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .blog-article-body img {
                max-width: 90%;
                max-height: 320px;
            }
        }

/* — POLICY PAGE — */


        .policy-nav {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin: 24px 0 40px;
        }

        .policy-nav a {
            padding: 10px 22px;
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: 30px;
            font-size: 0.85rem;
            color: var(--text-muted);
            transition: all 0.3s;
        }

        .policy-nav a:hover,
        .policy-nav a.active {
            background: var(--accent-glow);
            border-color: var(--accent);
            color: var(--accent-light);
        }

        .policy-section {
            margin-bottom: 60px;
            padding: 36px;
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(10px);
        }

        .policy-section h2 {
            font-size: 1.5rem;
            margin-bottom: 24px;
            font-family: var(--font-body);
        }

        .policy-section h3 {
            font-size: 1rem;
            color: var(--accent);
            margin: 20px 0 10px;
            font-family: var(--font-body);
        }

        .policy-section p,
        .policy-section li {
            color: var(--text-muted);
            font-size: 0.88rem;
            line-height: 1.8;
        }

        .policy-section ul {
            padding-left: 20px;
            list-style: disc;
        }

        .policy-section li {
            margin-bottom: 8px;
        }

        .policy-table {
            width: 100%;
            border-collapse: collapse;
            margin: 16px 0;
        }

        .policy-table td,
        .policy-table th {
            padding: 12px 16px;
            border: 1px solid var(--glass-border);
            font-size: 0.85rem;
            text-align: left;
        }

        .policy-table th {
            background: var(--surface);
            color: var(--text-heading);
            font-weight: 600;
        }

        .policy-table td {
            color: var(--text-muted);
        }
} /* end @layer pages */
