/**
 * modern-ui.css — Modern / Minimal UI override
 * Load sau tất cả CSS khác trong header.php
 */

/* ─── Design tokens ─────────────────────────────────────── */
:root {
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,.09);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

    --transition: .22s cubic-bezier(.4,0,.2,1);

    /* Neutral palette */
    --neutral-50:  #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-900: #111827;
}

/* ─── Global ─────────────────────────────────────────────── */
body {
    background: var(--neutral-100);
    color: var(--neutral-700);
    font-size: 15px;
}

/* ─── Header top bar ─────────────────────────────────────── */
.header-top {
    background: var(--neutral-100);
    border-bottom: 1px solid var(--neutral-200);
    padding: 6px 0;
}

.header-top p,
.header-top a,
.header-top span,
.header-top li,
.header-top-welcome p {
    color: var(--neutral-600) !important;
    font-size: 12.5px;
}

.header-top a:hover { color: var(--primary) !important; }

.header-select select,
.header-select .select {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    color: var(--neutral-700);
    font-size: 12.5px;
    padding: 3px 8px;
}

.header-top-list li a {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    transition: background var(--transition);
}
.header-top-list li a:hover {
    background: var(--neutral-200);
}

/* Header wallet balance */
.header-wallet-balance {
    color: blue;
}
[data-theme="dark"] .header-wallet-balance {
    color: #60a5fa !important; /* xanh sáng dễ nhìn trên nền tối */
}
.header-part {
    background: #fff;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xs);
    padding: 14px 0;
}

.header-content {
    gap: 16px;
}

/* Search bar */
.header-form {
    background: #fff;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    display: flex;
    align-items: stretch;
}

.header-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 59,130,246),.12);
}

.header-form input {
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    color: var(--neutral-700);
}

.header-form button {
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
    font-size: 15px;
    transition: opacity var(--transition);
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.header-form button:hover { opacity: .85; }

/* Widget icons */
.header-widget {
    border-radius: var(--radius-md);
    padding: 8px 10px;
    transition: background var(--transition);
}
.header-widget:hover { background: var(--neutral-100); }

/* User chip */
.header-widget img { border-radius: 50%; }
.header-widget span p { line-height: 1.3; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar-part {
    background: #fff;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.92);
}

.navbar-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-700);
    padding: 14px 14px !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.navbar-link:hover,
.navbar-item:hover > .navbar-link {
    color: var(--primary);
    background: var(--neutral-50);
}

/* Mega menu */
.megamenu {
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}

.megamenu-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--neutral-500);
    margin-bottom: 10px;
}

.megamenu-list li a {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--neutral-700);
    transition: background var(--transition), color var(--transition);
}
.megamenu-list li a:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

/* Dropdown */
.dropdown-position-list {
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    padding: 8px;
}

.dropdown-position-list li a {
    border-radius: var(--radius-sm);
    font-size: 14px;
    padding: 9px 14px;
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-position-list li a:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

/* ─── Category buttons (home) ────────────────────────────── */
.custom-button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
}

.custom-button-list li { margin: 0; }

.btn-category-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    border: 1.5px solid var(--neutral-200);
    background: #fff;
    color: var(--neutral-700);
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

.btn-category-home:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-category-home.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 59,130,246),.3);
}

/* ─── Cards (product / feature) ─────────────────────────── */
.feature-card,
.account-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover,
.account-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ─── Wallet card (right sidebar) ───────────────────────── */
.card-wallet-home {
    border-radius: var(--radius-lg) !important;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary1, var(--primary)) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
    padding: 24px !important;
}

.card-wallet-home .my-wallet p,
.card-wallet-home .wallet-card p {
    color: rgba(255,255,255,.75);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.card-wallet-home .my-wallet h3,
.card-wallet-home .wallet-card h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.wallet-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.wallet-card {
    background: rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    backdrop-filter: blur(4px);
}

/* ─── Home heading ───────────────────────────────────────── */
.home-heading h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-heading h3 i { color: var(--primary); }

/* ─── Recent transactions list ───────────────────────────── */
.feature-card .feature-content {
    padding: 12px 14px;
}

.feature-card .badge.bg-primary {
    background: var(--neutral-100) !important;
    color: var(--primary) !important;
    font-weight: 500;
    font-size: 11px;
    border-radius: var(--radius-pill);
    padding: 4px 9px;
    border: 1px solid var(--neutral-200);
}

/* ─── Notice / Alert banner ──────────────────────────────── */
.account-card.pt-3 {
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
}

/* ─── Section spacing ────────────────────────────────────── */
.feature-part .container {
    padding-top: 8px;
    padding-bottom: 24px;
}

/* ─── Floating side menu ─────────────────────────────────── */
#top-menu-right,
#top-menu-left {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

#top-menu-right .menu-item,
#top-menu-left .menu-item {
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background var(--transition), color var(--transition);
}

