/**
 * NgoiSaoSo team
 * @version 3.x
 * @contact: xinchao@ngoisaoso.vn
 * @see https://www.ngoisaoso.vn
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */

/* =========================================================
   1. GLOBAL DESIGN TOKENS (BIẾN HỆ THỐNG DÙNG CHUNG)
   ========================================================= */
:root {
    --nss-primary: #3eaed5;
    --nss-primary-hover: #2ba0c8;
    --nss-primary-deep: #1b87aa;
    --nss-secondary: #f9f9f9;
    --nss-dark: #1b1b1b;

    /* Typography & Spacing Options (Có thể mở rộng thêm) */
    --nss-radius-md: 0.5rem;
    /* 8px */
    --nss-radius-lg: 0.75rem;
    /* 12px */
    --nss-radius-xl: 1rem;
    /* 16px */

    /* Shadows */
    --nss-shadow-primary: 0 12px 24px rgba(62, 174, 213, 0.25);
    --nss-shadow-primary-hover: 0 16px 32px rgba(43, 160, 200, 0.3);
}

/* =========================================================
   2. GLOBAL UI COMPONENTS (COMPONENTS DÙNG LIÊN MODULE)
   ========================================================= */

/* Button Primary (Màu Đỏ Nhận Diện Trọn Vẹn) */
.btn-nss-primary {
    background: linear-gradient(to bottom right, var(--nss-primary), var(--nss-primary-hover));
    color: #ffffff !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    border: none;
    border-radius: var(--nss-radius-xl);
    box-shadow: var(--nss-shadow-primary);
}

