/* ==========================================================================
   TechStore - Custom Stylesheet (Bootstrap 5 Overrides & Component Layout)
   Biến màu & Design tokens được quản lý tại file theme.css
   ========================================================================== */

/* 1. IMPORT FONT & THEME TOKENS */
@import url("assets/fonts/font.css");
@import url("theme.css");

/* 2. BASE & TYPOGRAPHY */
* {
    box-sizing: border-box;
}

html,
body,
#appMainContent,
main {
    background-color: var(--page-bg, #f9f9fb) !important;
}

html,
body,
button,
input,
select,
textarea,
.btn,
.nav-link,
h1,
h2,
h3,
h4,
h5,
h6,
.dropdown-item,
.modal,
.toast {
    font-family:
        "Be Vietnam Pro",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif !important;
}

/* Kế thừa toàn bộ Typography Scale và Base Font từ theme.css */

.fw-extrabold {
    font-weight: 800;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.cursor-pointer {
    cursor: pointer;
}

/* 3. TOP BAR, HEADER & NAVBAR */

.main-header {
    transition: all 0.3s ease;
}

.brand-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-gradient);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.brand-logo-img {
    display: inline-block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.06);
}

.brand-name {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark-color);
}

.search-group {
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    background-color: #ffffff;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    padding: 0 16px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-search-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 12px;
    color: #757575;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.search-group:focus-within .btn-search-icon,
.btn-search-icon:hover {
    color: var(--bs-primary);
}

.search-input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 1.3rem;

    font-family: inherit;
    color: var(--dark-color);
    caret-color: var(--bs-primary);
    /* Con trỏ nhập văn bản màu cam */
    box-shadow: none !important;
}

.search-input::placeholder {
    color: #8d96a0;
    font-size: 1.3rem;
    opacity: 1;
}

/* Login Button */
.btn-login {
    min-height: 4.6rem;
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        var(--color-brand-warm-500),
        var(--color-brand-warm-600)
    );
    cursor: pointer;
    border-radius: 0.5rem;
    border: none;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    transition:
        opacity 0.2s,
        transform 0.2s;
    display: inline-flex;
    box-shadow: 0 4px 14px rgba(255, 81, 23, 0.25);
}

.btn-login .text-dark,
.btn-login #userAccountLabel {
    color: var(--color-white) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.btn-login i {
    color: var(--color-white) !important;
}

.btn-login:hover {
    opacity: 0.94;
    transform: translateY(-0.1rem);
    color: var(--color-white);
    box-shadow: 0 6px 18px rgba(255, 81, 23, 0.35);
}

.btn-cart-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #eaeaea;
    color: var(--dark-color);
    background: #ffffff;
    transition: all 0.2s ease;
}

.btn-cart-icon:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: var(--primary-subtle);
    transform: translateY(-1px);
}

/* ==========================================================================
   TechStore - Navbar Custom Overrides for Bootstrap 5
   Tương thích: Bootstrap 5.3.x (navbar, navbar-expand-lg, sticky-top)
   ========================================================================== */

/* ===== 1. TỔNG QUAN NAVBAR & SCROLL EFFECT ===== */
.navbar.sticky-top,
.main-navbar.sticky-top {
    background-color: #ffffff !important;
    min-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition:
        min-height 0.25s ease,
        padding 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
    z-index: 1030;
    border-bottom: 1px solid #f0f0f0;
}

/* Khi scroll xuống (JS toggle class "scrolled") */
.navbar.sticky-top.scrolled,
.main-navbar.sticky-top.scrolled {
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.navbar.sticky-top .container,
.navbar.sticky-top .container-fluid,
.main-navbar.sticky-top .container,
.main-navbar.sticky-top .container-fluid {
    min-height: inherit;
    display: flex;
    align-items: center;
}

/* ===== 2. LOGO TECHSTORE ===== */
.navbar .navbar-brand,
.main-header .navbar-brand {
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 0;
    margin-right: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.navbar .navbar-brand .brand-name,
.main-header .navbar-brand .brand-name {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.6rem;
}

.navbar .navbar-brand:hover,
.main-header .navbar-brand:hover {
    transform: scale(1.03);
}

.navbar .navbar-brand .brand-icon-box,
.main-header .navbar-brand .brand-icon-box {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25);
}

/* ===== 3. MENU LINK (NAV-LINK) ===== */
.navbar-nav {
    gap: 20px;
    align-items: center;
}

.navbar-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link,
.main-navbar .nav-link {
    color: #1a1a1a !important;
    font-weight: 500;
    font-size: 1.45rem;
    padding: 0.65rem 0.5rem !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    border-radius: 0;
    transition: color 0.25s ease;
}

/* Underline mảnh 2px chạy từ trái sang phải */
.navbar-nav .nav-link::after,
.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b00;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Hover: đổi màu cam + underline */
.navbar-nav .nav-link:hover,
.main-navbar .nav-link:hover {
    color: #ff6b00 !important;
    transform: none;
    background-color: transparent !important;
}

.navbar-nav .nav-link:hover::after,
.main-navbar .nav-link:hover::after {
    width: 100%;
}

/* Active Link: chữ cam đậm + underline hiển thị sẵn */
.navbar-nav .nav-link.active,
.main-navbar .nav-link.active,
.navbar-nav .show > .nav-link {
    color: #e55a00 !important;
    font-weight: 600;
    background-color: transparent !important;
}

.navbar-nav .nav-link.active::after,
.main-navbar .nav-link.active::after {
    width: 100%;
    background-color: #e55a00;
}

/* ===== 3.1 NAVBAR TRÊN MÁY TÍNH: FULLWIDTH MÀU CHỦ ĐẠO & CHỮ TRẮNG ===== */
@media (min-width: 992px) {
    .main-navbar.sticky-top {
        background: var(--bs-primary) !important;
        background-color: var(--bs-primary) !important;
        border-bottom: none !important;
        min-height: 46px;
        box-shadow: 0 2px 8px rgba(240, 81, 35, 0.22);
        display: flex !important;
        align-items: center !important;
    }

    .main-navbar.sticky-top.scrolled {
        background: var(--bs-primary) !important;
        background-color: var(--bs-primary) !important;
        min-height: 42px;
        box-shadow: 0 4px 14px rgba(240, 81, 35, 0.32) !important;
    }

    .nav-brand-fullwidth {
        background: var(--bs-primary);
        background-color: var(--bs-primary);
        width: 100%;
        min-height: inherit;
        display: flex !important;
        align-items: center !important;
    }

    .nav-brand-fullwidth .container {
        min-height: inherit;
        display: flex !important;
        align-items: center !important;
    }

    .main-navbar .navbar-collapse {
        min-height: inherit;
        display: flex !important;
        align-items: center !important;
        width: 100%;
    }

    .main-navbar .navbar-nav {
        min-height: inherit;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-navbar .navbar-nav .nav-item {
        display: flex !important;
        align-items: center !important;
        min-height: inherit;
    }

    .main-navbar .navbar-nav .nav-link {
        color: #ffffff !important;
        opacity: 0.88;
        font-weight: 500;
        font-size: 1.45rem;
        padding: 0.5rem 0.65rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        vertical-align: middle;
        transition: all 0.2s ease;
    }

    /* Bỏ hoàn toàn phần gạch dưới chữ */
    .main-navbar .navbar-nav .nav-link::after {
        display: none !important;
    }

    .main-navbar .navbar-nav .nav-link:hover {
        color: #ffffff !important;
        opacity: 1;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    /* Active: Chữ trắng đậm nổi bật */
    .main-navbar .navbar-nav .nav-link.active,
    .main-navbar .navbar-nav .show > .nav-link {
        color: #ffffff !important;
        opacity: 1;
        font-weight: 700;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    }
}

/* ===== 4. THANH TÌM KIẾM (INPUT-GROUP) ===== */
.navbar .search-group,
.main-header .search-group,
.navbar-search-wrapper .search-group {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 34px;
    background-color: #ffffff;
    border-radius: 0.8rem;
    border: 1px solid #e0e0e0;
    padding: 0 16px;
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Khi focus input: border cam, box-shadow nhẹ, bỏ outline */
.navbar .search-group:focus-within,
.main-header .search-group:focus-within,
.navbar-search-wrapper .search-group:focus-within {
    border-color: #ff6b00;
}

.navbar .btn-search-icon,
.main-header .btn-search-icon,
.navbar-search-wrapper .btn-search-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 10px;
    color: #8a8a8a;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Icon đổi màu cam khi search group đang focus */
.navbar .search-group:focus-within .btn-search-icon,
.main-header .search-group:focus-within .btn-search-icon,
.navbar-search-wrapper .search-group:focus-within .btn-search-icon {
    color: #ff6b00;
}

.navbar .search-input,
.main-header .search-input,
.navbar-search-wrapper .search-input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 1.4rem;
    color: #1a1a1a;
    caret-color: #ff6b00;
    box-shadow: none !important;
}

/* Nút Submit tìm kiếm nền cam, bo tròn, icon trắng (nếu có) */
.btn-search-submit {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    background-color: #ff6b00;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.btn-search-submit:hover {
    background-color: #e55a00;
    color: #ffffff;
    transform: scale(1.05);
}

/* ===== 5. ICON GIỎ HÀNG & TÀI KHOẢN ===== */
.btn-cart-icon,
.btn-account-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    color: #1a1a1a;
    background: #ffffff;
    font-size: 2.2rem;
    line-height: 1;
    position: relative;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.25s ease;
}

.btn-cart-icon i,
.btn-account-icon i {
    font-size: 2.2rem;
    transition: color 0.25s ease;
}

.btn-cart-icon:hover,
.btn-account-icon:hover {
    color: #ff6b00 !important;
    border-color: #ff6b00;
    transform: scale(1.1);
}

.btn-cart-icon:hover i,
.btn-account-icon:hover i {
    color: #ff6b00 !important;
}

/* Badge số lượng giỏ hàng */
#cartBadge,
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background-color: #ff6b00 !important;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0;
    border: 1.5px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Keyframes bounce: scale 1 → 1.3 → 1 */
@keyframes badgeBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

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

#cartBadge.badge-bounce,
.cart-badge.badge-bounce {
    animation: badgeBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== 6. HAMBURGER MENU (MOBILE NAVBAR-TOGGLER) ===== */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.5rem;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon {
    width: 26px;
    height: 26px;
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
.navbar-toggler:focus .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6B00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transform: scale(1.08);
}

/* Khi mở collapse trên mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        margin-top: 0.75rem;
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .navbar-collapse .navbar-nav {
        gap: 0;
        align-items: stretch;
    }

    .navbar-collapse .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-collapse .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-collapse .nav-link {
        padding: 12px 16px !important;
        width: 100%;
        border-radius: 8px;
        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .navbar-collapse .nav-link::after {
        display: none;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        background-color: #fff3e8 !important;
        color: #ff6b00 !important;
    }
}

/* ===== 7. OFFCANVAS MOBILE MENU ===== */
.offcanvas.offcanvas-start {
    border-right: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

/* Header offcanvas nền gradient cam, chữ trắng */
.offcanvas-header {
    background: var(--bs-primary);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
}

.offcanvas-header .offcanvas-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.6rem;
}

/* Nút Close màu trắng */
.offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    box-shadow: none !important;
    transition: transform 0.25s ease;
}

.offcanvas-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Body offcanvas: nền trắng, menu full-width, padding 14px */
.offcanvas-body {
    background-color: #ffffff;
    padding: 1rem 0.75rem;
}

.offcanvas-body .navbar-nav,
.offcanvas-body .nav.flex-column {
    gap: 0;
    align-items: stretch;
}

.offcanvas-body .nav-link {
    width: 100%;
    padding: 14px 16px !important;
    font-size: 1.5rem;
    color: #1a1a1a !important;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.offcanvas-body .nav-link::after {
    display: none;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    background-color: #fff3e8 !important;
    color: #ff6b00 !important;
    padding-left: 20px !important;
}

/* ===== 8. RESPONSIVE BREAKPOINTS ===== */
/* Dưới 992px: ẩn menu ngang, hiện hamburger, logo thu nhỏ còn 1.3rem */
@media (max-width: 991.98px) {
    .navbar .navbar-brand .brand-name,
    .main-header .navbar-brand .brand-name {
        font-size: 1.3rem !important;
    }

    .navbar .search-group,
    .main-header .search-group {
        height: 40px;
    }
}

/* Dưới 576px: ẩn thanh tìm kiếm trên navbar chính */
@media (max-width: 575.98px) {
    .navbar .search-group,
    .navbar #desktopSearchForm,
    .navbar .navbar-search-wrapper {
        display: none !important;
    }

    .navbar-nav {
        gap: 0;
    }
}

/* Auth Modal Tabs */
#authTab .nav-link {
    color: #6c757d;
    transition: all 0.2s ease;
}

#authTab .nav-link.active {
    background: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* 6. HERO CAROUSEL */
.hero-section {
    position: relative;
}

.hero-slide {
    min-height: 440px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slide-1 {
    background:
        linear-gradient(
            105deg,
            rgba(17, 17, 17, 0.94) 0%,
            rgba(26, 26, 26, 0.8) 55%,
            rgba(255, 107, 0, 0.25) 100%
        ),
        url("https://images.unsplash.com/photo-1603302576837-37561b2e2302?w=1600&auto=format&fit=crop&q=80")
            center/cover no-repeat;
}

.hero-slide-2 {
    background:
        linear-gradient(
            105deg,
            rgba(17, 17, 17, 0.94) 0%,
            rgba(26, 26, 26, 0.8) 55%,
            rgba(255, 140, 0, 0.25) 100%
        ),
        url("https://images.unsplash.com/photo-1541807084-5c52b6b3adef?w=1600&auto=format&fit=crop&q=80")
            center/cover no-repeat;
}

.hero-slide-3 {
    background:
        linear-gradient(
            105deg,
            rgba(17, 17, 17, 0.94) 0%,
            rgba(26, 26, 26, 0.8) 55%,
            rgba(229, 90, 0, 0.3) 100%
        ),
        url("https://images.unsplash.com/photo-1587831990711-23ca6441447b?w=1600&auto=format&fit=crop&q=80")
            center/cover no-repeat;
}

.text-highlight-orange {
    color: #ff8c00;
    text-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.text-light-gray {
    color: #d1d5db;
}

.btn-hero-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 0.75rem 1.8rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #e55a00 0%, #ff6b00 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
}

/* Custom Carousel Controls & Indicators */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 28px;
    border-radius: 10px;
    background-color: var(--bs-primary);
}

.carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.carousel-control-prev:hover .carousel-nav-btn,
.carousel-control-next:hover .carousel-nav-btn {
    background: var(--bs-primary);
    color: #ffffff;
}

/* 7. FEATURE PROPOSITION CARDS */
.feature-card {
    border: 1px solid var(--card-border);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-subtle) !important;
    border-color: rgba(255, 107, 0, 0.3);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--primary-subtle);
    flex-shrink: 0;
}

/* 8. FLASH SALE BANNER & COUNTDOWN */
.flash-sale-banner {
    background: var(--primary-gradient-alt);
}

.flash-sale-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.countdown-box {
    background: #ffffff;
    border-radius: 12px;
    min-width: 72px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.countdown-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bs-primary);
    line-height: 1.1;
}

.countdown-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    margin-top: 2px;
}

.countdown-separator {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    align-self: center;
    line-height: 1;
}

/* 9. CATEGORY CARDS */
.category-card {
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
    position: relative;
    background: #ffffff;
}

.category-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-color: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: var(--shadow-hover) !important;
    background-color: #fffdfb;
}

.category-card:hover .category-icon-wrapper {
    background-color: var(--bs-primary);
}

.category-card:hover .category-icon-wrapper i {
    color: #ffffff !important;
}