#top-menu-right .menu-item:hover,
#top-menu-left .menu-item:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

/* ─── Mobile bottom nav ───────────────────────────────────── */
.mobile-menu {
    background: #fff;
    border-top: 1px solid var(--neutral-200);
    box-shadow: 0 -4px 16px rgba(0,0,0,.07);
    border-radius: 20px 20px 0 0;
    padding: 8px 4px 10px;
}

.mobile-menu a,
.mobile-menu button {
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    padding: 6px 4px;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

.mobile-menu a.active,
.mobile-menu button.active {
    color: var(--primary);
}

/* ─── Sidebars (mobile category / cart) ─────────────────── */
.category-sidebar,
.cart-sidebar,
.nav-sidebar {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-lg);
}

.category-header,
.cart-header,
.nav-header {
    border-bottom: 1px solid var(--neutral-200);
    padding: 16px 20px;
}

.category-item a,
.nav-link {
    border-radius: var(--radius-sm) !important;
    transition: background var(--transition), color var(--transition);
}

.category-item a:hover,
.nav-link:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

/* ─── Scroll bar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--neutral-500); }

/* ─── Back-to-top button ─────────────────────────────────── */
.backtop {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: none;
    transition: transform var(--transition), box-shadow var(--transition);
}
.backtop:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ─── Spinner / loading ──────────────────────────────────── */
.spinner-border.text-primary { color: var(--primary) !important; }

/* ─── User-auth login/register buttons on wallet sidebar ── */
.user-form-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-md);
    padding: 12px;
    font-weight: 600;
    font-size: 13.5px;
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: var(--shadow-xs);
}
.user-form-social li a:hover { opacity: .88; transform: translateY(-1px); }

/* ─── General form inputs ────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid var(--neutral-200) !important;
    transition: border-color var(--transition), box-shadow var(--transition) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 59,130,246),.1) !important;
    outline: none !important;
}

/* ─── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 767px) {
    .custom-button-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .custom-button-list::-webkit-scrollbar { display: none; }

    .wallet-card-group {
        grid-template-columns: 1fr 1fr;
    }

    .card-wallet-home {
        border-radius: var(--radius-md) !important;
    }
}

@media (max-width: 575px) {
    .home-heading h3 { font-size: 14px; }
    .btn-category-home { padding: 7px 14px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE  — [data-theme="dark"]
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] {
    --neutral-50:  #1a1d23;
    --neutral-100: #1f2330;
    --neutral-200: #2a2f3d;
    --neutral-300: #3d4456;
    --neutral-500: #8892a4;
    --neutral-700: #c9d1e0;
    --neutral-900: #edf2ff;
    --border:      #2a2f3d;
    --body:        #161921;
    --white:       #1f2330;
    --chalk:       #252a38;
    --text:        #b0bac9;
    --heading:     #e2e8f0;
}

/* Body & backgrounds */
[data-theme="dark"] body {
    background: #161921;
    color: #b0bac9;
}

/* Header top */
[data-theme="dark"] .header-top {
    background: #1a1d27;
    border-color: #2a2f3d;
}

[data-theme="dark"] .header-top p,
[data-theme="dark"] .header-top a,
[data-theme="dark"] .header-top span,
[data-theme="dark"] .header-top li,
[data-theme="dark"] .header-top-welcome p {
    color: #8892a4 !important;
}

[data-theme="dark"] .header-top a:hover {
    color: var(--primary) !important;
}

[data-theme="dark"] .header-select select,
[data-theme="dark"] .header-select .select {
    background: #252a38;
    border-color: #2a2f3d;
    color: #c9d1e0;
}

[data-theme="dark"] .header-top-list li a:hover {
    background: #252a38;
}

/* Main header */
[data-theme="dark"] .header-part {
    background: #1a1d27;
    border-color: #2a2f3d;
}

/* Search form */
[data-theme="dark"] .header-form {
    background: #252a38;
    border-color: #2a2f3d;
}
[data-theme="dark"] .header-form:focus-within {
    background: #2a2f3d;
}
[data-theme="dark"] .header-form input {
    color: #c9d1e0;
    background: transparent !important;
    border-color: transparent !important;
}

/* Navbar */
[data-theme="dark"] .navbar-part {
    background: rgba(26,29,39,.92);
    border-color: #2a2f3d;
}
[data-theme="dark"] .navbar-link {
    color: #c9d1e0;
}
[data-theme="dark"] .navbar-link:hover,
[data-theme="dark"] .navbar-item:hover > .navbar-link {
    background: #252a38;
}