.btn-nss-primary:hover,
.btn-nss-primary:focus {
    background: linear-gradient(to bottom right, var(--nss-primary-hover), var(--nss-primary-deep));
    box-shadow: var(--nss-shadow-primary-hover);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Button Dark (Nút Đen Bổ Trợ) */
.btn-nss-dark {
    background-color: var(--nss-dark);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    border: none;
    border-radius: var(--nss-radius-xl);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-nss-dark:hover,
.btn-nss-dark:focus {
    background-color: var(--nss-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(176, 25, 25, 0.2);
}

/* Form Input Element (Chuẩn hóa viền đỏ khi focus) */
.form-input-nss {
    background-color: #ffffff;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #d1d5db !important;
    /* gray-300 */
    border-radius: var(--nss-radius-xl);
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease-in-out;
    outline: none;
}

.form-input-nss:focus {
    border-color: var(--nss-primary) !important;
    box-shadow: 0 0 0 2px rgba(176, 25, 25, 0.2) !important;
}

/* =========================================================
   3. GLOBAL UTILITY CLASSES (DỰ PHÒNG CHỐNG LỖI JIT)
   ========================================================= */

/* Text Colors */
.text-nss-primary {
    color: var(--nss-primary) !important;
}

.hover\:text-nss-primary:hover {
    color: var(--nss-primary) !important;
}

.text-nss-dark {
    color: var(--nss-dark) !important;
}

.hover\:text-nss-dark:hover {
    color: var(--nss-dark) !important;
}

/* Background Colors */
.bg-nss-primary {
    background-color: var(--nss-primary) !important;
}

.hover\:bg-nss-primary:hover {
    background-color: var(--nss-primary) !important;
}

.bg-nss-dark {
    background-color: var(--nss-dark) !important;
}

/* Border Colors */
.border-nss-primary {
    border-color: var(--nss-primary) !important;
}

.focus\:border-nss-primary:focus {
    border-color: var(--nss-primary) !important;
}

/* Nút Viền (Outline Button) */
.btn-nss-outline {
    background-color: transparent;
    color: var(--nss-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 1px solid #e2e2e2;
    border-radius: var(--nss-radius-md);
    transition: all 0.2s ease-in-out;
}

.btn-nss-outline:hover,
.btn-nss-outline:focus {
    background-color: var(--nss-primary);
    color: #ffffff !important;
    border-color: var(--nss-primary);
}

/* =========================================================
   4. LUMINOUS HERITAGE SCALES (DIGITAL ARCHITECT)
   ========================================================= */
:root {
    --lh-primary: #3eaed5;
    --lh-primary-container: #2ba0c8;
    --lh-background: #f8faf6;
    --lh-surface: #f8faf6;
    --lh-surface-container-low: #f2f4f0;
    --lh-surface-container-highest: #e1e3df;
    --lh-surface-lowest: #ffffff;
    --lh-on-surface: #191c1a;
    --lh-outline-ghost: rgba(62, 174, 213, 0.2);
}

/* Typography Editorial */
.lh-editorial {
    font-family: 'Manrope', sans-serif;
    color: var(--lh-on-surface);
    background-color: var(--lh-background);
}

.lh-editorial h1,
.lh-editorial h2,
.lh-editorial h3,
.lh-editorial h4,
.lh-editorial h5,
.lh-editorial h6,
.lh-font-display {
    font-family: 'Epilogue', sans-serif;
    letter-spacing: -0.02em;
    color: var(--lh-on-surface);
}

/* Tonal Layering Surfaces */
.lh-surface {
    background-color: var(--lh-surface);
}

.lh-surface-low {
    background-color: var(--lh-surface-container-low);
}

.lh-surface-lowest {
    background-color: var(--lh-surface-lowest);
}

.lh-surface-highest {
    background-color: var(--lh-surface-container-highest);
}

/* Ambient Shadows (No Hard Black) */
.lh-ambient-shadow {
    box-shadow: 0px 20px 40px rgba(25, 28, 26, 0.05);
    /* Tinted with on-surface */
    transition: all 0.3s ease;
}

.lh-ambient-shadow:hover {
    box-shadow: 0px 24px 48px rgba(25, 28, 26, 0.08);
}

/* Structural Gradients */
.lh-hero-gradient {
    /* Subtle linear gradient top-left to bottom-right */
    background: linear-gradient(135deg, var(--lh-primary) 0%, var(--lh-primary-container) 100%);
    color: #ffffff;
}

/* The Ghost Border */
.lh-ghost-border {
    border: 1px solid var(--lh-outline-ghost);
}

.lh-ghost-border-b {
    border-bottom: 1px solid var(--lh-outline-ghost);
}

/* Interaction Cards */
.lh-card {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    /* lg radius */
}

.lh-card:hover {
    background-color: var(--lh-surface-lowest);
    /* Surface bright */
    box-shadow: 0px 10px 30px rgba(25, 28, 26, 0.04);
}

/* Glassmorphism */
.lh-glass {
    background: rgba(248, 250, 246, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* =========================================================
   5. BỔ TÚC UTILITY CLASSES (DỰ PHÒNG KHÔNG CÓ TAILWIND COMPILER)
   ========================================================= */

/* Luminous Heritage Arbitrary Fixes */
.bg-\[var\(--lh-primary\)\] {
    background-color: var(--lh-primary) !important;
    color: #ffffff !important;
}

.text-\[var\(--lh-primary\)\] {
    color: var(--lh-primary) !important;
}

.text-\[var\(--lh-on-surface\)\] {
    color: var(--lh-on-surface) !important;
}

.bg-\[var\(--lh-surface-container-highest\)\] {
    background-color: var(--lh-surface-container-highest) !important;
}

/* Các Utility màu chuẩn của Tailwind */
.bg-zinc-900 {
    background-color: #18181b !important;
    color: #ffffff !important;
}

.text-white {
    color: #ffffff !important;
}

.text-zinc-400 {
    color: #a1a1aa !important;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-red-800\/20 {
    background-color: rgba(153, 27, 27, 0.2) !important;
}

.bg-blue-900\/20 {
    background-color: rgba(30, 58, 138, 0.2) !important;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-red-800 {
    background-color: #991b1b !important;
}

.hover\:bg-red-800:hover {
    background-color: #991b1b !important;
}

/* Sửa các vấn đề về nút bấm & Màu sắc thương hiệu #3eaed5 */
.bg-primary {
    background-color: var(--lh-primary) !important;
    color: white !important;
}

.text-primary {
    color: var(--lh-primary) !important;
}

.border-primary {
    border-color: var(--lh-primary) !important;
}

.bg-primary-container {
    background-color: var(--lh-primary-container) !important;
}

.text-primary-container {
    color: var(--lh-primary-container) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--lh-primary) !important;
    color: white !important;
}

.hover\:bg-primary-dark:hover {
    background-color: var(--lh-primary-container) !important;
    color: white !important;
}

.hover\:text-primary:hover {
    color: var(--lh-primary) !important;
}

.group:hover .group-hover\:text-primary {
    color: var(--lh-primary) !important;
}

.group:hover .group-hover\:bg-primary {
    background-color: var(--lh-primary) !important;
    color: white !important;
}

.group\/item:hover .group-hover\/item\:text-primary {
    color: var(--lh-primary) !important;
}

.group\/item:hover .group-hover\/item\:bg-primary {
    background-color: var(--lh-primary) !important;
    color: white !important;
}

.focus\:border-primary:focus,
.focus-within\:border-primary:focus-within {
    border-color: var(--lh-primary) !important;
}

/* Grid gap khẩn cấp */
.gap-6 {
    gap: 1.5rem !important;
}

.gap-8 {
    gap: 2rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.text-on-surface {
    color: var(--lh-on-surface) !important;
}

.text-secondary {
    color: #52525b !important;
}

/* zinc-600 */
.bg-surface-container {
    background-color: var(--lh-surface) !important;
}

.bg-surface-container-low {
    background-color: var(--lh-surface-container-low) !important;
}

.bg-surface-container-lowest {
    background-color: var(--lh-surface-lowest) !important;
}

/* Các Background cho dark-mode */
.text-on-primary {
    color: #ffffff !important;
}

.text-on-primary-container {
    color: #ffffff !important;
}

/* Menu Sub-item Icon Hover Fix */
.group\/item:hover .group-hover\/item\:text-white {
    color: #ffffff !important;
}

.group\/item:hover .group-hover\/item\:bg-primary {
    background-color: var(--lh-primary) !important;
}

.group\/item:hover .group-hover\/item\:scale-110 {
    transform: scale(1.1);
}

/* =========================================================
   6. CUSTOM MODULE OVERRIDES
   ========================================================= */

/* Tour Filter Form Glassmorphism */
.tour-filter-form {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
    box-shadow: 0 20px 40px rgba(25, 28, 26, 0.06) !important;
}

.tour-filter-form label {
    color: #6b7280 !important;
    /* gray-500 fallback */
}

/* Pagination Styling */
.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
    gap: 0.5rem !important;
}

.pagination li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.pagination li a,
.pagination li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--nss-dark) !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: var(--nss-radius-md) !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
}

.pagination li a:hover {
    background-color: var(--nss-primary) !important;
    color: #ffffff !important;
    border-color: var(--nss-primary) !important;
}

.pagination li.active span,
.pagination li.active a {
    background-color: var(--nss-primary) !important;
    color: #ffffff !important;
    border-color: var(--nss-primary) !important;
}

.pagination li.disabled span,
.pagination li.disabled a {
    color: #9ca3af !important;
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    cursor: not-allowed !important;
}

/* =====================================================
   Menu Chính Full Màn Hình - Gradient #2b6cb0 -> #3eaed5
   ===================================================== */
.header-main-menu-bar {
    width: 100% !important;
    background: linear-gradient(90deg, #2b6cb0 0%, #3eaed5 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(90deg, #20538a 0%, #3eaed5 100%) 1 !important;
}

#desktop-menu-container {
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
}

.header-main-menu-bar .nav-item-full,
#desktop-menu-container .nav-item-full {
    background: transparent !important;
    background-color: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.7) !important;
    transition: background-color 0.2s ease;
}

.header-main-menu-bar .nav-item-full:last-child,
#desktop-menu-container .nav-item-full:last-child {
    border-right: none !important;
}

.header-main-menu-bar .nav-item-full:hover,
#desktop-menu-container .nav-item-full:hover,
.header-main-menu-bar .nav-item-full>a:hover,
#desktop-menu-container .nav-item-full>a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Riêng mục cuối của menu chính: Menu con mở qua trái để không bị mất nội dung */
.header-main-menu-bar .nav-item-full:last-child>.absolute,
#desktop-menu-container .nav-item-full:last-child>.absolute,
.nav-item-full:last-child>.absolute,
.nav-item-full:last-child div.absolute {
    left: auto !important;
    right: 0 !important;
}

.header-main-menu-bar .nav-item-full a,
#desktop-menu-container .nav-item-full a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 300 !important;
    gap: 4px !important;
}

.header-main-menu-bar .main-menu-text,
#desktop-menu-container .main-menu-text,
.nav-item-full .main-menu-text {
    font-size: 14.5px !important;
    font-weight: 300 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.2 !important;
}