/* 10. FILTER PILLS */
.btn-filter {
    border-radius: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 1.1rem;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    color: #555555;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.btn-filter.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

/* 11. PRODUCT CARDS */
.product-card {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover) !important;
    border-color: rgba(255, 107, 0, 0.35);
}

.product-img-wrapper {
    position: relative;
    background-color: #f8f9fa;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}

.quick-view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 2;
}

.quick-view-btn:hover {
    background: var(--bs-primary);
    color: #ffffff;
    border-color: var(--bs-primary);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.product-title:hover {
    color: var(--bs-primary);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bs-primary);
}

.product-old-price {
    font-size: 1.4rem;
    color: #9e9e9e;
}

/* 12. BRANDS PARTNER BADGE */
.brand-partner-badge {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-weight: 700;
    color: #666666;
    font-size: 1.4rem;
    transition: all 0.2s ease;
    width: 100%;
}

.brand-partner-badge:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    box-shadow: var(--shadow-subtle);
}

/* 13. FOOTER */
.footer {
    background-color: #121315 !important;
    color: var(--white-color);
    font-size: 1.6rem;
    padding: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Đảm bảo các liên kết trong footer có màu nhẹ và hiệu ứng hover */
.footer-links a {
    color: var(--gray-bg);
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--bs-primary) !important;
    padding-left: 0.5rem;
}

.footer-links a {
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--bs-primary) !important;
    padding-left: 5px;
}

.newsletter-input {
    background-color: #24262b;
    border: 1px solid #3a3e45;
    color: #ffffff;
}

.newsletter-input:focus {
    background-color: #24262b;
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: none;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #24262b;
    color: #b0b5bc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon-btn:hover {
    background: var(--bs-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* 14. OFFCANVAS CART DRAWER HIỆN ĐẠI */
.cart-drawer {
    width: 420px !important;
    max-width: 92vw;
    border-left: none !important;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12) !important;
}

.cart-drawer-header {
    background: var(--bs-primary) !important;
    color: #ffffff !important;
    padding: 1.4rem 1.6rem !important;
    border-bottom: none !important;
}

.cart-drawer-header .offcanvas-title {
    color: #ffffff !important;
    font-size: 1.6rem;
    letter-spacing: -0.2px;
}

.cart-drawer-icon-box {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    flex-shrink: 0;
}

.cart-drawer-badge {
    background-color: #ffffff !important;
    color: var(--bs-primary) !important;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.25rem 0.65rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cart-drawer-header .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 0.85;
    box-shadow: none !important;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

.cart-drawer-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.cart-drawer-body {
    background-color: #fbfbfa;
}

/* Thẻ từng sản phẩm trong drawer */
.cart-drawer-item {
    background: #ffffff;
    border: 1px solid #eceae8;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.cart-drawer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #e2dfdb;
}

.cart-drawer-item-img-wrapper {
    width: 60px;
    height: 60px;

    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-drawer-item-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.cart-drawer-item:hover .cart-drawer-item-img {
    transform: scale(1.08);
}

.cart-drawer-item-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-drawer-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
}

/* Nhóm nút tăng giảm số lượng */
.cart-drawer-qty-group {
    background-color: transparent;
    padding: 1px 3px;
}

.cart-drawer-qty-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        color 0.15s ease;
    padding: 0;
    line-height: 1;
}

.cart-drawer-qty-btn:hover {
    color: var(--bs-primary);
}

.cart-drawer-qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    user-select: none;
}

/* Nút xóa sản phẩm */
.cart-drawer-remove-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-drawer-remove-btn:hover {
    color: var(--bs-primary);
}

/* Footer & Checkout */
.cart-drawer-footer {
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.cart-drawer-checkout-btn {
    border-radius: 0.5rem !important;
    background: var(--bs-primary) !important;
    font-size: 1.45rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    border: none !important;
}

.cart-drawer-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 81, 35, 0.3) !important;
    filter: brightness(1.05);
}

/* Empty State */
.cart-empty-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff4ed;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6rem;
}

/* 15. TOAST & ANIMATIONS */
.animate-pulse {
    animation: pulse 1.5s infinite;
}

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

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

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