/* Megamenu & dropdowns */
[data-theme="dark"] .megamenu,
[data-theme="dark"] .dropdown-position-list {
    background: #1f2330;
    border-color: #2a2f3d;
}
[data-theme="dark"] .megamenu-list li a,
[data-theme="dark"] .dropdown-position-list li a {
    color: #c9d1e0;
}
[data-theme="dark"] .megamenu-list li a:hover,
[data-theme="dark"] .dropdown-position-list li a:hover {
    background: #252a38;
}
[data-theme="dark"] .megamenu-title {
    color: #6b7694;
}

/* Category buttons */
[data-theme="dark"] .btn-category-home {
    background: #1f2330;
    border-color: #2a2f3d;
    color: #c9d1e0;
}
[data-theme="dark"] .btn-category-home:hover {
    background: #252a38;
    border-color: var(--primary);
    color: var(--primary);
}
[data-theme="dark"] .btn-category-home.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 59,130,246),.35), 0 4px 14px rgba(var(--primary-rgb, 59,130,246),.4);
    font-weight: 700;
    filter: brightness(1.15);
}

/* Cards */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .account-card {
    background: #1f2330;
    border-color: #2a2f3d;
}

/* Sidebars */
[data-theme="dark"] .category-sidebar,
[data-theme="dark"] .cart-sidebar,
[data-theme="dark"] .nav-sidebar {
    background: #1a1d27;
}
[data-theme="dark"] .category-header,
[data-theme="dark"] .cart-header,
[data-theme="dark"] .nav-header,
[data-theme="dark"] .cart-total span,
[data-theme="dark"] .category-title {
    color: #e2e8f0;
    border-color: #2a2f3d;
}
[data-theme="dark"] .category-item a,
[data-theme="dark"] .nav-link {
    color: #c9d1e0;
}
[data-theme="dark"] .category-item a:hover,
[data-theme="dark"] .nav-link:hover {
    background: #252a38;
}

/* Floating side menu */
[data-theme="dark"] #top-menu-right,
[data-theme="dark"] #top-menu-left {
    background: #1f2330;
    border-color: #2a2f3d;
}

/* Mobile nav */
[data-theme="dark"] .mobile-menu {
    background: #1a1d27;
    border-color: #2a2f3d;
}
[data-theme="dark"] .mobile-menu a,
[data-theme="dark"] .mobile-menu button,
[data-theme="dark"] .mobile-menu span {
    color: #c9d1e0;
}

/* Notice card */
[data-theme="dark"] .account-card.pt-3 {
    background: #1f2330;
    border-color: #2a2f3d;
}

/* Home heading */
[data-theme="dark"] .home-heading h3 {
    color: #e2e8f0;
}

/* Badges */
[data-theme="dark"] .feature-card .badge.bg-primary {
    background: #252a38 !important;
    border-color: #2a2f3d;
}

/* Inputs */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #252a38 !important;
    border-color: #2a2f3d !important;
    color: #c9d1e0 !important;
}

/* Dropdown list items in sidebars */
[data-theme="dark"] .dropdown-list li a {
    background: #1f2330;
    color: #c9d1e0;
}
[data-theme="dark"] .dropdown-list li a:hover {
    background: #252a38;
    color: var(--primary);
}

/* Header widget hover */
[data-theme="dark"] .header-widget:hover {
    background: #252a38;
}

/* Theme toggle button */
#theme-toggle {
    font-size: 16px;
}
[data-theme="dark"] #theme-toggle {
    color: #fbbf24;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

/* Product grid cards */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--neutral-300);
}

.product-card .product-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.product-card .product-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

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

.product-card .product-content {
    padding: 16px;
}

.product-card .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-name a {
    color: inherit;
    transition: color var(--transition);
}

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

.product-card .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.product-card .product-price del {
    font-size: 13px;
    font-weight: 400;
    color: var(--neutral-500);
    margin-left: 8px;
}