.header-main-menu-bar .main-menu-icon,
#desktop-menu-container .main-menu-icon,
.nav-item-full .main-menu-icon {
    font-size: 20px !important;
    font-weight: 300 !important;
    font-variation-settings: 'wght' 300 !important;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 1536px) {

    .header-main-menu-bar .main-menu-text,
    #desktop-menu-container .main-menu-text,
    .nav-item-full .main-menu-text {
        font-size: 15.5px !important;
        letter-spacing: -0.2px !important;
    }

    .header-main-menu-bar .main-menu-icon,
    #desktop-menu-container .main-menu-icon,
    .nav-item-full .main-menu-icon {
        font-size: 21px !important;
    }
}

.header-main-menu-bar .nav-item-full .material-symbols-outlined,
#desktop-menu-container .nav-item-full .material-symbols-outlined {
    color: #ffffff !important;
}

/* Menu con - Icon nền màu logo #3eaed5 & Khoảng cách gấp đôi */
.submenu-item {
    gap: 24px !important;
}

.submenu-icon-box {
    background-color: #3eaed5 !important;
    color: #ffffff !important;
}

.group\/item:hover .submenu-icon-box,
a:hover>.submenu-icon-box {
    background-color: #269ec7 !important;
}

.submenu-icon-box .material-symbols-outlined {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    font-variation-settings: 'wght' 300 !important;
}

/* =====================================================
   Header Layout & Logo theo chuẩn web cũ
   ===================================================== */
.site-header-logo {
    height: 108px !important;
    max-height: 108px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
}

@media (max-width: 768px) {
    .site-header-logo {
        height: 64px !important;
        max-height: 64px !important;
    }
}