.toast-icon-wrapper {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* 16. RESPONSIVE BREAKPOINTS */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 380px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .countdown-box {
        min-width: 60px;
        padding: 8px 4px;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 320px;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .product-img-wrapper {
        height: 160px;
    }

    .product-img-wrapper img {
        max-height: 130px;
    }

    .product-title {
        font-size: 0.88rem;
    }

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

.form-check {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-check-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 26px;
    margin-left: 0;
    font-weight: 500;
    opacity: 0.8;
    cursor: pointer;
    user-select: none;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.form-check-label:hover {
    opacity: 1;
}

.form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--button-color, #1dbfaf);
    border-radius: 4px;
    background-color: var(--white-color, #ffffff);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-check-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: calc(50% - 1px);
    width: 5px;
    height: 10px;
    border-style: solid;
    border-color: #ffffff;
    border-image: none;
    border-width: 0px 2px 2px 0px;
    transform: translateY(-50%) rotate(45deg) scale(0);
    opacity: 0;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
    box-sizing: border-box;
}

/* Checked State */
.form-check-input:checked + .form-check-label {
    opacity: 1;
}

.form-check-input:checked + .form-check-label::before {
    background-color: var(--button-color, #1dbfaf);
    border-color: var(--button-color, #1dbfaf);
}

.form-check-input:checked + .form-check-label::after {
    opacity: 1;
    transform: translateY(-50%) rotate(45deg) scale(1);
}

/* Focus Visible for Accessibility */
.form-check-input:focus-visible + .form-check-label::before {
    box-shadow: 0 0 0 3px var(--button-color-focus-ring);
}

/* Disabled State */
.form-check-input:disabled + .form-check-label {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-check-input:disabled + .form-check-label::before {
    cursor: not-allowed;
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Radio Button Support */
.form-check-input[type="radio"] + .form-check-label::before {
    border-radius: 50%;
}

.form-check-input[type="radio"] + .form-check-label::after {
    left: 5px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    transform: translateY(-50%) scale(0);
}

.form-check-input[type="radio"]:checked + .form-check-label::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Auth / Login Button */
.btnLogin {
    background: var(--button-color) !important;
    background-color: var(--button-color) !important;
    border: 1px solid var(--button-color) !important;
    color: var(--button-text-color) !important;
    transition: all 0.25s ease;
}

.btnLogin:hover,
.btnLogin:focus {
    background: var(--button-color-hover) !important;
    background-color: var(--button-color-hover) !important;
    border-color: var(--button-color-hover) !important;
    color: var(--button-text-color) !important;
    box-shadow: 0 6px 18px var(--button-color-shadow);
    transform: translateY(-1px);
}

.btnLogin:active {
    background-color: var(--button-color-active) !important;
    transform: translateY(0);
    box-shadow: 0 3px 10px var(--button-color-focus-ring);
}

/* Modal Header Title */
#loginModalLabel,
.modal-header h5 {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: var(--dark-color, #1a1a1a);
    letter-spacing: -0.01em;
}

#loginModal .form-label {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1f2937;
}

/* ==================== AUTH PILL INPUTS & ERROR VALIDATION ==================== */
.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Ô input dạng bo tròn viên thuốc (Pill shape) */
.auth-input-pill {
    width: 100%;
    height: 48px;
    padding: 10px 45px 10px 22px;
    font-size: 16px !important;
    font-size: 1.6rem !important;
    font-weight: 500;
    color: #212529;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem !important;
    outline: none;
    background-image: none !important;
    /* Loại bỏ icon mặc định của Bootstrap */
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-input-pill::placeholder {
    color: #9ca3af;
    font-size: 16px !important;
    font-size: 1.6rem !important;
    font-weight: 400;
}

.auth-input-pill:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
}

.auth-input-pill:focus {
    background-color: #ffffff;
    border-color: var(--button-color, #1dbfaf);
    box-shadow: 0 0 0 4px
        var(--button-color-focus-ring, rgba(29, 191, 175, 0.2));
}

/* Trạng thái lỗi (Error / Invalid State - Khớp 100% hình mẫu & validator.js) */
.auth-input-pill.is-invalid,
.auth-input-pill.invalid,
.was-validated .auth-input-pill:invalid,
.has-error .auth-input-pill {
    background-color: #fde8e8 !important;
    border-color: #f87171 !important;
    color: #374151;
    background-image: none !important;
}

.auth-input-pill.is-invalid::placeholder,
.auth-input-pill.invalid::placeholder,
.was-validated .auth-input-pill:invalid::placeholder,
.has-error .auth-input-pill::placeholder {
    color: #9ca3af;
}

.auth-input-pill.is-invalid:focus,
.auth-input-pill.invalid:focus,
.was-validated .auth-input-pill:invalid:focus,
.has-error .auth-input-pill:focus {
    background-color: #fde8e8 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2) !important;
}

/* Icon tam giác cảnh báo đỏ bên phải trong ô input */
.auth-input-error-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 1.15rem;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.auth-input-pill.is-invalid ~ .auth-input-error-icon,
.auth-input-pill.invalid ~ .auth-input-error-icon,
.was-validated .auth-input-pill:invalid ~ .auth-input-error-icon,
.has-error .auth-input-error-icon {
    display: block;
}

/* Dòng thông báo lỗi màu đỏ phía dưới */
.form-message,
.auth-error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 6px;
    margin-left: 18px;
    line-height: 1.3;
}

.auth-input-group:has(.auth-input-pill.is-invalid) + .form-message,
.auth-input-group:has(.auth-input-pill.invalid) + .form-message,
.auth-input-group:has(.auth-input-pill.is-invalid) + .auth-error-msg,
.auth-input-group:has(.auth-input-pill.invalid) + .auth-error-msg,
.form-group.invalid .form-message,
.form-group.has-error .form-message,
.form-message:not(:empty) {
    display: block;
}

/* Nút ẩn/hiện mật khẩu trong form Auth */
.auth-input-group:has(.auth-password-toggle) .auth-input-pill {
    padding-right: 75px !important;
}

.auth-password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    z-index: 6;
    font-size: 1.4rem;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--primary, #ff6b00);
}

.auth-input-group:has(.auth-password-toggle) .auth-input-error-icon {
    right: 48px;
}

/* Nút submit auth modal: chiều cao 40px, độ dài 80%, căn giữa */
.btn-auth-submit {
    width: 100% !important;

    height: 40px !important;
    min-height: 40px !important;
    padding: 0 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 0.5rem !important;
    transition: all 0.25s ease;
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35) !important;
}

/* ==========================================================================
   HERO 3-COLUMN BANNER SECTION (THEO MẪU TRUNG TRẦN / TECHSTORE)
   ========================================================================== */
.hero-layout-section {
    position: relative;
}

/* Top Announcement Strip */
.hero-top-strip {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.category-header-box {
    background: var(--navy-blue, #0f3e82);
    color: #ffffff;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-announcement-item {
    font-size: 0.82rem;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
    border-right: 1px solid #e2e8f0;
}

.top-announcement-item:last-child {
    border-right: none;
}

.announcement-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--bs-primary, #f05123);
    border-radius: 50%;
    margin-right: 6px;
}

/* Left Vertical Category Menu */
.home-cat-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.home-cat-link:last-child {
    border-bottom: none;
}

.home-cat-link i {
    font-size: 1.05rem;
    color: #64748b;
    width: 20px;
    text-align: center;
    transition: color 0.2s ease;
}

.home-cat-link:hover {
    background-color: #f8fafc;
    color: var(--bs-primary, #f05123);
    padding-left: 20px;
}

.home-cat-link:hover i {
    color: var(--bs-primary, #f05123);
}

/* Middle Carousel & Tabs */
.hero-slider-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-slider-main {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.hero-slider-main .carousel-item {
    height: 350px;
}

.hero-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4 Tabs under slider */
.hero-slider-tabs {
    display: flex;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-tab-btn {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.73rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    line-height: 1.35;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.hero-tab-btn:last-child {
    border-right: none;
}

.hero-tab-btn:hover {
    background-color: #f8fafc;
    color: var(--bs-primary, #f05123);
}

.hero-tab-btn.active {
    color: var(--bs-primary, #f05123);
    border-bottom: 3px solid var(--bs-primary, #f05123);
    background-color: rgba(240, 81, 35, 0.04);
}

/* Circular Carousel Arrow Buttons */
.carousel-btn-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.carousel-btn-circle:hover {
    background: #ffffff;
    color: var(--bs-primary, #f05123);
    transform: scale(1.08);
}

/* Right News Panel */
.hero-news-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-panel-title {
    color: var(--news-blue, #0284c7);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.news-item-card:hover {
    background-color: #f0f9ff;
    color: inherit;
}

.news-item-card.featured {
    border: 1px solid var(--news-active-border, #38bdf8);
    background-color: var(--news-active-bg, rgba(56, 189, 248, 0.07));
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.12);
}

.news-item-thumb {
    width: 72px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-item-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.news-item-meta {
    font-size: 0.68rem;
    color: #94a3b8;
}

.all-news-link {
    color: var(--news-blue, #0284c7);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    transition: gap 0.2s ease;
}

.all-news-link:hover {
    color: #0369a1;
    gap: 8px;
}

/* Custom style for auth submit buttons (Login & Register) */
#loginSubmitBtn,
#registerSubmitBtn,
.btn-login {
    color: #fff;
    background-color: var(--button-color);
    background-image: var(--button-image);
    border: none;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 0.5rem;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.btn-login {
    width: 100%;
    border-radius: 0.5rem;
}

#userAuthContainer .btn-login {
    width: auto;
    border-radius: 0.5rem !important;
    background: var(--bs-primary) !important;
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    padding: 0.55rem 1.4rem !important;
    min-height: 38px !important;
    height: auto !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#userAuthContainer .btn-login:hover {
    background: var(--bs-primary) !important;
    background-color: var(--bs-primary) !important;
    opacity: 0.92 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

#loginSubmitBtn:hover,
#registerSubmitBtn:hover,
#pageLoginSubmitBtn:hover,
#pageRegSubmitBtn:hover,
.btn-login:hover {
    opacity: 0.94;
    transform: translateY(-0.1rem);
    color: #fff;
}

/* ==========================================================================
   FLASH SALE GIỜ VÀNG - FSG Section
   ========================================================================== */

/* Header bar */
.fsg-header {
    background-color: var(--bs-primary);
}

.fsg-fire {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 122, 0, 0.6));
    animation: fsg-fire-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes fsg-fire-pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.fsg-title {
    font-style: italic;
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Countdown Wrapper matching image */
.fsg-countdown-wrapper {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.fsg-countdown-label {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.fsg-countdown {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.fsg-cd-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
}

.fsg-cd-num {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.fsg-cd-txt {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
    line-height: 1;
}

/* ==================== PROMOTION TABS BAR ==================== */
.promo-tabs-bar {
    background-color: var(--bs-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Khung slider chiếm 1/3 chiều dài container */
.promo-tabs-slider-wrap {
    width: 35%;
    max-width: 35%;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 4%,
        black 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 4%,
        black 96%,
        transparent 100%
    );
}

@media (max-width: 991.98px) {
    .promo-tabs-slider-wrap {
        width: 60%;
        max-width: 60%;
    }
}

@media (max-width: 575.98px) {
    .promo-tabs-slider-wrap {
        width: 100%;
        max-width: 100%;
    }
}

.promo-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 6px;
    will-change: scroll-position;
}

.promo-nav-tabs::-webkit-scrollbar {
    display: none;
}

.promo-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    padding: 8px 18px;
    color: #ffffff;
    cursor: pointer;
    border: none !important;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all 0.25s ease;
    user-select: none;
}

.promo-tab-item:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

.promo-tab-item.active {
    background: #ffffff;
    color: var(--bs-primary);
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    font-weight: 700;
    transform: translateY(-2px);
}

.promo-tab-item .promo-tab-badge {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.promo-tab-item.active .promo-tab-badge {
    background: var(--bs-primary);
    color: #ffffff;
}

.promo-empty-msg {
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
    width: 100%;
}

/* Body — cream background */
.fsg-body {
    border-radius: 0 0.2rem 0.2rem;
    background-color: var(--bs-primary);
    padding: 1.6rem 4.8rem;
    border-top: none;
    min-height: 30rem;
}

/* Scrollable track */
.fsg-track {
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.8rem;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fsg-track::-webkit-scrollbar {
    display: none;
}

/* Arrow buttons */
.fsg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ff7a00;
    cursor: pointer;
    z-index: 10;
    transition:
        background 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}

.fsg-arrow:hover {
    background: #ff7a00;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.fsg-arrow-left {
    left: 0.6rem;
}

.fsg-arrow-right {
    right: 0.6rem;
}

/* Product Card */
.fsg-card {
    background: var(--white-color, #ffffff);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    padding: 1.2rem 1.2rem 1.4rem;
    min-width: 21.5rem;
    max-width: 21.5rem;
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border: 1px solid #eef0f2;
    border-left: 3.5px solid var(--fsg-btn-red, #e02424);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fsg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13);
}

/* Product image */
.fsg-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14rem;
    overflow: hidden;
    border-radius: 4px;
    background: #ffffff;
    padding: 0.4rem;
}

.fsg-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.fsg-card:hover .fsg-img-wrap img {
    transform: scale(1.05);
}

/* Save Badge (Tiết kiệm Xđ) */
.fsg-save-badge {
    display: inline-flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-top: 2px;
}

.fsg-save-tag {
    background-color: var(--fsg-save-blue, #0284c7);
    color: #ffffff;
    padding: 3px 6px;
    display: flex;
    align-items: center;
}

.fsg-save-num {
    background-color: var(--fsg-save-green, #008a4f);
    color: #ffffff;
    padding: 3px 7px;
    display: flex;
    align-items: center;
}

/* Product name */
.fsg-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark-color, #1a1a1a);
    line-height: 1.35;
    min-height: 3.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    margin-top: 2px;
}

.fsg-card:hover .fsg-name {
    color: var(--bs-primary, #f05123);
}

/* SKU */
.fsg-sku {
    font-size: 1.25rem;
    color: #333333;
    line-height: 1.2;
    margin-top: -2px;
}

.fsg-sku strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Price row & Circle Add Button */
.fsg-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.fsg-price-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fsg-price-sale {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--fsg-price-green, #15803d);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.fsg-price-sub {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fsg-price-orig {
    font-size: 1.2rem;
    color: #888888;
    text-decoration: line-through;
}

.fsg-discount-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fsg-btn-red, #dc2626);
    border: 1px solid var(--fsg-btn-red, #dc2626);
    border-radius: 4px;
    padding: 0 4px;
    line-height: 1.25;
}

/* Round Red Add Button with '+' */
.fsg-circle-add-btn {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--fsg-btn-red, #e02424);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(224, 36, 36, 0.4);
    flex-shrink: 0;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    line-height: 1;
    padding: 0;
}

.fsg-circle-add-btn:hover {
    transform: scale(1.1);
    background: var(--fsg-btn-red-hover, #c81e1e);
    box-shadow: 0 5px 14px rgba(224, 36, 36, 0.5);
}

.fsg-circle-add-btn:active {
    transform: scale(0.95);
}

/* Stock status (✔ Còn hàng) */
.fsg-stock-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fsg-price-green, #15803d);
    margin-top: -2px;
}

.fsg-stock-status i {
    font-size: 1.6rem;
    stroke-width: 1px;
}

/* Sold Progress Pill */
.fsg-sold-pill {
    height: 2.6rem;
    border-radius: 999px;
    background: var(
        --fsg-pill-gradient,
        linear-gradient(90deg, #8da6c8 0%, #ff9aa2 100%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    margin-top: auto;
}

.fsg-sold-pill strong {
    font-weight: 800;
    color: #ffffff;
}

.fsg-fire-icon {
    font-size: 1.3rem;
    line-height: 1;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT (Vanilla JS)
   ========================================================================== */
.ts-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100vw - 40px);
}

.ts-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.06);
    padding: 14px 16px 16px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transform: translateX(115%);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
    font-family: inherit;
}

.ts-toast.ts-toast--show {
    transform: translateX(0);
    opacity: 1;
}

.ts-toast.ts-toast--hide {
    transform: translateX(115%);
    opacity: 0;
}

/* Viền trái & màu sắc theo loại */
.ts-toast--success {
    border-left: 4px solid #10b981;
}

.ts-toast--success .ts-toast__icon {
    color: #10b981;
}

.ts-toast--success .ts-toast__progress-bar {
    background: #10b981;
}

.ts-toast--error {
    border-left: 4px solid #ef4444;
}

.ts-toast--error .ts-toast__icon {
    color: #ef4444;
}

.ts-toast--error .ts-toast__progress-bar {
    background: #ef4444;
}

.ts-toast--info {
    border-left: 4px solid #3b82f6;
}

.ts-toast--info .ts-toast__icon {
    color: #3b82f6;
}

.ts-toast--info .ts-toast__progress-bar {
    background: #3b82f6;
}

.ts-toast--warning {
    border-left: 4px solid #f59e0b;
}

.ts-toast--warning .ts-toast__icon {
    color: #f59e0b;
}

.ts-toast--warning .ts-toast__progress-bar {
    background: #f59e0b;
}

/* Icon */
.ts-toast__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Nội dung */
.ts-toast__content {
    flex-grow: 1;
    min-width: 0;
}

.ts-toast__title {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.ts-toast__message {
    font-size: 1.3rem;
    color: #64748b;
    line-height: 1.4;
    word-break: break-word;
}

/* Nút đóng */
.ts-toast__close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
    flex-shrink: 0;
}

.ts-toast__close:hover {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
}

/* Thanh progress bar đếm ngược ở đáy */
.ts-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
}

.ts-toast__progress-bar {
    height: 100%;
    width: 100%;
}

/* Responsive Mobile */
@media (max-width: 576px) {
    .ts-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .ts-toast {
        padding: 12px 14px 14px 14px;
    }
}

/* ==========================================================================
   ADMIN CLEAN LIGHT MODERN THEME (TECHSTORE BRANDED)
   ========================================================================== */
.mono {
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
}

/* App Wrapper */
.admin-light-app {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: "Inter", "Be Vietnam Pro", system-ui, sans-serif;
}

/* Sidebar */
.admin-light-app .sidebar {
    width: 236px;
    flex-shrink: 0;
    background: var(--admin-surface);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
}

.admin-light-app .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
}

.admin-light-app .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 6px 14px -4px rgba(240, 81, 35, 0.5);
    flex-shrink: 0;
}

.admin-light-app .brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--admin-text);
    line-height: 1.2;
}

.admin-light-app .brand-sub {
    font-size: 1rem;
    color: var(--admin-muted);
    letter-spacing: 0.08em;
}

.admin-light-app .nav {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.admin-light-app .nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-bottom: 3px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--admin-text-soft);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.admin-light-app .nav-item svg,
.admin-light-app .nav-item i {
    width: 18px;
    height: 18px;
    font-size: var(--fs-base);
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-light-app .nav-item:hover {
    background: var(--primary-subtle);
    color: var(--bs-primary);
}

.admin-light-app .nav-item.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(240, 81, 35, 0.55);
}

.admin-light-app .nav-item.active svg,
.admin-light-app .nav-item.active i {
    color: #fff;
}

/* ==================== ADMIN SUBMENU & COLLAPSE ==================== */
.admin-light-app .nav-group {
    margin-bottom: 3px;
}

.admin-light-app .nav-item-collapse {
    justify-content: flex-start;
}

.admin-light-app .nav-item-collapse .nav-chevron {
    font-size: 11px;
    width: auto;
    height: auto;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.admin-light-app .nav-item-collapse:not(.collapsed) .nav-chevron,
.admin-light-app .nav-item-collapse[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.admin-light-app .nav-item.active-parent {
    color: var(--bs-primary);
    background: var(--primary-subtle);
    font-weight: 600;
}

.admin-light-app .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 4px 10px;
    margin-left: 18px;
    border-left: 1.5px solid var(--admin-border);
}

.admin-light-app .nav-subitem {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--admin-text-soft);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.admin-light-app .nav-subitem:hover {
    background: var(--primary-subtle);
    color: var(--bs-primary);
}

.admin-light-app .nav-subitem:hover i {
    color: var(--bs-primary);
}

.admin-light-app .nav-subitem.active {
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 10px -4px rgba(240, 81, 35, 0.45);
}

.admin-light-app .nav-subitem.active i {
    color: #ffffff;
}

/* ==================== ADMIN TABLE ACTION BUTTONS (BORDERLESS WITH GAP-2) ==================== */
.admin-action-btn,
.admin-light-app .table .btn-action-icon {
    border: none !important;
    background: transparent !important;
    padding: 4px 6px !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    cursor: pointer;
    box-shadow: none !important;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-action-btn:hover,
.admin-light-app .table .btn-action-icon:hover {
    transform: scale(1.18);
}

.admin-action-btn.text-primary:hover {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.1) !important;
}

.admin-action-btn.text-danger:hover {
    color: #b91c1c !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

.admin-action-btn.text-info:hover {
    color: #0369a1 !important;
    background: rgba(2, 132, 199, 0.1) !important;
}

.admin-action-btn.text-secondary:hover {
    color: #374151 !important;
    background: rgba(107, 114, 128, 0.1) !important;
}

.admin-light-app .promo {
    margin: 12px;
    padding: 16px;
    border-radius: 14px;
    background: var(--primary-subtle);
    border: 1px dashed rgba(240, 81, 35, 0.35);
}

.admin-light-app .promo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.admin-light-app .promo-text {
    font-size: var(--fs-xs);
    color: var(--admin-text-soft);
    line-height: 1.5;
    margin-bottom: 10px;
}

.admin-light-app .promo-btn {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #fff;
    background: var(--primary-gradient);
    border: none;
    padding: 7px 12px;
    border-radius: 0.5rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.admin-light-app .promo-btn:hover {
    opacity: 0.92;
    color: #fff;
}

/* Main Content Area */
.admin-light-app .main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-light-app .topbar {
    height: 68px;
    flex-shrink: 0;
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.admin-light-app .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--admin-muted);
    font-size: 1.3rem;
    margin-bottom: 0;
}

.breadcrumb .breadcrumb-item {
    font-size: 1.3rem;
}

.admin-light-app .breadcrumb .current {
    color: var(--admin-text);
    font-weight: 600;
}

.admin-light-app .top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-light-app .search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 8px 14px;
}

.admin-light-app .search input {
    background: none;
    border: none;
    outline: none;
    color: var(--admin-text);
    font-size: 1.3rem;
    width: 220px;
}

.admin-light-app .search input::placeholder {
    color: var(--admin-muted-dim);
}

.admin-light-app .icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--admin-text-soft);
    text-decoration: none;
}

.admin-light-app .icon-btn .badge-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 2px solid var(--admin-surface);
}

.admin-light-app .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(240, 81, 35, 0.25);
}

.admin-light-app .content {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: var(--admin-bg);
}

.admin-light-app .heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.admin-light-app .heading-row h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--admin-text);
    margin-bottom: 0;
}

.admin-light-app .heading-row p {
    font-size: 1.3rem;
    color: var(--admin-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Toggle */
.admin-light-app .toggle {
    display: flex;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 0.5rem;
    padding: 3px;
    font-size: var(--fs-xs);
}

.admin-light-app .toggle button {
    background: none;
    border: none;
    color: var(--admin-muted);
    padding: 7px 14px;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s ease;
}

.admin-light-app .toggle button.active {
    background: var(--admin-surface);
    color: var(--bs-primary);
    box-shadow: var(--admin-shadow);
}

/* Modern Cards */
.admin-light-app .card,
.card.admin-card {
    background: var(--admin-surface) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 16px !important;
    padding: 22px;
    box-shadow: var(--admin-shadow);
    color: var(--admin-text);
}

/* Hero card in orange gradient */
/* Hero card in orange gradient */
.hero-card {
    background: var(--primary-gradient-alt) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 25px -5px rgba(240, 81, 35, 0.42),
        0 4px 10px -2px rgba(240, 81, 35, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    min-height: 142px;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px -5px rgba(240, 81, 35, 0.52),
        0 6px 12px -2px rgba(240, 81, 35, 0.3);
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -25px;
    top: -25px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: var(--fs-xs);
    opacity: 0.92;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.hero-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-value-wrap {
    position: relative;
    z-index: 2;
    margin: 6px 0;
}

.hero-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-sub {
    font-size: var(--fs-xs);
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.32);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.hero-watermark {
    position: absolute;
    right: 10px;
    bottom: -8px;
    font-size: 7.6rem;
    color: #fff;
    opacity: 0.12;
    pointer-events: none;
    line-height: 1;
    transform: rotate(-5deg);
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.orange {
    background: var(--primary-subtle);
    color: var(--bs-primary);
}

.stat-icon.orange-gradient {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(240, 81, 35, 0.4);
}

.stat-icon.green {
    background: var(--admin-success-subtle);
    color: var(--admin-success);
}

.stat-icon.blue {
    background: #eaf1ff;
    color: #2e6be0;
}

.stat-icon.warn {
    background: var(--admin-warn-subtle);
    color: var(--admin-warn);
}

.stat-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-pill-tag.tag-success {
    background: var(--admin-success-subtle);
    color: var(--admin-success);
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--admin-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--admin-text);
    line-height: 1.1;
}

.stat-unit {
    font-size: 1.3rem;
    color: var(--admin-muted);
    font-weight: 500;
    margin-left: 3px;
}

.stat-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    width: fit-content;
}

.delta-up {
    background: var(--admin-success-subtle);
    color: var(--admin-success);
}

.delta-down {
    background: var(--admin-danger-subtle);
    color: var(--admin-danger);
}

/* Layout Grid Rows */
.row-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.row-3col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 18px;
}

.card-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--admin-text);
}

.card-title .see-all {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--bs-primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

/* Low Stock Alert */
.stock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--admin-border);
}

.stock-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--admin-warn);
    flex-shrink: 0;
}

.stock-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--admin-text);
}

.stock-sku {
    font-size: 1.1rem;
    color: var(--admin-muted);
    margin-top: 1px;
}

.stock-left {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-warn);
    background: var(--admin-warn-subtle);
    padding: 3px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* Top Selling Products */
.prod-row {
    margin-bottom: 16px;
}

.prod-row:last-child {
    margin-bottom: 0;
}

.prod-top {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--admin-text);
}

.prod-top .n {
    color: var(--admin-muted);
    font-weight: 600;
}

.bar-track {
    height: 6px;
    background: var(--admin-bg);
    border-radius: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 20px;
}

/* Modern Tables */
.admin-light-app table,
.admin-modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    background: transparent;
    color: var(--admin-text);
}

.admin-light-app thead th,
.admin-modern-table thead th {
    text-align: left;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--admin-muted);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--admin-border) !important;
    border-top: none !important;
    background: transparent !important;
}

.admin-light-app tbody td,
.admin-modern-table tbody td {
    padding: 12px 0;
    border-bottom: 1px solid var(--admin-border) !important;
    border-top: none !important;
    vertical-align: middle;
    color: var(--admin-text);
    background: transparent !important;
}

.admin-light-app tbody tr:last-child td,
.admin-modern-table tbody tr:last-child td {
    border-bottom: none !important;
}

.admin-light-app tbody tr:hover td,
.admin-modern-table tbody tr:hover td {
    background: rgba(240, 81, 35, 0.02) !important;
}

.cust-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cust-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.status-done {
    background: var(--admin-success-subtle);
    color: var(--admin-success);
}

.status-shipping {
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

.status-pending {
    background: var(--admin-warn-subtle);
    color: var(--admin-warn);
}

.status-cancelled {
    background: #f0f0f2;
    color: var(--admin-muted);
}

/* Form Controls */
.admin-light-app .form-control,
.admin-light-app .form-select {
    background-color: #ffffff;
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    border-radius: 10px;
}

.admin-light-app .form-control:focus,
.admin-light-app .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(240, 81, 35, 0.15);
}

.admin-light-app .input-group-text {
    background-color: var(--admin-bg);
    border-color: var(--admin-border);
    color: var(--admin-muted);
}

/* Modal */
.admin-light-app .modal-content {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(20, 20, 30, 0.12);
}

.admin-light-app .modal-header,
.admin-light-app .modal-footer {
    border-color: var(--admin-border);
}

/* Responsive */
@media (max-width: 1050px) {
    .admin-light-app .sidebar {
        display: none;
    }

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

    .row-2col,
    .row-3col {
        grid-template-columns: 1fr;
    }

    .admin-light-app .search input {
        width: 130px;
    }
}

@media (max-width: 576px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-light-app .content {
        padding: 16px;
    }
}

/* Empty State Card */
.empty-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(240, 81, 35, 0.08);
    border: 2px dashed rgba(240, 81, 35, 0.3);
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT CSS
   ========================================================================== */
.ts-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100vw - 40px);
}

.ts-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.06);
    padding: 14px 16px 16px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transform: translateX(115%);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
    font-family: inherit;
}

.ts-toast.ts-toast--show {
    transform: translateX(0);
    opacity: 1;
}

.ts-toast.ts-toast--hide {
    transform: translateX(115%);
    opacity: 0;
}

.ts-toast--success {
    border-left: 4px solid #10b981;
}

.ts-toast--success .ts-toast__icon {
    color: #10b981;
}

.ts-toast--success .ts-toast__progress-bar {
    background: #10b981;
}

.ts-toast--error {
    border-left: 4px solid #ef4444;
}

.ts-toast--error .ts-toast__icon {
    color: #ef4444;
}

.ts-toast--error .ts-toast__progress-bar {
    background: #ef4444;
}

.ts-toast--info {
    border-left: 4px solid #3b82f6;
}

.ts-toast--info .ts-toast__icon {
    color: #3b82f6;
}

.ts-toast--info .ts-toast__progress-bar {
    background: #3b82f6;
}

.ts-toast--warning {
    border-left: 4px solid #f59e0b;
}

.ts-toast--warning .ts-toast__icon {
    color: #f59e0b;
}

.ts-toast--warning .ts-toast__progress-bar {
    background: #f59e0b;
}

.ts-toast__icon {
    font-size: var(--fs-lg);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.ts-toast__content {
    flex-grow: 1;
    min-width: 0;
}

.ts-toast__title {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.ts-toast__message {
    font-size: 1.3rem;
    color: #64748b;
    line-height: 1.4;
    word-break: break-word;
}

.ts-toast__close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
    flex-shrink: 0;
}

.ts-toast__close:hover {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
}

.ts-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
}

.ts-toast__progress-bar {
    height: 100%;
    width: 100%;
}

@media (max-width: 576px) {
    .ts-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}

/* ==========================================================================
   ADMIN CLEAN LIGHT MODERN COMPONENTS (PRODUCTS & ORDERS)
   ========================================================================== */
.admin-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-heading-row h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text, #1f2430);
    margin-bottom: 2px;
}