/* Product labels/badges */
.product-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.product-label.sale { background: #ef4444; color: #fff; }
.product-label.new { background: #10b981; color: #fff; }
.product-label.hot { background: #f59e0b; color: #fff; }

/* Product action buttons */
.product-action {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    gap: 8px;
    transition: bottom var(--transition);
}

.product-card:hover .product-action {
    bottom: 0;
}

.product-action button,
.product-action a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--neutral-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.product-action button:hover,
.product-action a:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* Stock indicator */
.product-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--neutral-500);
    margin-top: 8px;
}

.product-stock.in-stock { color: #10b981; }
.product-stock.low-stock { color: #f59e0b; }
.product-stock.out-stock { color: #ef4444; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — Modern styling
   ═══════════════════════════════════════════════════════════ */

.footer-part {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-logo img {
    max-height: 50px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.footer-desc {
    color: var(--neutral-500);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--neutral-400);
}

.footer-contact li i,
.footer-contact li svg {
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-links ul li a {
    color: var(--neutral-400);
    font-size: 14px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neutral-600);
    transition: background var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links ul li a:hover::before {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 40px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-copytext {
    font-size: 13px;
    color: var(--neutral-500);
}

.footer-copytext a {
    color: var(--primary);
    font-weight: 500;
}

.footer-card {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-card img {
    height: 28px;
    border-radius: 4px;
    opacity: .7;
    transition: opacity var(--transition);
}

.footer-card img:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 24px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-inline,
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 59,130,246),.25);
}

.btn-inline:hover,
.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 59,130,246),.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════
   ALERTS & NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */

.alert {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, .1);
    color: #059669;
    border-left: 4px solid #10b981;
}

.alert-danger,
.alert-error {
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, .1);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, .1);
    color: #2563eb;
    border-left: 4px solid #3b82f6;
}

/* ═══════════════════════════════════════════════════════════
   TABLES — Modern styling
   ═══════════════════════════════════════════════════════════ */

.table {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.table thead th {
    background: var(--neutral-50);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--neutral-600);
    padding: 14px 16px;
    border-bottom: 2px solid var(--neutral-200);
}

.table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--neutral-700);
    border-bottom: 1px solid var(--neutral-100);
    vertical-align: middle;
}

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

.table tbody tr:hover {
    background: var(--neutral-50);
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination .page-item .page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-700);
    background: #fff;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition);
}

.pagination .page-item .page-link:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 59,130,246),.25);
}

.pagination .page-item.disabled .page-link {
    background: var(--neutral-100);
    color: var(--neutral-400);
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   MODALS — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    padding: 18px 24px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-900);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    padding: 16px 24px;
}

.btn-close {
    opacity: .6;
    transition: opacity var(--transition);
}

.btn-close:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAILS PAGE
   ═══════════════════════════════════════════════════════════ */

.details-content {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.details-content:hover {
    border-color: var(--neutral-300);
    box-shadow: var(--shadow-md);
}

.details-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.3;
}

.details-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.details-price del {
    font-size: 18px;
    color: var(--neutral-400);
}

.details-preview li img {
    border-radius: var(--radius-md);
    border: 2px solid var(--neutral-200);
    transition: all var(--transition);
}

.details-preview li img:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.details-thumb li img {
    border-radius: var(--radius-sm);
    border: 2px solid var(--neutral-200);
    transition: all var(--transition);
}

.details-thumb .slick-current img {
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   USER PROFILE & AUTH PAGES
   ═══════════════════════════════════════════════════════════ */

.user-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid var(--neutral-200);
}

.user-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--neutral-900);
    text-align: center;
    margin-bottom: 8px;
}

.user-form-desc {
    font-size: 14px;
    color: var(--neutral-500);
    text-align: center;
    margin-bottom: 32px;
}

.user-form-group {
    margin-bottom: 20px;
}

.user-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 8px;
    display: block;
}

.user-form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
}

.user-form-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.user-form-social li a {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition);
}

.user-form-social li a.facebook {
    background: #1877f2;
    color: #fff;
}

.user-form-social li a.google {
    background: #ea4335;
    color: #fff;
}

.user-form-social li a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════ */

.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: .2em;
}