.header-search-form {
    border: 1px solid transparent !important;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(90deg, #2b6cb0 0%, #3eaed5 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    height: 44px !important;
}

.header-search-icon-wrap {
    padding-left: 24px !important;
    padding-right: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.header-search-icon {
    color: #2b6cb0 !important;
    font-size: 20px !important;
}

.header-search-btn {
    background: linear-gradient(135deg, #2b6cb0 0%, #3eaed5 100%) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 0 9999px 9999px 0 !important;
    padding: 0 24px !important;
    height: 100% !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, filter 0.2s ease !important;
}

.header-search-btn:hover {
    filter: brightness(0.92) !important;
}

/* =====================================================
   Bố cục Header: [Logo] -> [Tìm kiếm] -> [Cụm chức năng]
   ===================================================== */
.site-header-flex-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

.site-header-logo-wrap {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.site-header-search-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 680px !important;
}

.site-header-actions-wrap {
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
}

.site-header-v-divider {
    display: inline-block !important;
    width: 1px !important;
    height: 14px !important;
    background-color: #d1d5db !important;
    margin: 0 12px !important;
}

@media (max-width: 1023px) {
    .site-header-flex-row {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    .site-header-search-wrap {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .site-header-actions-wrap {
        display: none !important;
    }
}

/* Khoảng cách giữa footer và khối phía trên gấp đôi hiện tại */
#nss-viewed-products-section,
#nss-promotion-products-section:not(.has-next-section) {
    padding-bottom: 96px !important;
}

@media (min-width: 768px) {

    #nss-viewed-products-section,
    #nss-promotion-products-section:not(.has-next-section) {
        padding-bottom: 120px !important;
    }
}

/* =====================================================
   Footer - Chuẩn Web Cũ & Gọn Gàng Tinh Tế
   ===================================================== */
.site-footer-main {
    background: linear-gradient(135deg, #184271 0%, #205691 35%, #2b6cb0 70%, #3598bb 100%) !important;
    color: #ffffff !important;
    font-family: 'Manrope', sans-serif !important;
}

.site-footer-main ul,
.site-footer-main ol {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-footer-main li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
}

.site-footer-main .footer-service-list li {
    margin: 0 0 6.5px 0 !important;
    line-height: 1.45 !important;
}

.site-footer-main .footer-service-list li:last-child {
    margin-bottom: 0 !important;
}

.site-footer-main .footer-product-list li {
    margin: 0 0 5px 0 !important;
    line-height: 1.4 !important;
}

.site-footer-main .footer-product-list li:last-child {
    margin-bottom: 0 !important;
}

.site-footer-policy-list div {
    margin-bottom: 5px !important;
    line-height: 1.45 !important;
}

.site-footer-policy-list div:last-child {
    margin-bottom: 0 !important;
}

.site-footer-main a {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.site-footer-main a:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

.site-footer-pay-card {
    background-color: #ffffff !important;
    border-radius: 6px !important;
    width: 74px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    padding: 3px !important;
}

.site-footer-pay-card img {
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    object-fit: contain !important;
}

.site-footer-app-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 140px !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
}

.site-footer-app-btn:hover {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

.site-footer-social-icon {
    width: 36px !important;
    height: 36px !important;
    background-color: #ffffff !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.2s ease !important;
    text-decoration: none !important;
}

.site-footer-social-icon:hover {
    transform: translateY(-2px) !important;
}

.site-footer-social-icon.fb svg,
.site-footer-social-icon.fb path {
    fill: #1877F2 !important;
}

.site-footer-social-icon.yt svg path {
    fill: #FF0000 !important;
}

.site-footer-social-icon.yt svg polygon {
    fill: #FFFFFF !important;
}

.site-footer-social-icon.zl span {
    color: #0068FF !important;
}

/* =====================================================
   Trang Liên hệ (/contact/) - Danh sách Phòng Ban & Hotline
   ===================================================== */
.contact-bodytext .contact-dep-card {
    background-color: #f1f4f9;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
    transition: all 0.2s ease-in-out;
}

.contact-bodytext .contact-dep-card:hover {
    border-color: #cbd5e1;
    background-color: #eaf0f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact-bodytext .contact-dep-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.contact-bodytext .contact-dep-info {
    font-size: 14px;
    color: #334155;
    margin: 0 0 5px 0;
    line-height: 1.5;
}

.contact-bodytext .contact-dep-info:last-child {
    margin-bottom: 0;
}

.contact-bodytext .contact-emergency-notice {
    margin-top: 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
}

/* =========================================================
   PRODUCTS MODULE BRAND PALETTE (HEADER & FOOTER BLUE SYNC)
   ========================================================= */
.text-\[\#2b6cb0\],
.text-brand-blue {
    color: #2b6cb0 !important;
}

.text-\[\#3eaed5\],
.text-brand-cyan,
.sidebar-title-icon {
    color: #3eaed5 !important;
}

.text-\[\#f58220\],
.text-star-orange,
.fas.fa-star.text-\[\#f58220\] {
    color: #f58220 !important;
}

a.hover\:text-\[\#2b6cb0\]:hover,
.hover\:text-\[\#2b6cb0\]:hover {
    color: #2b6cb0 !important;
}

.group:hover .group-hover\:text-\[\#2b6cb0\] {
    color: #2b6cb0 !important;
}

.bg-\[\#2b6cb0\],
.btn-brand-blue {
    background: linear-gradient(90deg, #2b6cb0 0%, #3eaed5 100%) !important;
    color: #ffffff !important;
}

.hover\:bg-\[\#184271\]:hover,
.bg-\[\#2b6cb0\]:hover,
.btn-brand-blue:hover {
    background: linear-gradient(90deg, #205691 0%, #2ba0c8 100%) !important;
    filter: brightness(0.95) !important;
}

.border-\[\#2b6cb0\] {
    border-color: #2b6cb0 !important;
}

.hover\:border-\[\#2b6cb0\]:hover {
    border-color: #2b6cb0 !important;
}

.hover\:border-\[\#2b6cb0\]\/50:hover {
    border-color: rgba(43, 108, 176, 0.5) !important;
}

.bg-\[\#2b6cb0\]\/10 {
    background-color: rgba(43, 108, 176, 0.1) !important;
}

.bg-\[\#2b6cb0\]\/5 {
    background-color: rgba(43, 108, 176, 0.05) !important;
}

.focus\:border-\[\#2b6cb0\]:focus {
    border-color: #2b6cb0 !important;
}

.peer:checked~.peer-checked\:border-\[\#2b6cb0\] {
    border-color: #2b6cb0 !important;
}

.peer:checked~.peer-checked\:bg-\[\#2b6cb0\]\/5 {
    background-color: rgba(43, 108, 176, 0.05) !important;
}

.peer:checked~.peer-checked\:text-\[\#2b6cb0\] {
    color: #2b6cb0 !important;
}

/* Header/Footer Signature Gradient for Buttons & Badges */
.bg-gradient-to-r.from-\[\#2b6cb0\].to-\[\#3eaed5\],
[class*="from-[#2b6cb0]"][class*="to-[#3eaed5]"] {
    background: linear-gradient(90deg, #2b6cb0 0%, #3eaed5 100%) !important;
    color: #ffffff !important;
}

[class*="from-[#2b6cb0]"][class*="to-[#3eaed5]"]:hover {
    filter: brightness(0.93) !important;
}

.user-reg-form .bsubmit,
.bsubmit.btn-brand-blue {
    background: linear-gradient(90deg, #2b6cb0 0%, #3eaed5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(43, 108, 176, 0.25) !important;
    transition: all 0.2s ease !important;
}

.user-reg-form .bsubmit:hover,
.bsubmit.btn-brand-blue:hover {
    background: linear-gradient(90deg, #205691 0%, #2ba0c8 100%) !important;
    filter: brightness(0.96) !important;
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.35) !important;
    transform: translateY(-1px);
}

.user-reg-form .bsubmit:active,
.bsubmit.btn-brand-blue:active {
    transform: translateY(0);
}

/* =========================================================
   MINI-CART SLIDE-OVER DRAWER (SYSTEM CSS)
   ========================================================= */
#mini-cart-drawer.mini-cart-drawer-root {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    display: none;
    pointer-events: none;
}

#mini-cart-drawer.mini-cart-drawer-root.active {
    display: block !important;
    pointer-events: auto !important;
}

#mini-cart-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    z-index: 1;
}

#mini-cart-drawer.active #mini-cart-backdrop {
    opacity: 1;
}

#mini-cart-panel.mini-cart-panel-box {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

#mini-cart-drawer.active #mini-cart-panel.mini-cart-panel-box {
    transform: translateX(0);
}

.mini-cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.mini-cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.mini-cart-close-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: rotate(90deg);
}

.mini-cart-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mini-cart-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.mini-cart-thumb {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mini-cart-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mini-cart-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.mini-cart-stepper button {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: #f8fafc;
    border: none;
    transition: background 0.15s ease;
    cursor: pointer;
    padding: 0;
}

.mini-cart-stepper button:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mini-cart-stepper .qty-val {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.mini-cart-del-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mini-cart-del-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ==========================================================================
   HEADER CART BADGE (PIXEL-PERFECT PROPORTIONS & RATIO)
   ========================================================================== */
.js-header-cart-badge,
#header-cart-badge,
.header-cart-badge {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    height: 18px !important;
    min-width: 18px !important;
    padding: 0 4.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f35a00 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 18px !important;
    text-align: center !important;
    font-variant-numeric: tabular-nums !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1.5px #ffffff !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 10 !important;
    transform-origin: center center !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Khi có 1 chữ số (hoặc số 0): Giữ tỷ lệ hình tròn chuẩn tuyệt đối 18px x 18px */
.js-header-cart-badge[data-length="1"] {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

/* Khi có 2 chữ số (vd: 11, 25, 99): Mở rộng viên thuốc nằm ngang thanh thoát, không bao giờ bị méo dọc */
.js-header-cart-badge[data-length="2"] {
    min-width: 22px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
}

/* Khi có từ 3 chữ số trở lên (vd: 100, 999): Tự động mở rộng bề ngang */
.js-header-cart-badge[data-length="3"],
.js-header-cart-badge[data-length="4"] {
    min-width: 26px !important;
    height: 18px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
}

/* ==========================================================================
   PRODUCT CARD ACTION BUTTONS (MUA NGAY + THÊM GIỎ CHUẨN SÀN TMĐT)
   ========================================================================== */
.product-card-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    padding-bottom: 4px !important;
}

.product-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    /* Tăng khoảng cách giữa 2 nút cho thoáng mắt */
    padding: 12px 10px 12px 10px !important;
    margin-top: auto !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    margin-bottom: -12px !important;
    border-top: 1px solid #f1f5f9 !important;
    width: calc(100% + 24px) !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .product-card-actions {
        margin-left: -14px !important;
        margin-right: -14px !important;
        margin-bottom: -14px !important;
        padding: 12px 12px 12px 12px !important;
        width: calc(100% + 28px) !important;
    }
}

/* Nút Mua ngay: Đổi hướng gradient từ #3eaed5 sang #2b6cb0 */
.btn-card-buy-now {
    flex: 1 1 0% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(90deg, #3eaed5 0%, #2b6cb0 100%) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: 0.1px !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(43, 108, 176, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.btn-card-buy-now:hover {
    background: linear-gradient(90deg, #2ba0c8 0%, #205691 100%) !important;
    filter: brightness(0.95) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3) !important;
    transform: translateY(-1px) !important;
}

.btn-card-buy-now:active {
    transform: translateY(0) scale(0.98) !important;
}

.btn-card-buy-now i {
    font-size: 11px !important;
    color: #fde047 !important;
    /* Tia sét vàng nổi bật */
}

/* Nút Thêm vào giỏ: Nền xám nhẹ, viền mảnh 1px, icon màu #3eaed5 */
.btn-card-add-cart {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    /* Nền xám nhẹ thanh lịch */
    color: #3eaed5 !important;
    border: 1px solid #e2e8f0 !important;
    /* Viền mảnh 1px thanh lịch */
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.btn-card-add-cart:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px) !important;
}

.btn-card-add-cart:active {
    transform: translateY(0) scale(0.95) !important;
}

.btn-card-add-cart i,
.btn-card-add-cart .material-symbols-outlined {
    color: #3eaed5 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    transition: transform 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-card-add-cart:hover i,
.btn-card-add-cart:hover .material-symbols-outlined {
    color: #3eaed5 !important;
    transform: scale(1.15) !important;
}

.dark .btn-card-add-cart {
    background: rgba(43, 108, 176, 0.15) !important;
    border-color: rgba(43, 108, 176, 0.4) !important;
    color: #60a5fa !important;
}

.dark .btn-card-add-cart:hover {
    background: #2b6cb0 !important;
    color: #ffffff !important;
}

/* Nút Liên hệ báo giá (Sản phẩm giá Liên hệ) */
.btn-card-contact-price {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #184271 0%, #2b6cb0 100%) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: 0.1px !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(24, 66, 113, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.btn-card-contact-price:hover {
    background: linear-gradient(135deg, #102d4f 0%, #1f5083 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24, 66, 113, 0.35) !important;
    transform: translateY(-1px) !important;
}

.btn-card-contact-price:active {
    transform: translateY(0) scale(0.98) !important;
}

.btn-card-contact-price i {
    font-size: 12px !important;
    color: #93c5fd !important;
}

.dark .btn-card-contact-price {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.4) !important;
}

/* =========================================================
   17. PRODUCT LISTING LEFT-BODY LAYOUT & SORT TABS
   ========================================================= */
.nss-product-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 992px) {
    .nss-product-layout {
        flex-direction: row;
        gap: 1.75rem;
    }
}

/* ==========================================================================
   HỆ THỐNG CONTAINER TOÀN TRANG (NSSV3 THEME)
   - Riêng trang Danh sách sản phẩm (viewcat / main / search): rộng 1440px
   - Tất cả các trang còn lại (Trang chủ, Chi tiết SP, Giỏ hàng, Đơn hàng, Tin tức, Liên hệ...): rộng 1350px
   ========================================================================== */

/* 1. Container chuẩn cho toàn bộ website: 1350px */
.max-w-7xl,
.max-w-8xl,
.max-w-6xl,
.max-w-\[1350px\],
.max-w-1350,
.site-container,
.site-content-container,
.container {
    max-width: 1350px !important;
}

@media (min-width: 1200px) {
    .container {
        width: 100% !important;
        max-width: 1350px !important;
    }
}

@media (min-width: 1390px) {

    .container,
    .max-w-7xl,
    .max-w-8xl,
    .max-w-6xl,
    .max-w-\[1350px\],
    .max-w-1350,
    .site-container {
        max-width: 1350px !important;
    }
}

/* 2. Riêng trang Danh sách sản phẩm (viewcat / main / search): container rộng 1440px */
body.page-product-list .max-w-7xl,
body.page-product-list .max-w-8xl,
body.page-product-list .container,
body.page-product-list .site-container,
body:has(.nss-product-layout) .max-w-7xl,
body:has(.nss-product-layout) .max-w-8xl,
body:has(.nss-product-layout) .container,
body:has(.nss-product-layout) .site-container,
.nss-product-layout-container {
    max-width: 1440px !important;
}

@media (min-width: 1200px) {

    body.page-product-list .container,
    body:has(.nss-product-layout) .container {
        width: 100% !important;
        max-width: 1440px !important;
    }
}

@media (min-width: 1480px) {

    body.page-product-list .nss-product-layout-container,
    body:has(.nss-product-layout) .nss-product-layout-container,
    body.page-product-list .max-w-7xl,
    body:has(.nss-product-layout) .max-w-7xl {
        max-width: 1440px !important;
    }
}

.nss-product-sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .nss-product-sidebar {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        flex-shrink: 0;
    }
}

.nss-product-body {
    width: 100%;
    flex: 1 1 0%;
    min-width: 0;
}

.nss-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .nss-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .nss-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .nss-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.125rem;
    }
}



.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    padding: 0.325rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 11.5px;
    /* Giảm ~2px theo yêu cầu người dùng */
    font-weight: 400;
    /* Chữ thường, không in đậm */
    text-transform: none;
    line-height: 1.35;
    color: #334155;
    text-decoration: none !important;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.sidebar-cat-item:hover {
    background-color: #f1f5f9;
    color: #2b6cb0;
}

.sidebar-cat-item.is-active {
    background-color: rgba(43, 108, 176, 0.08);
    color: #2b6cb0;
    font-weight: 500;
    /* Giữ độ đậm vừa phải, không in đậm thô */
    border-color: rgba(43, 108, 176, 0.25);
}

.filter-pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 0.375rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2b6cb0;
}

.sort-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 9999px;
    /* Kiểu oval hoàn chỉnh */
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

@media (max-width: 639px) {
    .sort-tab {
        padding: 0.35rem 0.65rem !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

.sort-tab:hover {
    color: #3eaed5;
    border-color: #3eaed5;
    background-color: #f0f9ff;
}

.sort-tab.active-sort {
    color: #ffffff !important;
    background: #3eaed5 !important;
    /* Nền màu #3eaed5 theo yêu cầu */
    border-color: #3eaed5 !important;
    box-shadow: 0 2px 8px rgba(62, 174, 213, 0.35);
}

/* =========================================================
   BREADCRUMB CHỐNG RỚT DÒNG TRÊN MOBILE
   ========================================================= */
.site-breadcrumb,
nav.site-breadcrumb,
.nss-product-layout-container>nav,
.max-w-7xl>nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.375rem !important;
}

.site-breadcrumb::-webkit-scrollbar,
nav.site-breadcrumb::-webkit-scrollbar,
.nss-product-layout-container>nav::-webkit-scrollbar,
.max-w-7xl>nav::-webkit-scrollbar {
    display: none !important;
}

.site-breadcrumb a,
.site-breadcrumb span,
.nss-product-layout-container>nav a,
.nss-product-layout-container>nav span,
.max-w-7xl>nav a,
.max-w-7xl>nav span {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* =========================================================
   PRODUCT REVIEWS OVERVIEW (MẪU WEB CŨ TRUNGTAMCANHBAO)
   ========================================================= */
.ttcb-review-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
}

.ttcb-review-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 20px;
}

.ttcb-review-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ttcb-review-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-align: center;
}

.ttcb-review-score-title {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

.ttcb-review-score-num {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 6px;
}

.ttcb-review-score-stars {
    font-size: 18px;
    color: #f58220;
    margin-bottom: 6px;
    display: flex;
    gap: 3px;
}

.ttcb-review-score-count {
    font-size: 12px;
    color: #64748b;
}

.ttcb-review-bars-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    max-width: 440px;
    min-width: 260px;
}

.ttcb-review-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.ttcb-review-bar-stars {
    display: flex;
    gap: 3px;
    color: #f58220;
    font-size: 11px;
    width: 75px;
    justify-content: flex-end;
    white-space: nowrap;
}

.ttcb-review-bar-track {
    flex: 1;
    height: 12px;
    background-color: #6b7280;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.ttcb-review-bar-fill {
    height: 100%;
    background-color: #f58220;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.ttcb-review-bar-pct {
    width: 38px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.ttcb-review-btn-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ttcb-review-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3eaed5 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none !important;
}

.ttcb-review-write-btn:hover {
    background-color: #2da1c9 !important;
    color: #ffffff !important;
}

.ttcb-review-write-btn:active {
    transform: scale(0.98);
}

.ttcb-review-write-btn i {
    color: #ffffff !important;
}

/* ==========================================================================
   LIGHTBOX POPUP SẢN PHẨM (NSSV3)
   ========================================================================== */
#productLightboxModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

#productLightboxModal.hidden {
    display: none !important;
}

.lightbox-close-btn {
    position: fixed !important;
    top: 20px !important;
    right: 24px !important;
    z-index: 100001 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.lightbox-close-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: scale(1.1) !important;
}

.lightbox-close-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
}

.lightbox-nav-btn {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100000 !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid rgba(203, 213, 225, 0.8) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.lightbox-nav-btn.prev {
    left: 24px !important;
}

.lightbox-nav-btn.next {
    right: 24px !important;
}

.lightbox-nav-btn:hover {
    background: #2b6cb0 !important;
    color: #ffffff !important;
    border-color: #2b6cb0 !important;
    transform: translateY(-50%) scale(1.12) !important;
}

.lightbox-nav-btn svg {
    width: 26px !important;
    height: 26px !important;
    stroke: currentColor !important;
}

.lightbox-card-container {
    position: relative !important;
    max-width: 90vw !important;
    max-height: 88vh !important;
    background: #ffffff !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-card-container img {
    max-height: 72vh !important;
    max-width: 80vw !important;
    object-fit: contain !important;
    border-radius: 0.75rem !important;
}

/* ==========================================================================
   PRODUCT DETAIL TABS (TĂNG KHOẢNG CÁCH, VIỀN MỎNG)
   ========================================================================== */
#product-tab-nav {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    /* Tăng khoảng giữa các tab gấp đôi */
    padding: 6px !important;
    background: #f1f5f9 !important;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
}

#product-tab-nav .tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 20px !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    /* Xóa viền button mặc định thô của trình duyệt */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

#product-tab-nav .tab-btn:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid #e2e8f0 !important;
    /* Viền mỏng khi hover */
}

#product-tab-nav .tab-btn.active {
    font-weight: 700 !important;
    color: #2b6cb0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    /* Viền mỏng xám thanh mảnh */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Tabs chi tiết sản phẩm trên di động: Nằm trên 1 hàng duy nhất, không rớt dòng */
@media (max-width: 767px) {
    .product-tab-header-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
        max-width: 100% !important;
    }

    .product-tab-header-wrap::-webkit-scrollbar {
        display: none !important;
    }

    #product-tab-nav {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 4px !important;
        max-width: none !important;
        width: max-content !important;
        border-radius: 0.875rem !important;
    }

    #product-tab-nav .tab-btn {
        padding: 7px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
        border-radius: 0.625rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #product-tab-nav .tab-btn i {
        font-size: 12px !important;
    }
}

/* ==========================================================================
   TÀI LIỆU KỸ THUẬT CARD (XEM TRỰC TUYẾN)
   ========================================================================== */
.product-doc-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    background: #ffffff !important;
    padding: 1rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    transition: all 0.2s ease !important;
}

.product-doc-card:hover {
    border-color: #2b6cb0 !important;
    box-shadow: 0 6px 16px -2px rgba(43, 108, 176, 0.12) !important;
}

.product-doc-link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    /* Giãn khoảng cách giữa icon và chữ */
    flex: 1 !important;
    min-width: 0 !important;
    text-decoration: none !important;
}