.admin-heading-row p {
    font-size: 1.3rem;
    color: var(--muted, #8a8f99);
    margin-bottom: 0;
}

.btn-new {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(
        --primary-gradient,
        linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%)
    );
    color: #fff !important;
    border: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 6px 14px -6px rgba(240, 81, 35, 0.55);
    text-decoration: none;
    transition:
        opacity 0.15s,
        transform 0.15s;
}

.btn-new:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Summary Strip */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.summary-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow, 0 1px 2px rgba(20, 20, 30, 0.04));
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition:
        border-color 0.15s,
        transform 0.15s,
        box-shadow 0.15s;
}

.summary-card:hover {
    border-color: var(--bs-primary, #f05123);
    transform: translateY(-1px);
}

.summary-card.selected {
    border-color: var(--bs-primary, #f05123);
    background: var(--primary-subtle, #fff4ed);
}

.summary-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.summary-count {
    font-size: var(--fs-lg);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text, #1f2430);
}

.summary-label {
    font-size: var(--fs-xs);
    color: var(--muted, #8a8f99);
    font-weight: 500;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background-color: var(--white-color);
}

.tabs-pill-box {
    display: flex;
    gap: 6px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    border-radius: 12px;
    padding: 4px;
    overflow-x: auto;
}

.tab-pill {
    padding: 8px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-soft, #4a5063);
    background: none;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.15s,
        color 0.15s;
}

.tab-pill:hover {
    color: var(--bs-primary, #f05123);
}

.tab-pill.active {
    color: var(--bs-primary, #f05123);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    color: var(--text-soft, #4a5063);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color 0.15s,
        color 0.15s;
}

.btn-outline-action:hover {
    border-color: var(--bs-primary, #f05123);
    color: var(--bs-primary, #f05123);
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-done {
    background: var(--success-subtle, #e8f8f2);
    color: var(--success, #1da97d);
}

.status-shipping {
    background: var(--primary-subtle, #fff4ed);
    color: var(--primary-dark, #e55a00);
}

.status-pending {
    background: var(--warn-subtle, #fff6e5);
    color: var(--warn, #f0a623);
}

.status-cancelled {
    background: #f0f0f2;
    color: var(--muted, #8a8f99);
}

/* Table Row Action Buttons */
.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: 1px solid var(--border, #eceae8);
    background: var(--surface, #ffffff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-soft, #4a5063);
    transition:
        border-color 0.15s,
        color 0.15s,
        background 0.15s;
}

.action-btn:hover {
    border-color: var(--bs-primary, #f05123);
    color: var(--bs-primary, #f05123);
    background: var(--primary-subtle, #fff4ed);
}

.action-btn.btn-del:hover {
    border-color: var(--danger, #e5484d);
    color: var(--danger, #e5484d);
    background: var(--danger-subtle, #fdecec);
}

/* Modern Pagination Bar */
.admin-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border, #eceae8);
    flex-wrap: wrap;
    gap: 12px;
}

.pg-info {
    font-size: var(--fs-xs);
    color: var(--muted, #8a8f99);
}

.pg-btns {
    display: flex;
    gap: 6px;
}

.pg-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 0.5rem;
    border: 1px solid var(--border, #eceae8);
    background: var(--surface, #ffffff);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-soft, #4a5063);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.pg-btn:hover:not(:disabled) {
    border-color: var(--bs-primary, #f05123);
    color: var(--bs-primary, #f05123);
}

.pg-btn.active {
    background: var(
        --primary-gradient,
        linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%)
    );
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 10px -3px rgba(240, 81, 35, 0.5);
}

.pg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

@media (max-width: 600px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs-pill-box {
        width: 100%;
    }
}

/* ==========================================================================
   CLIENT PRODUCTS CATALOG PAGE (CLEAN LIGHT MODERN LAYOUT)
   ========================================================================== */
.client-products-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 60px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ==========================================================================
   PRODUCT FILTER SIDEBAR & MOBILE BOTTOM SHEET
   ========================================================================== */
.product-filter-sidebar {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: 86px;
    z-index: 10;
}

.filter-panel-card {
    padding: 1.6rem;
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, #eceae8);
}

.filter-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text, #1f2430);
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.btn-clear-all-filters {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bs-primary, #f05123);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.15s;
}

.btn-clear-all-filters:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.filter-group {
    margin-bottom: 4px;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.group-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text, #1f2430);
    letter-spacing: 0.5px;
}

.btn-group-clear {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bs-primary, #f05123);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-group-clear:hover {
    text-decoration: underline;
}

.filter-group-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 1.4rem;
    color: var(--text-soft, #4a5063);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.filter-checkbox-item:hover {
    color: var(--bs-primary, #f05123);
}

.filter-checkbox-item input[type="checkbox"] {
    accent-color: var(--bs-primary, #f05123);
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.filter-label-text {
    flex: 1;
    line-height: 1.35;
}

.filter-count {
    display: none !important;
}

.filter-divider {
    border-top: 1px solid var(--border, #eceae8);
    margin: 14px 0;
}

.btn-toggle-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-primary, #f05123);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 2px;
    transition: all 0.15s ease;
}

.btn-toggle-more:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.btn-toggle-more .toggle-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.filter-loading-placeholder {
    font-size: 1.25rem;
    color: var(--muted, #8a8f99);
    padding: 8px 0;
}

/* Nút kích hoạt bộ lọc trên Mobile Topbar */
.btn-mobile-filter-trigger {
    height: 36px;
    padding: 0 14px;
    border-radius: 0.5rem;
    border: 1px solid var(--border, #eceae8);
    background: var(--surface, #ffffff);
    color: var(--text, #1f2430);
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-mobile-filter-trigger:hover {
    border-color: var(--bs-primary, #f05123);
    color: var(--bs-primary, #f05123);
}

/* ==================== MOBILE BOTTOM SHEET & BACKDROP ==================== */
.mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mobile-filter-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--surface, #ffffff);
    border-radius: 22px 22px 0 0;
    z-index: 1090;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.mobile-filter-sheet.open {
    transform: translateY(0);
}

.sheet-handle-bar {
    padding: 10px 0 4px;
    display: flex;
    justify-content: center;
    cursor: grab;
}

.sheet-handle {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border, #eceae8);
}

.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.sheet-footer {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border, #eceae8);
    background: var(--surface, #ffffff);
}

.btn-sheet-reset {
    flex: 1;
    height: 46px;
    border: 1px solid var(--border, #eceae8);
    border-radius: 0.5rem;
    background: var(--bg, #f8f9fa);
    color: var(--text-soft, #4a5063);
    font-weight: 600;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-sheet-reset:hover {
    background: #e2e8f0;
}

.btn-sheet-apply {
    flex: 1.6;
    height: 46px;
    border: none;
    border-radius: 0.5rem;
    background: var(
        --primary-gradient,
        linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%)
    );
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(240, 81, 35, 0.35);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.btn-sheet-apply:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.preset-chip.active {
    background: var(--primary-subtle, #fff4ed);
    border-color: var(--bs-primary, #f05123);
    color: var(--primary-dark, #e55a00);
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 1.3rem;
    color: var(--text-soft, #4a5063);
    cursor: pointer;
    user-select: none;
}

.rating-item:hover {
    color: var(--bs-primary, #f05123);
}

.rating-item input {
    accent-color: var(--bs-primary, #f05123);
    cursor: pointer;
}

.stars {
    color: var(--warn, #f0a623);
    letter-spacing: 1px;
    font-size: var(--fs-xs);
}

/* Results Main Section */
.client-results {
    flex: 1;
    min-width: 0;
}

.results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    font-size: var(--fs-sm);
    color: var(--text-soft, #4a5063);
}

.results-count b {
    color: var(--text, #1f2430);
    font-size: 1.5rem;
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-wrap label {
    font-size: 1.3rem;
    color: var(--muted, #8a8f99);
}

select#sortSelect {
    border: 1px solid var(--border, #eceae8);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text, #1f2430);
    background: var(--surface, #ffffff);
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

select#sortSelect:focus {
    border-color: var(--bs-primary, #f05123);
}

/* Active Chips */
.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
    background: var(--primary-subtle, #fff4ed);
    color: var(--primary-dark, #e55a00);
    padding: 5px 10px 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(240, 81, 35, 0.2);
}

.chip button {
    background: none;
    border: none;
    color: var(--primary-dark, #e55a00);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

.chip button:hover {
    color: var(--danger, #e5484d);
}

/* ==========================================================================
   LISTING AREA HEADER & SORT LINKS BAR
   ========================================================================== */
.listing-area-header {
    padding: 4px 0 16px;
    border-bottom: 1px solid var(--border, #eceae8);
    margin-bottom: 18px;
}

.listing-area-title {
    font-size: 2rem;
    font-weight: 300;
    text-transform: none;
    color: var(--dark-color, #1a1a1a);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.listing-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.sort-links-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-link-item {
    background: none;
    border: none;

    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sort-link-item:hover {
    text-decoration: underline;
    color: var(--bs-primary);
}

.sort-divider {
    color: var(--border, #cbd5e1);
    font-size: 1.3rem;
    user-select: none;
}

/* Product Grid */
.client-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Loading Box hiển thị ở chính giữa trang */
.product-loading-box {
    grid-column: 1 / -1;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
}

.product-loading-box .spinner-border {
    color: var(--bs-primary, #f05123) !important;
    width: 3.2rem;
    height: 3.2rem;
    border-width: 0.28em;
}

.product-loading-box .loading-text {
    font-size: var(--fs-base, 1.6rem);
    font-weight: 600;
    color: var(--text-soft, #4a5063);
    margin-top: 14px;
}

/* ==========================================================================
   LAPTOP PRODUCT CARD (CLEAN MODERN WHITE CARD)
   ========================================================================== */
.p-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    position: relative;
    padding: 1rem;
}

/* 1. Header thẻ: Logo thương hiệu + Badge tròn bảo hành/trả góp */
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    min-height: 24px;
}

.card-brand-tag {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-soft, #4a5063);
    text-transform: uppercase;
    background: var(--card-specs-bg, #f1f5f9);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.card-top-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-badge-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--card-sort-blue, #0284c7);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.card-badge-installment {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    background: #0284c7;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

/* ==========================================================================
   PRODUCT THUMBNAIL (DUAL-IMAGE HOVER SLIDE-UP ANIMATION)
   ========================================================================== */
.pos-relative {
    position: relative !important;
}

.product-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 450px;
    max-height: 450px;
    background: #fdfdfe;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.image_thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
}

.embed-responsive-1by1 {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
}

.product-thumbnail__img {
    width: 450px;
    height: 450px;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    will-change: transform, opacity;
    padding: 8px;
}

/* Ảnh chính (primary): mặc định hiển thị trung tâm */
.product-thumbnail__img--primary {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Ảnh phụ (secondary): mặc định ẩn ở phía dưới */
.product-thumbnail__img--secondary {
    opacity: 0;
    transform: translateY(28px) scale(1.05);
    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Khi HOVER vào khung: ảnh phụ từ dưới trượt lên và phóng to scale(1.1) */
.product-thumbnail:hover .product-thumbnail__img--secondary,
.p-card:hover .product-thumbnail__img--secondary {
    opacity: 1;
    transform: translateY(0) scale(var(--image-scale, 1.1));
}

.product-thumbnail:hover .product-thumbnail__img--primary,
.p-card:hover .product-thumbnail__img--primary {
    opacity: 0;
    transform: scale(1.02);
}

/* Nhóm nút hành động Xem nhanh (Quick View) */
.product-action {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 4;
}

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

.xem_nhanh.btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark-color, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: scale(0.75);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}

.product-thumbnail:hover .xem_nhanh.btn-circle {
    opacity: 1;
    transform: scale(1);
}

.xem_nhanh.btn-circle:hover {
    background: #ffffff;
    color: var(--bs-primary, #f05123);
    box-shadow: 0 4px 12px rgba(240, 81, 35, 0.25);
    transform: scale(1.1);
}

/* 3. Dải thông số kỹ thuật (CPU | RAM | Ổ cứng | Màn hình) */
.card-specs-strip {
    background: var(--card-specs-bg, #f1f5f9);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 1.15rem;
    color: var(--text, #1f2430);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #e2e8f0;
}

/* 4. Nhãn Tiết Kiệm (Nền xanh lá, chữ trắng) */
.card-saving-pill {
    display: inline-block;
    background: var(--card-save-green, #15803d);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    width: fit-content;
    letter-spacing: 0.2px;
}

/* 5. Tên đầy đủ sản phẩm (2 dòng, cắt bớt bằng dấu ...) */
.card-title-full {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text, #1f2430);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
    margin-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.card-title-full:hover {
    color: var(--bs-primary, #f05123);
}

/* 6. Mã sản phẩm (chữ xám nhỏ) */
.card-sku {
    font-size: 1.15rem;
    color: var(--muted, #8a8f99);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

/* 7. Mức giá: Giá bán đỏ đậm to + Giá gốc gạch ngang + % Giảm cam */
.card-pricing-block {
    margin-bottom: 12px;
}

.card-price-current {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--card-price-red, #d32f2f);
    line-height: 1.2;
    margin-bottom: 2px;
}

.card-price-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-price-old {
    font-size: 1.25rem;
    color: var(--muted, #8a8f99);
    text-decoration: line-through;
}

.card-discount-badge {
    background: var(--card-badge-orange, #f05123);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

/* 8. Footer hàng đáy: Trạng thái còn hàng + Nút tròn đỏ icon dấu cộng */
.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--border, #eceae8);
}

.card-stock-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-stock-status.in-stock {
    color: var(--card-save-green, #15803d);
}

.card-stock-status.out-of-stock {
    color: var(--card-sort-blue, #0284c7);
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2rem;
}

.card-btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-price-red, #d32f2f);
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.35);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.card-btn-add:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 14px rgba(211, 47, 47, 0.5);
    background: #c62828;
}

.card-btn-add:active {
    transform: scale(0.95);
}

.card-btn-add.added {
    background: var(--card-save-green, #15803d) !important;
    box-shadow: 0 3px 8px rgba(21, 128, 61, 0.35);
}

/* Empty State */
.client-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted, #8a8f99);
    grid-column: 1 / -1;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    border-radius: 16px;
}

.client-empty-state .em-icon {
    font-size: 4.2rem;
    margin-bottom: 12px;
}

/* Pagination */
.client-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
}

@media (max-width: 1199px) {
    .client-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 991px) {
    .client-products-page {
        flex-direction: column;
    }

    .client-filters {
        width: 100%;
        position: static;
    }

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

@media (max-width: 575px) {
    .client-product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .client-products-page {
        padding: 16px 12px 40px;
    }
}

/* ==========================================================================
   ADMIN PRODUCT MODAL (UI/UX POLISHED & RESPONSIVE)
   ========================================================================== */

/* 1. Backdrop mờ & hiệu ứng kính Blur mềm mại */
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(15, 23, 42, 0.45);
    transition: opacity 0.25s ease;
}

/* 2. Animation xuất hiện êm ái: Trượt nhẹ (Slide-up) kết hợp Zoom tinh tế, không giật khựng */
#adminProductModal.modal.fade .modal-dialog {
    transform: translateY(18px) scale(0.98);
    transition:
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.28s ease;
    max-width: 820px;
    margin: 1.75rem auto;
}

#adminProductModal.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* 3. Khung Modal: Bo góc 16px, Flex-column với max-height chống tràn màn hình */
#adminProductModal .modal-content {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    border-radius: 16px;
    box-shadow: 0 20px 48px -12px rgba(20, 20, 30, 0.18);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 4. Header: Đóng đinh (sticky) ở đỉnh, ngăn nội dung tràn qua */
#adminProductModal .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #eceae8);
    padding: 18px 24px;
    flex-shrink: 0;
}

#adminProductModal .modal-header .modal-title,
#adminProductModal #adminProductModalLabel {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text, #1f2430);
    margin: 0;
}

/* 5. Body: Cuộn mượt độc lập, thanh cuộn mỏng tinh tế */
#adminProductModal .modal-body {
    overflow-y: auto;
    padding: 22px 24px;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border, #eceae8) transparent;
}

#adminProductModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#adminProductModal .modal-body::-webkit-scrollbar-thumb {
    background-color: var(--border, #eceae8);
    border-radius: 6px;
}

#adminProductModal .modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--muted-dim, #b4b8c2);
}

/* 6. Form Fields, Labels & Inputs: Khoảng cách đều đặn, phân cấp rõ nét */
#adminProductModal .form-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text, #1f2430);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#adminProductModal .form-control,
#adminProductModal .form-select {
    font-size: var(--fs-sm);
    color: var(--text, #1f2430);
    background-color: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    border-radius: 10px;
    padding: 9px 13px;
    line-height: 1.45;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

#adminProductModal .form-control::placeholder {
    color: var(--muted-dim, #b4b8c2);
    font-size: 1.3rem;
}

/* 7. Hiệu ứng Focus: Viền cam thương hiệu + shadow subtle */
#adminProductModal .form-control:focus,
#adminProductModal .form-select:focus {
    border-color: var(--bs-primary, #f05123);
    box-shadow: 0 0 0 3px rgba(240, 81, 35, 0.14);
    outline: none;
    background-color: #ffffff;
}

/* 8. Trạng thái Invalid (Báo lỗi kiểm tra dữ liệu): Viền đỏ + shadow subtle */
#adminProductModal .form-control.is-invalid,
#adminProductModal .form-select.is-invalid,
#adminProductModal .form-control:invalid:focus {
    border-color: var(--danger, #e5484d);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14);
}

#adminProductModal .invalid-feedback {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--danger, #e5484d);
    margin-top: 4px;
    display: block;
}

/* 9. Vùng tải ảnh kéo-thả (Upload Dropzone): Viền đứt mềm, hover đổi màu */
.admin-upload-zone {
    border: 2px dashed rgba(240, 81, 35, 0.28);
    background: var(--primary-subtle, #fff4ed);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-upload-zone:hover,
.admin-upload-zone.dragover {
    border-color: var(--bs-primary, #f05123);
    background: rgba(240, 81, 35, 0.08);
    transform: scale(1.005);
}

/* 10. Checkboxes Switch: Accent color cam chuẩn bộ màu */
#adminProductModal .form-check-input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    border: 1px solid var(--border, #eceae8);
    cursor: pointer;
}

#adminProductModal .form-check-input:checked {
    background-color: var(--bs-primary, #f05123);
    border-color: var(--bs-primary, #f05123);
}

/* 11. Footer: Luôn ghim dính ở đáy modal (Sticky) - Không bao giờ bị che khuất */
#adminProductModal .modal-footer,
#adminProductModal .modal-body .border-top {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--surface, #ffffff);
    border-top: 1px solid var(--border, #eceae8) !important;
    margin: 18px -24px -22px -24px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#adminProductModal #btnSaveProduct {
    background: var(
        --primary-gradient,
        linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%)
    );
    color: #ffffff;
    border: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 6px 14px -4px rgba(240, 81, 35, 0.45);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

#adminProductModal #btnSaveProduct:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

#adminProductModal #btnSaveProduct:active {
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE CHO MODAL Ở 3 MỐC MÀN HÌNH
   ========================================================================== */

/* Mốc 1: Tablet (640px - 1050px) */
@media (min-width: 640px) and (max-width: 1050px) {
    #adminProductModal .modal-dialog {
        max-width: 680px;
        margin: 1.25rem auto;
    }

    #adminProductModal .modal-body {
        padding: 18px 20px;
    }
}

/* Mốc 2: Mobile (< 640px) - Chống tràn, cuộn mượt, nút bấm thân thiện chạm */
@media (max-width: 639.98px) {
    #adminProductModal.modal.fade .modal-dialog {
        margin: 0;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
        /* Bottom sheet style trên mobile */
    }

    #adminProductModal .modal-content {
        width: 100%;
        max-height: 90vh;
        /* Giữ 10vh trên cùng nhìn thấy nền, tránh bị bàn phím che */
        border-radius: 20px 20px 0 0;
        /* Bo góc trên dạng bottom sheet */
        border-bottom: none;
    }

    #adminProductModal .modal-header {
        padding: 14px 18px;
    }

    #adminProductModal .modal-body {
        padding: 16px 18px;
    }

    /* Chuyển các field 2-3 cột thành 1 cột trên mobile */
    #adminProductModal .row.g-3 > [class*="col-"] {
        width: 100%;
    }

    /* Nút Lưu / Hủy xếp ngang hoặc full width, dễ thao tác ngón cái */
    #adminProductModal .modal-footer,
    #adminProductModal .modal-body .border-top {
        margin: 16px -18px -16px -18px;
        padding: 12px 18px;
        flex-direction: row;
        gap: 8px;
    }

    #adminProductModal .modal-footer button,
    #adminProductModal .modal-body .border-top button {
        flex: 1;
        padding: 10px 14px;
        font-size: 1.3rem;
        justify-content: center;
    }
}

/* Brand logo preview thumbnail */
.brand-logo-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--border, #eceae8);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.brand-logo-box:hover {
    border-color: var(--bs-primary, #f05123);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(240, 81, 35, 0.15);
}

.brand-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btn-view-all {
    text-decoration: none;
    color: var(--bs-primary);
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    gap: 4px;
    line-height: 1;
}

/* ==================== NÚT CHI TIẾT SẢN PHẨM ==================== */
.detail-action-btn {
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    border-radius: 0.5rem !important;
    padding: 0 1.25rem !important;
    line-height: 1 !important;
    border-width: 1.5px !important;
    transition: all 0.2s ease !important;
}

.detail-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 81, 35, 0.25) !important;
}

/* ==================== ADMIN PRODUCTS TABLE ENHANCEMENTS ==================== */
.admin-light-app thead th {
    font-size: 1.6rem !important;
    color: var(--admin-text, #1f2430) !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    background: transparent !important;
    border-bottom: 2px solid var(--admin-border, #eceae8) !important;
    white-space: nowrap;
}

.admin-prod-row td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--admin-border, #eceae8) !important;
    background-color: transparent !important;
    font-size: 1.6rem !important;
    color: var(--admin-text, #1f2430) !important;
    white-space: nowrap;
    cursor: pointer;
}

.admin-prod-row:hover td {
    background-color: #fafafc !important;
}

.admin-prod-thumb-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--admin-border, #eceae8);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-prod-thumb-wrap:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.admin-prod-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-prod-thumb-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 1px;
}

.admin-prod-name {
    font-weight: 500;
    color: var(--admin-text, #1f2430);
    font-size: 1.6rem !important;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.admin-prod-name:hover {
    color: var(--bs-primary, #f05123) !important;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border, #eceae8);
    background: #ffffff;
    color: #64748b;
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-action-btn.btn-view:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.admin-action-btn.btn-edit:hover {
    background: #fff7ed;
    border-color: #f97316;
    color: #ea580c;
}

.admin-action-btn.btn-delete:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

/* ==========================================================================
   CART SUCCESS MODAL (MODAL THÊM VÀO GIỎ HÀNG THÀNH CÔNG)
   ========================================================================== */
#addToCartSuccessModal .modal-content {
    border-radius: 8px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18) !important;
}

.btn-modal-checkout {
    color: #e11d48 !important;
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    transition: color 0.2s ease;
}

.btn-modal-checkout:hover {
    color: #be123c !important;
    text-decoration: underline !important;
}

.btn-modal-cart {
    background-color: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
    font-size: 1.35rem;
    font-weight: 600;
    padding: 9px 24px !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
    transition:
        background-color 0.2s ease,
        transform 0.15s ease !important;
}

.btn-modal-cart:hover {
    background-color: #be123c !important;
    border-color: #be123c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   HOME BRANDS SECTION - 7 THƯƠNG HIỆU TRÊN 1 HÀNG
   ========================================================================== */
.home-brands-section {
    position: relative;
}

.home-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .home-brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .home-brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .home-brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .home-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.home-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    min-height: 92px;
    text-align: center;
    transition:
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.home-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary, #0d6efd);
    text-decoration: none;
}

.home-brand-logo-wrap {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.home-brand-logo-img {
    max-width: 92%;
    max-height: 58px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.home-brand-card:hover .home-brand-logo-img {
    transform: scale(1.08);
}

.home-brand-name-fallback {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.home-brand-card:hover .home-brand-name-fallback {
    color: var(--primary, #0d6efd);
}

/* ==========================================================================
   TECH REVIEWS & BUYING GUIDES COMPONENT (2 BLOCKS GRID)
   ========================================================================== */
.tech-reviews-section {
    position: relative;
}

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

@media (max-width: 991px) {
    .tech-reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.tech-review-block {
    background-color: var(--card-bg, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-review-block-header {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #f05123);
}

.tech-review-block-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    margin: 0;
    line-height: 1.3;
}

.tech-review-list {
    display: flex;
    flex-direction: column;
}

.tech-review-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border, #f1f5f9);
}

.tech-review-item:first-child {
    padding-top: 12px;
}

.tech-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 1. Khung ảnh thumbnail 160x100px có overlay text mờ tên sản phẩm */
.tech-review-thumb-wrap {
    position: relative;
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.tech-review-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tech-review-item:hover .tech-review-thumb-img {
    transform: scale(1.06);
}

.tech-review-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.78) 100%
    );
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    z-index: 2;
    pointer-events: none;
}

/* 2. Cột nội dung text bên phải */
.tech-review-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tech-review-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tech-review-title:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.tech-review-date {
    font-size: 1.3rem;
    color: var(--text-muted, #64748b);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tech-review-excerpt {
    font-size: 1.4rem;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .tech-review-block {
        padding: 16px;
    }

    .tech-review-thumb-wrap {
        width: 120px;
        height: 82px;
    }

    .tech-review-title {
        font-size: 1.4rem;
    }

    .tech-review-excerpt {
        font-size: 1.3rem;
    }
}

@media (max-width: 380px) {
    .tech-review-item {
        flex-direction: column;
        align-items: stretch;
    }

    .tech-review-thumb-wrap {
        width: 100%;
        height: 140px;
    }
}

/* ==================== 50. PUBLIC NEWS & ARTICLE READING TYPOGRAPHY ==================== */
.news-card-item {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    border: 1px solid var(--card-border) !important;
}

.news-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.news-card-img {
    transition: transform 0.35s ease;
}

.news-card-item:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card-item:hover .news-card-title {
    color: var(--primary) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   CHI TIẾT BÀI VIẾT (ARTICLE DETAIL PAGE)
   ========================================================================== */

/* Tiêu đề bài viết lớn chuẩn báo chí công nghệ hiện đại */
.article-headline {
    font-family: var(--bs-font-sans-serif, inherit);
    font-size: 2.4rem !important;
    font-weight: 800;
    line-height: 1.35;
    color: var(--dark-color, #1a1a1a);
    letter-spacing: -0.025em;
    margin-top: 0.5rem;
    margin-bottom: 1.6rem;
    word-break: break-word;
}

.articleAuthor,
.articleDateText {
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-muted);
}

.articleDate {
    font-size: 0.9rem;
    color: var(--text-muted-custom, #6c757d);
}

@media (max-width: 991.98px) {
    .article-headline {
        font-size: 2.1rem;
        line-height: 1.38;
    }
}

@media (max-width: 575.98px) {
    .article-headline {
        font-size: 1.85rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }
}

/* Typography chuẩn bài báo đọc chuyên nghiệp */
.article-reading-body {
    font-family: var(--bs-font-sans-serif, inherit);
    color: #2d3748;
    font-size: 1.6rem;
    line-height: 1.85;
}

.article-reading-body h2,
.article-reading-body h3,
.article-reading-body h4 {
    color: #1a202c;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-reading-body h2 {
    font-size: 2.1rem;
    border-left: 4px solid var(--primary, #ff6b00);
    padding-left: 12px;
}

.article-reading-body h3 {
    font-size: 1.8rem;
}

.article-reading-body h4 {
    font-size: 1.6rem;
}

.article-reading-body p {
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

.article-reading-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md, 12px);
    display: block;
    margin: 1.8rem auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.article-reading-body img[style*="float: left"] {
    display: inline-block;
    margin: 0.8rem 1.8rem 1rem 0;
}

.article-reading-body img[style*="float: right"] {
    display: inline-block;
    margin: 0.8rem 0 1rem 1.8rem;
}

@media (max-width: 576px) {
    .article-reading-body img[style*="float: left"],
    .article-reading-body img[style*="float: right"] {
        float: none !important;
        display: block !important;
        margin: 1.2rem auto !important;
        width: 100% !important;
    }
}

.article-reading-body blockquote {
    border-left: 4px solid var(--primary, #ff6b00);
    background-color: var(--primary-subtle, #fff4ed);
    padding: 1.2rem 1.6rem;
    margin: 1.6rem 0;
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
    font-style: italic;
    color: #4a5568;
}

.article-reading-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 1.5rem;
}

.article-reading-body table th {
    background-color: var(--gray-bg, #f8fafc);
    font-weight: 600;
    color: #1a202c;
    padding: 10px 14px;
    border: 1px solid var(--card-border, #e2e8f0);
}

.article-reading-body table td {
    padding: 10px 14px;
    border: 1px solid var(--card-border, #e2e8f0);
    vertical-align: middle;
}

.article-reading-body ul,
.article-reading-body ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

.article-reading-body li {
    margin-bottom: 0.5rem;
}

/* Sticky Sidebar & Danh mục tin tức */
.news-sticky-sidebar {
    position: sticky;
    top: 0px;
    z-index: 10;
}

.news-sidebar-card {
    border-radius: 0.3rem;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.news-sidebar-item {
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.news-sidebar-item:hover {
    transform: translateX(4px);
    background-color: var(--gray-bg, #f8fafc);
}

.sidebar-category-item {
    transition: all 0.2s ease;
    border: none !important;
    background-color: transparent;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13.5px;
    color: var(--dark-color, #1a1a1a);
}

.sidebar-category-item:hover {
    color: var(--primary, #ff6b00) !important;
}

.sidebar-category-item.active {
    background-color: var(--primary-subtle, #fff4ed);
    color: var(--primary, #ff6b00) !important;
    font-weight: 600;
}

.sidebar-cat-toggle-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #ff6b00);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-cat-toggle-btn:hover {
    color: var(--primary-dark, #e55a00);
    opacity: 0.85;
}

/* ==========================================================================
   BẢNG THÔNG SỐ KỸ THUẬT (PRODUCT DETAIL SPECS CARD)
   ========================================================================== */
.detailSpecsCard {
    font-size: 1.3rem;
    height: fit-content;
    align-self: flex-start;
}

.detailSpecsTitle {
    font-size: 1.5rem !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--text-muted);
}

.detailSpecsCard:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07) !important;
}

.detailSpecsCard table {
    font-size: 1.3rem !important;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.detailSpecsCard .product-specs-content,
.detailSpecsCard .product-specs-content * {
    font-size: 1.3rem !important;
}

.detailSpecsCard table tr:nth-child(odd) td {
    background-color: var(--gray-bg, #f9f9fb) !important;
}

.detailSpecsCard table tr:nth-child(even) td {
    background-color: var(--white-color, #ffffff) !important;
}

.detailSpecsCard table td,
.detailSpecsCard table th {
    padding: 12px 18px !important;
    border: 1px solid var(--card-border, #eceef0) !important;
    font-size: 1.3rem !important;
    line-height: 1.6;
    vertical-align: middle;
}

.detailSpecsCard .specs-key,
.detailSpecsCard table td:first-child {
    font-weight: 600;
    color: var(--dark-color, #1a1a1a) !important;
    width: 32%;
    font-size: 1.3rem !important;
}

.detailSpecsCard .specs-val,
.detailSpecsCard table td:last-child {
    color: var(--dark-color, #1a1a1a);
    font-size: 1.3rem !important;
}

/* ==========================================================================
   MÔ TẢ CHI TIẾT SẢN PHẨM (COLLAPSE / EXPAND VỚI NÚT ĐỌC TIẾP)
   ========================================================================== */
.product-description-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-description-wrapper.is-collapsed {
    max-height: 380px;
}

.product-description-wrapper.is-collapsed .product-description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        var(--white-color, #ffffff) 100%
    );
    pointer-events: none;
}

.product-description-wrapper:not(.is-collapsed) .product-description-fade {
    display: none;
}

/* ==========================================================================
   BẢNG THÔNG SỐ KỸ THUẬT (COLLAPSE / EXPAND VỚI NÚT XEM THÊM)
   ========================================================================== */
.product-specs-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-specs-wrapper.is-collapsed {
    max-height: 460px;
}

.product-specs-wrapper.is-collapsed .product-specs-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        var(--white-color, #ffffff) 100%
    );
    pointer-events: none;
}

.product-specs-wrapper:not(.is-collapsed) .product-specs-fade {
    display: none;
}

.detailSpecsToggleBtn {
    border-radius: 0.5rem !important;
}

.product-description-content {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--dark-color, #1a1a1a);
}

.product-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 1.5rem auto;
}

.detailDescToggleBtn,
.product-desc-toggle-btn {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--primary, #ff6b00) !important;

    background-color: transparent;
    padding: 8px 28px;

    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.detailDescToggleBtn:hover,
.detailDescToggleBtn:focus,
.product-desc-toggle-btn:hover,
.product-desc-toggle-btn:focus {
    color: var(--white-color, #ffffff) !important;

    transform: translateY(-1px);
}

/* ==========================================================================
   KHUNG CHI TIẾT SẢN PHẨM CHÍNH (TỶ LỆ 3:7)
   ========================================================================== */
@media (min-width: 992px) {
    .product-detail-col-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .product-detail-col-7 {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

/* ==========================================================================
   ẢNH CHÍNH SẢN PHẨM CHIẾM TRỌN KHUNG CHỨA
   ========================================================================== */
.product-detail-main-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-main-img-wrap #detailMainImage,
.product-detail-main-img {
    width: 90%;
    height: 90%;

    object-fit: contain;
    display: block;
}

/* Thông tin Thương hiệu & Mã SKU */
.product-meta-info {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.product-meta-info .meta-divider {
    user-select: none;
}

/* Hộp giá ưu đãi chi tiết sản phẩm */
.price-box {
    background-color: transparent;
}

.price-box .detailPrice {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bs-primary);
}

.price-box #detailOldPrice {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.price-box #detailDiscountBadgeInline {
    font-size: 1.15rem;
    background-color: #e2e3e4;
    color: var(--bs-primary);
    padding: 4px 8px;
    font-weight: 500;
    border-radius: 0.3rem;
    border: 1px solid var(--bs-primary);
}

.price-box #detailSaveAmount {
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1.4;
}

/* Ảnh đại diện người dùng khi đã đăng nhập trên header */
.user-auth-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary, #ff6b00);
    display: block;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.user-auth-avatar:hover {
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

/* ==========================================================================
   DROPDOWN MENU TÀI KHOẢN NGƯỜI DÙNG (HIỂN THỊ TRÊN CÙNG)
   ========================================================================== */
.main-header {
    position: relative;
    z-index: 1035;
}

.user-auth-dropdown-menu {
    font-size: 1.4rem !important;
    min-width: 200px !important;
    z-index: 1065 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid var(--card-border, #eceef0) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    overflow: hidden;
}

.user-auth-dropdown-item {
    font-size: 1.25rem;
    padding: 8px 16px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.user-auth-dropdown-item:hover {
    background-color: var(--gray-bg, #f8fafc);
    color: var(--primary, #ff6b00);
}

/* ==========================================================================
   TRANG CHỦ: LƯỚI SẢN PHẨM 1 HÀNG 6 SẢN PHẨM (HOME PRODUCT GRID)
   ========================================================================== */
.home-product-grid,
#bestSellersGrid,
#featuredGrid,
#monitorsGrid,
.best-sellers-section .client-product-grid,
.featured-products-section .client-product-grid,
.monitors-section .client-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.home-product-grid .p-card,
#bestSellersGrid .p-card,
#featuredGrid .p-card,
#monitorsGrid .p-card,
.best-sellers-section .client-product-grid .p-card,
.featured-products-section .client-product-grid .p-card,
.monitors-section .client-product-grid .p-card {
    padding: 0.75rem;
}

.home-product-grid .card-price-current,
#bestSellersGrid .card-price-current,
#featuredGrid .card-price-current,
#monitorsGrid .card-price-current,
.best-sellers-section .client-product-grid .card-price-current,
.featured-products-section .client-product-grid .card-price-current,
.monitors-section .client-product-grid .card-price-current {
    font-size: 1.5rem;
}

.home-product-grid .card-title-full,
#bestSellersGrid .card-title-full,
#featuredGrid .card-title-full,
#monitorsGrid .card-title-full,
.best-sellers-section .client-product-grid .card-title-full,
.featured-products-section .client-product-grid .card-title-full,
.monitors-section .client-product-grid .card-title-full {
    font-size: 1.3rem;
    min-height: 35px;
}

.home-product-grid .card-stock-status,
#bestSellersGrid .card-stock-status,
#featuredGrid .card-stock-status,
#monitorsGrid .card-stock-status,
.best-sellers-section .client-product-grid .card-stock-status,
.featured-products-section .client-product-grid .card-stock-status,
.monitors-section .client-product-grid .card-stock-status {
    font-size: 1.15rem;
}

.home-product-grid .card-price-old,
#bestSellersGrid .card-price-old,
#featuredGrid .card-price-old,
#monitorsGrid .card-price-old,
.best-sellers-section .client-product-grid .card-price-old,
.featured-products-section .client-product-grid .card-price-old,
.monitors-section .client-product-grid .card-price-old {
    font-size: 1.15rem;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .home-product-grid,
    #bestSellersGrid,
    #featuredGrid,
    #monitorsGrid,
    .best-sellers-section .client-product-grid,
    .featured-products-section .client-product-grid,
    .monitors-section .client-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .home-product-grid,
    #bestSellersGrid,
    #featuredGrid,
    #monitorsGrid,
    .best-sellers-section .client-product-grid,
    .featured-products-section .client-product-grid,
    .monitors-section .client-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .home-product-grid,
    #bestSellersGrid,
    #featuredGrid,
    #monitorsGrid,
    .best-sellers-section .client-product-grid,
    .featured-products-section .client-product-grid,
    .monitors-section .client-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .home-product-grid .p-card,
    #bestSellersGrid .p-card,
    #featuredGrid .p-card,
    #monitorsGrid .p-card,
    .best-sellers-section .client-product-grid .p-card,
    .featured-products-section .client-product-grid .p-card,
    .monitors-section .client-product-grid .p-card {
        padding: 0.5rem;
    }

    .home-product-grid .card-price-current,
    #bestSellersGrid .card-price-current,
    #featuredGrid .card-price-current,
    #monitorsGrid .card-price-current,
    .best-sellers-section .client-product-grid .card-price-current,
    .featured-products-section .client-product-grid .card-price-current,
    .monitors-section .client-product-grid .card-price-current {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   CHƯƠNG TRÌNH KHUYẾN MÃI (PROMOTIONAL CAMPAIGN CARDS)
   ========================================================================== */
.promotions-section {
    position: relative;
}

.promo-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eceae8);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-primary, #ff6b00);
}

.promo-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    width: 100%;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-card:hover .promo-img {
    transform: scale(1.06);
}

.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(
        --primary-gradient,
        linear-gradient(135deg, #ff6b00 0%, #ff8800 100%)
    );
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    text-transform: uppercase;
    z-index: 2;
}

.promo-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.promo-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text, #1f2430);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
    transition: color 0.18s ease;
}

.promo-card:hover .promo-title {
    color: var(--bs-primary, #ff6b00);
}

.promo-subtitle {
    font-size: 1.25rem;
    color: var(--text-soft, #4a5063);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 35px;
}

.promo-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--border, #eceae8);
}

.promo-btn-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary, #ff6b00);
    display: inline-flex;
    align-items: center;
}

.promo-btn-link i {
    transition: transform 0.2s ease;
}

/* ==========================================================================
   TECHSTORE NEW HEADER & HERO LAYOUT (SIDEBAR + BANNER + PROMO)
   ========================================================================== */

/* 1. HEADER BRAND, SEARCH & ACTIONS */
.main-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 75px;
    display: flex;
    align-items: center;
}

.header-brand-wrap .brand-name {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark-color);
    line-height: 1.15;
}

.brand-slogan {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.2;
    font-weight: 500;
    margin-top: 1px;
}

/* Thanh tìm kiếm lớn ở giữa */
.search-box-lg {
    width: 100%;
    max-width: 580px;
    margin: 0 12px;
}

.search-box-lg .search-group {
    width: 100%;
    height: 44px !important;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1.5px solid var(--card-border);
    padding: 0 18px;
    transition: all 0.25s ease;
    width: 100%;
}

.search-box-lg .search-group:focus-within {
    background-color: #ffffff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(240, 81, 35, 0.12);
}

.search-box-lg .btn-search-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 12px;
    color: var(--text-muted);
    font-size: 1.35rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-box-lg .search-group:focus-within .btn-search-icon,
.search-box-lg .btn-search-icon:hover {
    color: var(--bs-primary);
}

.search-box-lg .search-input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--dark-color);
    caret-color: var(--bs-primary);
}

.search-box-lg .search-input::placeholder {
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 400;
}

/* Cụm nút bên phải: Tài khoản & Giỏ hàng */
.btn-header-auth {
    border-radius: 0.5rem;
    border: 1.5px solid var(--card-border);
    background-color: #ffffff;
    color: var(--dark-color);
    padding: 8px 18px;
    transition: all 0.2s ease;
    font-size: 1.35rem;
    font-weight: 600;
}

.btn-header-auth:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background-color: var(--primary-subtle);
    transform: translateY(-1px);
}

.btn-header-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--card-border);
    background-color: #ffffff;
    color: var(--dark-color);
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.btn-header-icon:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background-color: var(--primary-subtle);
    transform: translateY(-1px);
}

/* 2. SIDEBAR DANH MỤC TRANG CHỦ */
.home-category-sidebar {
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-subtle);
}

.sidebar-cat-header {
    font-size: 1.3rem;
}

.sidebar-cat-list {
    margin-top: 4px;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 1.35rem;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.sidebar-cat-img-wrap {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f1f3f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.sidebar-cat-item:hover .sidebar-cat-img {
    transform: scale(1.12);
}

.sidebar-cat-name {
    flex-grow: 1;
}

.sidebar-cat-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition:
        transform 0.2s ease,
        color 0.2s ease;
    flex-shrink: 0;
}

.sidebar-cat-item:hover,
.sidebar-cat-item.active {
    background-color: #f1f3f5;
    color: var(--bs-primary);
}

.sidebar-cat-item:hover .sidebar-cat-arrow {
    color: var(--bs-primary);
    transform: translateX(3px);
}

/* Flyout Submenu Danh Mục Con (Sidebar Phân Cấp 2 Tầng) */
.home-category-sidebar {
    position: relative;
}

.sidebar-cat-item-wrapper {
    position: relative;
}

.sidebar-cat-flyout {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 360px;
    max-width: 440px;
    background-color: var(--white-color) !important;
    border-radius: var(--radius-sm);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--card-border);
    padding: 16px 18px;
    z-index: 1060;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

/* Cầu nối vô hình chống mất hover khi di chuyển con trỏ chuột */
.sidebar-cat-flyout::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 14px;
    height: 100%;
}

.sidebar-cat-item-wrapper.has-flyout:hover .sidebar-cat-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.flyout-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.flyout-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flyout-header-title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 15px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.flyout-header a,
.flyout-all-link {
    font-size: 1.25rem;
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.flyout-header a:hover,
.flyout-all-link:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

.flyout-child-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
}

.flyout-child-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark-color);
    font-size: 1.35rem;
    font-weight: 500;

    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.flyout-child-item:hover {
    color: var(--primary);

    transform: translateX(2px);
}

.flyout-child-item:hover i {
    color: var(--primary) !important;
    transform: translateX(2px);
}

.flyout-child-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. HERO BANNER CAROUSEL (CHIẾM TOÀN BỘ KHÔNG GIAN CÒN LẠI) */
#heroCarousel {
    width: 100%;
    height: 100%;
    border-radius: 0.3rem;
    overflow: hidden;
}

#heroCarousel .carousel-inner {
    height: 100%;
    width: 100%;
}

#heroCarousel .carousel-item {
    height: 100%;
    min-height: 410px;
    position: relative;
    width: 100%;
}

#heroCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(15, 23, 42, 0.5) 55%,
        rgba(0, 0, 0, 0.08) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 52px;
    color: #ffffff;
    border-radius: 0.5rem;
    z-index: 2;
}

.hero-slide-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.hero-slide-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 65%;
}

.hero-slide-desc {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
    max-width: 60%;
    line-height: 1.45;
}

.hero-slide-meta {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-slide-meta span {
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

#heroCarousel .carousel-indicators {
    bottom: 16px;
    margin-bottom: 0;
    z-index: 3;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.25s ease;
    margin: 0 4px;
}

#heroCarousel .carousel-indicators .active {
    width: 24px;
    border-radius: 10px;
    background-color: var(--bs-primary);
}

/* 4. CÁC Ô PROMO BÊN CẠNH BANNER CHÍNH */
.hero-promo-card {
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    min-height: 180px;
    box-shadow: var(--shadow-subtle);
    border: none;
}

.hero-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero-promo-card.promo-theme-orange {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #ffffff;
}

.hero-promo-card.promo-theme-navy {
    background: linear-gradient(135deg, #0f3e82 0%, #1e5bb0 100%);
    color: #ffffff;
}

.hero-promo-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 0.5rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-promo-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.hero-promo-sub {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.hero-promo-img-wrap {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 90px;
    height: 90px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.hero-promo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.hero-promo-card:hover .hero-promo-img-wrap img {
    transform: scale(1.08) rotate(-3deg);
}

/* 5. HÀNG Ô PROMO PHÍA DƯỚI */
.promo-bottom-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-subtle);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.promo-bottom-card:hover {
    transform: translateY(-3px);
    border-color: var(--bs-primary);
    box-shadow: 0 8px 18px rgba(255, 107, 0, 0.12);
}

.promo-bottom-info {
    flex: 1;
    padding-right: 12px;
}

.promo-bottom-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.promo-bottom-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 0;
}

.promo-bottom-img-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.promo-bottom-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.promo-bottom-card:hover .promo-bottom-img-wrap img {
    transform: scale(1.1);
}

/* ==================== 4. SECTION DANH MỤC NỔI BẬT TRANG CHỦ ==================== */
.home-categories-section {
    position: relative;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.cat-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: var(--white-color);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    height: 100%;
    padding: 1rem;
}

.cat-feature-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-hover);
}

.cat-feature-img-wrap {
    width: 95px;
    height: 95px;
    border-radius: var(--radius-sm);
    background-color: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
}

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

.cat-feature-card:hover .cat-feature-img-wrap {
    transform: scale(1.08);
}

.cat-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-feature-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Skeleton placeholder cho cat-feature-card */
.cat-feature-card.placeholder-glow .cat-feature-img-wrap {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

/* Responsive Grid */
@media (max-width: 1199.98px) {
    .home-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    .home-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575.98px) {
    .home-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cat-feature-card {
        padding: 12px 6px;
    }

    .cat-feature-img-wrap {
        width: 52px;
        height: 52px;
        margin-bottom: 6px;
    }

    .cat-feature-name {
        font-size: 1.2rem;
    }
}

/* ==================== 5. SEPAY VIETQR PAYMENT STYLES ==================== */
.sepay-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--admin-success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(29, 169, 125, 0.4);
    animation: sepayPulse 1.8s infinite;
}

@keyframes sepayPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 169, 125, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(29, 169, 125, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 169, 125, 0);
    }
}

.sepay-qr-container {
    background-color: var(--gray-bg);
    border: 1px solid var(--card-border);
    transition: all 0.25s ease;
}

.sepay-qr-wrapper {
    background-color: var(--white-color);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-subtle);
}

.sepay-info-row {
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.sepay-info-row:hover {
    border-color: var(--primary-light);
    background-color: var(--white-color);
}

#sepayQrModal .modal-header .btn-close {
    margin-left: auto;
}

/* ==================== 6. ORDER TRACKING & TIMELINE STYLES ==================== */
.order-timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 25px 10px 10px;
}

.order-timeline-line {
    position: absolute;
    top: 20px;
    left: 6%;
    right: 6%;
    height: 4px;
    background-color: var(--card-border, #eaecf0);
    z-index: 1;
}

.order-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--admin-success, #1da97d);
    transition: width 0.4s ease;
}

.order-timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.order-timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color, #ffffff);
    border: 3px solid var(--card-border, #eaecf0);
    color: var(--text-muted, #8a8f99);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.order-timeline-step.active .order-timeline-icon {
    background-color: var(--admin-success, #1da97d);
    border-color: var(--admin-success, #1da97d);
    color: var(--white-color, #ffffff);
    box-shadow: 0 0 0 5px rgba(29, 169, 125, 0.2);
}

.order-timeline-step.completed .order-timeline-icon {
    background-color: var(--admin-success, #1da97d);
    border-color: var(--admin-success, #1da97d);
    color: var(--white-color, #ffffff);
}

.order-timeline-step.cancelled .order-timeline-icon {
    background-color: #dc3545;
    border-color: #dc3545;
    color: var(--white-color, #ffffff);
    box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.2);
}

.order-timeline-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 10px;
    color: var(--text-dark, #1a1a1a);
}

.order-timeline-step:not(.active):not(.completed):not(.cancelled)
    .order-timeline-title {
    color: var(--text-muted, #8a8f99);
    font-weight: 500;
}

.order-timeline-time {
    font-size: 0.72rem;
    color: var(--text-muted, #8a8f99);
}

/* Print Invoice Styling */
@media print {
    body * {
        visibility: hidden;
    }

    #printInvoiceArea,
    #printInvoiceArea * {
        visibility: visible;
    }

    #printInvoiceArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
    }

    .no-print,
    header,
    footer,
    .navbar,
    .breadcrumb,
    #orderSearchCard,
    #orderActionButtons,
    .btn,
    #sepayPaymentCard,
    #orderTimelineCard {
        display: none !important;
    }
}

/* ==========================================================================
   QUY CHUẨN BORDER-RADIUS CHO TẤT CẢ CÁC NÚT TRÊN TOÀN BỘ WEBSITE (0.5rem)
   Áp dụng đồng bộ cho mọi nút có bo góc: .btn, button, input submit/button,
   các biến thể nút Bootstrap (.btn.rounded-pill, .btn.rounded-3, .btn-*),
   các nút custom (auth, cart, checkout, filter, admin, detail, v.v.)
   ========================================================================== */
.btn,
button.btn,
a.btn,
input[type="button"].btn,
input[type="submit"].btn,
.btn.rounded-pill,
button.rounded-pill,
a.btn.rounded-pill,
.btn.rounded-3,
.btn.rounded-4,
.btn.rounded-2,
.btn.rounded,
.btn-brand-orange,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-success,
.btn-outline-info,
.btn-outline-dark,
.btn-login,
.btn-hero-primary,
.btn-filter,
.btn-header-auth,
.btn-auth-submit,
.cart-drawer-checkout-btn,
.detail-action-btn,
.btn-modal-cart,
.btn-new,
.btn-outline-action,
.action-btn,
.pg-btn,
.promo-btn,
.admin-action-btn,
.btn-sheet-reset,
.btn-sheet-apply,
.btn-mobile-filter-trigger,
.cat-brand-btn,
.btn-action-primary,
#loginSubmitBtn,
#registerSubmitBtn,
#btnSaveProduct,
#btnConfirmCancel {
    --bs-btn-border-radius: 0.5rem;
    border-radius: 0.5rem !important;
}

/* Bảo toàn các nút vuông có chủ đích (rounded-0) */
.btn.rounded-0,
button.rounded-0,
a.btn.rounded-0 {
    border-radius: 0 !important;
}

/* Bảo toàn các nút icon dạng tròn */
.btn-circle,
.carousel-nav-btn,
.carousel-btn-circle,
.card-btn-add,
.fsg-circle-add-btn,
.quick-view-btn,
.cart-drawer-remove-btn,
.fsg-arrow,
.social-icon-btn,
.btn-cart-icon,
.btn-account-icon,
.btn-header-icon,
.btn-close,
.btn-search-icon {
    border-radius: 50% !important;
}

/* ==================== 50. SHOPEE ACCOUNT & PROFILE LAYOUT ==================== */
.shopee-account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Bố cục 2 Cột Cố Định Chuẩn Shopee - Ngăn chặn triệt để hiện tượng rớt dòng */
.account-sidebar-col {
    width: 250px;
    flex: 0 0 250px;
    max-width: 250px;
}

.account-content-col {
    flex: 1 1 0%;
    min-width: 0; /* BẮT BUỘC để ngăn flex item bị tràn chiều ngang đẩy rớt dòng */
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .account-sidebar-col {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .account-content-col {
        width: 100%;
        flex: 0 0 100%;
    }
}

.account-sidebar {
    background: transparent;
}

.account-user-brief {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color, #eef0f3);
}

.account-avatar-fallback {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary, #ff6b00);
    color: var(--white-color, #ffffff);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-menu-group {
    margin-bottom: 4px;
}

.account-menu-title {
    color: var(--text-dark, #1a1d23);
    font-size: 14px;
    cursor: pointer;
}

.account-submenu {
    list-style: none;
    padding-left: 28px;
    margin-bottom: 6px;
}

.account-submenu li {
    margin-bottom: 6px;
}

.account-menu-link {
    color: var(--text-muted, #6b7280);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
    display: block;
}

.account-menu-link:hover,
.account-menu-link.active {
    color: var(--primary, #ff6b00);
    font-weight: 600;
}

.account-menu-item {
    color: var(--text-dark, #1a1d23);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.account-menu-item:hover,
.account-menu-item.active {
    color: var(--primary, #ff6b00);
    font-weight: 600;
}

.account-tab-panel {
    background: var(--white-color, #ffffff);

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding-top: 0 !important;
}

/* Shopee Tabs Nav */
.shopee-tabs-nav {
    display: flex;
    background: var(--white-color, #ffffff);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color, #eef0f3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.shopee-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.shopee-tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.shopee-tab-item {
    flex: 1;
    padding: 14px 16px;
    text-align: center;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dark, #1a1d23);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.shopee-tab-item:hover {
    color: var(--primary, #ff6b00);
}

.shopee-tab-item.active {
    color: var(--primary, #ff6b00);
    border-bottom: 2px solid var(--primary, #ff6b00);
    font-weight: 600;
}

/* Shopee Search Bar */
.shopee-search-bar {
    background: var(--white-color, #ffffff);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Shopee Order Card */
.shopee-order-card {
    background: var(--white-color, #ffffff);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.shopee-order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shopee-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color, #eef0f3);
}

.shopee-shop-badge {
    background: var(--primary, #ff6b00);
    color: var(--white-color, #ffffff);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.shopee-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color, #f3f4f6);
}

.shopee-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color, #eef0f3);
    flex-shrink: 0;
}

.shopee-order-footer {
    padding-top: 16px;
}

.shopee-order-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary, #ff6b00);
}

@media (max-width: 991.98px) {
    .account-sidebar {
        background: var(--white-color, #ffffff);
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 8px;
    }
    .shopee-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.profile-card {
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg, #ffffff);
    border: 1px solid var(--profile-line, #e5e7eb);
    border-radius: 12px;
    padding: 36px 40px 40px;
    box-shadow: var(--shadow-subtle, 0 4px 14px rgba(0, 0, 0, 0.05));
}

.profile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--profile-accent-soft, #fff4ed);
    display: block;
}

.profile-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--profile-accent, #ff6b00);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--profile-accent-soft, #fff4ed);
}

.profile-greeting {
    font-size: 20px;
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--profile-ink, #1a1d23);
}

.profile-sub {
    font-size: 13px;
    color: var(--profile-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--profile-good, #16a34a);
    background: var(--profile-good-soft, #ecfdf3);
    padding: 2px 10px;
    border-radius: 999px;
}

.profile-edit-btn {
    border: 1px solid var(--profile-accent, #ff6b00);
    color: var(--profile-accent, #ff6b00);
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.profile-edit-btn:hover {
    background: var(--profile-accent, #ff6b00);
    color: #ffffff;
}

.profile-edit-btn.btn-save {
    background: var(--profile-accent, #ff6b00);
    color: #ffffff;
    border-color: var(--profile-accent, #ff6b00);
}

.profile-edit-btn.btn-save:hover {
    background: var(--primary-dark, #e55a00);
    border-color: var(--primary-dark, #e55a00);
}

.profile-cancel-btn {
    border: 1px solid var(--profile-line, #e5e7eb);
    color: var(--profile-muted, #6b7280);
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.profile-cancel-btn:hover {
    background: #f3f4f6;
    color: var(--profile-ink, #1a1d23);
    border-color: #d1d5db;
}

.profile-inline-input {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--profile-line, #e5e7eb);
    color: var(--profile-ink, #1a1d23);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    width: 100%;
}

.profile-inline-input:focus {
    border-color: var(--profile-accent, #ff6b00);
    box-shadow: 0 0 0 3px var(--profile-accent-soft, #fff4ed);
    outline: none;
}

.profile-edit-btn:focus-visible,
.profile-cancel-btn:focus-visible {
    outline: 2px solid var(--profile-accent, #ff6b00);
    outline-offset: 2px;
}

.profile-section {
    padding: 22px 0;
    border-top: 1px solid var(--profile-line, #e5e7eb);
}

.profile-section:first-of-type {
    border-top: none;
    padding-top: 4px;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--profile-ink, #1a1d23);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
    column-gap: 24px;
}

.profile-field label {
    display: block;
    font-size: 12px;
    color: var(--profile-muted, #6b7280);
    margin-bottom: 4px;
}

.profile-field .profile-value {
    font-size: 14px;
    color: var(--profile-ink, #1a1d23);
    font-weight: 500;
}

.profile-menu {
    display: flex;
    gap: 28px;
    margin-top: 2px;
}

.profile-menu a {
    font-size: 13px;
    color: var(--profile-accent, #ff6b00);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: opacity 0.15s ease;
}

.profile-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.profile-menu a.danger {
    color: var(--profile-danger, #dc2626);
}

.profile-count {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

@media (max-width: 560px) {
    .profile-card {
        padding: 24px 20px 28px;
    }

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

    .profile-topbar {
        flex-direction: column;
        gap: 16px;
    }

    .profile-menu {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ==================== GHN SHIPPING LOG TIMELINE ==================== */
.ghn-timeline-flow {
    position: relative;
    padding-left: 28px;
}

.ghn-timeline-flow::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 9px;
    width: 2px;
    background-color: var(--card-border, #eceef0);
}

.ghn-flow-step {
    position: relative;
    margin-bottom: 18px;
}

.ghn-flow-step:last-child {
    margin-bottom: 0;
}

.ghn-flow-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white-color, #ffffff);
    border: 3px solid var(--text-muted, #8a8f99);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ghn-flow-step.active .ghn-flow-dot {
    border-color: var(--primary, #ff6b00);
    background-color: var(--primary, #ff6b00);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2);
}

.ghn-flow-step.completed .ghn-flow-dot {
    border-color: var(--admin-success, #1da97d);
    background-color: var(--admin-success, #1da97d);
}

.ghn-flow-step .ghn-flow-content {
    background-color: var(--page-bg, #f9f9fb);
    border: 1px solid var(--card-border, #eceef0);
    border-radius: 10px;
    padding: 10px 14px;
}

.ghn-flow-step.active .ghn-flow-content {
    background-color: var(--primary-subtle, #fff4ed);
    border-color: rgba(255, 107, 0, 0.3);
}

.ghn-flow-time {
    font-size: 0.8rem;
    color: var(--text-muted, #8a8f99);
}

.ghn-flow-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-color, #1a1a1a);
}

.ghn-flow-desc {
    font-size: 0.84rem;
    color: var(--text-muted-custom, #6c757d);
    margin-top: 2px;
}

/* ==========================================================================
   SHOPEE CUSTOMER ORDER DETAIL PAGE COMPONENTS
   ========================================================================== */
.shopee-detail-box {
    background: var(--white-color, #ffffff);
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--card-border, #eceef0);
    box-shadow: var(--shadow-subtle, 0 4px 14px rgba(0, 0, 0, 0.05));
    overflow: hidden;
}

.shopee-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--card-border, #eceef0);
    background: var(--white-color, #ffffff);
}

.shopee-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted-custom, #6c757d);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.shopee-back-link:hover {
    color: var(--primary, #ff6b00);
    transform: translateX(-2px);
}

.shopee-order-meta {
    font-size: 14px;
}

/* Stepper 5 bước Shopee chuẩn cao cấp */
.shopee-stepper-container {
    padding: 38px 28px 30px;
    background: linear-gradient(180deg, var(--white-color, #ffffff) 0%, var(--page-bg, #f9f9fb) 100%);
    border-bottom: 1px solid var(--card-border, #eceef0);
}

.shopee-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.shopee-stepper-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    z-index: 2;
}

.shopee-stepper-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--white-color, #ffffff);
    border: 3px solid var(--card-border, #eceef0);
    color: var(--text-muted, #8a8f99);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.shopee-stepper-step.completed .shopee-stepper-icon {
    border-color: var(--shopee-green, #26aa99);
    color: var(--shopee-green, #26aa99);
    background: var(--white-color, #ffffff);
}

.shopee-stepper-step.active .shopee-stepper-icon {
    border-color: var(--primary, #ff6b00);
    background: var(--primary, #ff6b00);
    color: var(--white-color, #ffffff);
    box-shadow: 0 0 0 6px var(--primary-subtle, #fff4ed);
}

.shopee-stepper-step.completed.active .shopee-stepper-icon {
    border-color: var(--shopee-green, #26aa99);
    background: var(--shopee-green, #26aa99);
    color: var(--white-color, #ffffff);
    box-shadow: 0 0 0 6px var(--shopee-green-light, #e6f7f5);
}

.shopee-stepper-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark-color, #1a1a1a);
    line-height: 1.4;
    margin-bottom: 4px;
    max-width: 140px;
}

.shopee-stepper-step:not(.completed):not(.active) .shopee-stepper-label {
    color: var(--text-muted, #8a8f99);
    font-weight: 500;
}

.shopee-stepper-time {
    font-size: 12px;
    color: var(--text-muted-custom, #6c757d);
    min-height: 18px;
}

.shopee-stepper-line {
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    width: calc(100% - 28px);
    height: 4px;
    background: var(--card-border, #eceef0);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.shopee-stepper-step.completed .shopee-stepper-line {
    background: var(--shopee-green, #26aa99);
}

.shopee-stepper-step:last-child .shopee-stepper-line {
    display: none;
}

/* Action bar dưới Stepper */
.shopee-action-bar {
    padding: 18px 28px;
    background: var(--page-bg, #f9f9fb);
    border-bottom: 1px solid var(--card-border, #eceef0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.shopee-action-message {
    font-size: 13.5px;
    color: var(--text-muted-custom, #6c757d);
}

/* Dải phong bì bưu chính Airmail Shopee */
.shopee-airmail-divider {
    height: 4px;
    width: 100%;
    background-position-x: -30px;
    background-size: 116px 4px;
    background-image: repeating-linear-gradient(
        45deg,
        #6c8bef 0 10px,
        transparent 10px 14px,
        var(--primary, #ff6b00) 14px 24px,
        transparent 24px 28px
    );
}

/* Khối Logistics 2 cột */
.shopee-logistics-grid {
    display: flex;
    border-bottom: 1px solid var(--card-border, #eceef0);
    background: var(--white-color, #ffffff);
}

.shopee-logistics-col {
    padding: 26px 28px;
}

.shopee-logistics-col-address {
    width: 38%;
    border-right: 1px solid var(--card-border, #eceef0);
    background: #fafbfc;
}

.shopee-logistics-col-timeline {
    width: 62%;
    background: var(--white-color, #ffffff);
}

/* Vertical Timeline cho vận chuyển GHN */
.shopee-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.shopee-timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 20px;
}

.shopee-timeline-item:last-child {
    padding-bottom: 0;
}

.shopee-timeline-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: -8px;
    width: 2px;
    background: var(--card-border, #eceef0);
}

.shopee-timeline-item:last-child::before {
    display: none;
}

.shopee-timeline-dot {
    position: absolute;
    left: 2px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid var(--white-color, #ffffff);
}

.shopee-timeline-item.latest .shopee-timeline-dot {
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background: var(--shopee-green, #26aa99);
    box-shadow: 0 0 0 4px var(--shopee-green-light, #e6f7f5);
}

.shopee-timeline-item.latest .shopee-timeline-title {
    color: var(--shopee-green, #26aa99);
    font-weight: 700;
}

.shopee-timeline-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark-color, #1a1a1a);
    margin-bottom: 3px;
}

.shopee-timeline-desc {
    font-size: 12.5px;
    color: var(--text-muted-custom, #6c757d);
    line-height: 1.5;
}

.shopee-timeline-time {
    font-size: 11.5px;
    color: var(--text-muted, #8a8f99);
    margin-top: 3px;
}

/* Danh sách sản phẩm Shopee chuẩn cao cấp */
.shopee-items-section {
    background: var(--white-color, #ffffff);
}

.min-w-0 {
    min-width: 0 !important;
}

.shopee-product-row {
    display: flex;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--card-border, #eceef0);
    transition: background-color 0.2s ease;
    gap: 20px;
}

.shopee-product-row:hover {
    background-color: #fafbfc;
}

.shopee-product-thumb-link {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm, 10px);
    flex-shrink: 0;
}

.shopee-product-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius-sm, 10px);
    border: 1px solid var(--card-border, #eceef0);
    flex-shrink: 0;
    background: var(--page-bg, #f9f9fb);
    display: block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.shopee-product-row:hover .shopee-product-thumb {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.shopee-product-info {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}

.shopee-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color, #1a1a1a);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    margin-bottom: 6px;
    transition: color 0.15s ease;
}

.shopee-product-name:hover {
    color: var(--primary, #ff6b00) !important;
}

.shopee-product-pricing {
    flex-shrink: 0;
    min-width: 140px;
    text-align: right;
    white-space: nowrap;
}

.shopee-product-unit-price {
    font-size: 13px;
    color: var(--text-muted-custom, #6c757d);
    margin-bottom: 4px;
}

.shopee-product-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color, #1a1a1a);
}

/* Khối Tổng kết tài chính */
.shopee-financial-summary {
    padding: 24px 28px;
    background: #fafbfc;
    border-bottom-left-radius: var(--radius-md, 12px);
    border-bottom-right-radius: var(--radius-md, 12px);
}

.shopee-summary-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--text-muted-custom, #6c757d);
}

.shopee-summary-row .summary-label {
    font-weight: 500;
}

.shopee-summary-row .summary-val {
    min-width: 160px;
    text-align: right;
    color: var(--dark-color, #1a1a1a);
    font-weight: 600;
}

.shopee-summary-row.total-row {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px dashed var(--card-border, #eceef0);
}

.shopee-summary-row.total-row .summary-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color, #1a1a1a);
}

.shopee-summary-row.total-row .summary-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary, #ff6b00);
}

@media (max-width: 767.98px) {
    .shopee-detail-topbar,
    .shopee-stepper-container,
    .shopee-action-bar,
    .shopee-logistics-col,
    .shopee-product-row,
    .shopee-financial-summary {
        padding-left: 16px;
        padding-right: 16px;
    }
    .shopee-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-left: 6px;
    }
    .shopee-stepper-step {
        flex-direction: row;
        gap: 14px;
        text-align: left;
    }
    .shopee-stepper-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .shopee-stepper-line {
        display: none !important;
    }
    .shopee-logistics-grid {
        flex-direction: column;
    }
    .shopee-logistics-col-address,
    .shopee-logistics-col-timeline {
        width: 100%;
        border-right: none;
    }
    .shopee-logistics-col-address {
        border-bottom: 1px solid var(--card-border, #eceef0);
    }
    .shopee-detail-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .shopee-product-row {
        gap: 12px;
    }
    .shopee-product-thumb {
        width: 72px;
        height: 72px;
    }
    .shopee-product-pricing {
        min-width: 105px;
    }
    .shopee-product-subtotal {
        font-size: 14.5px;
    }
}

/* ==========================================================================
   Admin Report Hub Card Hover Effect
   ========================================================================== */
.report-hub-card {
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    color: var(--admin-text, #1e293b);
}
.report-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 12px 24px -8px rgba(0, 0, 0, 0.12)) !important;
    border-color: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
}
.report-hub-card:hover h4 {
    color: var(--brand-orange) !important;
}

/* ==========================================================================
   Admin Revenue Report Custom UI (Chuẩn ảnh mẫu)
   ========================================================================== */
/* ==========================================================================
   Admin Revenue Report Custom UI & Typography Standardization
   (Đã chuẩn hóa toàn bộ cỡ chữ theo hệ quy chiếu 62.5%: 1rem = 10px)
   ========================================================================== */
.admin-light-app {
    font-size: 1.4rem;
}
.admin-light-app small,
.admin-light-app .small {
    font-size: 1.3rem !important;
}
.admin-light-app .btn-sm,
.admin-light-app .form-control-sm,
.admin-light-app .form-select-sm {
    font-size: 1.35rem !important;
}
.admin-light-app .dropdown-menu {
    font-size: 1.4rem;
}
.admin-light-app .dropdown-item {
    font-size: 1.4rem;
}
.admin-light-app .badge {
    font-size: 1.25rem;
}

.report-breadcrumb-back {
    color: var(--admin-muted, #64748b);
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}
.report-breadcrumb-back:hover {
    color: var(--brand-orange) !important;
}

.report-action-btn {
    background: transparent;
    border: none;
    color: var(--admin-text, #334155);
    font-size: 1.4rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    text-decoration: none !important;
}
.report-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--brand-orange) !important;
}

.report-daterange-btn {
    background: #ffffff;
    border: 1px solid var(--admin-border, #cbd5e1);
    color: #1e40af;
    font-weight: 600;
    font-size: 1.4rem;
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.report-daterange-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.report-daterange-menu {
    min-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--admin-border, #e2e8f0);
}

.report-daterange-preset-btn {
    text-align: left;
    width: 100%;
    padding: 7px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 1.35rem;
    color: var(--admin-text, #334155);
    transition: background 0.15s;
}
.report-daterange-preset-btn:hover {
    background: rgba(249, 115, 22, 0.08);
    color: var(--brand-orange);
}
.report-daterange-preset-btn.active {
    background: rgba(249, 115, 22, 0.15);
    color: var(--brand-orange);
    font-weight: 700;
}

.report-custom-card {
    background: #ffffff;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.report-chart-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--admin-muted, #64748b);
}

.report-chart-footer {
    border-top: 1px solid var(--admin-border, #f1f5f9);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 1.3rem;
    color: var(--admin-muted, #94a3b8);
    text-align: center;
}

/* Square Back Button [←] */
.btn-report-back-square {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--admin-border, #d1d5db);
    border-radius: 8px;
    color: var(--admin-text, #1e293b);
    font-size: 1.6rem;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.btn-report-back-square:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: #ffffff;
    transform: translateX(-2px);
}

/* Header Action Button (Xuất báo cáo) */
.btn-report-header-action {
    background: #ffffff;
    border: 1px solid var(--admin-border, #d1d5db);
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--admin-text, #1e293b);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.15s ease;
}
.btn-report-header-action:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: #fafafa;
}

/* Filter Trigger Dropdown Buttons */
.btn-report-filter-trigger {
    background: #ffffff;
    border: 1px solid var(--admin-border, #d1d5db);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--admin-text, #1e293b);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.btn-report-filter-trigger:hover,
.btn-report-filter-trigger[aria-expanded="true"] {
    border-color: var(--news-blue, #0284c7);
    color: var(--news-blue, #0284c7);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

/* Datepicker Popup Menu */
.report-datepicker-popup {
    width: 360px;
    border-radius: 10px;
    border: 1px solid var(--admin-border, #e2e8f0);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

/* 2-column Grid Preset Buttons */
.report-preset-grid-btn {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: #ffffff;
    font-size: 1.35rem;
    font-weight: 500;
    text-align: center;
    color: var(--admin-text, #1e293b);
    transition: all 0.15s ease;
}
.report-preset-grid-btn:hover {
    border-color: var(--news-blue, #0284c7);
    color: var(--news-blue, #0284c7);
    background: rgba(2, 132, 199, 0.04);
}
.report-preset-grid-btn.active {
    border-color: var(--news-blue, #0284c7);
    color: var(--news-blue, #0284c7);
    background: rgba(2, 132, 199, 0.08);
    font-weight: 600;
}

/* Custom Date Range Toggle Button */
.report-preset-custom-toggle-btn {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: #ffffff;
    font-size: 1.35rem;
    font-weight: 500;
    text-align: center;
    color: var(--admin-text, #1e293b);
    transition: all 0.15s ease;
}
.report-preset-custom-toggle-btn:hover,
.report-preset-custom-toggle-btn.active {
    border-color: var(--news-blue, #0284c7);
    color: var(--news-blue, #0284c7);
    background: rgba(2, 132, 199, 0.06);
}

/* Solid Blue Apply Filter Button (Ảnh mẫu) */
.report-filter-apply-btn {
    background: var(--news-blue, #0284c7);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1.5rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.report-filter-apply-btn:hover {
    background: #0369a1;
}

/* Table Toolbar Actions */
.btn-table-toolbar-action {
    background: #ffffff;
    border: 1px solid var(--admin-border, #d1d5db);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--admin-text, #334155);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.15s ease;
}
.btn-table-toolbar-action:hover,
.btn-table-toolbar-action[aria-expanded="true"] {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: #fafafa;
}

.report-column-visibility-menu {
    min-width: 210px;
    border-radius: 8px;
    font-size: 1.35rem;
    border: 1px solid var(--admin-border, #e2e8f0);
}

/* Table styling */
.report-data-table {
    font-size: 1.4rem;
}
.report-data-table th {
    font-size: 1.4rem;
    font-weight: 600;
}
.report-data-table td {
    font-size: 1.4rem;
}
.report-data-table th.sortable-col {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}
.report-data-table th.sortable-col:hover {
    color: var(--brand-orange) !important;
}

/* Pagination footer */
.report-table-footer {
    font-size: 1.35rem;
}
.report-table-footer .form-select {
    font-size: 1.35rem;
}
.report-table-footer .page-link {
    font-size: 1.35rem;
    border-radius: 6px !important;
    border: 1px solid var(--admin-border, #e2e8f0);
    color: var(--admin-text, #334155);
    padding: 5px 12px;
}
.report-table-footer .page-item.active .page-link {
    background-color: var(--news-blue, #0284c7);
    border-color: var(--news-blue, #0284c7);
    color: #ffffff;
}