.skeleton {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════════════════════ */

.badge {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    letter-spacing: .3px;
}

.badge.bg-success { background: rgba(16, 185, 129, .15) !important; color: #059669 !important; }
.badge.bg-danger { background: rgba(239, 68, 68, .15) !important; color: #dc2626 !important; }
.badge.bg-warning { background: rgba(245, 158, 11, .15) !important; color: #d97706 !important; }
.badge.bg-info { background: rgba(59, 130, 246, .15) !important; color: #2563eb !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .footer-part {
        padding: 40px 0 24px;
    }

    .footer-widget {
        margin-bottom: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .product-card .product-content {
        padding: 12px;
    }

    .product-card .product-name {
        font-size: 13px;
    }

    .product-card .product-price {
        font-size: 15px;
    }

    .user-form-card {
        padding: 24px 20px;
    }

    .details-content {
        padding: 20px;
    }

    .details-name {
        font-size: 20px;
    }

    .details-price {
        font-size: 22px;
    }

    .modal-body {
        padding: 16px;
    }
}

@media (max-width: 575px) {
    .footer-links ul {
        grid-template-columns: 1fr;
    }

    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE — Additional components
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] .product-card {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] .product-card .product-name {
    color: #e2e8f0;
}

[data-theme="dark"] .product-action button,
[data-theme="dark"] .product-action a {
    background: #2a2f3d;
    color: #c9d1e0;
}

[data-theme="dark"] .footer-part {
    background: #0d0f14;
}

[data-theme="dark"] .footer-logo img {
    filter: none;
}

[data-theme="dark"] .table {
    background: #1f2330;
}

[data-theme="dark"] .table thead th {
    background: #252a38;
    color: #8892a4;
    border-color: #2a2f3d;
}

[data-theme="dark"] .table tbody td {
    color: #c9d1e0;
    border-color: #2a2f3d;
}

[data-theme="dark"] .table tbody tr:hover {
    background: #252a38;
}

[data-theme="dark"] .modal-content {
    background: #1f2330;
    color: #c9d1e0;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    background: #1a1d27;
    border-color: #2a2f3d;
}

[data-theme="dark"] .modal-title {
    color: #e2e8f0;
}

/* Modal product view */
[data-theme="dark"] .product-view {
    background: #1f2330;
    color: #c9d1e0;
}

[data-theme="dark"] .product-view .table {
    background: transparent;
    color: #c9d1e0;
}

[data-theme="dark"] .product-view .table td {
    background: transparent;
    color: #c9d1e0;
    border-color: #2a2f3d;
}

[data-theme="dark"] .product-view .table th {
    background: #252a38;
    color: #8892a4;
    border-color: #2a2f3d;
}

[data-theme="dark"] .product-view strong[style*="color: blue"],
[data-theme="dark"] .product-view strong[style*="color:blue"] {
    color: #60a5fa !important;
}

[data-theme="dark"] .view-name a {
    color: #e2e8f0;
}

[data-theme="dark"] .view-price span {
    color: var(--primary);
}

[data-theme="dark"] .view-desc {
    color: #8892a4;
}

[data-theme="dark"] .modal-close {
    background: #252a38;
    color: #c9d1e0;
    border-color: #3d4456;
}

[data-theme="dark"] .modal-close:hover {
    background: #2a2f3d;
    color: #fff;
}

/* Force show product-action inside modal (overrides display:none and position:absolute from card styles) */
.product-view .product-action {
    display: flex !important;
    position: static !important;
    bottom: auto !important;
    background: none !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    gap: 4px !important;
}

.product-view .product-action button i {
    color: var(--neutral-700);
    background: var(--neutral-200);
}

/* Override card overlay button style for modal context */
.product-view .product-action button,
.product-view .product-action a {
    width: 35px !important;
    height: 35px !important;
    border-radius: 6px !important;
    background: var(--neutral-200) !important;
    color: var(--neutral-700) !important;
    transform: none !important;
}

.product-view .product-action input {
    color: var(--neutral-900);
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
}

[data-theme="dark"] .product-view .product-action input {
    color: #e2e8f0;
    background: #252a38;
    border-color: #3d4456;
}

[data-theme="dark"] .product-view .product-action button i {
    color: #c9d1e0;
    background: #2a2f3d;
}

/* Thêm vào mục yêu thích - dark mode */
[data-theme="dark"] .label_favorite {
    background: #1f2330;
    border-color: #2a2f3d;
    color: #c9d1e0;
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE — notice_home inline style overrides
   ═══════════════════════════════════════════════════════════ */

/* Wrapper text */
[data-theme="dark"] .account-card [style*="color:#333333"],
[data-theme="dark"] .account-card [style*="color: #333333"] {
    color: #c9d1e0 !important;
}

/* White/light backgrounds → dark */
[data-theme="dark"] .account-card [style*="background:#ffffff"],
[data-theme="dark"] .account-card [style*="background: #ffffff"],
[data-theme="dark"] .account-card [style*="background:#fff9f9"],
[data-theme="dark"] .account-card [style*="background:#f7f9ff"],
[data-theme="dark"] .account-card [style*="background:#fffbea"],
[data-theme="dark"] .account-card [style*="background:#fff "],
[data-theme="dark"] .account-card [style*="background:#fff;"] {
    background: #252a38 !important;
    color: #c9d1e0 !important;
}

/* border colors */
[data-theme="dark"] .account-card [style*="border:1px solid #ffcccb"] {
    border-color: #7f1d1d !important;
}
[data-theme="dark"] .account-card [style*="border:1px solid #b3cde3"] {
    border-color: #1e3a5f !important;
}
[data-theme="dark"] .account-card [style*="border:1px solid #F0B90B"],
[data-theme="dark"] .account-card [style*="border: 1px solid #F0B90B"] {
    border-color: #b38a00 !important;
}
[data-theme="dark"] .account-card [style*="border-left:5px solid #F0B90B"] {
    border-left-color: #b38a00 !important;
}
[data-theme="dark"] .account-card [style*="border-left:5px solid #00cec9"] {
    border-left-color: #00b4b0 !important;
}

/* Text inside light cards */
[data-theme="dark"] .account-card [style*="color:#333"] {
    color: #c9d1e0 !important;
}
[data-theme="dark"] .account-card [style*="color: #333"] {
    color: #c9d1e0 !important;
}
[data-theme="dark"] .account-card [style*="color:#888"] {
    color: #8892a4 !important;
}

[data-theme="dark"] .label_favorite svg {
    stroke: #8892a4;
}

[data-theme="dark"] .input_favorite:checked + label svg {
    fill: var(--primary);
    stroke: var(--primary);
}

[data-theme="dark"] .details-content {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] .details-name {
    color: #e2e8f0;
}

[data-theme="dark"] .details-preview li img,
[data-theme="dark"] .details-thumb li img {
    border-color: #2a2f3d;
}

[data-theme="dark"] .user-form-card {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] .user-form-title {
    color: #e2e8f0;
}

[data-theme="dark"] .pagination .page-item .page-link {
    background: #1f2330;
    border-color: #2a2f3d;
    color: #c9d1e0;
}

[data-theme="dark"] .pagination .page-item .page-link:hover {
    background: #252a38;
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE — Feature cards & price boxes
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] .feature-card {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] .feature-name a {
    color: #e2e8f0;
}

[data-theme="dark"] .feature-desc {
    color: #8892a4;
}

[data-theme="dark"] .card-price-product-list {
    background: transparent;
}

[data-theme="dark"] .card-price-product-list h5 {
    color: #f87171;
}

[data-theme="dark"] .btn-more {
    background: #252a38;
    border-color: #3d4456;
    color: #c9d1e0;
}

[data-theme="dark"] .btn-more:hover {
    background: #2a2f3d;
    color: var(--primary);
}

[data-theme="dark"] .btn-more-new {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .label-text.feat {
    background: rgba(139, 92, 246, .2);
    color: #a78bfa;
}

[data-theme="dark"] .label-text.order {
    background: rgba(59, 130, 246, .2);
    color: #60a5fa;
}

[data-theme="dark"] .label-text.off {
    background: rgba(239, 68, 68, .2);
    color: #f87171;
}

[data-theme="dark"] .label-text.new {
    background: rgba(16, 185, 129, .2);
    color: #34d399;
}

/* ═══════════════════════════════════════════════════════════
   FEATURE CARDS — Enhanced styling for product listing
   ═══════════════════════════════════════════════════════════ */

.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xs);
    padding: 16px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-content {
    padding-left: 16px !important;
    margin-left: 0 !important;
    border-left: none !important;
}

.feature-name {
    margin-bottom: 10px;
}

.feature-name a {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-900);
    line-height: 1.4;
    transition: color var(--transition);
}

.feature-name a:hover {
    color: var(--primary);
}

.feature-desc {
    font-size: 13px;
    color: var(--neutral-600);
    margin-bottom: 12px;
    line-height: 1.5;
}

.feature-desc i {
    color: var(--primary);
    margin-right: 4px;
}

.feature-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-price del {
    font-size: 14px;
    font-weight: 400;
    color: var(--neutral-400);
    margin-right: 8px;
}

.feature-price span {
    color: var(--primary);
}

/* Label badges */
.label-text {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

.label-text.feat {
    background: rgba(139, 92, 246, .12);
    color: #7c3aed;
}

.label-text.order {
    background: rgba(59, 130, 246, .12);
    color: #2563eb;
}

.label-text.off {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
}

.label-text.new {
    background: rgba(16, 185, 129, .12);
    color: #059669;
}

.label-text b {
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   BUY & MORE BUTTONS — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary1, var(--primary)) 100%);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 59,130,246),.25);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 59,130,246),.35);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-700);
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-more:hover {
    background: var(--neutral-200);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-more i {
    margin-right: 6px;
}

.btn-more-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-more-new:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════
   HOME HEADING — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

.home-heading {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--neutral-200);
}