.product-doc-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 0.5rem !important;
    background: #e0f2fe !important;
    color: #2b6cb0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 1.1rem !important;
    transition: all 0.2s ease !important;
}

.product-doc-card:hover .product-doc-icon {
    background: #2b6cb0 !important;
    color: #ffffff !important;
}

.product-doc-title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.2s ease !important;
}

.product-doc-card:hover .product-doc-title {
    color: #2b6cb0 !important;
}

.product-doc-btn {
    flex-shrink: 0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: 0.625rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.product-doc-btn:hover {
    background: #2b6cb0 !important;
    color: #ffffff !important;
    border-color: #2b6cb0 !important;
}

/* ==========================================================================
   PHỤ KIỆN CHỌN THÊM (VIỀN MỎNG MÀU XÁM)
   ========================================================================== */
#tab-content-attach .attach-product-card {
    border: 1px solid #e2e8f0 !important;
    /* Viền mỏng màu xám */
    border-radius: 0.75rem !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

#tab-content-attach .attach-product-card:hover {
    border-color: #2b6cb0 !important;
    box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

#tab-content-attach .btn-attach-add-cart {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 639px) {
    #tab-content-attach .btn-attach-add-cart {
        padding: 7px 4px !important;
        font-size: 10.5px !important;
        gap: 3px !important;
        white-space: nowrap !important;
        letter-spacing: -0.015em !important;
    }

    #tab-content-attach .btn-attach-add-cart .material-symbols-outlined {
        font-size: 14.5px !important;
    }
}