.home-heading h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-heading h3 img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.home-heading h3 i {
    color: var(--primary);
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   CARD PRICE PRODUCT LIST
   ═══════════════════════════════════════════════════════════ */

.card-price-product-list {
    text-align: right;
}

.card-price-product-list h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state svg {
    max-width: 180px;
    margin-bottom: 24px;
    opacity: .8;
}

.empty-state p {
    font-size: 16px;
    color: var(--neutral-500);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM PAGINATE
   ═══════════════════════════════════════════════════════════ */

.bottom-paginate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-200);
}

.bottom-paginate .page-info {
    font-size: 13px;
    color: var(--neutral-500);
}

/* ═══════════════════════════════════════════════════════════
   BOX4 THEME — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

.product-box4 {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.product-box4:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-head-box4 {
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-head-box4 img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.product-head-box4 h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0;
    flex: 1;
}

.product-body-box4 {
    padding: 20px;
    min-height: auto;
}

.product-body-box4 p {
    font-size: 13px;
    color: var(--neutral-600);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-body-box4 p i {
    color: #10b981;
    margin-top: 2px;
}

.product-footer-box4 {
    padding: 16px;
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
}

.product-footer-box4 strong {
    font-size: 11px;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
    display: block;
}

.border-end-box4 {
    border-right: 1px solid var(--neutral-200) !important;
}

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

.price-box4 strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.price-box4 span {
    font-size: 13px;
    color: var(--neutral-400);
    text-decoration: line-through;
}

.proce-box4-not-discount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.product-buttons-box4 {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buy-btn-box4 {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary1, var(--primary)) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 59,130,246),.25);
}

.buy-btn-box4:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 59,130,246),.35);
}

.buy-btn-box4:disabled,
.buy-btn-box4.disabled {
    background: var(--neutral-300);
    color: var(--neutral-500);
    cursor: not-allowed;
    box-shadow: none;
}

.more-btn-box4 {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all var(--transition);
}

.more-btn-box4:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR FLOATING MENU — Enhanced styling
   ═══════════════════════════════════════════════════════════ */