/* Nút Yêu thích trên mobile: Nằm cùng hàng với các nút Mua hàng, không bị rớt dòng */
@media (max-width: 639px) {
    #btn-wishlist-action {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   ĐỒNG BỘ TYPOGRAPHY PLACEHOLDER CHO TẤT CẢ CÁC FORM (USER & SẢN PHẨM)
   Kiểu: text-xs sm:text-sm text-zinc-500 dark:text-zinc-400
   Font-family chuẩn: Inter, sans-serif
   ========================================================================== */
input,
textarea,
select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

input::placeholder,
textarea::placeholder,
select::placeholder,
.form-control::placeholder {
    font-size: 0.75rem !important;
    /* text-xs: 12px */
    line-height: 1.25rem !important;
    color: #71717a !important;
    /* text-zinc-500 */
    opacity: 1 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400;
}

@media (min-width: 640px) {

    input::placeholder,
    textarea::placeholder,
    select::placeholder,
    .form-control::placeholder {
        font-size: 0.875rem !important;
        /* sm:text-sm: 14px */
        line-height: 1.25rem !important;
    }
}

.dark input::placeholder,
.dark textarea::placeholder,
.dark select::placeholder,
.dark .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] select::placeholder {
    color: #a1a1aa !important;
    /* dark:text-zinc-400 */
}