#top-menu-right,
#top-menu-left {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

#top-menu-right li a,
#top-menu-left li a {
    background: #fff;
    color: var(--neutral-700);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

#top-menu-right li a:hover,
#top-menu-left li a:hover {
    background: var(--neutral-50);
    color: var(--primary);
}

#top-menu-right li a.active,
#top-menu-left li a.active {
    background: var(--primary);
    color: #fff;
}

#top-menu-right i,
#top-menu-left i {
    background: var(--neutral-100);
}

#top-menu-right li a.active i,
#top-menu-left li a.active i {
    background: rgba(255,255,255,.2);
}

/* Hidden state */
#top-menu-right.hidden,
#top-menu-left.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
}

#top-menu-left.hidden {
    transform: translateX(-100%);
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE — Popup notification (#modal_notification)
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] #modal_notification .modal-content {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] #modal_notification .modal-header {
    background: #1a1d27;
    border-color: #2a2f3d;
}

[data-theme="dark"] #modal_notification .modal-footer {
    background: #1a1d27;
    border-color: #2a2f3d;
}

/* Áp filter invert nhẹ lên toàn bộ modal-body để đảo màu nền sáng → tối
   Chỉ áp cho các div con có inline background sáng */
[data-theme="dark"] #modal_notification .modal-body {
    background: #1f2330 !important;
}

[data-theme="dark"] #modal_notification .modal-body * {
    /* Override màu chữ hardcode trắng-trên-tối không cần đổi,
       chỉ cần fix các khối nền sáng */
}

/* Khối nền trắng (kênh thông báo) — dùng JS inject class khi dark */
[data-theme="dark"] #modal_notification .popup-block-white {
    background: #252a38 !important;
    color: #c9d1e0 !important;
}

/* ═══════════════════════════════════════════════════════════
   COPY BUTTON
   ═══════════════════════════════════════════════════════════ */

.btn-copy-name {
    opacity: .5;
    transition: all var(--transition);
}

.btn-copy-name:hover {
    opacity: 1;
    color: var(--primary) !important;
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE — Feature cards & product components
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] .feature-card {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] .feature-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .feature-name a {
    color: #e2e8f0;
}

[data-theme="dark"] .feature-desc {
    color: #8892a4;
}

[data-theme="dark"] .label-text.feat {
    background: rgba(139, 92, 246, .2);
}

[data-theme="dark"] .label-text.order {
    background: rgba(59, 130, 246, .2);
}

[data-theme="dark"] .label-text.off {
    background: rgba(239, 68, 68, .2);
}

[data-theme="dark"] .btn-more {
    background: #252a38;
    border-color: #2a2f3d;
    color: #c9d1e0;
}

[data-theme="dark"] .btn-more:hover {
    background: #2a2f3d;
}

[data-theme="dark"] .home-heading {
    border-color: #2a2f3d;
}

[data-theme="dark"] .home-heading h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .product-box4 {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] .product-head-box4 {
    background: #1a1d27;
    border-color: #2a2f3d;
}

[data-theme="dark"] .product-head-box4 h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .product-body-box4 {
    background: #1f2330;
}

[data-theme="dark"] .product-body-box4 p {
    color: #8892a4;
}

[data-theme="dark"] .product-footer-box4 {
    background: #1a1d27;
    border-color: #2a2f3d;
}