input:hover::placeholder,
textarea:hover::placeholder {
    color: #52525b;
    /* text-zinc-600 */
}

.dark input:hover::placeholder,
.dark textarea:hover::placeholder {
    color: #d4d4d8;
    /* dark:text-zinc-300 */
}

/* ==========================================================================
   MOBILE SHOPEE APP UI ENHANCEMENTS
   ========================================================================== */

/* 1. Body Padding trên Mobile để không bị Bottom Bar che phủ */
@media (max-width: 1023px) {
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom)) !important;
    }

    body:has(.product-sticky-buy-bar) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    }
}

/* Khi có Sticky Buy Bar ở trang chi tiết sản phẩm, ẩn Bottom Nav thông thường */
body:has(.product-sticky-buy-bar) #mobile-bottom-nav {
    display: none !important;
}

/* 2. Mobile Bottom Navigation Bar (5 Items) */
.mobile-bottom-nav-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 58px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid #e2e8f0 !important;
    z-index: 50 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    padding-bottom: env(safe-area-inset-bottom);
}

.dark .mobile-bottom-nav-bar {
    background: rgba(24, 24, 27, 0.96) !important;
    border-top-color: #27272a !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3) !important;
}

.mobile-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dark .bottom-nav-item {
    color: #a1a1aa;
}

.bottom-nav-item:active,
.bottom-nav-item.active {
    color: #2b6cb0 !important;
}

.dark .bottom-nav-item:active,
.dark .bottom-nav-item.active {
    color: #38bdf8 !important;
}

.bottom-nav-icon {
    font-size: 23px !important;
    line-height: 1 !important;
}

.bottom-nav-label {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    font-weight: 500;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 700 !important;
}

.bottom-nav-badge {
    position: absolute !important;
    top: -5px !important;
    right: -10px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    background-color: #d9383a !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Floating Action Button (Nút Tư Vấn Nổi Bật Trung Tâm) */
.bottom-nav-center-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    position: relative;
    user-select: none;
}

.bottom-nav-fab {
    width: 44px;
    height: 44px;
    margin-top: -18px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2b6cb0 0%, #3eaed5 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(43, 108, 176, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.dark .bottom-nav-fab {
    border-color: #18181b;
}

.bottom-nav-fab:active {
    transform: scale(0.92);
}

/* 3. Mobile Contact Sheet Modal */
.mobile-contact-sheet-root {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mobile-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.mobile-contact-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: env(safe-area-inset-bottom);
}

.dark .mobile-contact-sheet-panel {
    background: #18181b;
}

.mobile-contact-sheet-handle {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 9999px;
    margin: 10px auto 0;
}

@keyframes sheetSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 4. Product Grid & Shopee Product Card (Lưới 2 Cột Siêu Gọn) */
@media (max-width: 639px) {
    .nss-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }

    .shopee-product-card {
        border-radius: 0.75rem !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    .shopee-product-card .product-card-thumb {
        padding: 0.5rem !important;
    }

    .shopee-product-card .product-card-price .text-base {
        font-size: 0.875rem !important;
        font-weight: 800 !important;
    }

    /* Ẩn bớt 2 nút to dàn hàng ngang trên mobile phone nhỏ, thay bằng nút tròn góc phải */
    .shopee-product-card .product-card-actions {
        padding-top: 0.375rem !important;
        display: flex !important;
        gap: 0.375rem !important;
    }

    .shopee-product-card .btn-card-buy-now {
        font-size: 11px !important;
        padding: 0.35rem 0.5rem !important;
        height: 32px !important;
    }

    .shopee-product-card .btn-card-add-cart {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }

    .shopee-product-card .btn-card-contact-price {
        font-size: 11px !important;
        padding: 0.35rem 0.5rem !important;
        height: 32px !important;
    }
}

/* Desktop: Danh sách sản phẩm (main, viewcat, search) và Sản phẩm cùng loại (detail) đồng bộ với SẢN PHẨM NỔI BẬT */
@media (min-width: 1024px) {

    .shopee-product-card .product-card-thumb,
    .related-prod-card .product-card-thumb {
        aspect-ratio: auto !important;
        height: 155px !important;
        min-height: 155px !important;
        max-height: 155px !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .shopee-product-card .product-card-thumb a,
    .related-prod-card .product-card-thumb a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .shopee-product-card .product-card-thumb img,
    .related-prod-card .product-card-thumb img {
        max-width: 150px !important;
        max-height: 145px !important;
        width: auto !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        object-fit: contain !important;
    }

    .shopee-product-card h3,
    .related-prod-card h3 {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        line-height: 1.35 !important;
        margin-bottom: 0.375rem !important;
        min-height: auto !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
        white-space: normal !important;
        text-overflow: clip !important;
    }

    .shopee-product-card h3 a,
    .related-prod-card h3 a {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .dark .shopee-product-card h3,
    .dark .related-prod-card h3 {
        color: #f4f4f5 !important;
    }
}

/* 5. Mobile Filter Drawer (Slide-Over Panel trên Mobile) */
@media (max-width: 991px) {
    .nss-product-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 320px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18) !important;
        padding: 1.25rem 1rem !important;
        margin: 0 !important;
    }

    .nss-product-sidebar.is-open {
        right: 0 !important;
    }

    .mobile-filter-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .mobile-filter-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* 6. Sticky Buy Bar trên Trang Chi Tiết Sản Phẩm (Shopee Style) */
.product-sticky-buy-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 55 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.dark .product-sticky-buy-bar {
    background: rgba(24, 24, 27, 0.98) !important;
    border-top-color: #27272a !important;
}

/* Trên Desktop (>= 1024px): Giảm chiều rộng vừa vặn, bo tròn viền nổi bật, gắn ở vị trí right bottom */
@media (min-width: 1024px) {
    .product-sticky-buy-bar {
        left: auto !important;
        right: 24px !important;
        bottom: 24px !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        border-radius: 16px !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        padding: 8px 14px !important;
        gap: 10px !important;
        box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.08) !important;
    }

    .dark .product-sticky-buy-bar {
        border-color: rgba(63, 63, 70, 0.8) !important;
        box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5) !important;
    }

    .product-sticky-buy-bar.is-contact-bar {
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
    }
}

.product-sticky-buy-bar.is-contact-bar {
    width: auto !important;
    min-width: auto !important;
}

/* Nút Thêm giỏ và Mua ngay chi tiết sản phẩm: Cố định độ rộng ôm sát text với padding px-5, không bị kéo dãn bởi flex-1 */
#btn-detail-add-cart,
#btn-detail-quick-buy,
.btn-sticky-add-cart,
.btn-sticky-buy-now {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* Nút MUA NGAY trên thanh cố định: Nền gradient đồng bộ chuẩn nút Mua ngay chi tiết sản phẩm */
.btn-sticky-buy-now {
    background: linear-gradient(90deg, #2b6cb0 0%, #3eaed5 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(43, 108, 176, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.btn-sticky-buy-now:hover {
    background: linear-gradient(90deg, #205691 0%, #2ba0c8 100%) !important;
    filter: brightness(0.96) !important;
    box-shadow: 0 6px 16px rgba(43, 108, 176, 0.38) !important;
    transform: translateY(-1px) !important;
}

.btn-sticky-buy-now:active {
    transform: translateY(0) scale(0.98) !important;
}

/* 7. Homepage Featured Card Mobile Styling */
@media (max-width: 639px) {
    .featured-prod-card {
        padding: 0.625rem 0.5rem !important;
    }

    .featured-prod-card .featured-btn-add-cart {
        font-size: 11px !important;
        padding: 0.35rem 0.5rem !important;
        height: 32px !important;
    }
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER MENU
   ========================================================================== */
.mobile-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-drawer-panel {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 82% !important;
    max-width: 340px !important;
    background-color: #ffffff !important;
    z-index: 9999 !important;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.16) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    will-change: transform !important;
}

.mobile-drawer-panel.is-open {
    transform: translateX(0) !important;
}

.dark .mobile-drawer-panel {
    background-color: #18181b !important;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.6) !important;
}

.mobile-drawer-panel a,
.mobile-drawer-panel button {
    text-decoration: none !important;
}

/* Mục menu chính (Cấp 1): Chữ to rõ 15px, font đậm */
.mobile-drawer-main-item {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-decoration: none !important;
}

.mobile-drawer-main-item.is-active,
.mobile-drawer-main-item:hover {
    color: #3eaed5 !important;
}

.dark .mobile-drawer-main-item {
    color: #f4f4f5 !important;
}

.dark .mobile-drawer-main-item.is-active,
.dark .mobile-drawer-main-item:hover {
    color: #3eaed5 !important;
}

/* Menu con (Cấp 2): Chữ nhỏ 13px, cách trái 15px, có viền đáy mảnh màu xám nhạt */
.mobile-drawer-sub-container {
    padding-left: 0 !important;
}

.mobile-drawer-sub-item {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 15px !important;
    padding-right: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: block !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: color 0.15s ease, background 0.15s ease !important;
}

.mobile-drawer-sub-item:last-child {
    border-bottom: none !important;
}

.mobile-drawer-sub-item:hover,
.mobile-drawer-sub-item:active {
    color: #3eaed5 !important;
    background-color: #f8fafc !important;
}

.dark .mobile-drawer-sub-item {
    color: #94a3b8 !important;
    border-bottom-color: #27272a !important;
}

.dark .mobile-drawer-sub-item:hover,
.dark .mobile-drawer-sub-item:active {
    color: #3eaed5 !important;
    background-color: #27272a !important;
}

/* =========================================================
   GLOBAL FONT-WEIGHT UTILITIES (Tailwind fallback)
   ========================================================= */
.font-normal {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

.font-black {
    font-weight: 900 !important;
}

/* Letter-spacing utilities (Tailwind fallback) */
.tracking-tighter {
    letter-spacing: -0.05em !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.tracking-normal {
    letter-spacing: 0em !important;
}

.tracking-wide {
    letter-spacing: 0.025em !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

/* =========================================================
   OAUTH / OPENID LOGIN BUTTONS (Facebook & Google)
   ========================================================= */
.login-page-wrap {
    padding-top: 30px !important;
    margin-top: 30px !important;
}

.login-auth-card {
    margin-top: 30px !important;
    padding-top: 20px !important;
}

.login-title-wrap {
    margin-bottom: 44px !important;
}

.login-auth-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    position: relative !important;
    align-items: start !important;
}

@media (min-width: 768px) {
    .login-auth-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7rem !important;
        /* 112px: Gấp đôi khoảng cách giữa khối trái & phải với line giữa (56px mỗi bên) */
        align-items: start !important;
    }
}

.oauth-btn-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 23px !important;
    /* Tăng thêm 15px (8px + 15px = 23px) */
}

.oauth-btn {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease !important;
    border: none !important;
    min-height: 48px !important;
}

.oauth-btn+.oauth-btn {
    margin-top: 0 !important;
}

.login-auth-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background-color: #e4e4e7;
    pointer-events: none;
}

.dark .login-auth-divider {
    background-color: #27272a;
}

.oauth-btn:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.05) !important;
    color: #ffffff !important;
}

.oauth-btn:active {
    transform: translateY(0) !important;
}

/* Facebook Button (#3b5998) */
.oauth-btn-facebook {
    background-color: #3b5998 !important;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.25) !important;
}

.oauth-btn-facebook:hover {
    background-color: #334f88 !important;
    box-shadow: 0 6px 16px rgba(59, 89, 152, 0.35) !important;
}

.oauth-icon-facebook {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
    color: #3b5998 !important;
    font-size: 20px !important;
}

.oauth-icon-facebook::before {
    content: "\f39e" !important;
    /* fa-facebook-f */
}

/* Google Button (#ea4335) */
.oauth-btn-google {
    background-color: #ea4335 !important;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.25) !important;
}

.oauth-btn-google:hover {
    background-color: #d32f2f !important;
    box-shadow: 0 6px 16px rgba(234, 67, 53, 0.35) !important;
}

.oauth-icon-google {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.79l7.97-6.2z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}