[data-theme="dark"] .border-end-box4 {
    border-color: #2a2f3d !important;
}

[data-theme="dark"] .product-buttons-box4 {
    background: #1f2330;
}

[data-theme="dark"] .more-btn-box4 {
    background: transparent;
}

[data-theme="dark"] .more-btn-box4:hover {
    background: var(--primary);
}

[data-theme="dark"] #top-menu-right,
[data-theme="dark"] #top-menu-left {
    background: #1f2330;
    border-color: #2a2f3d;
}

[data-theme="dark"] #top-menu-right li a,
[data-theme="dark"] #top-menu-left li a {
    background: #1f2330;
    color: #c9d1e0;
}

[data-theme="dark"] #top-menu-right li a:hover,
[data-theme="dark"] #top-menu-left li a:hover {
    background: #252a38;
}

[data-theme="dark"] #top-menu-right i,
[data-theme="dark"] #top-menu-left i {
    background: #252a38;
}

[data-theme="dark"] .empty-state svg path {
    fill: #3d4456;
}

[data-theme="dark"] .bottom-paginate {
    border-color: #2a2f3d;
}

/* ═══════════════════════════════════════════════════════════
   NOTICE HOME — Class-based, supports dark/light mode
   ═══════════════════════════════════════════════════════════ */

.nh-wrap {
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
}

[data-theme="dark"] .nh-wrap {
    color: #c9d1e0;
}

.nh-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Gradient blocks — keep colors, just adjust shadow in dark */
.nh-block-gradient-orange {
    background: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255,69,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    margin-bottom: 24px;
    padding: 30px;
    text-align: center;
}

.nh-block-gradient-cyan {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(91,134,229,0.18);
    color: #fff;
    margin-bottom: 24px;
    padding: 20px;
    text-align: center;
}

.nh-block-gradient-purple {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(108,92,231,0.3);
    color: #fff;
    margin-bottom: 24px;
    padding: 25px;
    text-align: center;
}

/* Plain blocks */
.nh-block {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    padding: 22px;
    background: #fff;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

[data-theme="dark"] .nh-block {
    background: #252a38;
    color: #c9d1e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nh-block-danger {
    background: #fff9f9;
    border: 1px solid #ffcccb;
}

[data-theme="dark"] .nh-block-danger {
    background: #2a1a1a;
    border-color: #7f1d1d;
}

.nh-block-info {
    background: #f7f9ff;
    border: 1px solid #b3cde3;
}

[data-theme="dark"] .nh-block-info {
    background: #1a2030;
    border-color: #1e3a5f;
}

.nh-block-binance {
    border-left: 5px solid #F0B90B;
}

.nh-block-contact {
    border-left: 5px solid #00cec9;
}

.nh-block-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.nh-block-title-danger { color: #e74c3c; }
.nh-block-title-info   { color: #3498db; }
.nh-block-title-gold   { color: #F0B90B; text-align: center; }

.nh-block-a {
    color: #d41c5c;
    font-weight: bold;
    text-decoration: none;
}
.nh-block-a:hover { text-decoration: underline; }

/* Binance sub-cards */
.nh-binance-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.nh-binance-card {
    background: #fffbea;
    border: 1px solid #F0B90B;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

[data-theme="dark"] .nh-binance-card {
    background: #1f1a00;
    border-color: #b38a00;
    color: #e2c94a;
}

[data-theme="dark"] .nh-binance-card [class] {
    color: #c9d1e0;
}

.nh-binance-addr {
    font-size: 0.85em;
    word-break: break-all;
    color: #333;
    font-weight: normal;
    margin-top: 4px;
}

[data-theme="dark"] .nh-binance-addr {
    color: #c9d1e0;
}

.nh-binance-sub {
    font-size: 0.85em;
    color: #888;
    font-weight: normal;
}

[data-theme="dark"] .nh-binance-sub { color: #8892a4; }

/* Support time pill */
.nh-time-pill {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px;
    margin-top: 10px;
}

/* Contact grid */
.nh-contact-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 16px;
}

.nh-contact-btn {
    border-radius: 10px;
    color: #fff;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.2s;
}

.nh-contact-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
}

.nh-contact-btn-telegram  { background: linear-gradient(135deg, #0088cc, #54a3d8); }
.nh-contact-btn-zalo      { background: linear-gradient(135deg, #0180C7, #04a7f4); }
.nh-contact-btn-whatsapp  { background: linear-gradient(135deg, #25d366, #128c7e); }

.nh-contact-channel {
    text-align: center;
    margin: 0;
}

.nh-contact-channel a {
    color: #FA812F;
    font-weight: bold;
    text-decoration: none;
}

.nh-contact-channel a:hover { text-decoration: underline; }
