html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    background: #f5f6fa;
    color: #2f3542;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 0;
}

.top-link {
    color: #6c757d;
}

    .top-link:hover {
        color: #0d6efd;
    }

.main-header {
    background: #ffffff;
    padding: 22px 0;
    border-bottom: 1px solid #eeeeee;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #222;
}

    .brand-logo:hover {
        color: #0d6efd;
    }

    .brand-logo strong {
        display: block;
        font-size: 24px;
        line-height: 1;
    }

    .brand-logo small {
        display: block;
        font-size: 13px;
        color: #777;
        margin-top: 4px;
    }

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #20c997);
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.search-box {
    display: flex;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 6px;
}

    .search-box input {
        border: none;
        background: transparent;
        padding-left: 18px;
    }

        .search-box input:focus {
            box-shadow: none;
            background: transparent;
        }

    .search-box button {
        border-radius: 999px;
        padding-left: 24px;
        padding-right: 24px;
    }

.header-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 14px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 600;
}

    .header-action:hover {
        color: #0d6efd;
    }

.action-icon {
    font-size: 22px;
}

.login-area .navbar-nav {
    flex-direction: row;
    gap: 8px;
}

.login-area .nav-link {
    padding: 0;
    color: #333 !important;
    font-weight: 600;
}

    .login-area .nav-link:hover {
        color: #0d6efd !important;
    }

.login-area form button {
    padding: 0;
    font-weight: 600;
}

.category-nav {
    background: #0d6efd;
}

.category-menu {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    overflow-x: auto;
}

    .category-menu li a {
        display: block;
        color: white;
        padding: 14px 18px;
        font-weight: 600;
        white-space: nowrap;
    }

        .category-menu li a:hover {
            background: rgba(255, 255, 255, 0.18);
        }

.hero-section {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    border-radius: 24px;
    padding: 56px;
    margin-top: 28px;
    position: relative;
    overflow: hidden;
}

    .hero-section::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        right: -70px;
        top: -70px;
    }

    .hero-section h1 {
        font-size: 44px;
        font-weight: 800;
        margin-bottom: 16px;
    }

    .hero-section p {
        font-size: 18px;
        max-width: 620px;
        opacity: 0.95;
    }

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 42px 0 22px;
}

    .section-title h2 {
        font-weight: 800;
        margin: 0;
    }

.category-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
    height: 100%;
}

    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    }

    .category-card .category-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        background: #eef4ff;
        color: #0d6efd;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        margin-bottom: 14px;
    }

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    }

.product-image {
    position: relative;
    background: #f8f9fa;
}

    .product-image img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #dc3545;
    color: white;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.product-body {
    padding: 18px;
}

.product-category {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    min-height: 44px;
    color: #222;
}

.product-description {
    color: #6c757d;
    font-size: 14px;
    min-height: 42px;
}

.product-price {
    color: #dc3545;
    font-size: 20px;
    font-weight: 800;
}

.product-old-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.shop-footer {
    background: #212529;
    color: #d9d9d9;
    padding: 42px 0 20px;
    margin-top: 60px;
}

    .shop-footer h5 {
        color: white;
        font-weight: 700;
    }

    .shop-footer ul {
        padding-left: 18px;
    }

@media (max-width: 768px) {
    .main-header {
        padding: 16px 0;
    }

    .header-actions {
        justify-content: start;
        flex-wrap: wrap;
    }

    .hero-section {
        padding: 32px;
    }

        .hero-section h1 {
            font-size: 32px;
        }

    .product-actions {
        grid-template-columns: 1fr;
    }
}

.page-heading {
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

    .page-heading h1 {
        font-weight: 800;
        margin-bottom: 8px;
    }

    .page-heading p {
        color: #6c757d;
        margin: 0;
    }

.filter-panel {
    background: white;
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.empty-box {
    background: white;
    padding: 48px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.breadcrumb-box {
    background: white;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

    .breadcrumb-box a {
        color: #0d6efd;
        font-weight: 600;
    }

    .breadcrumb-box span {
        margin: 0 6px;
        color: #6c757d;
    }

.product-detail-card {
    background: white;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.detail-image-box {
    position: relative;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .detail-image-box img {
        width: 100%;
        height: 430px;
        object-fit: cover;
    }

.detail-info {
    padding-left: 18px;
}

    .detail-info h1 {
        font-weight: 800;
        margin-bottom: 10px;
    }

.detail-rating {
    color: #ffc107;
    font-weight: 700;
}

    .detail-rating span {
        color: #6c757d;
        font-weight: 400;
    }

.detail-price-box {
    background: #fff5f5;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #ffe0e0;
}

.detail-price {
    color: #dc3545;
    font-size: 34px;
    font-weight: 900;
}

.detail-description {
    color: #495057;
    line-height: 1.7;
}

.stock-box {
    font-size: 16px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

    .service-box div {
        background: #f8f9fa;
        padding: 14px 16px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
    }

    .service-box strong {
        margin-bottom: 4px;
    }

    .service-box span {
        color: #6c757d;
        font-size: 14px;
    }

@media (max-width: 768px) {
    .detail-info {
        padding-left: 0;
        margin-top: 24px;
    }

    .detail-image-box,
    .detail-image-box img {
        min-height: 300px;
        height: 300px;
    }

    .detail-price {
        font-size: 28px;
    }
}

.cart-card,
.checkout-card,
.order-summary,
.order-detail-card {
    background: white;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-header,
.checkout-card-header,
.order-detail-header {
    padding: 18px 22px;
    border-bottom: 1px solid #edf0f2;
    background: #ffffff;
}

    .cart-header h5,
    .checkout-card-header h4,
    .order-detail-header h4 {
        margin: 0;
        font-weight: 800;
    }

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr 220px 150px;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid #edf0f2;
}

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

.cart-product-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    background: #f8f9fa;
}

.cart-product-info h5 {
    font-weight: 800;
    margin-bottom: 6px;
}

.cart-product-info p {
    color: #6c757d;
    margin-bottom: 8px;
}

.cart-price {
    color: #dc3545;
    font-weight: 800;
}

.cart-quantity input {
    max-width: 80px;
}

.cart-total {
    text-align: right;
}

    .cart-total strong {
        display: block;
        color: #dc3545;
        font-size: 18px;
        margin-bottom: 8px;
    }

.remove-link {
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
}

    .remove-link:hover {
        text-decoration: underline;
    }

.cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-summary {
    padding: 24px;
    position: sticky;
    top: 20px;
}

    .order-summary h4 {
        font-weight: 800;
        margin-bottom: 20px;
    }

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .summary-row span {
        color: #6c757d;
    }

.summary-total {
    font-size: 20px;
    font-weight: 900;
}

    .summary-total strong {
        color: #dc3545;
    }

.payment-note {
    background: #f8f9fa;
    padding: 14px;
    border-radius: 14px;
    color: #6c757d;
    font-size: 14px;
}

    .payment-note p {
        margin-bottom: 6px;
        font-weight: 700;
        color: #333;
    }

    .payment-note ul {
        margin: 0;
        padding-left: 18px;
    }

.checkout-card-body {
    padding: 22px;
}

.checkout-card .form-control,
.checkout-card .form-select {
    border-radius: 12px;
    padding: 12px 14px;
}

.payment-method-list {
    display: grid;
    gap: 12px;
}

.payment-method-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e5e8eb;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.2s;
}

    .payment-method-item:hover {
        border-color: #0d6efd;
        background: #f4f8ff;
    }

    .payment-method-item input {
        margin-top: 5px;
    }

    .payment-method-item strong {
        display: block;
        margin-bottom: 4px;
    }

    .payment-method-item p {
        margin: 0;
        color: #6c757d;
        font-size: 14px;
    }

.checkout-product {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f2;
}

.checkout-product-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    background: #f8f9fa;
}

.checkout-product-info strong {
    display: block;
    font-size: 15px;
}

.checkout-product-info span {
    color: #6c757d;
    font-size: 13px;
}

.checkout-product-price {
    color: #dc3545;
    font-weight: 800;
    white-space: nowrap;
}

.success-box {
    background: white;
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.success-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #198754;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 20px;
}

.success-box h1 {
    font-weight: 900;
    margin-bottom: 12px;
}

.success-box p {
    color: #6c757d;
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto 24px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-detail-body {
    padding: 24px;
}

@media (max-width: 992px) {
    .cart-item {
        grid-template-columns: 90px 1fr;
    }

    .cart-quantity,
    .cart-total {
        grid-column: span 2;
        text-align: left;
    }

    .order-summary {
        margin-top: 24px;
        position: static;
    }
}

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

    .checkout-product-price {
        grid-column: span 2;
        text-align: right;
    }

    .success-box {
        padding: 32px 20px;
    }
}

.cart-icon-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #212529;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    flex-shrink: 0;
}

    .cart-icon-link:hover {
        background: #0d6efd;
        color: white;
    }

.cart-icon {
    font-size: 24px;
    line-height: 1;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: white;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: nowrap;
}

.login-area .navbar-nav {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    margin: 0;
}

.login-area .nav-item {
    white-space: nowrap;
}

.login-area .nav-link {
    padding: 0;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
    min-width: 0;
}

.cart-icon-link {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #212529;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    flex: 0 0 46px;
    z-index: 2;
}

    .cart-icon-link:hover {
        background: #0d6efd;
        color: white;
    }

.cart-icon {
    font-size: 24px;
    line-height: 1;
}

.cart-count-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: white;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.login-area {
    min-width: 0;
}

.login-nav {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    margin: 0;
    padding: 0;
}

    .login-nav .nav-item {
        white-space: nowrap;
    }

.account-link {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 !important;
    color: #212529 !important;
    font-weight: 700;
}

.logout-btn {
    border: none;
    background: transparent;
    padding: 0;
    color: #212529;
    font-weight: 700;
}

    .logout-btn:hover,
    .account-link:hover {
        color: #0d6efd !important;
    }

.search-box {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 6px;
    width: 100%;
}

    .search-box input {
        min-width: 0;
    }

    .search-box button {
        flex: 0 0 auto;
    }

@media (max-width: 992px) {
    .header-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .account-link {
        max-width: 220px;
    }
}
/* ===== CHECKOUT FIX UI ===== */

.checkout-page .checkout-card,
.checkout-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

    .checkout-card h4 {
        font-size: 24px;
        font-weight: 900;
        color: #1f2937;
        margin-bottom: 20px;
    }

    .checkout-card .form-label {
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 8px;
    }

    .checkout-card .form-control,
    .checkout-card .form-select {
        min-height: 52px;
        border-radius: 14px;
        border: 1px solid #d9dee8;
        padding: 12px 16px;
    }

    .checkout-card textarea.form-control {
        min-height: 120px;
    }

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

.shipping-option-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    min-height: 150px;
    background: #fff;
    transition: 0.2s;
    display: block;
}

    .shipping-option-card:hover {
        border-color: #0d6efd;
        box-shadow: 0 10px 22px rgba(13, 110, 253, 0.12);
    }

    .shipping-option-card input {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .shipping-option-card strong {
        display: block;
        font-size: 17px;
        font-weight: 900;
        color: #111827;
        margin-bottom: 8px;
        padding-right: 28px;
    }

    .shipping-option-card p {
        min-height: 44px;
        color: #6b7280;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .shipping-option-card span {
        display: inline-block;
        font-weight: 900;
        color: #dc3545;
        font-size: 18px;
    }

    .shipping-option-card:has(input:checked) {
        border-color: #0d6efd;
        background: #eef5ff;
    }

.coupon-box {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    cursor: pointer;
    background: #fff;
}

    .payment-option input {
        margin-top: 5px;
    }

    .payment-option strong {
        display: block;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .payment-option p {
        margin: 0;
        color: #6b7280;
    }

    .payment-option:has(input:checked) {
        border-color: #0d6efd;
        background: #eef5ff;
    }

/* ===== ORDER USER PAGE FIX UI ===== */

.order-list-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.order-list-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #edf0f2;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.order-code {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.order-date {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.order-total {
    font-size: 22px;
    font-weight: 900;
    color: #dc3545;
    white-space: nowrap;
}

.order-list-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 16px;
}

.order-status-box span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 6px;
}

.order-detail-info {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

    .order-detail-info h4 {
        font-size: 24px;
        font-weight: 900;
        margin-bottom: 20px;
    }

.order-info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f2;
}

    .order-info-row:last-child {
        border-bottom: none;
    }

    .order-info-row span {
        color: #6b7280;
    }

    .order-info-row strong {
        color: #111827;
        text-align: right;
    }

.order-products-table {
    margin: 0;
}

    .order-products-table thead {
        background: #f1f5f9;
    }

    .order-products-table th {
        padding: 14px;
        font-weight: 900;
    }

    .order-products-table td {
        padding: 14px;
        vertical-align: middle;
    }

.order-summary {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

    .order-summary h4 {
        font-size: 24px;
        font-weight: 900;
        margin-bottom: 20px;
    }

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

    .summary-row span {
        color: #6b7280;
    }

    .summary-row strong {
        text-align: right;
    }

    .summary-total span {
        font-size: 20px;
        font-weight: 900;
    }

    .summary-total strong {
        font-size: 24px;
        color: #dc3545;
        font-weight: 900;
        text-align: right;
    }

@media (max-width: 992px) {
    .shipping-method-grid {
        grid-template-columns: 1fr;
    }

    .coupon-box {
        grid-template-columns: 1fr;
    }

    .order-list-bottom {
        grid-template-columns: 1fr;
    }

    .order-list-top {
        flex-direction: column;
    }

    .order-total {
        white-space: normal;
    }
}
/* ===== SMARTSTORE-LIKE SHOP LAYOUT ===== */

body {
    background: #fff;
    color: #343a40;
}

.shop-topbar {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
}

.shop-topbar-inner {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .topbar-right a {
        color: #343a40;
        text-decoration: none;
        font-weight: 500;
    }

        .topbar-right a:hover {
            color: #0d6efd;
        }

.shop-header {
    background: #fff;
    border-bottom: 1px solid #edf0f2;
}

.shop-header-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: 280px 1fr auto;
    align-items: center;
    gap: 28px;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    text-decoration: none;
}

    .shop-brand:hover {
        color: #111827;
    }

.shop-brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #20c997);
    color: white;
    font-size: 30px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-brand-text strong {
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
}

.smart-search {
    height: 54px;
    border: 1px solid #d9dee8;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: #fff;
}

    .smart-search .search-icon {
        color: #8b97a8;
        margin-right: 10px;
    }

    .smart-search input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 16px;
        color: #343a40;
    }

.shop-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-action-link,
.basket-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #343a40;
    text-decoration: none;
}

    .header-action-link:hover,
    .basket-link:hover {
        color: #0d6efd;
    }

.action-icon,
.basket-icon-wrap {
    position: relative;
    font-size: 32px;
    line-height: 1;
}

.header-action-link small,
.basket-text small {
    display: block;
    color: #8b97a8;
    font-size: 14px;
    line-height: 1.1;
}

.header-action-link strong,
.basket-text strong {
    display: block;
    color: #343a40;
    font-size: 14px;
    line-height: 1.1;
}

.basket-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-nav {
    background: #f7f8fa;
    border-bottom: 1px solid #edf0f2;
}

.shop-nav-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.shop-nav a {
    position: relative;
    color: #343a40;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
}

    .shop-nav a:hover {
        color: #0d6efd;
    }

.sale-link span {
    position: absolute;
    top: -24px;
    left: 0;
    background: #ef4444;
    color: white;
    font-size: 14px;
    padding: 2px 9px;
    border-radius: 5px;
}

/* ===== USER DROPDOWN ===== */

.user-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-dropdown-btn {
    min-height: 46px;
    border: none;
    background: transparent;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    text-transform: uppercase;
}

    .user-dropdown-btn:hover,
    .user-dropdown-btn.show {
        background: #f1f3f5;
    }

.user-circle {
    font-size: 18px;
}

.user-name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    min-width: 240px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    padding: 10px;
}

    .user-dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 8px;
        padding: 11px 14px;
        color: #4b5563;
        font-weight: 600;
    }

        .user-dropdown-menu .dropdown-item:hover {
            background: #f1f5f9;
            color: #111827;
        }

.logout-dropdown-btn {
    width: 100%;
    text-align: left;
}

.login-link {
    color: #343a40;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-gear-link {
    color: #111827;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 10px;
}

    .admin-gear-link:hover {
        background: #f1f3f5;
        color: #0d6efd;
    }

/* ===== HOME SMARTSTORE STYLE ===== */

.smart-home {
    padding-top: 36px;
    padding-bottom: 56px;
}

.welcome-section {
    margin-bottom: 38px;
}

    .welcome-section h1 {
        font-size: 34px;
        font-weight: 900;
        color: #343a40;
        padding-bottom: 18px;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 20px;
    }

    .welcome-section p {
        color: #6b7280;
        font-size: 18px;
        line-height: 1.6;
        margin: 0;
    }

.category-section {
    margin-bottom: 42px;
}

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

.smart-category-card {
    height: 250px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: #343a40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    transition: 0.2s;
}

    .smart-category-card:hover {
        transform: translateY(-4px);
        color: #0d6efd;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    }

.category-image-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    .category-image-box img {
        max-width: 100%;
        max-height: 150px;
        object-fit: contain;
    }

.smart-category-card h5 {
    margin: 18px 0 0;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.smart-section-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin: 34px 0 30px;
}

    .smart-section-title span {
        height: 1px;
        background: #d9dee8;
    }

    .smart-section-title h2 {
        margin: 0;
        font-size: 40px;
        font-weight: 900;
        color: #343a40;
        text-align: center;
    }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 34px;
    row-gap: 44px;
}

.smart-product-card {
    background: #fff;
}

.product-image-link {
    position: relative;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 16px;
}

    .product-image-link img {
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

.discount-badge {
    position: absolute;
    left: 0;
    bottom: 12px;
    background: #ef4444;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 900;
    font-size: 14px;
}

.deal-badge {
    position: absolute;
    left: 70px;
    bottom: 12px;
    background: #172554;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 900;
    font-size: 14px;
}

.smart-product-name {
    display: block;
    color: #343a40;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
    min-height: 44px;
    margin-bottom: 10px;
}

    .smart-product-name:hover {
        color: #0d6efd;
    }

.smart-product-price strong {
    display: block;
    color: #343a40;
    font-size: 18px;
    font-weight: 900;
}

.smart-product-price small {
    display: block;
    color: #8b97a8;
    text-decoration: line-through;
    margin-top: 3px;
}

/* ===== FOOTER ===== */

.shop-footer {
    background: #1f2933;
    color: white;
    padding: 42px 0 24px;
    margin-top: 60px;
}

    .shop-footer h5 {
        font-weight: 900;
        margin-bottom: 14px;
    }

    .shop-footer p {
        color: #d1d5db;
        margin-bottom: 6px;
    }

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .shop-header-inner {
        grid-template-columns: 240px 1fr;
    }

    .shop-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-header-inner {
        grid-template-columns: 1fr;
    }

    .shop-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .shop-nav-inner {
        overflow-x: auto;
        white-space: nowrap;
    }

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

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

    .topbar-right {
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .shop-brand-text strong {
        font-size: 30px;
    }

    .category-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .smart-section-title h2 {
        font-size: 30px;
    }

    .user-name {
        max-width: 130px;
    }
}
/* ===== FIX TOPBAR DROPDOWN + HEADER SIZE ===== */

.shop-topbar-inner {
    height: 50px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-right {
    justify-content: flex-end;
}

.topbar-dropdown-btn {
    border: none;
    background: transparent;
    color: #0f172a;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

    .topbar-dropdown-btn::after {
        margin-left: 6px;
        vertical-align: middle;
        transform: translateY(1px);
    }

.currency-menu {
    min-width: 120px;
}

.shop-header-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 330px minmax(360px, 1fr) auto;
    align-items: center;
    gap: 26px;
}

.shop-brand {
    min-width: 0;
}

.shop-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 25px;
    flex: 0 0 46px;
}

.shop-brand-text {
    min-width: 0;
}

    .shop-brand-text strong {
        display: block;
        font-size: 32px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: -1px;
        white-space: nowrap;
    }

.smart-search {
    height: 52px;
    min-width: 0;
    max-width: 100%;
}

    .smart-search input {
        min-width: 0;
    }

.search-icon {
    font-size: 18px;
    flex: 0 0 auto;
}

.shop-actions {
    gap: 20px;
    white-space: nowrap;
}

.header-action-link,
.basket-link {
    min-width: max-content;
}

.action-icon,
.basket-icon-wrap {
    font-size: 29px;
}

.header-action-link small,
.basket-text small {
    font-size: 13px;
}

.header-action-link strong,
.basket-text strong {
    font-size: 14px;
}

/* Fix user/admin area */
.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

    .user-dropdown-btn::after {
        margin-left: 6px;
        transform: translateY(1px);
    }

.admin-gear-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}

/* Currency converted elements */
.currency-money {
    white-space: nowrap;
}

/* Responsive fix */
@media (max-width: 1400px) {
    .shop-header-inner {
        grid-template-columns: 300px minmax(320px, 1fr) auto;
        gap: 20px;
    }

    .shop-brand-text strong {
        font-size: 29px;
    }

    .shop-actions {
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .shop-header-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .smart-search {
        width: 100%;
    }

    .shop-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
/* ===== FIX PRODUCT BADGES ===== */

.product-image-link {
    position: relative;
    overflow: hidden;
}

.discount-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    z-index: 5;
}

.deal-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    background: #172554 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    z-index: 5;
}
/* ===== ADMIN DASHBOARD SHORTCUTS ===== */

.admin-shortcut-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
    padding: 24px;
    border-radius: 20px;
    background: white;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    transition: 0.2s;
    color: #111827;
}

    .admin-shortcut-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(0,0,0,0.1);
        color: #111827;
    }

    .admin-shortcut-card span {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        margin-bottom: 6px;
    }

    .admin-shortcut-card strong {
        font-size: 18px;
        font-weight: 900;
    }

    .admin-shortcut-card small {
        color: #6b7280;
        font-weight: 600;
    }

.shortcut-blue span {
    background: #e8f1ff;
    color: #0d6efd;
}

.shortcut-orange span {
    background: #fff4e5;
    color: #fd7e14;
}

.shortcut-green span {
    background: #e8fff3;
    color: #198754;
}

.shortcut-red span {
    background: #ffe8ec;
    color: #dc3545;
}
/* ===== SMARTSTORE-LIKE ADMIN UI ===== */

.admin-smart-body {
    background: #eef2f6;
    color: #343a40;
}

.smart-admin-header {
    height: 118px;
    background: #1f5da8;
    color: white;
    display: flex;
    align-items: flex-start;
    padding: 22px 38px;
    gap: 34px;
    position: relative;
}

.smart-admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding-top: 4px;
}

.smart-admin-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.smart-admin-brand strong {
    font-size: 28px;
    font-weight: 900;
}

.smart-admin-nav {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex: 1;
}

    .smart-admin-nav > a {
        color: rgba(255,255,255,0.88);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 500;
    }

    .smart-admin-nav a span {
        font-size: 24px;
        line-height: 1;
    }

    .smart-admin-nav > a:hover {
        color: white;
    }

.smart-admin-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 8px;
}

    .smart-admin-actions a,
    .admin-user-btn {
        color: white;
        background: transparent;
        border: none;
        text-decoration: none;
        font-size: 24px;
        line-height: 1;
    }

.smart-admin-main {
    margin-top: -42px;
    padding: 0 36px 46px;
}

.smart-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
}

.smart-dashboard-content {
    min-width: 0;
}

.smart-admin-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.08);
    padding: 26px;
    margin-bottom: 18px;
}

    .smart-admin-card h3 {
        font-size: 24px;
        font-weight: 700;
        color: #343a40;
        margin-bottom: 24px;
    }

.circle-metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

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

    .circle-metric h5 {
        color: #9aa7b8;
        font-weight: 800;
        margin-bottom: 18px;
    }

.circle-box {
    width: 180px;
    height: 180px;
    border: 7px solid #2b78c2;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .circle-box strong {
        font-size: 28px;
        color: #a4afbd;
        font-weight: 900;
    }

    .circle-box span {
        color: #4b5563;
        font-size: 20px;
        margin-top: 10px;
    }

.smart-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

    .smart-card-title-row h3 {
        margin: 0;
    }

.smart-filter-buttons {
    display: flex;
    align-items: center;
}

    .smart-filter-buttons button {
        border: 1px solid #cfd6de;
        background: #edf0f3;
        padding: 9px 14px;
        font-size: 13px;
        color: #343a40;
    }

        .smart-filter-buttons button:first-child {
            border-radius: 6px 0 0 6px;
            background: #dfe3e8;
        }

        .smart-filter-buttons button:last-child {
            border-radius: 0 6px 6px 0;
        }

.small-buttons button {
    padding: 8px 12px;
}

.order-status-line {
    color: #9aa7b8;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.dot-completed {
    background: #94a3b8;
}

.dot-processing {
    background: #60a5fa;
}

.dot-pending {
    background: #f59e0b;
}

.dot-cancelled {
    background: #ef4444;
}

.chart-placeholder {
    min-height: 190px;
    color: #c1cad6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #edf0f2;
}

.smart-admin-mini-table,
.smart-admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .smart-admin-mini-table th,
    .smart-admin-table th {
        font-size: 13px;
        color: #343a40;
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .smart-admin-mini-table td,
    .smart-admin-table td {
        padding: 13px 0;
        border-bottom: 1px solid #edf0f2;
        color: #4b5563;
    }

.customer-registration-card {
    min-height: 280px;
}

.customer-register-number {
    color: #a4afbd;
    font-size: 22px;
    font-weight: 800;
}

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

.statistics-item {
    background: #edf1f5;
    border: 1px solid #dbe2ea;
    border-radius: 6px;
    padding: 14px 18px;
    position: relative;
    min-height: 72px;
}

    .statistics-item strong {
        display: block;
        font-size: 18px;
        color: #343a40;
    }

    .statistics-item span {
        color: #8da0b3;
    }

    .statistics-item i {
        position: absolute;
        right: 18px;
        top: 20px;
        font-style: normal;
        color: #6b7c8f;
        font-size: 24px;
    }

.smart-newsfeed {
    min-width: 0;
}

.news-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

    .news-card h3 {
        padding: 26px;
        font-size: 24px;
        margin: 0;
    }

.news-title-row {
    padding: 18px 26px;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    display: flex;
    justify-content: space-between;
    color: #8da0b3;
    font-weight: 700;
}

.news-highlight {
    background: #0f2a5f;
    color: white;
    padding: 28px 26px;
}

    .news-highlight small {
        color: #92a5c5;
    }

    .news-highlight h4 {
        margin: 8px 0 0;
        font-size: 21px;
        font-weight: 900;
    }

        .news-highlight h4::first-letter {
            color: white;
        }

    .news-highlight p {
        color: #dbeafe;
        margin: 12px 0 0;
    }

.news-item {
    padding: 22px 26px;
    border-bottom: 1px solid #edf0f2;
}

    .news-item h5 {
        color: #155fa0;
        font-size: 16px;
        font-weight: 800;
    }

    .news-item p {
        color: #475569;
        margin: 0;
        line-height: 1.55;
    }

/* Responsive admin */
@media (max-width: 1200px) {
    .smart-dashboard-layout {
        grid-template-columns: 1fr;
    }

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

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

    .smart-admin-header {
        height: auto;
        flex-wrap: wrap;
    }

    .smart-admin-main {
        margin-top: 0;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .circle-metric-row {
        grid-template-columns: 1fr;
    }

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

    .smart-admin-nav {
        overflow-x: auto;
        width: 100%;
    }

    .smart-card-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===== FIX SMARTSTORE-LIKE ADMIN HEADER ===== */

.admin-smart-body {
    background: #eef2f6 !important;
    color: #343a40;
}

.smart-admin-header {
    min-height: 104px;
    background: #1f5da8;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 38px;
    gap: 34px;
    position: relative;
    z-index: 20;
}

.smart-admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 250px;
    flex-shrink: 0;
}

.smart-admin-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 20px;
}

.smart-admin-brand strong {
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.smart-admin-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    flex: 1;
    height: 100%;
}

    .smart-admin-nav a {
        color: rgba(255,255,255,0.92);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 15px;
        font-weight: 500;
        min-width: 66px;
        height: 104px;
        padding: 0 8px;
        transition: 0.15s;
    }

    .smart-admin-nav > a span {
        font-size: 27px;
        line-height: 1;
    }

    .smart-admin-nav a:hover {
        color: white;
        background: rgba(255,255,255,0.08);
    }

.smart-admin-actions {
    display: flex;
    align-items: stretch;
    height: 104px;
    margin-left: auto;
}

.admin-icon-dropdown {
    display: flex;
    align-items: stretch;
}

.admin-top-icon-btn {
    border: none;
    background: transparent;
    color: white;
    min-width: 72px;
    height: 104px;
    padding: 0 18px;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: 0.15s;
}

    .admin-top-icon-btn:hover,
    .admin-top-icon-btn.show {
        background: rgba(255,255,255,0.12);
    }

.admin-account-btn span {
    font-size: 18px;
    margin-top: 4px;
}

.smart-admin-dropdown {
    min-width: 260px;
    border: none;
    border-radius: 8px;
    padding: 10px;
    margin-top: 0 !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

    .smart-admin-dropdown .dropdown-item {
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 14px;
        border-radius: 7px;
        color: #4b5563;
        font-weight: 700;
        padding: 11px 14px;
    }

        .smart-admin-dropdown .dropdown-item:hover {
            background: #eef2f6;
            color: #111827;
        }

        .smart-admin-dropdown .dropdown-item span {
            width: 24px;
            text-align: center;
            font-size: 20px;
        }

    .smart-admin-dropdown .dropdown-divider {
        margin: 8px -10px;
    }

    .smart-admin-dropdown form {
        margin: 0;
    }

    .smart-admin-dropdown button.dropdown-item {
        width: 100%;
        border: none;
        background: transparent;
    }

.account-dropdown {
    min-width: 310px;
}

.active-account-item {
    background: #eef2f6;
}

    .active-account-item div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .active-account-item strong {
        color: #374151;
        font-size: 16px;
    }

    .active-account-item small {
        color: #94a3b8;
        font-size: 14px;
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Quan trọng: bỏ margin âm để card không bị header che */
.smart-admin-main {
    margin-top: 0 !important;
    padding: 22px 36px 46px !important;
    position: relative;
    z-index: 1;
}

/* Dashboard cards không bị dính header */
.smart-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
}

.smart-admin-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.08);
    padding: 26px;
    margin-bottom: 18px;
    overflow: hidden;
}

.incomplete-orders-card h3 {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .smart-admin-header {
        min-height: auto;
        flex-wrap: wrap;
        padding: 18px 24px;
    }

    .smart-admin-brand {
        min-width: auto;
    }

    .smart-admin-nav {
        width: 100%;
        overflow-x: auto;
        gap: 18px;
        order: 3;
    }

        .smart-admin-nav a {
            height: 78px;
            min-width: 86px;
        }

    .smart-admin-actions {
        height: 78px;
        margin-left: auto;
    }

    .admin-top-icon-btn {
        height: 78px;
    }

    .smart-dashboard-layout {
        grid-template-columns: 1fr;
    }
}
/* ===== DASHBOARD INTERACTIVE CHARTS ===== */

.dashboard-filter-buttons button,
.dashboard-period-btn {
    cursor: pointer;
}

    .dashboard-filter-buttons button.active {
        background: #d3d8de !important;
        color: #111827 !important;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
    }

.dashboard-chart-wrap {
    position: relative;
    min-height: 250px;
    border-top: 1px solid #edf0f2;
    margin-top: 18px;
    padding-top: 12px;
}

.registration-chart-wrap {
    min-height: 360px;
}

.dashboard-line-chart {
    width: 100%;
    height: 280px;
    display: block;
}

.registration-chart-wrap .dashboard-line-chart {
    height: 360px;
}

.dashboard-chart-tooltip {
    position: absolute;
    transform: translate(-50%, -120%);
    background: rgba(17, 24, 39, 0.92);
    color: white;
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: 0.12s;
    white-space: nowrap;
    z-index: 20;
}

    .dashboard-chart-tooltip.show {
        opacity: 1;
    }

    .dashboard-chart-tooltip::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -7px;
        transform: translateX(-50%);
        border-width: 7px 7px 0 7px;
        border-style: solid;
        border-color: rgba(17, 24, 39, 0.92) transparent transparent transparent;
    }

.registration-count-number {
    color: #a4afbd;
    margin-left: 14px;
    font-weight: 800;
}

.circle-box {
    cursor: pointer;
    transition: 0.2s;
}

    .circle-box:hover {
        transform: scale(1.04);
        box-shadow: 0 12px 28px rgba(43, 120, 194, 0.18);
    }
/* ===== FINAL FIX ADMIN HEADER ALIGNMENT ===== */

.smart-admin-header {
    min-height: 92px !important;
    height: 92px !important;
    background: #1f5da8 !important;
    color: white;
    display: flex !important;
    align-items: center !important;
    padding: 0 36px !important;
    gap: 32px !important;
    position: relative;
    z-index: 20;
}

.smart-admin-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 300px !important;
    flex-shrink: 0;
}

.smart-admin-logo {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0d6efd, #20c997);
    color: white;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    flex: 0 0 44px;
}

.smart-admin-brand strong {
    font-size: 31px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    letter-spacing: -0.5px;
}

.smart-admin-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    flex: 1 !important;
    height: 92px !important;
    min-width: 0;
}

    .smart-admin-nav a {
        height: 92px !important;
        min-width: 92px !important;
        padding: 0 10px !important;
        color: rgba(255,255,255,0.94) !important;
        text-decoration: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        border-radius: 0 !important;
        transition: 0.15s;
    }

        .smart-admin-nav a:hover {
            background: rgba(255,255,255,0.1) !important;
            color: white !important;
        }

.admin-menu-icon {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    color: white !important;
    opacity: 0.95;
}

.admin-menu-text {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    color: white !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.smart-admin-actions {
    height: 92px !important;
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    flex-shrink: 0;
}

.admin-icon-dropdown {
    height: 92px !important;
    display: flex !important;
    align-items: center !important;
}

.admin-top-icon-btn {
    width: 66px !important;
    height: 92px !important;
    min-width: 66px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    transition: 0.15s;
}

    .admin-top-icon-btn:hover,
    .admin-top-icon-btn.show {
        background: rgba(255,255,255,0.12) !important;
    }

.admin-action-icon {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
    color: white !important;
}

.admin-action-caret {
    font-size: 14px !important;
    line-height: 1 !important;
    color: white !important;
    margin-left: 3px;
    transform: translateY(1px);
}

/* Dropdown nằm sát dưới icon, không bị lệch */
.smart-admin-dropdown {
    margin-top: 0 !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22) !important;
}

/* Main không bị header che */
.smart-admin-main {
    margin-top: 0 !important;
    padding: 24px 36px 46px !important;
}

/* Responsive */
@media (max-width: 1300px) {
    .smart-admin-brand {
        min-width: 260px !important;
    }

        .smart-admin-brand strong {
            font-size: 27px !important;
        }

    .smart-admin-nav {
        gap: 10px !important;
    }

        .smart-admin-nav a {
            min-width: 82px !important;
        }

    .admin-menu-text {
        font-size: 13px !important;
    }
}

@media (max-width: 1100px) {
    .smart-admin-header {
        height: auto !important;
        min-height: auto !important;
        flex-wrap: wrap !important;
        padding: 18px 24px !important;
    }

    .smart-admin-brand {
        min-width: auto !important;
    }

    .smart-admin-nav {
        order: 3;
        width: 100%;
        height: 78px !important;
        overflow-x: auto;
    }

        .smart-admin-nav a {
            height: 78px !important;
            min-width: 86px !important;
        }

    .smart-admin-actions {
        height: 78px !important;
    }

    .admin-icon-dropdown,
    .admin-top-icon-btn {
        height: 78px !important;
    }
}
/* ===== ADMIN CATALOG DROPDOWN ===== */

.admin-nav-dropdown {
    height: 92px;
    display: flex;
    align-items: stretch;
    position: relative;
}

.admin-nav-dropdown-btn {
    height: 92px;
    min-width: 92px;
    padding: 0 10px;
    border: none;
    background: transparent;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .admin-nav-dropdown-btn:hover,
    .admin-nav-dropdown-btn.show {
        background: rgba(255,255,255,0.12);
    }

.admin-catalog-dropdown {
    min-width: 300px;
    border: none;
    border-radius: 10px;
    padding: 12px 0;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
    margin-top: 0 !important;
}

    .admin-catalog-dropdown::before {
        content: "";
        position: absolute;
        top: -9px;
        left: 32px;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid white;
    }

    .admin-catalog-dropdown .dropdown-item {
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 11px 26px;
        font-size: 16px;
        font-weight: 700;
        color: #56616d;
    }

        .admin-catalog-dropdown .dropdown-item span {
            width: 22px;
            text-align: center;
            color: #6b7280;
        }

        .admin-catalog-dropdown .dropdown-item:hover {
            background: #eef3f8;
            color: #111827;
        }

    .admin-catalog-dropdown .dropdown-header {
        padding: 18px 26px 8px;
        color: #a0adbb;
        font-weight: 900;
        font-size: 14px;
    }

    .admin-catalog-dropdown .disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

/* ===== SMARTSTORE-LIKE PRODUCT MANAGER ===== */

.admin-product-page {
    background: white;
    border-radius: 10px;
    padding: 28px 36px 34px;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.08);
}

.admin-product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

    .admin-product-title-row h2 {
        margin: 0;
        font-size: 26px;
        font-weight: 700;
        color: #2f3742;
    }

.admin-product-search {
    width: 410px;
    height: 48px;
    display: flex;
    border: 1px solid #d9dee8;
    border-radius: 7px;
    overflow: hidden;
}

    .admin-product-search input {
        flex: 1;
        border: none;
        outline: none;
        padding: 0 16px;
        font-size: 15px;
    }

    .admin-product-search button {
        width: 56px;
        border: none;
        border-left: 1px solid #d9dee8;
        background: #f3f6f9;
        font-size: 18px;
    }

.smart-manage-card {
    border: 1px solid #dbe2ea;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.smart-manage-toolbar {
    height: 58px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dbe2ea;
    background: #f8fafc;
}

.smart-toolbar-icon-btn {
    width: 62px;
    height: 58px;
    border: none;
    border-right: 1px solid #dbe2ea;
    background: #f8fafc;
    font-size: 20px;
    color: #4b5563;
}

    .smart-toolbar-icon-btn:hover {
        background: #e9eef4;
    }

.smart-add-new-btn {
    height: 58px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid #dbe2ea;
    color: #2f3742;
    text-decoration: none;
    font-weight: 700;
}

    .smart-add-new-btn:hover {
        background: #eef3f8;
        color: #0d6efd;
    }

.smart-delete-selected-btn {
    margin-left: auto;
    height: 58px;
    padding: 0 24px;
    border: none;
    background: transparent;
    color: #a0adbb;
    font-weight: 700;
}

.smart-product-manager {
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr);
    min-height: 620px;
    transition: 0.2s;
}

    .smart-product-manager.filter-open {
        grid-template-columns: 380px minmax(0, 1fr);
    }

.smart-product-filter {
    overflow: hidden;
    border-right: 1px solid #dbe2ea;
    background: #fff;
}

    .smart-product-filter form {
        width: 380px;
        padding: 18px 20px;
    }

    .smart-product-filter h4 {
        color: #a0adbb;
        font-weight: 900;
        font-size: 18px;
        padding-bottom: 14px;
        border-bottom: 1px solid #dbe2ea;
        margin-bottom: 18px;
    }

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

    .filter-group label {
        font-weight: 800;
        color: #374151;
        margin-bottom: 8px;
        display: block;
    }

    .filter-group .form-control,
    .filter-group .form-select {
        height: 46px;
        border-radius: 7px;
        border: 1px solid #d9dee8;
    }

.filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.smart-product-table-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.smart-table-scroll {
    overflow: auto;
    min-height: 540px;
}

.smart-product-table {
    margin: 0;
    min-width: 1180px;
}

    .smart-product-table thead {
        background: #f7f9fb;
    }

    .smart-product-table th {
        height: 56px;
        padding: 12px 14px;
        border-bottom: 1px solid #dbe2ea;
        color: #111827;
        font-weight: 800;
        white-space: nowrap;
    }

    .smart-product-table td {
        height: 58px;
        padding: 10px 14px;
        border-bottom: 1px solid #e5eaf0;
        vertical-align: middle;
        color: #263241;
    }

    .smart-product-table tbody tr:hover {
        background: #eef6fb;
    }

.smart-product-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.smart-product-name-link {
    color: #0f5e9c;
    font-weight: 600;
    text-decoration: none;
}

    .smart-product-name-link:hover {
        color: #0d6efd;
        text-decoration: underline;
    }

.smart-product-category {
    color: #9aa7b8;
    font-size: 13px;
    margin-top: 3px;
}

.published-check {
    color: #00a36c;
    font-size: 22px;
    font-weight: 900;
}

.published-x {
    color: #dc3545;
    font-size: 22px;
    font-weight: 900;
}

.product-row-more {
    border: none;
    background: transparent;
    font-size: 22px;
    color: #4b5563;
    line-height: 1;
}

.smart-table-footer {
    min-height: 56px;
    border-top: 1px solid #dbe2ea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-left {
    padding-left: 14px;
}

.footer-right {
    padding-right: 14px;
    color: #9aa7b8;
}

.footer-icon,
.footer-page {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid #d0d6de;
    background: #fff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
}

    .footer-page.active {
        background: #dfe3e8;
        color: #111827;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
    }

    .footer-icon.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

.page-size-form select {
    height: 38px;
    border: 1px solid #d0d6de;
    border-radius: 5px;
    padding: 0 10px;
    background: white;
}

.footer-gear {
    font-size: 22px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 1200px) {
    .admin-product-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-product-search {
        width: 100%;
    }

    .smart-product-manager.filter-open {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .smart-product-filter form {
        width: 300px;
    }
}
/* ===== FIX ADMIN PRODUCT DROPDOWN VIETNAMESE ===== */

.admin-nav-dropdown {
    height: 92px !important;
    display: flex !important;
    align-items: stretch !important;
    position: relative;
}

.admin-nav-dropdown-btn {
    height: 92px !important;
    min-width: 92px !important;
    padding: 0 10px !important;
    border: none !important;
    background: transparent !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
}

    .admin-nav-dropdown-btn:hover,
    .admin-nav-dropdown-btn.show {
        background: rgba(255,255,255,0.12) !important;
    }

.admin-catalog-dropdown {
    min-width: 330px !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 0 !important;
    margin-top: 0 !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22) !important;
}

    .admin-catalog-dropdown::before {
        content: "";
        position: absolute;
        top: -9px;
        left: 34px;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid white;
    }

.catalog-dropdown-item {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 12px 28px !important;
    color: #56616d !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

    .catalog-dropdown-item:hover {
        background: #eef3f8 !important;
        color: #111827 !important;
    }

.catalog-menu-icon {
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-style: normal !important;
    color: #6b7280 !important;
    font-size: 20px !important;
    flex: 0 0 24px !important;
}

.catalog-menu-label {
    display: block !important;
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.admin-catalog-dropdown .dropdown-header {
    padding: 18px 28px 8px !important;
    color: #a0adbb !important;
    font-weight: 900 !important;
    font-size: 14px !important;
}

.admin-catalog-dropdown .disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}
/* ===== FIX PRODUCT LIST TABLE COLUMNS ===== */

.smart-product-table {
    margin: 0 !important;
    min-width: 1120px !important;
    table-layout: fixed !important;
}

    .smart-product-table th,
    .smart-product-table td {
        vertical-align: middle !important;
    }

        .smart-product-table th:nth-child(3),
        .smart-product-table td:nth-child(3) {
            width: auto !important;
        }

    .smart-product-table th {
        height: 56px !important;
        padding: 12px 14px !important;
        white-space: nowrap !important;
        font-weight: 800 !important;
        color: #111827 !important;
        background: #f7f9fb !important;
    }

    .smart-product-table td {
        height: 58px !important;
        padding: 10px 14px !important;
        color: #263241 !important;
    }

.smart-product-name-link {
    color: #0f5e9c !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
    max-width: 100% !important;
}

.smart-product-category {
    color: #9aa7b8 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
}

.smart-product-thumb {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain !important;
}

.smart-table-scroll {
    overflow: auto !important;
    min-height: 540px !important;
}
/* ===== FIX PRODUCT DROPDOWN TEXT NOT SHOWING ===== */

.smart-admin-nav .admin-catalog-dropdown {
    min-width: 340px !important;
    padding: 12px 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22) !important;
}

    .smart-admin-nav .admin-catalog-dropdown .dropdown-item,
    .smart-admin-nav .admin-catalog-dropdown a.dropdown-item,
    .smart-admin-nav .admin-catalog-dropdown span.dropdown-item {
        height: auto !important;
        min-height: 52px !important;
        min-width: 0 !important;
        padding: 12px 28px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 18px !important;
        color: #56616d !important;
        background: transparent !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

        .smart-admin-nav .admin-catalog-dropdown .dropdown-item:hover {
            background: #eef3f8 !important;
            color: #111827 !important;
        }

    .smart-admin-nav .admin-catalog-dropdown .catalog-menu-icon {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #6b7280 !important;
        font-size: 20px !important;
        font-style: normal !important;
        line-height: 1 !important;
    }

    .smart-admin-nav .admin-catalog-dropdown .catalog-menu-label {
        display: inline-block !important;
        flex: 1 !important;
        color: inherit !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .smart-admin-nav .admin-catalog-dropdown .dropdown-header {
        padding: 18px 28px 8px !important;
        color: #a0adbb !important;
        font-weight: 900 !important;
        font-size: 14px !important;
    }

    .smart-admin-nav .admin-catalog-dropdown .dropdown-divider {
        margin: 10px 0 !important;
    }

    .smart-admin-nav .admin-catalog-dropdown .disabled {
        opacity: 0.55 !important;
        cursor: not-allowed !important;
    }

    .smart-admin-nav .admin-catalog-dropdown::before {
        content: "";
        position: absolute;
        top: -9px;
        left: 34px;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid white;
    }
/* ===== SHOP RIGHT DRAWER: CART / WISHLIST / COMPARE ===== */

.header-action-link,
.basket-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.shop-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    z-index: 1990;
}

    .shop-drawer-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.shop-drawer {
    position: fixed;
    top: 0;
    right: -540px;
    width: 520px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.22);
    transition: 0.25s ease;
}

    .shop-drawer.show {
        right: 0;
    }

.shop-drawer-tabs {
    height: 68px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 54px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.shop-drawer-tab {
    border: none;
    background: #fff;
    color: #94a3b8;
    font-weight: 900;
    font-size: 16px;
    position: relative;
}

    .shop-drawer-tab.active {
        color: #1f2937;
    }

        .shop-drawer-tab.active::after {
            content: "";
            position: absolute;
            left: 18px;
            right: 18px;
            bottom: 0;
            height: 3px;
            background: #f59e0b;
            border-radius: 999px 999px 0 0;
        }

.shop-drawer-close {
    border: none;
    background: #fff;
    color: #64748b;
    font-size: 30px;
    line-height: 1;
}

    .shop-drawer-close:hover {
        background: #f1f5f9;
        color: #111827;
    }

.shop-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.shop-drawer-panel {
    display: none;
}

    .shop-drawer-panel.active {
        display: block;
    }

.drawer-cart-list {
    display: grid;
    gap: 14px;
}

.drawer-cart-card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    transition: 0.18s;
}

    .drawer-cart-card:hover {
        border-color: #0d6efd;
        box-shadow: 0 10px 22px rgba(13, 110, 253, 0.1);
    }

.drawer-cart-image {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .drawer-cart-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.drawer-cart-info {
    min-width: 0;
}

.drawer-cart-name {
    display: block;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 4px;
}

    .drawer-cart-name:hover {
        color: #0d6efd;
    }

.drawer-cart-category {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.drawer-cart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
}

.drawer-cart-total {
    color: #dc3545;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.drawer-empty-box {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
    padding: 30px;
}

.drawer-empty-icon {
    font-size: 58px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.drawer-empty-box h3 {
    color: #374151;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.drawer-empty-box p {
    max-width: 360px;
    margin-bottom: 22px;
    line-height: 1.5;
}

.shop-drawer-footer {
    border-top: 1px solid #e5e7eb;
    padding: 18px 22px;
    background: #fff;
}

.drawer-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .drawer-total-box span {
        color: #64748b;
        font-weight: 700;
    }

    .drawer-total-box strong {
        color: #dc3545;
        font-size: 22px;
        font-weight: 900;
    }

.drawer-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

body.drawer-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .shop-drawer {
        width: 100%;
        right: -100%;
    }

    .drawer-cart-card {
        grid-template-columns: 70px 1fr;
    }

    .drawer-cart-total {
        grid-column: 2;
    }

    .drawer-footer-actions {
        flex-direction: column;
    }

        .drawer-footer-actions .btn {
            width: 100%;
        }
}
/* ===== FIX PRODUCT DETAIL COLOR PICKER + BUTTON LAYOUT ===== */

.product-detail-purchase-box {
    width: 100%;
    max-width: 620px;
}

.product-add-cart-form {
    width: 100%;
}

.detail-color-box {
    margin-bottom: 22px;
}

.detail-color-title {
    display: block;
    font-size: 17px;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 12px;
}

.detail-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-color-item {
    position: relative;
    height: 52px;
    min-width: 118px;
    padding: 0 15px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.18s ease;
}

    .detail-color-item:hover {
        border-color: #0d6efd;
        box-shadow: 0 8px 18px rgba(13, 110, 253, 0.12);
    }

    .detail-color-item input {
        display: none;
    }

.color-square {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    display: inline-block;
    flex-shrink: 0;
}

.color-name {
    font-size: 15px;
    font-weight: 800;
    color: #374151;
}

.detail-color-item input:checked + .color-square {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.detail-color-item:has(input:checked) {
    border-color: #0d6efd;
    background: #eef5ff;
}

.detail-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.detail-add-cart-btn,
.detail-continue-btn,
.detail-out-stock-btn {
    height: 54px;
    min-width: 220px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
}

.detail-add-cart-btn {
    border: 2px solid #0d6efd;
    background: #0d6efd;
    color: white;
}

    .detail-add-cart-btn:hover {
        background: #0b5ed7;
        border-color: #0b5ed7;
    }

.detail-continue-btn {
    border: 2px solid #d1d5db;
    background: white;
    color: #4b5563;
}

    .detail-continue-btn:hover {
        border-color: #0d6efd;
        color: #0d6efd;
        background: #f8fbff;
    }

.detail-out-stock-btn {
    border: 2px solid #6c757d;
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .detail-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-add-cart-btn,
    .detail-continue-btn,
    .detail-out-stock-btn {
        width: 100%;
    }

    .detail-color-item {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}
/* ===== HOME FEATURED GRID WITH HOVER CARD ===== */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
}

    .featured-grid .shop-hover-product-card {
        width: 100%;
    }

/* ===== SMARTSTORE-LIKE PRODUCT HOVER CARD ===== */

.shop-hover-product-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    min-height: 455px;
    padding-bottom: 66px;
    overflow: hidden;
    transition: 0.2s ease;
    z-index: 1;
}

    .shop-hover-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
        z-index: 25;
    }

.shop-hover-image-box {
    position: relative;
    height: 245px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .shop-hover-image-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: 0.22s ease;
    }

.shop-hover-product-card:hover .shop-hover-image-box img {
    transform: scale(1.04);
}

.shop-discount-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    background: #f43f5e;
    color: white;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.shop-featured-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    background: #14245f;
    color: white;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.shop-hover-body {
    padding: 18px 18px 0;
}

.shop-hover-category {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

.shop-hover-name {
    display: block;
    color: #1f2937;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    min-height: 46px;
}

    .shop-hover-name:hover {
        color: #0d6efd;
    }

.shop-hover-desc {
    color: #8a99aa;
    font-size: 14px;
    line-height: 1.45;
    min-height: 42px;
    max-height: 42px;
    overflow: hidden;
    margin: 10px 0 14px;
}

.shop-delivery-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 14px;
}

    .shop-delivery-line span {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #f59e0b;
        display: inline-block;
    }

.shop-hover-price-box strong {
    display: block;
    color: #374151;
    font-size: 19px;
    font-weight: 900;
}

.shop-hover-price-box small {
    display: block;
    color: #8a99aa;
    font-size: 13px;
    margin-top: 4px;
}

.shop-hover-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.22s ease;
    padding: 0 18px;
}

.shop-hover-product-card:hover .shop-hover-extra {
    max-height: 95px;
    opacity: 1;
    padding-top: 14px;
}

.shop-hover-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.shop-hover-color-dot {
    cursor: pointer;
    margin: 0;
}

    .shop-hover-color-dot input {
        display: none;
    }

    .shop-hover-color-dot span {
        width: 19px;
        height: 19px;
        display: block;
        border-radius: 3px;
        border: 2px solid #d1d5db;
    }

    .shop-hover-color-dot input:checked + span {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
    }

.shop-hover-option {
    color: #6b7280;
    font-size: 14px;
}

    .shop-hover-option a {
        color: #0d6efd;
        font-weight: 800;
    }

.shop-hover-action-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    transform: translateY(66px);
    transition: 0.22s ease;
}

.shop-hover-product-card:hover .shop-hover-action-bar {
    transform: translateY(0);
}

.shop-hover-action-main,
.shop-hover-action-btn {
    border: none;
    border-right: 1px solid #e5e7eb;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    font-weight: 900;
    transition: 0.16s ease;
}

.shop-hover-action-main {
    background: #4657c5;
    color: white;
}

    .shop-hover-action-main:hover {
        background: #3344b3;
    }

.shop-hover-action-btn:hover {
    background: #f3f6fb;
    color: #0d6efd;
}

.shop-hover-action-btn:last-child {
    border-right: none;
    font-family: Georgia, serif;
    font-style: italic;
}

.shop-hover-cart-form {
    margin: 0;
}

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-hover-image-box {
        height: 220px;
    }
}

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

    .shop-hover-action-bar {
        transform: translateY(0);
    }

    .shop-hover-extra {
        max-height: 95px;
        opacity: 1;
        padding-top: 14px;
    }
}
/* ===== CUSTOMER ACCOUNT ORDER LIST ===== */

.customer-order-list {
    display: grid;
    gap: 18px;
}

.account-order-card {
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

    .account-order-card .order-list-top {
        padding: 20px 24px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .account-order-card .order-code {
        font-size: 18px;
        font-weight: 900;
        color: #111827;
    }

    .account-order-card .order-date {
        margin-top: 4px;
        color: #94a3b8;
        font-size: 14px;
    }

    .account-order-card .order-total {
        color: #dc3545;
        font-size: 22px;
        font-weight: 900;
        white-space: nowrap;
    }

    .account-order-card .order-list-bottom {
        padding: 18px 24px;
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 20px;
        align-items: center;
    }

    .account-order-card .order-status-box span {
        display: block;
        color: #94a3b8;
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .account-order-card .order-status-box .badge {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 999px;
    }

.order-action-box {
    text-align: right;
}

.customer-empty-alert h4 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
}

.customer-empty-alert p {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .account-order-card .order-list-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-order-card .order-list-bottom {
        grid-template-columns: 1fr;
    }

    .order-action-box {
        text-align: left;
    }
}
/* =========================================================
   FIX USER DROPDOWN - SMARTSTORE STYLE
   ========================================================= */

.ss-user-dropdown {
    position: relative;
}

.ss-user-trigger {
    height: 42px;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 8px;
    padding: 0 10px;
    color: #343b45;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .ss-user-trigger:hover {
        background: #f3f5f7 !important;
    }

    .ss-user-trigger[aria-expanded="true"] {
        background: #f3f5f7 !important;
        font-weight: 700;
    }

.ss-user-trigger-icon {
    font-size: 18px;
    color: #343b45;
}

.ss-user-trigger-text {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.ss-user-trigger-arrow {
    font-size: 14px;
    color: #64748b;
}

.ss-user-menu {
    width: 260px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

    .ss-user-menu .dropdown-item {
        min-height: 40px;
        border-radius: 8px;
        padding: 10px 14px;
        color: #55616d;
        background: transparent !important;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 13px;
    }

        .ss-user-menu .dropdown-item:hover,
        .ss-user-menu .dropdown-item:focus,
        .ss-user-menu .dropdown-item:active {
            background: #eef1f4 !important;
            color: #111827 !important;
            font-weight: 700;
        }

    .ss-user-menu form {
        margin: 0;
    }

.ss-menu-icon {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.ss-login-link {
    color: #343b45;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   CONTACT PAGE - SMARTSTORE LIKE
   ========================================================= */

.ss-contact-page {
    padding: 58px 12px 80px;
}

.ss-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 84px;
    align-items: start;
}

.ss-contact-intro h1 {
    font-size: 42px;
    font-weight: 800;
    color: #343b45;
    margin-bottom: 24px;
}

.ss-contact-intro p {
    color: #6f7b88;
    font-size: 18px;
    line-height: 1.65;
    max-width: 650px;
}

.ss-contact-info {
    margin-top: 36px;
    display: grid;
    gap: 16px;
    max-width: 520px;
}

    .ss-contact-info div {
        border: 1px solid #e5eaf0;
        border-radius: 9px;
        background: #fff;
        padding: 16px 18px;
    }

    .ss-contact-info strong {
        display: block;
        color: #343b45;
        margin-bottom: 5px;
    }

    .ss-contact-info span {
        color: #7c8b9a;
    }

.ss-contact-form-panel {
    background: transparent;
}

.ss-contact-form {
    display: grid;
    gap: 18px;
}

.ss-floating-field label {
    display: block;
    color: #a0adbb;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ss-floating-field .form-control {
    width: 100%;
    min-height: 58px;
    border-radius: 8px;
    border: 1px solid #dbe3ec;
    color: #343b45;
    font-size: 16px;
    padding: 13px 16px;
}

.ss-floating-field textarea.form-control {
    min-height: 190px;
    resize: vertical;
}

.ss-contact-note {
    color: #94a3b8;
    margin: 0;
}

.ss-contact-policy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    line-height: 1.5;
}

.ss-submit-btn {
    width: 130px;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: #4657c5;
    color: #fff;
    font-weight: 800;
}

    .ss-submit-btn:hover {
        background: #3344b3;
    }

/* =========================================================
   CUSTOMER ACCOUNT - SMARTSTORE LIKE
   ========================================================= */

.ss-account-page {
    padding: 56px 12px 80px;
}

.ss-account-layout {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.ss-account-sidebar {
    display: block !important;
    width: 100%;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ss-account-card {
    min-height: 96px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ss-account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #e9eef5;
    color: #94a3b8;
    font-size: 34px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ss-account-user strong {
    display: block;
    color: #343b45;
    font-weight: 800;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-account-user span {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-top: 2px;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-account-menu {
    display: block !important;
}

    .ss-account-menu a {
        height: 58px;
        padding: 0 22px;
        border-bottom: 1px solid #e5e7eb;
        color: #4b5563;
        text-decoration: none !important;
        font-size: 16px;
        font-weight: 500;
        display: flex !important;
        align-items: center;
        gap: 16px;
        position: relative;
    }

        .ss-account-menu a:last-child {
            border-bottom: none;
        }

        .ss-account-menu a span {
            width: 22px;
            text-align: center;
            font-size: 18px;
        }

        .ss-account-menu a strong {
            font-weight: 500;
        }

        .ss-account-menu a:hover {
            background: #f8fafc;
            color: #111827;
        }

        .ss-account-menu a.active {
            background: #fff;
            color: #111827;
        }

            .ss-account-menu a.active::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                width: 4px;
                background: #f59e0b;
            }

            .ss-account-menu a.active strong {
                font-weight: 700;
            }

.ss-account-content {
    min-width: 0;
}

    .ss-account-content h1 {
        font-size: 42px;
        font-weight: 800;
        color: #343b45;
        margin-bottom: 28px;
    }

.ss-account-form {
    max-width: 1050px;
}

.ss-section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 32px 0 22px;
}

    .ss-section-heading::after {
        content: "";
        height: 1px;
        background: #dbe3ec;
        flex: 1;
    }

    .ss-section-heading span {
        color: #a0adbb;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

.ss-form-row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
}

.ss-form-row-top {
    align-items: start;
}

.ss-form-row > label {
    color: #343b45;
    font-weight: 700;
}

.ss-form-row .form-control,
.ss-form-row .form-select {
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid #dbe3ec;
    color: #343b45;
    font-size: 16px;
    padding: 12px 16px;
}

.ss-form-row textarea.form-control {
    min-height: 110px;
}

.ss-checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
}

.ss-form-note {
    color: #94a3b8;
    margin: 8px 0 20px;
}

.ss-save-btn {
    min-width: 150px;
    height: 54px;
    border: 0;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    font-weight: 800;
    padding: 0 24px;
}

    .ss-save-btn:hover {
        background: #3344b3;
    }

@media (max-width: 992px) {
    .ss-contact-layout,
    .ss-account-layout {
        grid-template-columns: 1fr !important;
    }

    .ss-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
/* ===== SMARTSTORE ACCOUNT LAYOUT FIX ===== */

.smart-account-page {
    padding: 56px 0 70px;
}

.smart-account-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 38px;
    align-items: flex-start;
}

.smart-account-sidebar {
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.smart-account-user-card {
    min-height: 96px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.smart-account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #edf1f5;
    color: #96a3b1;
    font-size: 34px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-account-user-info strong {
    display: block;
    color: #343b45;
    font-size: 15px;
    font-weight: 700;
}

.smart-account-user-info span {
    display: block;
    color: #93a1af;
    font-size: 14px;
    margin-top: 2px;
}

.smart-account-menu a {
    height: 58px;
    padding: 0 22px;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    background: #fff;
}

    .smart-account-menu a:last-child {
        border-bottom: none;
    }

    .smart-account-menu a:hover {
        background: #f8fafc;
        color: #222831;
    }

    .smart-account-menu a.active::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: #f6a400;
    }

    .smart-account-menu a.active {
        color: #222831;
        font-weight: 500;
    }

.smart-account-menu .menu-icon {
    width: 22px;
    text-align: center;
    color: #343b45;
}

.smart-account-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #343b45;
    margin-bottom: 26px;
}

@media (max-width: 992px) {
    .smart-account-layout {
        grid-template-columns: 1fr;
    }
}
/* ===== SMARTSTORE-LIKE ADDRESS PAGE ===== */

.smart-address-title-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

    .smart-address-title-row h1 {
        margin: 0;
    }

.smart-add-address-btn {
    height: 52px;
    min-width: 145px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
}

    .smart-add-address-btn span {
        font-size: 24px;
        line-height: 1;
    }

    .smart-add-address-btn:hover {
        background: #3344b3;
    }

.smart-address-card {
    width: 540px;
    max-width: 100%;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    margin-bottom: 34px;
}

.smart-address-body {
    padding: 24px 26px;
}

.smart-address-name {
    display: inline-block;
    color: #0d6efd;
    font-weight: 800;
    margin-bottom: 14px;
    text-decoration: underline;
}

.smart-address-body p {
    color: #4b5563;
    margin-bottom: 6px;
    line-height: 1.45;
}

.smart-address-lines {
    margin-top: 12px;
}

.smart-address-footer {
    min-height: 60px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
}

    .smart-address-footer form {
        margin: 0;
    }

    .smart-address-footer button {
        border: none;
        background: transparent;
        color: #343b45;
        font-size: 18px;
        cursor: pointer;
        padding: 0;
    }

        .smart-address-footer button:hover {
            color: #0d6efd;
        }

.smart-default-address {
    margin-left: auto;
    color: #343b45;
    font-weight: 700;
}

.smart-no-address-box {
    width: 100%;
    padding: 16px 22px;
    border: 1px solid #f6c56d;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fff3cd;
    color: #8a5a00;
    font-weight: 600;
    margin-bottom: 30px;
}

.smart-address-form-box {
    max-width: 1050px;
    margin-top: 28px;
}

.smart-section-title-line {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 34px 0 22px;
}

    .smart-section-title-line::after {
        content: "";
        height: 1px;
        background: #dbe3ec;
        flex: 1;
    }

    .smart-section-title-line span {
        color: #a0adbb;
        font-weight: 700;
        text-transform: uppercase;
    }

.smart-account-form {
    max-width: 1050px;
}

.smart-form-row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
}

.smart-form-row-top {
    align-items: start;
}

.smart-form-row > label {
    color: #343b45;
    font-weight: 700;
}

.smart-form-row .form-control,
.smart-form-row .form-select {
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid #dbe3ec;
    color: #343b45;
    font-size: 16px;
    padding: 12px 16px;
}

.smart-form-row textarea.form-control {
    min-height: 120px;
}

.smart-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smart-save-btn {
    min-width: 145px;
    height: 54px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    font-weight: 800;
    padding: 0 22px;
}

    .smart-save-btn:hover {
        background: #3344b3;
    }

.smart-cancel-btn {
    min-width: 100px;
    height: 54px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #4b5563;
    font-weight: 700;
    padding: 0 20px;
}

    .smart-cancel-btn:hover {
        background: #f8fafc;
    }

@media (max-width: 768px) {
    .smart-address-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .smart-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .smart-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .smart-save-btn,
    .smart-cancel-btn {
        width: 100%;
    }
}
/* ===== SMARTSTORE ADDRESS PAGE FINAL FIX ===== */

.smart-address-title-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

    .smart-address-title-row h1 {
        margin: 0;
    }

.smart-add-address-btn {
    height: 52px;
    min-width: 145px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
}

    .smart-add-address-btn span {
        font-size: 24px;
        line-height: 1;
    }

    .smart-add-address-btn:hover {
        background: #3344b3;
        color: white;
    }

.smart-empty-address-state {
    min-height: 360px;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    background: #fff;
    padding: 55px 30px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.smart-empty-address-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #f1f4f8;
    color: #94a3b8;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-empty-address-state h3 {
    font-size: 24px;
    font-weight: 800;
    color: #343b45;
    margin: 8px 0 0;
}

.smart-empty-address-state p {
    color: #8a99aa;
    font-size: 16px;
    margin: 0 0 12px;
}

.smart-address-card {
    width: 540px;
    max-width: 100%;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    margin-bottom: 34px;
}

.smart-address-body {
    padding: 24px 26px;
}

.smart-address-name {
    display: inline-block;
    color: #0d6efd;
    font-weight: 800;
    margin-bottom: 14px;
    text-decoration: underline;
}

.smart-address-body p {
    color: #4b5563;
    margin-bottom: 6px;
    line-height: 1.45;
}

.smart-address-lines {
    margin-top: 12px;
}

.smart-address-footer {
    min-height: 60px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
}

    .smart-address-footer form {
        margin: 0;
    }

    .smart-address-footer button {
        border: none;
        background: transparent;
        color: #343b45;
        font-size: 18px;
        cursor: pointer;
        padding: 0;
    }

        .smart-address-footer button:hover {
            color: #0d6efd;
        }

.smart-default-address {
    margin-left: auto;
    color: #343b45;
    font-weight: 700;
}

/* ===== ADDRESS MODAL ===== */

.smart-address-modal .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.smart-address-modal .modal-header {
    min-height: 72px;
    padding: 22px 28px;
    border-bottom: 1px solid #e5e7eb;
}

.smart-address-modal .modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #343b45;
}

.smart-address-modal .modal-body {
    padding: 28px;
}

.smart-address-modal .modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e5e7eb;
}

.smart-modal-form-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
}

.smart-modal-form-row-top {
    align-items: start;
}

.smart-modal-form-row label {
    color: #343b45;
    font-weight: 700;
}

.smart-modal-form-row .form-control {
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid #dbe3ec;
    color: #343b45;
    font-size: 16px;
    padding: 12px 16px;
}

.smart-modal-form-row textarea.form-control {
    min-height: 130px;
}

.smart-save-btn {
    min-width: 145px;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    font-weight: 800;
    padding: 0 22px;
}

    .smart-save-btn:hover {
        background: #3344b3;
        color: white;
    }

.smart-modal-cancel-btn {
    min-width: 100px;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #4b5563;
    font-weight: 700;
    padding: 0 20px;
}

    .smart-modal-cancel-btn:hover {
        background: #f8fafc;
    }

@media (max-width: 768px) {
    .smart-address-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .smart-modal-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .smart-address-modal .modal-body {
        padding: 22px;
    }
}
/* ===== SMARTSTORE-LIKE ORDER PAGE UPGRADE ===== */

.smart-order-page {
    min-width: 0;
}

.smart-order-header {
    margin-bottom: 28px;
}

    .smart-order-header h1 {
        font-size: 42px;
        font-weight: 800;
        color: #343b45;
        margin-bottom: 8px;
    }

    .smart-order-header p {
        color: #7c8b9a;
        font-size: 16px;
        margin: 0;
    }

.smart-order-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.smart-order-stat-card {
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    padding: 18px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

    .smart-order-stat-card span {
        display: block;
        color: #8a99aa;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .smart-order-stat-card strong {
        display: block;
        color: #343b45;
        font-size: 24px;
        font-weight: 900;
    }

.smart-order-list {
    display: grid;
    gap: 18px;
}

.smart-order-card {
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: 0.18s ease;
}

    .smart-order-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    }

.smart-order-card-top {
    padding: 20px 24px;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.smart-order-code {
    color: #0d6efd;
    font-size: 18px;
    font-weight: 900;
}

.smart-order-date {
    color: #8a99aa;
    font-size: 14px;
    margin-top: 4px;
}

.smart-order-total {
    color: #dc3545;
    font-size: 23px;
    font-weight: 900;
    white-space: nowrap;
}

.smart-order-card-bottom {
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: center;
}

.smart-order-info-box span {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.smart-order-info-box strong {
    color: #343b45;
    font-weight: 800;
}

.smart-order-info-box .badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.smart-order-action-box {
    text-align: right;
}

.smart-order-detail-btn {
    height: 42px;
    min-width: 115px;
    border-radius: 7px;
    border: 1px solid #0d6efd;
    background: #fff;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    transition: 0.18s ease;
}

    .smart-order-detail-btn:hover {
        background: #0d6efd;
        color: #fff;
    }

.smart-order-empty-state {
    margin-top: 8px;
}

.smart-order-empty-alert {
    width: 100%;
    padding: 15px 22px;
    border: 1px solid #f6c56d;
    border-left: 4px solid #f59e0b;
    border-radius: 7px;
    background: #fff3cd;
    color: #8a5a00;
    font-weight: 700;
}

.smart-order-shop-btn {
    margin-top: 18px;
    height: 48px;
    min-width: 140px;
    border-radius: 8px;
    background: #4657c5;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
}

    .smart-order-shop-btn:hover {
        background: #3344b3;
        color: #fff;
    }

@media (max-width: 1200px) {
    .smart-order-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smart-order-card-bottom {
        grid-template-columns: 1fr 1fr;
    }

    .smart-order-action-box {
        text-align: left;
    }
}

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

    .smart-order-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .smart-order-card-bottom {
        grid-template-columns: 1fr;
    }
}
/* ===== CHANGE PASSWORD PAGE LIKE SMARTSTORE ===== */

.smart-account-main-title {
    font-size: 42px;
    font-weight: 800;
    color: #343b45;
    margin-bottom: 34px;
}

.smart-change-password-form {
    max-width: 1050px;
}

.smart-password-form-row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
}

    .smart-password-form-row > label {
        color: #343b45;
        font-weight: 700;
        margin: 0;
    }

.smart-password-field {
    position: relative;
    width: 100%;
}

    .smart-password-field .form-control {
        width: 100%;
        height: 54px;
        border: 1px solid #dbe3ec;
        border-radius: 8px;
        color: #343b45;
        font-size: 16px;
        padding: 12px 16px;
        box-shadow: none;
    }

.password-has-eye .form-control {
    padding-right: 52px;
}

.smart-password-field .form-control:focus {
    border-color: #b7c4d1;
    box-shadow: 0 0 0 3px rgba(70, 87, 197, 0.08);
}

.password-eye-btn {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 40px;
    height: 40px;
    border: none !important;
    background: transparent !important;
    color: #7c8b9a;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: none !important;
    outline: none !important;
}

    .password-eye-btn:hover {
        color: #343b45;
    }

.smart-password-field .text-danger {
    display: block;
    margin-top: 6px;
    font-size: 14px;
}

.smart-password-note {
    color: #94a3b8;
    margin: 6px 0 22px;
    font-size: 15px;
}

.smart-password-save-btn {
    min-width: 170px;
    height: 54px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    font-weight: 800;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .smart-password-save-btn:hover {
        background: #3344b3;
        color: white;
    }

@media (max-width: 768px) {
    .smart-password-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
/* ===== MODERN LOGIN PAGE ===== */

.modern-login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.22), transparent 34%), linear-gradient(135deg, #f5f8fc 0%, #eef3f8 48%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.modern-login-shell {
    width: 1180px;
    min-height: 680px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.modern-login-left {
    position: relative;
    padding: 42px 52px;
    color: #fff;
    background: linear-gradient(135deg, rgba(14, 99, 211, 0.95), rgba(35, 53, 145, 0.96)), url("/images/products/no-image.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

    .modern-login-left::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 26%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12), transparent 30%);
        pointer-events: none;
    }

.modern-login-brand {
    position: relative;
    z-index: 1;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 900;
}

    .modern-login-brand span {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        background: linear-gradient(135deg, #0d6efd, #18c2b9);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 900;
    }

    .modern-login-brand:hover {
        color: #fff;
    }

.modern-login-hero {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 34px;
}

.modern-login-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #eaf2ff;
    font-weight: 700;
    margin-bottom: 22px;
}

.modern-login-hero h1 {
    font-size: 48px;
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 18px;
}

.modern-login-hero p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.modern-login-features {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

    .modern-login-features div {
        width: fit-content;
        min-width: 260px;
        height: 54px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0 18px;
        backdrop-filter: blur(8px);
    }

    .modern-login-features span {
        font-size: 22px;
    }

.modern-login-right {
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.modern-login-card {
    width: 100%;
}

.modern-login-card-header {
    margin-bottom: 30px;
}

    .modern-login-card-header h2 {
        font-size: 42px;
        font-weight: 900;
        color: #222831;
        margin-bottom: 8px;
    }

    .modern-login-card-header p {
        color: #7c8b9a;
        font-size: 16px;
        margin: 0;
    }

.modern-login-form {
    display: grid;
    gap: 18px;
}

.modern-form-group label {
    color: #343b45;
    font-weight: 800;
    margin-bottom: 8px;
}

.modern-input-box {
    position: relative;
}

    .modern-input-box > span {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        color: #8a99aa;
    }

    .modern-input-box .form-control {
        height: 58px;
        border-radius: 14px;
        border: 1px solid #dbe3ec;
        padding: 0 54px 0 50px;
        color: #222831;
        font-size: 16px;
        box-shadow: none;
    }

        .modern-input-box .form-control:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
        }

.modern-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modern-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2px;
}

.modern-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-weight: 600;
}

.modern-login-options a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700;
}

    .modern-login-options a:hover {
        text-decoration: underline;
    }

.modern-login-submit {
    height: 58px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #4657c5);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    margin-top: 8px;
    transition: 0.18s ease;
}

    .modern-login-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(13, 110, 253, 0.24);
    }

.modern-login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    margin-top: 8px;
}

    .modern-login-links a {
        color: #0d6efd;
        text-decoration: none;
        font-weight: 800;
    }

        .modern-login-links a:hover {
            text-decoration: underline;
        }

.modern-login-demo {
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #4b5563;
}

    .modern-login-demo strong {
        display: block;
        color: #222831;
        margin-bottom: 4px;
    }

    .modern-login-demo span {
        color: #0d6efd;
        font-weight: 800;
    }

.modern-back-home {
    margin-top: 22px;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
}

    .modern-back-home:hover {
        color: #0d6efd;
    }

@media (max-width: 992px) {
    .modern-login-page {
        padding: 18px;
    }

    .modern-login-shell {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .modern-login-left {
        min-height: 360px;
    }

    .modern-login-right {
        padding: 34px 24px;
    }

    .modern-login-hero h1 {
        font-size: 36px;
    }

    .modern-login-card-header h2 {
        font-size: 34px;
    }
}
/* ===== MODERN AUTH PAGES: LOGIN + REGISTER ===== */

.modern-auth-page,
.modern-login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.22), transparent 34%), linear-gradient(135deg, #f5f8fc 0%, #eef3f8 48%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.modern-auth-shell,
.modern-login-shell {
    width: 1180px;
    min-height: 680px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.register-shell {
    min-height: 760px;
}

.modern-auth-left,
.modern-login-left {
    position: relative;
    padding: 42px 52px;
    color: #fff;
    background: linear-gradient(135deg, rgba(14, 99, 211, 0.95), rgba(35, 53, 145, 0.96));
    display: flex;
    flex-direction: column;
}

    .modern-auth-left::after,
    .modern-login-left::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 26%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12), transparent 30%);
        pointer-events: none;
    }

.modern-auth-brand,
.modern-login-brand {
    position: relative;
    z-index: 1;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 900;
}

    .modern-auth-brand span,
    .modern-login-brand span {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        background: linear-gradient(135deg, #0d6efd, #18c2b9);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 900;
    }

    .modern-auth-brand:hover,
    .modern-login-brand:hover {
        color: #fff;
    }

.modern-auth-hero,
.modern-login-hero {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 34px;
}

.modern-auth-badge,
.modern-login-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #eaf2ff;
    font-weight: 700;
    margin-bottom: 22px;
}

.modern-auth-hero h1,
.modern-login-hero h1 {
    font-size: 46px;
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 18px;
}

.modern-auth-hero p,
.modern-login-hero p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.modern-auth-features,
.modern-login-features {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

    .modern-auth-features div,
    .modern-login-features div {
        width: fit-content;
        min-width: 260px;
        height: 54px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0 18px;
    }

    .modern-auth-features span,
    .modern-login-features span {
        font-size: 22px;
    }

.modern-auth-right,
.modern-login-right {
    padding: 46px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.modern-auth-card,
.modern-login-card {
    width: 100%;
}

.modern-auth-card-header,
.modern-login-card-header {
    margin-bottom: 26px;
}

    .modern-auth-card-header h2,
    .modern-login-card-header h2 {
        font-size: 40px;
        font-weight: 900;
        color: #222831;
        margin-bottom: 8px;
    }

    .modern-auth-card-header p,
    .modern-login-card-header p {
        color: #7c8b9a;
        font-size: 16px;
        margin: 0;
    }

.modern-auth-form,
.modern-login-form {
    display: grid;
    gap: 16px;
}

.modern-form-group label {
    color: #343b45;
    font-weight: 800;
    margin-bottom: 8px;
}

.modern-input-box {
    position: relative;
}

    .modern-input-box > span {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        color: #8a99aa;
    }

    .modern-input-box .form-control {
        height: 56px;
        border-radius: 14px;
        border: 1px solid #dbe3ec;
        padding: 0 18px 0 50px;
        color: #222831;
        font-size: 16px;
        box-shadow: none;
    }

        .modern-input-box .form-control:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
        }

.modern-auth-submit,
.modern-login-submit {
    height: 58px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #4657c5);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    margin-top: 8px;
    transition: 0.18s ease;
}

    .modern-auth-submit:hover,
    .modern-login-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(13, 110, 253, 0.24);
    }

.modern-auth-links,
.modern-login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    margin-top: 8px;
}

    .modern-auth-links a,
    .modern-login-links a {
        color: #0d6efd;
        text-decoration: none;
        font-weight: 800;
    }

        .modern-auth-links a:hover,
        .modern-login-links a:hover {
            text-decoration: underline;
        }

.modern-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modern-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-weight: 600;
}

.modern-login-options a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700;
}

.modern-back-home {
    margin-top: 22px;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
}

    .modern-back-home:hover {
        color: #0d6efd;
    }

/* Ẩn toàn bộ nút mắt cũ nếu còn sót lại */
.modern-password-toggle,
.password-eye-btn,
.smart-password-eye {
    display: none !important;
}

@media (max-width: 992px) {
    .modern-auth-page,
    .modern-login-page {
        padding: 18px;
    }

    .modern-auth-shell,
    .modern-login-shell {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .modern-auth-left,
    .modern-login-left {
        min-height: 340px;
    }

    .modern-auth-right,
    .modern-login-right {
        padding: 34px 24px;
    }

    .modern-auth-hero h1,
    .modern-login-hero h1 {
        font-size: 34px;
    }

    .modern-auth-card-header h2,
    .modern-login-card-header h2 {
        font-size: 34px;
    }
}
/* ===== REMOVE PASSWORD EYE SPACE ===== */

.smart-password-field .form-control {
    padding-right: 16px !important;
}

.password-has-eye .form-control {
    padding-right: 16px !important;
}
/* =========================================================
   SMARTSTORE-LIKE CATEGORY PRODUCT PAGE
   ========================================================= */

.smart-category-page {
    padding: 28px 12px 40px;
}

.smart-category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a99aa;
    font-size: 15px;
    margin-bottom: 28px;
}

    .smart-category-breadcrumb a {
        color: #343b45;
        text-decoration: none;
    }

.smart-category-shop-frame {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    height: calc(100vh - 285px);
    min-height: 620px;
    overflow: hidden;
}

.smart-filter-sidebar {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

.smart-product-result-panel {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

    .smart-filter-sidebar::-webkit-scrollbar,
    .smart-product-result-panel::-webkit-scrollbar {
        width: 8px;
    }

    .smart-filter-sidebar::-webkit-scrollbar-thumb,
    .smart-product-result-panel::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

.smart-filter-card {
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 24px;
}

.smart-filter-title {
    padding: 18px 22px;
    color: #343b45;
    font-weight: 800;
    border-bottom: 1px solid #e5e7eb;
}

.smart-category-filter-item {
    min-height: 54px;
    padding: 0 22px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

    .smart-category-filter-item:last-child {
        border-bottom: none;
    }

    .smart-category-filter-item:hover {
        background: #f8fafc;
        color: #111827;
    }

    .smart-category-filter-item.active::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: #7c3aed;
    }

    .smart-category-filter-item.active {
        color: #111827;
        font-weight: 800;
    }

    .smart-category-filter-item strong {
        color: #94a3b8;
        font-weight: 600;
    }

.smart-filter-form {
    padding: 0 22px 22px;
}

.smart-filter-section {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .smart-filter-section:last-child {
        border-bottom: none;
    }

.smart-filter-collapse {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 14px;
    color: #343b45;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.smart-filter-radio {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    cursor: pointer;
}

    .smart-filter-radio input {
        width: 20px;
        height: 20px;
    }

.smart-price-custom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

    .smart-price-custom .form-control {
        height: 46px;
        border-radius: 8px;
    }

.smart-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.smart-product-list-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

    .smart-product-list-header h1 {
        font-size: 42px;
        color: #343b45;
        font-weight: 800;
        margin: 0 0 4px;
    }

    .smart-product-list-header p {
        color: #8a99aa;
        margin: 0;
        font-weight: 600;
    }

.smart-product-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.smart-sort-form .form-select {
    height: 50px;
    min-width: 235px;
    border-radius: 8px;
    font-weight: 600;
}

.smart-view-switch {
    height: 50px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

    .smart-view-switch a {
        width: 48px;
        height: 48px;
        color: #343b45;
        background: #fff;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 21px;
        border-right: 1px solid #dbe3ec;
    }

        .smart-view-switch a:last-child {
            border-right: none;
        }

        .smart-view-switch a.active {
            background: #eef1f5;
            font-weight: 900;
        }

.smart-product-grid-view {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    padding-bottom: 40px;
}

.smart-category-product-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid transparent;
    overflow: hidden;
    transition: 0.18s ease;
}

    .smart-category-product-card:hover {
        border-color: #dfe5ec;
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
        transform: translateY(-3px);
    }

.smart-grid-product-image {
    height: 245px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

    .smart-grid-product-image img {
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

.smart-discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f43f5e;
    color: white;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    z-index: 2;
}

.smart-featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #14245f;
    color: white;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    z-index: 2;
}

.smart-grid-product-body {
    padding: 16px 18px 18px;
}

.smart-product-category {
    color: #8a99aa;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.smart-grid-product-name,
.smart-list-product-name {
    color: #343b45;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    display: inline-block;
}

    .smart-grid-product-name:hover,
    .smart-list-product-name:hover {
        color: #0d6efd;
    }

.smart-grid-product-body p,
.smart-list-product-info p {
    color: #8a99aa;
    margin: 10px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.smart-delivery-line {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0;
}

.smart-grid-price strong,
.smart-list-price strong {
    color: #343b45;
    font-size: 20px;
    font-weight: 900;
    display: block;
}

.smart-grid-price small,
.smart-list-price small {
    color: #8a99aa;
    text-decoration: line-through;
}

.smart-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

    .smart-color-swatches span {
        width: 19px;
        height: 19px;
        border-radius: 3px;
        border: 1px solid #d1d5db;
    }

.smart-grid-actions {
    height: 56px;
    margin: 16px -18px -18px;
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

    .smart-grid-actions a,
    .smart-grid-actions button {
        border: none;
        border-right: 1px solid #e5e7eb;
        background: #fff;
        color: #4b5563;
        text-decoration: none;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .smart-grid-actions a:first-child {
            background: #4657c5;
            color: white;
        }

        .smart-grid-actions a:last-child,
        .smart-grid-actions button:last-child {
            border-right: none;
        }

        .smart-grid-actions a:hover,
        .smart-grid-actions button:hover {
            background: #eef1f5;
        }

        .smart-grid-actions a:first-child:hover {
            background: #3344b3;
        }

.smart-product-list-view {
    display: grid;
    gap: 0;
    padding-bottom: 40px;
}

.smart-product-list-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 250px;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.smart-list-product-image {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .smart-list-product-image img {
        max-width: 100%;
        max-height: 210px;
        object-fit: contain;
    }

.smart-list-product-info {
    min-width: 0;
}

.smart-list-product-buy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
}

.smart-add-cart-btn,
.smart-out-stock-btn {
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .smart-add-cart-btn:hover {
        background: #3344b3;
        color: white;
    }

.smart-out-stock-btn {
    background: #94a3b8;
}

.smart-list-icons {
    display: flex;
    justify-content: space-around;
    color: #4b5563;
    font-size: 23px;
}

.smart-no-product-box {
    padding: 20px;
    border: 1px solid #f6c56d;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fff3cd;
    color: #8a5a00;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .smart-category-shop-frame {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .smart-product-grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smart-product-list-row {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .smart-list-product-buy {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .smart-add-cart-btn,
    .smart-out-stock-btn {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .smart-category-shop-frame {
        height: auto;
        overflow: visible;
        grid-template-columns: 1fr;
    }

    .smart-filter-sidebar,
    .smart-product-result-panel {
        height: auto;
        overflow: visible;
    }

    .smart-product-list-header {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .smart-product-grid-view {
        grid-template-columns: 1fr;
    }
}
/* ===== FIX PRODUCT PREVIEW ONLY SHOW ON HOVER ===== */

.smart-product-grid-view {
    overflow: visible;
}

.smart-product-result-panel {
    overflow-y: auto;
    overflow-x: hidden;
}

.smart-category-product-card.smart-hover-product-card {
    position: relative;
    overflow: visible;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: 0.18s ease;
    z-index: 1;
}

    .smart-category-product-card.smart-hover-product-card:hover {
        z-index: 50;
        border-color: #dfe5ec;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
        transform: translateY(-3px);
    }

.smart-grid-basic-body {
    padding: 16px 18px 18px;
    background: #fff;
}

    .smart-grid-basic-body .smart-grid-price {
        margin-top: 14px;
    }

        .smart-grid-basic-body .smart-grid-price strong {
            display: block;
            font-size: 20px;
            font-weight: 900;
            color: #343b45;
        }

        .smart-grid-basic-body .smart-grid-price small {
            display: block;
            margin-top: 4px;
            color: #8a99aa;
            text-decoration: line-through;
        }

/* Ẩn phần preview mặc định */
.smart-product-hover-preview {
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% - 1px);
    background: #fff;
    border: 1px solid #dfe5ec;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 0 18px 18px;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 0.18s ease;
}

/* Khi rê chuột mới hiện */
.smart-hover-product-card:hover .smart-product-hover-preview {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto;
}

.smart-product-hover-preview p {
    color: #8a99aa;
    margin: 8px 0 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.smart-product-hover-preview .smart-delivery-line {
    margin: 10px 0;
}

.smart-product-hover-preview .smart-color-swatches {
    margin: 10px 0 14px;
}

.smart-product-hover-preview .smart-grid-actions {
    margin: 14px -18px -18px;
}

/* Ẩn các phần preview cũ nếu trước đó bạn đã dùng class body cũ */
.smart-category-product-card > .smart-grid-product-body {
    display: none !important;
}
/* ===== FILTER COLLAPSE ===== */

.smart-filter-collapse {
    cursor: pointer;
}

    .smart-filter-collapse span {
        font-size: 16px;
        transition: transform 0.18s ease;
    }

.smart-filter-section.is-collapsed > :not(.smart-filter-collapse) {
    display: none !important;
}

.smart-filter-section.is-collapsed .smart-filter-collapse {
    margin-bottom: 0;
}

    .smart-filter-section.is-collapsed .smart-filter-collapse span {
        transform: rotate(180deg);
    }
/* ===== FILTER COLLAPSE ARROW UPGRADE ===== */

.smart-filter-collapse {
    width: 100%;
    min-height: 34px;
    border: none;
    background: transparent;
    padding: 0 42px 0 0;
    margin-bottom: 14px;
    color: #222831;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
}

    /* Ẩn mũi tên chữ cũ nếu còn sót span */
    .smart-filter-collapse span {
        display: none !important;
    }

    /* Ô vuông bên phải */
    .smart-filter-collapse::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        width: 30px;
        height: 30px;
        border: 1px solid #dbe3ec;
        border-radius: 7px;
        background: #f8fafc;
        transform: translateY(-50%);
        transition: 0.18s ease;
    }

    /* Mũi tên mặc định: đang sổ xuống, nên hướng lên */
    .smart-filter-collapse::before {
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        width: 9px;
        height: 9px;
        border-right: 2px solid #334155;
        border-bottom: 2px solid #334155;
        transform: translateY(-25%) rotate(-135deg);
        z-index: 2;
        transition: 0.18s ease;
    }

    /* Hover đẹp hơn */
    .smart-filter-collapse:hover::after {
        background: #eef2f7;
        border-color: #cbd5e1;
    }

    .smart-filter-collapse:hover::before {
        border-color: #0d6efd;
    }

/* Khi thu lại: ẩn nội dung */
.smart-filter-section.is-collapsed > :not(.smart-filter-collapse) {
    display: none !important;
}

.smart-filter-section.is-collapsed .smart-filter-collapse {
    margin-bottom: 0;
}

    /* Khi thu lại: mũi tên hướng xuống */
    .smart-filter-section.is-collapsed .smart-filter-collapse::before {
        transform: translateY(-70%) rotate(45deg);
    }
/* =========================================================
   SMARTSTORE-LIKE PRODUCT DETAIL PAGE
   ========================================================= */

.smart-product-detail-page {
    padding: 28px 12px 60px;
}

.smart-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a99aa;
    margin-bottom: 34px;
    font-size: 15px;
}

    .smart-detail-breadcrumb a {
        color: #64748b;
        text-decoration: none;
        font-weight: 600;
    }

        .smart-detail-breadcrumb a:hover {
            color: #0d6efd;
        }

.smart-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(430px, 0.8fr);
    gap: 58px;
    align-items: start;
}

.smart-detail-gallery {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.smart-detail-thumbs {
    display: grid;
    gap: 12px;
}

.smart-detail-thumb {
    width: 76px;
    height: 76px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    cursor: pointer;
    transition: 0.18s ease;
}

    .smart-detail-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .smart-detail-thumb.active,
    .smart-detail-thumb:hover {
        border-color: #343b45;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    }

.smart-detail-main-image {
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .smart-detail-main-image img {
        width: 100%;
        max-height: 620px;
        object-fit: contain;
    }

.smart-detail-discount {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 7px;
    background: #f43f5e;
    color: white;
    font-weight: 900;
}

.smart-detail-info-panel {
    padding-top: 18px;
}

.smart-detail-category-icon {
    width: 36px;
    height: 36px;
    color: #cbd5e1;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 6px;
}

.smart-detail-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

    .smart-detail-heading-row h1 {
        color: #343b45;
        font-size: 38px;
        font-weight: 900;
        margin: 0 0 10px;
    }

.smart-detail-short-desc {
    color: #8a99aa;
    font-size: 16px;
    line-height: 1.55;
    max-width: 680px;
    margin: 0;
}

.smart-edit-product-btn {
    height: 46px;
    min-width: 132px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #fff;
    color: #343b45;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    white-space: nowrap;
}

    .smart-edit-product-btn:hover {
        background: #f8fafc;
        color: #0d6efd;
    }

.smart-detail-rating {
    margin: 22px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

    .smart-detail-rating .stars {
        color: #cbd5e1;
        letter-spacing: 2px;
        font-size: 19px;
    }

    .smart-detail-rating a {
        color: #0d6efd;
        text-decoration: none;
        font-weight: 700;
    }

.smart-detail-buy-box {
    background: #f7f8fb;
    border-radius: 10px;
    padding: 24px 26px 0;
}

.smart-detail-price-box {
    margin-bottom: 20px;
}

.smart-detail-current-price {
    color: #343b45;
    font-size: 38px;
    font-weight: 900;
}

.smart-detail-old-price {
    color: #8a99aa;
    font-size: 16px;
    text-decoration: line-through;
    margin-top: 5px;
}

.smart-detail-save-price {
    color: #16a34a;
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
}

.smart-detail-delivery,
.smart-detail-stock {
    color: #343b45;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.smart-detail-option-block {
    margin-top: 22px;
}

    .smart-detail-option-block > label {
        color: #343b45;
        font-weight: 900;
        display: block;
        margin-bottom: 12px;
    }

.smart-detail-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.smart-detail-color-item {
    cursor: pointer;
}

    .smart-detail-color-item input {
        display: none;
    }

    .smart-detail-color-item span {
        width: 48px;
        height: 48px;
        border-radius: 7px;
        border: 2px solid #dbe3ec;
        display: block;
        transition: 0.18s ease;
    }

    .smart-detail-color-item input:checked + span {
        border-color: #343b45;
        box-shadow: 0 0 0 3px #fff, 0 0 0 5px #343b45;
    }

.smart-detail-add-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.smart-detail-qty-box {
    height: 58px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: white;
    padding: 6px 10px;
}

    .smart-detail-qty-box label {
        display: block;
        font-size: 12px;
        color: #8a99aa;
        margin-bottom: 2px;
    }

    .smart-detail-qty-box .form-select {
        border: none;
        padding: 0;
        box-shadow: none;
        font-weight: 800;
    }

.smart-detail-add-cart-btn {
    height: 58px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: white;
    font-size: 17px;
    font-weight: 900;
    transition: 0.18s ease;
}

    .smart-detail-add-cart-btn:hover {
        background: #3344b3;
        box-shadow: 0 14px 25px rgba(70, 87, 197, 0.22);
    }

.smart-detail-out-stock-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 8px;
    background: #94a3b8;
    color: white;
    font-weight: 900;
    margin-top: 20px;
}

.smart-detail-action-bar {
    height: 78px;
    margin: 22px -26px 0;
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f7f8fb;
}

    .smart-detail-action-bar button {
        border: none;
        border-right: 1px solid #e5e7eb;
        background: transparent;
        color: #343b45;
        font-size: 19px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

        .smart-detail-action-bar button:last-child {
            border-right: none;
        }

        .smart-detail-action-bar button span {
            font-size: 13px;
        }

        .smart-detail-action-bar button:hover {
            background: #eef2f7;
        }

.smart-detail-tabs-section {
    margin-top: 70px;
    min-height: 300px;
}

.smart-detail-tabs {
    display: flex;
    justify-content: center;
    gap: 28px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 28px;
}

    .smart-detail-tabs button {
        border: none;
        background: transparent;
        padding: 0 0 14px;
        color: #8a99aa;
        font-weight: 900;
        position: relative;
    }

        .smart-detail-tabs button.active {
            color: #343b45;
        }

            .smart-detail-tabs button.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -1px;
                height: 3px;
                background: #f59e0b;
            }

.smart-detail-tab-content {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

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

.smart-feature-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

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

    .smart-feature-grid div {
        border: 1px solid #e5e7eb;
        border-radius: 9px;
        padding: 18px;
        background: #f8fafc;
    }

    .smart-feature-grid strong {
        display: block;
        color: #343b45;
        margin-bottom: 6px;
    }

    .smart-feature-grid span {
        color: #64748b;
    }

.smart-review-empty {
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 40px;
    background: #f8fafc;
}

    .smart-review-empty h4 {
        color: #343b45;
        font-weight: 900;
    }

.smart-related-section {
    margin-top: 70px;
}

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

.smart-related-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: 0.18s ease;
}

    .smart-related-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    }

    .smart-related-card img {
        width: 100%;
        height: 190px;
        object-fit: contain;
        padding: 18px;
    }

    .smart-related-card div {
        padding: 16px;
    }

    .smart-related-card small {
        display: block;
        color: #94a3b8;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .smart-related-card a {
        color: #343b45;
        text-decoration: none;
        font-weight: 900;
        display: block;
    }

    .smart-related-card strong {
        display: block;
        margin-top: 10px;
        color: #dc3545;
    }

@media (max-width: 1200px) {
    .smart-detail-main {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .smart-detail-gallery {
        grid-template-columns: 1fr;
    }

    .smart-detail-thumbs {
        display: flex;
        overflow-x: auto;
        order: 2;
    }

    .smart-detail-main-image {
        min-height: 360px;
    }

    .smart-detail-heading-row {
        flex-direction: column;
    }

    .smart-detail-add-row {
        grid-template-columns: 1fr;
    }

    .smart-detail-action-bar {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }

        .smart-detail-action-bar button {
            min-height: 70px;
        }

    .smart-feature-grid,
    .smart-related-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FINAL COMPACT OVERRIDE - GIẢM KÍCH THƯỚC GIAO DIỆN
   Dán ở cuối site.css để ghi đè các block CSS bị chồng trước đó.
   ========================================================= */

/* Chống trang bị tràn ngang do các grid quá lớn */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.container,
.smart-product-detail-page,
.smart-home,
.smart-category-page,
.customer-account-page {
    max-width: 1280px;
}

/* Header shop gọn lại */
.shop-topbar-inner {
    height: 44px !important;
}

.shop-header-inner {
    min-height: 76px !important;
    grid-template-columns: 285px minmax(280px, 1fr) auto !important;
    gap: 22px !important;
}

.shop-brand-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 23px !important;
}

.shop-brand-text strong {
    font-size: 29px !important;
    letter-spacing: -0.8px !important;
}

.smart-search {
    height: 48px !important;
}

.shop-actions {
    gap: 16px !important;
}

.action-icon,
.basket-icon-wrap {
    font-size: 26px !important;
}

.header-action-link small,
.basket-text small {
    font-size: 12px !important;
}

.header-action-link strong,
.basket-text strong {
    font-size: 13px !important;
}

.shop-nav-inner {
    min-height: 54px !important;
    gap: 24px !important;
}

.shop-nav a {
    font-size: 15px !important;
}

/* Product detail: làm lại tỉ lệ giống Smartstore nhưng gọn hơn */
.smart-product-detail-page {
    padding: 24px 12px 48px !important;
}

.smart-detail-breadcrumb {
    margin-bottom: 24px !important;
    font-size: 14px !important;
}

.smart-detail-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 450px) !important;
    gap: 34px !important;
    align-items: start !important;
    overflow: visible !important;
}

.smart-detail-gallery {
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 22px !important;
    min-width: 0 !important;
}

.smart-detail-thumbs {
    gap: 10px !important;
}

.smart-detail-thumb {
    width: 62px !important;
    height: 62px !important;
    border-radius: 7px !important;
    padding: 5px !important;
}

.smart-detail-main-image {
    min-height: 430px !important;
    max-height: 520px !important;
    width: 100% !important;
    overflow: hidden !important;
}

    .smart-detail-main-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 500px !important;
        object-fit: contain !important;
    }

.smart-detail-discount {
    top: 10px !important;
    left: 10px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
}

/* Khung thông tin bên phải */
.smart-detail-info-panel {
    padding-top: 8px !important;
    min-width: 0 !important;
}

.smart-detail-category-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 24px !important;
    margin-bottom: 4px !important;
}

.smart-detail-heading-row {
    gap: 12px !important;
}

    .smart-detail-heading-row h1 {
        font-size: 30px !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
        word-break: break-word !important;
    }

.smart-detail-short-desc {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.smart-edit-product-btn {
    height: 40px !important;
    min-width: 116px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
}

.smart-detail-rating {
    margin: 16px 0 !important;
    gap: 10px !important;
    font-size: 14px !important;
}

    .smart-detail-rating .stars {
        font-size: 16px !important;
    }

.smart-detail-buy-box {
    border-radius: 8px !important;
    padding: 22px 22px 0 !important;
}

.smart-detail-current-price {
    font-size: 32px !important;
    line-height: 1.15 !important;
}

.smart-detail-old-price,
.smart-detail-save-price,
.smart-detail-delivery,
.smart-detail-stock {
    font-size: 14px !important;
}

.smart-detail-price-box {
    margin-bottom: 16px !important;
}

.smart-detail-delivery,
.smart-detail-stock {
    margin-bottom: 12px !important;
}

.smart-detail-option-block {
    margin-top: 18px !important;
}

    .smart-detail-option-block > label {
        margin-bottom: 10px !important;
        font-size: 15px !important;
    }

.smart-detail-color-options {
    gap: 8px !important;
}

.smart-detail-color-item span {
    width: 40px !important;
    height: 40px !important;
    border-radius: 7px !important;
}

.smart-detail-color-item input:checked + span {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #343b45 !important;
}

.smart-detail-add-row {
    grid-template-columns: 105px minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-top: 18px !important;
}

.smart-detail-qty-box,
.smart-detail-add-cart-btn {
    height: 52px !important;
}

.smart-detail-add-cart-btn {
    font-size: 16px !important;
}

.smart-detail-action-bar {
    height: 68px !important;
    margin: 18px -22px 0 !important;
}

    .smart-detail-action-bar button {
        font-size: 17px !important;
    }

        .smart-detail-action-bar button span {
            font-size: 12px !important;
        }

/* Tabs bên dưới gọn hơn */
.smart-detail-tabs-section {
    margin-top: 54px !important;
    min-height: 220px !important;
}

.smart-detail-tabs {
    margin-bottom: 22px !important;
    gap: 24px !important;
}

    .smart-detail-tabs button {
        padding-bottom: 12px !important;
        font-size: 15px !important;
    }

.smart-detail-tab-content {
    font-size: 15px !important;
    line-height: 1.7 !important;
    max-width: 850px !important;
}

/* Sản phẩm liên quan không quá to */
.smart-related-section {
    margin-top: 50px !important;
}

.smart-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.smart-related-card img {
    height: 160px !important;
    padding: 14px !important;
}

/* Product card ở danh mục: giảm chiều cao, tránh hover làm vỡ layout */
.smart-category-product-card {
    min-width: 0 !important;
}

.smart-grid-product-image,
.product-image-link {
    height: 210px !important;
}

    .smart-grid-product-image img,
    .product-image-link img {
        max-height: 200px !important;
        object-fit: contain !important;
    }

.smart-product-hover-preview {
    font-size: 14px !important;
}

/* Mũi tên lọc gọn hơn */
.smart-filter-collapse {
    min-height: 30px !important;
    padding-right: 36px !important;
    font-size: 17px !important;
}

    .smart-filter-collapse::after {
        width: 26px !important;
        height: 26px !important;
        border-radius: 6px !important;
    }

    .smart-filter-collapse::before {
        right: 9px !important;
        width: 8px !important;
        height: 8px !important;
    }

/* Responsive */
@media (max-width: 1200px) {
    .shop-header-inner {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 14px 0 !important;
    }

    .shop-actions {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .smart-detail-main {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
    }

    .smart-detail-info-panel {
        max-width: 720px !important;
    }

    .smart-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .smart-detail-gallery {
        grid-template-columns: 1fr !important;
    }

    .smart-detail-thumbs {
        display: flex !important;
        order: 2 !important;
        overflow-x: auto !important;
    }

    .smart-detail-main-image {
        min-height: 320px !important;
        max-height: 380px !important;
    }

        .smart-detail-main-image img {
            max-height: 360px !important;
        }

    .smart-detail-heading-row {
        flex-direction: column !important;
    }

        .smart-detail-heading-row h1 {
            font-size: 25px !important;
        }

    .smart-detail-current-price {
        font-size: 27px !important;
    }

    .smart-detail-add-row {
        grid-template-columns: 1fr !important;
    }

    .smart-detail-action-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        height: auto !important;
    }

        .smart-detail-action-bar button {
            min-height: 62px !important;
        }

    .smart-related-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ===== SHOP DRAWER RIGHT PANEL ===== */

.drawer-open {
    overflow: hidden;
}

.shop-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2000;
}

.shop-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 430px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.22);
}

.shop-drawer-tabs {
    height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e5e7eb;
}

.shop-drawer-tab {
    border: none;
    background: white;
    color: #8a99aa;
    font-weight: 900;
    position: relative;
}

    .shop-drawer-tab.active {
        color: #1f2937;
    }

        .shop-drawer-tab.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 3px;
            background: #f59e0b;
        }

    .shop-drawer-tab span {
        min-width: 19px;
        height: 19px;
        padding: 0 6px;
        margin-left: 4px;
        border-radius: 999px;
        background: #f59e0b;
        color: white;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.shop-drawer-close {
    position: absolute;
    top: 70px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 34px;
    color: #6b7280;
    line-height: 1;
}

.shop-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 18px 100px;
}

.drawer-product-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f2;
}

    .drawer-product-item img {
        width: 86px;
        height: 86px;
        object-fit: contain;
        border-radius: 8px;
        background: #f8fafc;
    }

.drawer-product-info strong {
    display: block;
    color: #1f2937;
    font-weight: 900;
    margin-bottom: 6px;
}

.drawer-product-info p {
    color: #8a99aa;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drawer-product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

    .drawer-product-row span {
        color: #6b7280;
        font-size: 14px;
    }

    .drawer-product-row b {
        color: #1f2937;
        font-size: 17px;
    }

.drawer-remove-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

    .drawer-remove-btn:hover {
        background: #fff1f2;
        border-color: #fecdd3;
    }

.drawer-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
}

    .drawer-empty div {
        font-size: 58px;
        opacity: 0.45;
        margin-bottom: 16px;
    }

    .drawer-empty h3 {
        color: #343a40;
        font-weight: 900;
        margin-bottom: 10px;
    }

    .drawer-empty p {
        max-width: 300px;
        line-height: 1.5;
    }

.shop-drawer-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #43b653;
    color: white;
    padding: 18px;
}

.drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

    .drawer-subtotal span {
        font-size: 13px;
        text-transform: uppercase;
    }

    .drawer-subtotal strong {
        font-size: 24px;
        font-weight: 900;
    }

.drawer-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.smart-detail-action-link {
    border: none;
    border-right: 1px solid #e5e7eb;
    background: transparent;
    color: #343b45;
    font-size: 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

    .smart-detail-action-link span {
        font-size: 13px;
    }

    .smart-detail-action-link:hover {
        background: #eef2f7;
        color: #0d6efd;
    }

@media (max-width: 576px) {
    .shop-drawer-panel {
        width: 100%;
    }
}
/* =========================================================
   COMPACT SMARTSTORE PRODUCT DETAIL
   ========================================================= */

.product-detail-smartstore-page {
    padding: 26px 12px 54px;
}

.product-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #94a3b8;
    font-size: 14px;
}

    .product-detail-breadcrumb a {
        color: #64748b;
        font-weight: 700;
        text-decoration: none;
    }

        .product-detail-breadcrumb a:hover {
            color: #0d6efd;
        }

.product-detail-smart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 34px;
    align-items: start;
}

.product-detail-gallery {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 22px;
}

.product-detail-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-thumb {
    width: 66px;
    height: 66px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    cursor: pointer;
    transition: 0.18s ease;
}

    .product-detail-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-detail-thumb.active,
    .product-detail-thumb:hover {
        border-color: #222831;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    }

.product-detail-image-box {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-detail-image-box img {
        width: 100%;
        max-height: 500px;
        object-fit: contain;
    }

.product-detail-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #f43f5e;
    color: #fff;
    border-radius: 8px;
    padding: 8px 13px;
    font-weight: 900;
}

.product-detail-right {
    padding-top: 8px;
}

.product-detail-brand-icon {
    color: #cbd5e1;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.product-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .product-detail-title-row h1 {
        margin: 0;
        color: #303844;
        font-size: 30px;
        font-weight: 900;
        line-height: 1.2;
    }

    .product-detail-title-row p {
        margin: 8px 0 0;
        color: #8a99aa;
        line-height: 1.45;
        font-size: 15px;
    }

.product-detail-edit-btn {
    min-width: 118px;
    height: 40px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #fff;
    color: #303844;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

    .product-detail-edit-btn:hover {
        color: #0d6efd;
        background: #f8fafc;
    }

.product-detail-rating {
    margin: 18px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .product-detail-rating span {
        color: #cbd5e1;
        letter-spacing: 2px;
        font-size: 17px;
    }

    .product-detail-rating a {
        color: #0d6efd;
        font-weight: 800;
        text-decoration: none;
        font-size: 14px;
    }

.product-detail-buy-card {
    background: #f7f8fb;
    border-radius: 10px;
    overflow: hidden;
}

.product-detail-price {
    padding: 22px 24px 14px;
}

    .product-detail-price strong {
        display: block;
        color: #303844;
        font-size: 32px;
        font-weight: 900;
        line-height: 1.15;
    }

    .product-detail-price small {
        display: block;
        color: #8a99aa;
        text-decoration: line-through;
        margin-top: 8px;
    }

    .product-detail-price b {
        display: block;
        color: #16a34a;
        margin-top: 5px;
        font-size: 14px;
    }

.product-detail-meta {
    padding: 0 24px 8px;
}

    .product-detail-meta div {
        display: flex;
        gap: 8px;
        margin-bottom: 11px;
        color: #303844;
        font-size: 15px;
    }

    .product-detail-meta strong {
        min-width: 84px;
    }

.product-detail-option {
    padding: 8px 24px 0;
}

    .product-detail-option > label {
        display: block;
        color: #303844;
        font-weight: 900;
        margin-bottom: 10px;
    }

.product-detail-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-detail-color-item {
    cursor: pointer;
}

    .product-detail-color-item input {
        display: none;
    }

    .product-detail-color-item span {
        width: 38px;
        height: 38px;
        border-radius: 7px;
        border: 2px solid #dbe3ec;
        display: block;
        transition: 0.16s ease;
    }

    .product-detail-color-item input:checked + span {
        border-color: #303844;
        box-shadow: 0 0 0 3px #fff, 0 0 0 5px #303844;
    }

.product-detail-add-row {
    padding: 20px 24px 18px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
}

.product-detail-qty {
    height: 54px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    padding: 6px 10px;
}

    .product-detail-qty label {
        display: block;
        color: #94a3b8;
        font-size: 12px;
        margin-bottom: 1px;
    }

    .product-detail-qty select {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        color: #303844;
        font-weight: 900;
        font-size: 16px;
    }

.product-detail-add-cart {
    height: 54px;
    border: none;
    border-radius: 8px;
    background: #4657c5;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    transition: 0.18s ease;
}

    .product-detail-add-cart:hover {
        background: #3344b3;
        box-shadow: 0 12px 24px rgba(70, 87, 197, 0.22);
    }

    .product-detail-add-cart.disabled {
        width: calc(100% - 48px);
        margin: 18px 24px;
        background: #94a3b8;
    }

.product-detail-action-bar {
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 72px;
}

    .product-detail-action-bar button,
    .product-detail-action-bar a {
        border: none;
        border-right: 1px solid #e5e7eb;
        background: transparent;
        color: #303844;
        text-decoration: none;
        font-size: 18px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        transition: 0.16s ease;
    }

        .product-detail-action-bar button:last-child,
        .product-detail-action-bar a:last-child {
            border-right: none;
        }

    .product-detail-action-bar span {
        font-size: 13px;
    }

    .product-detail-action-bar button:hover,
    .product-detail-action-bar a:hover {
        background: #eef2f7;
        color: #0d6efd;
    }

.product-detail-tabs-wrapper {
    margin-top: 56px;
    min-height: 240px;
}

.product-detail-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

    .product-detail-tabs button {
        border: none;
        background: transparent;
        padding: 0 0 13px;
        color: #94a3b8;
        font-weight: 900;
        position: relative;
    }

        .product-detail-tabs button.active {
            color: #303844;
        }

            .product-detail-tabs button.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -1px;
                height: 3px;
                background: #f59e0b;
            }

.product-detail-tab-content {
    display: none;
    max-width: 850px;
    margin: 0 auto;
    color: #4b5563;
    line-height: 1.75;
    font-size: 16px;
}

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

.product-detail-empty-review {
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 34px;
    background: #f8fafc;
}

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

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

    .product-detail-thumbs {
        flex-direction: row;
        overflow-x: auto;
        order: 2;
    }

    .product-detail-image-box {
        min-height: 320px;
    }

    .product-detail-title-row {
        flex-direction: column;
    }

    .product-detail-add-row {
        grid-template-columns: 1fr;
    }

    .product-detail-action-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================================
   MODERN SHOP DRAWER OVERRIDE
   ========================================================= */

.drawer-open {
    overflow: hidden;
}

.shop-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
    z-index: 3000;
}

.shop-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 470px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 3001;
    display: flex;
    flex-direction: column;
    box-shadow: -24px 0 55px rgba(15, 23, 42, 0.22);
    animation: drawerSlideIn 0.22s ease-out;
}

@keyframes drawerSlideIn {
    from {
        transform: translateX(32px);
        opacity: 0.6;
    }

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

.shop-drawer-header {
    position: relative;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
}

.shop-drawer-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 68px;
    padding-right: 48px;
}

.shop-drawer-tab {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 900;
    position: relative;
    transition: 0.18s ease;
}

    .shop-drawer-tab.active {
        color: #172033;
    }

        .shop-drawer-tab.active::after {
            content: "";
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: -1px;
            height: 3px;
            border-radius: 999px;
            background: #f59e0b;
        }

    .shop-drawer-tab span {
        min-width: 21px;
        height: 21px;
        padding: 0 6px;
        margin-left: 5px;
        border-radius: 999px;
        background: #f59e0b;
        color: #fff;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.shop-drawer-close {
    position: absolute;
    top: 17px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
}

    .shop-drawer-close:hover {
        background: #fee2e2;
        color: #dc2626;
    }

.shop-drawer-alert {
    display: grid;
    grid-template-columns: 30px 1fr 28px;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #dcfce7;
    border-bottom: 1px solid #bbf7d0;
    color: #166534;
}

    .shop-drawer-alert span {
        width: 26px;
        height: 26px;
        border-radius: 999px;
        background: #22c55e;
        color: #fff;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-drawer-alert p {
        margin: 0;
        font-weight: 700;
        line-height: 1.35;
    }

    .shop-drawer-alert button {
        border: none;
        background: transparent;
        color: #166534;
        font-size: 24px;
        line-height: 1;
    }

.shop-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 18px 130px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.drawer-product-card {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 14px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: 0.18s ease;
}

    .drawer-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    }

.drawer-product-image {
    width: 94px;
    height: 94px;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .drawer-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.drawer-product-content {
    min-width: 0;
}

.drawer-product-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .drawer-product-top h4 {
        margin: 0 0 4px;
        color: #172033;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.25;
    }

    .drawer-product-top p {
        margin: 0;
        color: #94a3b8;
        font-size: 13px;
    }

    .drawer-product-top strong {
        color: #e11d48;
        font-size: 15px;
        font-weight: 900;
        white-space: nowrap;
    }

.drawer-product-meta {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.drawer-product-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-qty-control {
    height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #f8fafc;
    overflow: hidden;
}

    .drawer-qty-control button {
        width: 34px;
        height: 34px;
        border: none;
        background: transparent;
        color: #172033;
        font-size: 18px;
        font-weight: 900;
    }

        .drawer-qty-control button:hover {
            background: #e2e8f0;
        }

    .drawer-qty-control span {
        min-width: 34px;
        text-align: center;
        font-weight: 900;
        color: #172033;
    }

.drawer-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
}

    .drawer-icon-btn:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #2563eb;
    }

    .drawer-icon-btn.danger:hover {
        background: #fff1f2;
        border-color: #fecdd3;
        color: #e11d48;
    }

.drawer-main-small-btn {
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: #4657c5;
    color: white;
    font-weight: 900;
}

    .drawer-main-small-btn:hover {
        background: #3344b3;
    }

.drawer-empty-state {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
}

.drawer-empty-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 18px;
}

.drawer-empty-state h3 {
    color: #172033;
    font-size: 23px;
    font-weight: 900;
    margin-bottom: 8px;
}

.drawer-empty-state p {
    max-width: 310px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.drawer-empty-state a {
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #4657c5;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 900;
}

.shop-drawer-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.12);
}

.drawer-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .drawer-total-row span {
        text-transform: uppercase;
        font-size: 13px;
        font-weight: 800;
        opacity: 0.9;
    }

    .drawer-total-row strong {
        font-size: 27px;
        font-weight: 950;
        white-space: nowrap;
    }

.drawer-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.drawer-outline-btn,
.drawer-checkout-btn {
    height: 46px;
    border-radius: 10px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: white;
    background: transparent;
}

    .drawer-outline-btn:hover {
        color: white;
        background: rgba(255, 255, 255, 0.14);
    }

.drawer-checkout-btn {
    border: 1px solid white;
    background: white;
    color: #166534;
}

    .drawer-checkout-btn:hover {
        color: #14532d;
        background: #f8fafc;
    }

    .drawer-checkout-btn.full {
        width: 100%;
    }

@media (max-width: 576px) {
    .shop-drawer-panel {
        width: 100%;
    }

    .drawer-product-card {
        grid-template-columns: 80px 1fr;
    }

    .drawer-product-image {
        width: 80px;
        height: 80px;
    }
}

.mini-toast-notification {
    position: fixed;
    top: 92px;
    right: 26px;
    z-index: 5000;
    min-width: 320px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #16834a;
    color: white;
    display: grid;
    grid-template-columns: 28px 1fr 26px;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
}

    .mini-toast-notification.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mini-toast-notification span {
        width: 24px;
        height: 24px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
    }

    .mini-toast-notification p {
        margin: 0;
        font-weight: 700;
        line-height: 1.35;
    }

    .mini-toast-notification button {
        border: none;
        background: transparent;
        color: white;
        font-size: 24px;
        line-height: 1;
    }
/* =========================================================
   COMPARE PRODUCTS PAGE
   ========================================================= */

.compare-page {
    padding-top: 34px;
    padding-bottom: 70px;
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

    .compare-header h1 {
        margin: 0;
        font-size: 42px;
        font-weight: 950;
        color: #2f3745;
        letter-spacing: -0.8px;
    }

    .compare-header p {
        margin: 8px 0 0;
        color: #8a99ad;
        font-size: 16px;
    }

.compare-clear-btn {
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #ef4444;
    color: white;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
    transition: 0.18s ease;
}

    .compare-clear-btn:hover {
        background: #dc2626;
        transform: translateY(-1px);
    }

.compare-empty {
    min-height: 420px;
    border: 1px solid #e5eaf0;
    border-radius: 22px;
    background: white;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a99ad;
    text-align: center;
}

.compare-empty-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin-bottom: 18px;
}

.compare-empty h3 {
    color: #2f3745;
    font-size: 26px;
    font-weight: 950;
    margin-bottom: 8px;
}

.compare-empty p {
    margin-bottom: 20px;
}

.compare-empty a {
    height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    background: #4657c5;
    color: white;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compare-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.compare-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

    .compare-table th,
    .compare-table td {
        border-right: 1px solid #e5eaf0;
        border-bottom: 1px solid #e5eaf0;
        padding: 18px;
        vertical-align: top;
    }

    .compare-table th {
        width: 210px;
        background: #f8fafc;
        color: #2f3745;
        font-size: 15px;
        font-weight: 950;
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .compare-table td {
        width: 280px;
        color: #334155;
        font-size: 15px;
        line-height: 1.5;
    }

    .compare-table tr:last-child th,
    .compare-table tr:last-child td {
        border-bottom: none;
    }

    .compare-table tr th:last-child,
    .compare-table tr td:last-child {
        border-right: none;
    }

.compare-product-row td {
    padding: 0;
    background: #fff;
}

.compare-product-card {
    position: relative;
    min-height: 410px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.compare-product-actions-top {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

    .compare-product-actions-top form {
        margin-left: auto;
    }

.compare-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
}

    .compare-icon-btn:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #2563eb;
    }

    .compare-icon-btn.danger:hover {
        background: #fff1f2;
        border-color: #fecdd3;
        color: #e11d48;
    }

.compare-image-link {
    height: 210px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .compare-image-link img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: 0.25s ease;
    }

    .compare-image-link:hover img {
        transform: scale(1.04);
    }

.compare-discount-badge {
    position: absolute;
    left: 22px;
    top: 244px;
    min-width: 52px;
    height: 28px;
    padding: 0 9px;
    border-radius: 7px;
    background: #ef4444;
    color: white;
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compare-product-name {
    margin-top: 6px;
    color: #0b63b6;
    font-size: 18px;
    font-weight: 950;
    text-decoration: none;
    line-height: 1.25;
}

    .compare-product-name:hover {
        color: #084f91;
        text-decoration: underline;
    }

.compare-product-price {
    margin-top: 12px;
    color: #172033;
    font-size: 20px;
    font-weight: 950;
}

.compare-product-old-price {
    margin-top: 3px;
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 14px;
}

.compare-add-cart-btn {
    margin-top: auto;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #4657c5;
    color: white;
    font-weight: 950;
    transition: 0.18s ease;
}

    .compare-add-cart-btn:hover {
        background: #3344b3;
        transform: translateY(-1px);
    }

.compare-price-main {
    color: #e11d48;
    font-size: 18px;
}

.compare-old-price {
    color: #94a3b8;
    text-decoration: line-through;
}

.compare-save-price {
    color: #16a34a;
    font-weight: 950;
}

.compare-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .compare-color-list span {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        border: 1px solid #dbe3ec;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
    }

.compare-stock {
    font-weight: 900;
}

    .compare-stock.in-stock {
        color: #16a34a;
    }

    .compare-stock.out-stock {
        color: #e11d48;
    }

.compare-check {
    color: #16a34a;
    font-size: 22px;
    font-weight: 950;
}

.compare-x {
    color: #94a3b8;
    font-size: 22px;
    font-weight: 950;
}

@media (max-width: 768px) {
    .compare-header {
        flex-direction: column;
    }

        .compare-header h1 {
            font-size: 34px;
        }

    .compare-table th {
        width: 170px;
    }

    .compare-table td {
        width: 250px;
    }
}
/* Wishlist page */

.wishlist-page {
    padding-top: 36px;
    padding-bottom: 70px;
}

.wishlist-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

    .wishlist-header h1 {
        margin: 0;
        font-size: 42px;
        font-weight: 950;
        color: #2f3745;
    }

    .wishlist-header p {
        margin: 8px 0 0;
        color: #8a99ad;
    }

.wishlist-clear-btn {
    border: none;
    border-radius: 10px;
    height: 46px;
    padding: 0 20px;
    background: #ef4444;
    color: white;
    font-weight: 900;
}

.wishlist-empty-box {
    min-height: 420px;
    border: 1px solid #e5eaf0;
    border-radius: 22px;
    background: white;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a99ad;
    text-align: center;
}

.wishlist-empty-icon {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #cbd5e1;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.wishlist-empty-box h3 {
    color: #2f3745;
    font-size: 26px;
    font-weight: 950;
}

.wishlist-empty-box a {
    margin-top: 12px;
    height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    background: #4657c5;
    color: white;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wishlist-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wishlist-item {
    display: grid;
    grid-template-columns: 150px 1fr 240px;
    gap: 24px;
    padding: 22px;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    background: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.wishlist-item-image {
    width: 150px;
    height: 150px;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .wishlist-item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.wishlist-item-name {
    color: #172033;
    font-size: 22px;
    font-weight: 950;
    text-decoration: none;
}

    .wishlist-item-name:hover {
        color: #0d6efd;
    }

.wishlist-item-category {
    margin-top: 4px;
    color: #8a99ad;
    font-weight: 700;
}

.wishlist-item-desc {
    margin-top: 12px;
    color: #64748b;
    line-height: 1.5;
}

.wishlist-item-stock {
    margin-top: 12px;
    font-weight: 850;
}

    .wishlist-item-stock .in-stock {
        color: #16a34a;
    }

    .wishlist-item-stock .out-stock {
        color: #ef4444;
    }

.wishlist-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wishlist-item-price {
    color: #e11d48;
    font-size: 24px;
    font-weight: 950;
}

.wishlist-item-old-price {
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 4px;
}

.wishlist-item-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.wishlist-add-cart,
.wishlist-remove-btn {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    font-weight: 900;
}

.wishlist-add-cart {
    border: none;
    background: #4657c5;
    color: white;
}

.wishlist-remove-btn {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

/* Drawer footer buttons */

.shop-drawer-footer {
    padding: 18px;
    border-top: 1px solid #e5eaf0;
    background: #22c55e;
    display: flex;
    gap: 12px;
}

.drawer-footer-two-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.shop-drawer-main-btn,
.shop-drawer-secondary-btn {
    height: 50px;
    border-radius: 12px;
    font-weight: 950;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-drawer-main-btn {
    border: 1px solid rgba(255,255,255,0.6);
    background: white;
    color: #166534;
}

.shop-drawer-secondary-btn {
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: white;
}

    .shop-drawer-secondary-btn:hover,
    .shop-drawer-main-btn:hover {
        opacity: 0.9;
    }

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

    .wishlist-item-side {
        align-items: stretch;
    }
}
/* =========================================================
   FIX SHOP DRAWER FOOTER LAYOUT
   ========================================================= */

.shop-drawer-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 18px 20px 20px;
    background: #22c55e;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 -14px 35px rgba(15, 23, 42, 0.08);
    z-index: 5;
}

/* Tổng tiền trong giỏ hàng */
.drawer-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #ffffff;
}

    .drawer-total-row span {
        font-size: 14px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .drawer-total-row strong {
        font-size: 26px;
        font-weight: 950;
        line-height: 1;
        color: #ffffff;
        text-align: right;
        white-space: nowrap;
    }

/* Khung chứa nút footer */
.drawer-footer-actions {
    width: 100%;
    display: grid;
    gap: 12px;
}

/* Giỏ hàng: 2 nút ngang nhau */
.drawer-cart-actions {
    grid-template-columns: 1fr 1fr;
}

/* Yêu thích: 1 nút dài hết thanh xanh */
.drawer-single-action {
    grid-template-columns: 1fr;
}

/* So sánh: 2 nút ngang nhau */
.drawer-compare-actions {
    grid-template-columns: 1fr 1fr;
}

/* Nút thường: cùng tone xanh footer, chữ đen */
.drawer-action-btn {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    color: #064e3b;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    cursor: pointer;
    transition: 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

    .drawer-action-btn:hover {
        background: rgba(255, 255, 255, 0.36);
        color: #052e16;
        transform: translateY(-1px);
        text-decoration: none;
    }

/* Nút thanh toán: duy nhất màu trắng */
.drawer-checkout-btn {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid #ffffff;
    border-radius: 14px;
    background: #ffffff;
    color: #064e3b;
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    transition: 0.18s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

    .drawer-checkout-btn:hover {
        background: #f8fafc;
        color: #052e16;
        transform: translateY(-1px);
        text-decoration: none;
    }

/* Tránh chữ bị vỡ dòng xấu trong footer */
.drawer-action-btn.full {
    width: 100%;
}

/* Responsive nhỏ hơn */
@media (max-width: 520px) {
    .shop-drawer-footer {
        padding: 16px;
    }

    .drawer-total-row strong {
        font-size: 22px;
    }

    .drawer-action-btn,
    .drawer-checkout-btn {
        min-height: 48px;
        font-size: 15px;
        border-radius: 12px;
    }
}
/* =========================================================
   DRAWER FOOTER - CART 3 COLUMNS FIX
   ========================================================= */

.shop-drawer-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 16px 18px;
    background: #22c55e;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 -14px 35px rgba(15, 23, 42, 0.08);
    z-index: 5;
}

    /* Riêng tab giỏ hàng: Tổng tiền + Xem giỏ hàng + Thanh toán nằm ngang */
    .shop-drawer-footer.cart-footer {
        display: grid !important;
        grid-template-columns: 1.15fr 1fr 1fr !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

/* Tổng tiền là 1 khối riêng, chữ và giá tách 2 tầng */
.cart-footer .drawer-total-row {
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 14px !important;
    color: #ffffff !important;
}

    /* Chữ Tổng tiền nhỏ, nằm trên */
    .cart-footer .drawer-total-row span {
        font-size: 12px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.35px !important;
        white-space: nowrap !important;
    }

    /* Giá tiền nằm dưới, nhỏ vừa lại */
    .cart-footer .drawer-total-row strong {
        font-size: 22px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
    }

/* 2 nút bên cạnh tổng tiền */
.cart-footer .drawer-footer-actions {
    width: 100% !important;
    height: 100% !important;
    display: contents !important;
}

/* Nút thường: Xem giỏ hàng */
.cart-footer .drawer-action-btn {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #064e3b !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Nút thanh toán: màu trắng */
.cart-footer .drawer-checkout-btn {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    border: 1px solid #ffffff !important;
    background: #ffffff !important;
    color: #064e3b !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Wishlist: 1 nút dài full footer */
.shop-drawer-footer.wishlist-footer .drawer-footer-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
}

.shop-drawer-footer.wishlist-footer .drawer-action-btn,
.shop-drawer-footer.wishlist-footer .drawer-checkout-btn {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #064e3b !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Compare: 2 nút ngang full footer */
.shop-drawer-footer.compare-footer .drawer-footer-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.shop-drawer-footer.compare-footer .drawer-action-btn {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #064e3b !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.shop-drawer-footer a:hover,
.shop-drawer-footer button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}
/* =========================================================
   FIX USER DROPDOWN
   ========================================================= */

.ss-user-dropdown {
    position: relative;
}

/* Nút email phía trên */
.ss-user-trigger {
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #172033;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 750;
    cursor: pointer;
    transition: 0.18s ease;
}

    .ss-user-trigger:hover {
        background: #f1f5f9;
    }

    .ss-user-trigger[aria-expanded="true"] {
        background: #f1f5f9;
        font-weight: 900;
    }

.ss-user-trigger-icon {
    color: #4c1d95;
    font-size: 18px;
    line-height: 1;
}

.ss-user-trigger-text {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.ss-user-trigger-arrow {
    color: #64748b;
    font-size: 15px;
    transform: translateY(-1px);
}

/* Khung dropdown */
.ss-user-menu {
    width: 292px;
    padding: 10px;
    margin-top: 10px !important;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

    /* Item trong dropdown */
    .ss-user-menu .ss-user-menu-item {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 11px;
        color: #4b5563;
        background: transparent;
        display: flex;
        align-items: center;
        gap: 13px;
        font-size: 15px;
        font-weight: 650;
        text-decoration: none;
        transition: 0.15s ease;
    }

        /* Không cho Bootstrap làm nền xanh khi click */
        .ss-user-menu .ss-user-menu-item:active,
        .ss-user-menu .ss-user-menu-item:focus {
            background: #f1f5f9;
            color: #111827;
        }

        /* Chỉ hover/click mới nổi lên */
        .ss-user-menu .ss-user-menu-item:hover {
            background: #f1f5f9;
            color: #111827;
        }

            .ss-user-menu .ss-user-menu-item:hover .ss-menu-text {
                font-weight: 800;
            }

.ss-menu-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6d28d9;
    font-size: 18px;
    line-height: 1;
}

.ss-menu-text {
    flex: 1;
    line-height: 1.2;
}

.ss-user-divider {
    margin: 9px 4px;
    border-color: #e5eaf0;
}

.ss-logout-form {
    margin: 0;
}

.ss-logout-button {
    width: 100%;
    border: none;
    text-align: left;
}

/* Link đăng nhập khi chưa login */
.ss-login-link {
    height: 42px;
    padding: 0 13px;
    border-radius: 11px;
    color: #172033;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.18s ease;
}

    .ss-login-link:hover {
        background: #f1f5f9;
        color: #111827;
        text-decoration: none;
    }
/* =========================================================
   FIX PRODUCT INDEX ACTION BUTTONS
   ========================================================= */

.smart-add-cart-btn {
    border: none;
    cursor: pointer;
}

.smart-list-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.smart-list-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #334155;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
}

    .smart-list-icon-btn:hover {
        background: #f1f5f9;
        color: #4657c5;
        text-decoration: none;
    }

.smart-grid-actions button,
.smart-grid-actions a {
    min-height: 54px;
    border: none;
    border-right: 1px solid #e5eaf0;
    background: #ffffff;
    color: #334155;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
}

    .smart-grid-actions button:first-child {
        background: #4657c5;
        color: #ffffff;
    }

    .smart-grid-actions button:hover,
    .smart-grid-actions a:hover {
        background: #f1f5f9;
        color: #4657c5;
        text-decoration: none;
    }

    .smart-grid-actions button:first-child:hover {
        background: #3546b0;
        color: #ffffff;
    }

    .smart-grid-actions button:disabled {
        cursor: not-allowed;
        opacity: 0.45;
    }

.smart-hover-product-card {
    position: relative;
}

/* Đảm bảo phần xem trước chỉ hiện khi rê chuột */
.smart-product-hover-preview {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.18s ease;
}

.smart-hover-product-card:hover .smart-product-hover-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
/* =========================================================
   FIX PRODUCT INDEX ACTION BUTTONS
   ========================================================= */

.smart-add-cart-btn {
    border: none;
    cursor: pointer;
}

.smart-list-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.smart-list-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #334155;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
}

    .smart-list-icon-btn:hover {
        background: #f1f5f9;
        color: #4657c5;
        text-decoration: none;
    }

.smart-grid-actions button,
.smart-grid-actions a {
    min-height: 54px;
    border: none;
    border-right: 1px solid #e5eaf0;
    background: #ffffff;
    color: #334155;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
}

    .smart-grid-actions button:first-child {
        background: #4657c5;
        color: #ffffff;
    }

    .smart-grid-actions button:hover,
    .smart-grid-actions a:hover {
        background: #f1f5f9;
        color: #4657c5;
        text-decoration: none;
    }

    .smart-grid-actions button:first-child:hover {
        background: #3546b0;
        color: #ffffff;
    }

    .smart-grid-actions button:disabled {
        cursor: not-allowed;
        opacity: 0.45;
    }

.smart-hover-product-card {
    position: relative;
}

/* Đảm bảo phần xem trước chỉ hiện khi rê chuột */
.smart-product-hover-preview {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.18s ease;
}

.smart-hover-product-card:hover .smart-product-hover-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
/* =========================================================
   FIX HOME PAGE BROKEN BY PRODUCT CARD CSS
   ========================================================= */

/* Khóa lại layout sản phẩm nổi bật ở trang chủ */
.smart-home .featured-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 26px !important;
    align-items: stretch !important;
}

/* Không cho ảnh trang chủ phóng to tràn màn hình */
.smart-home .smart-product-card,
.smart-home .smart-category-product-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    position: relative !important;
}

    /* Khung ảnh sản phẩm ở trang chủ */
    .smart-home .product-image-link,
    .smart-home .smart-product-card > a,
    .smart-home .smart-grid-product-image {
        width: 100% !important;
        height: 210px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

        /* Ảnh ở trang chủ không được vượt khung */
        .smart-home .product-image-link img,
        .smart-home .smart-product-card img,
        .smart-home .smart-category-product-card img {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            max-height: 210px !important;
            object-fit: contain !important;
            display: block !important;
        }

/* =========================================================
   FINAL HOME PRODUCT CARD LAYOUT
   Ảnh không phóng to + preview chỉ hiện khi hover
   ========================================================= */

body.home-index .smart-home .featured-grid,
.smart-home .featured-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
}

    /* Card chính */
    body.home-index .smart-home .featured-grid > *,
    .smart-home .featured-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

body.home-index .smart-category-product-card,
body.home-index .smart-product-card,
body.home-index .smart-hover-product-card,
.smart-home .smart-category-product-card,
.smart-home .smart-product-card,
.smart-home .smart-hover-product-card {
    position: relative !important;
    width: 100% !important;
    min-height: 430px !important;
    height: auto !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e5eaf0 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
    transition: 0.2s ease !important;
}

    body.home-index .smart-category-product-card:hover,
    body.home-index .smart-product-card:hover,
    body.home-index .smart-hover-product-card:hover,
    .smart-home .smart-category-product-card:hover,
    .smart-home .smart-product-card:hover,
    .smart-home .smart-hover-product-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14) !important;
    }

    /* Khung ảnh */
    body.home-index .smart-grid-product-image,
    body.home-index .product-image-link,
    body.home-index .smart-product-card > a:first-child,
    .smart-home .smart-grid-product-image,
    .smart-home .product-image-link,
    .smart-home .smart-product-card > a:first-child {
        position: relative !important;
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

/* Ảnh sản phẩm không được phóng to */
body.home-index .featured-grid img,
.smart-home .featured-grid img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 215px !important;
    object-fit: contain !important;
    transform: none !important;
    display: block !important;
}

/* Nội dung bình thường của card */
body.home-index .smart-grid-basic-body,
body.home-index .smart-product-info,
.smart-home .smart-grid-basic-body,
.smart-home .smart-product-info {
    position: relative !important;
    z-index: 2 !important;
    padding: 18px !important;
    background: #ffffff !important;
    color: #172033 !important;
}

/* Chữ danh mục */
body.home-index .smart-product-category,
.smart-home .smart-product-category {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
}

/* Tên sản phẩm */
body.home-index .smart-grid-product-name,
body.home-index .smart-product-name,
body.home-index .smart-list-product-name,
.smart-home .smart-grid-product-name,
.smart-home .smart-product-name,
.smart-home .smart-list-product-name {
    display: block !important;
    color: #172033 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    margin-bottom: 8px !important;
}

    body.home-index .smart-grid-product-name:hover,
    body.home-index .smart-product-name:hover,
    .smart-home .smart-grid-product-name:hover,
    .smart-home .smart-product-name:hover {
        color: #0d6efd !important;
    }

/* Mô tả ngắn */
body.home-index .smart-grid-basic-body p,
body.home-index .smart-product-info p,
.smart-home .smart-grid-basic-body p,
.smart-home .smart-product-info p {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
}

/* Giá */
body.home-index .smart-grid-price strong,
body.home-index .smart-product-price strong,
.smart-home .smart-grid-price strong,
.smart-home .smart-product-price strong {
    color: #172033 !important;
    font-size: 19px !important;
    font-weight: 950 !important;
}

body.home-index .smart-grid-price small,
body.home-index .smart-product-price small,
.smart-home .smart-grid-price small,
.smart-home .smart-product-price small {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    text-decoration: line-through !important;
    margin-top: 3px !important;
}

/* Badge giảm giá */
body.home-index .smart-discount-badge,
body.home-index .discount-badge,
.smart-home .smart-discount-badge,
.smart-home .discount-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
    background: #ff405f !important;
    color: #ffffff !important;
    padding: 6px 11px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

/* Badge nổi bật */
body.home-index .smart-featured-badge,
body.home-index .deal-badge,
.smart-home .smart-featured-badge,
.smart-home .deal-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    background: #0f2367 !important;
    color: #ffffff !important;
    padding: 6px 11px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

/* =========================================================
   QUAN TRỌNG:
   Preview + nút thao tác mặc định phải ẩn
   ========================================================= */

body.home-index .smart-product-hover-preview,
body.home-index .product-hover-preview,
.smart-home .smart-product-hover-preview,
.smart-home .product-hover-preview {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 20 !important;
    padding: 16px 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid #e5eaf0 !important;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.12) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
    transition: 0.2s ease !important;
}

/* Chỉ khi hover card mới hiện preview */
body.home-index .smart-hover-product-card:hover .smart-product-hover-preview,
body.home-index .smart-hover-product-card:hover .product-hover-preview,
body.home-index .smart-category-product-card:hover .smart-product-hover-preview,
body.home-index .smart-product-card:hover .product-hover-preview,
.smart-home .smart-hover-product-card:hover .smart-product-hover-preview,
.smart-home .smart-hover-product-card:hover .product-hover-preview,
.smart-home .smart-category-product-card:hover .smart-product-hover-preview,
.smart-home .smart-product-card:hover .product-hover-preview {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Action buttons mặc định ẩn theo preview */
body.home-index .smart-grid-actions,
body.home-index .shop-product-actions,
.smart-home .smart-grid-actions,
.smart-home .shop-product-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 25 !important;
    height: 56px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5eaf0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(18px) !important;
    transition: 0.2s ease !important;
}

/* Hover thì mới hiện action buttons */
body.home-index .smart-hover-product-card:hover .smart-grid-actions,
body.home-index .smart-hover-product-card:hover .shop-product-actions,
body.home-index .smart-category-product-card:hover .smart-grid-actions,
body.home-index .smart-product-card:hover .shop-product-actions,
.smart-home .smart-hover-product-card:hover .smart-grid-actions,
.smart-home .smart-hover-product-card:hover .shop-product-actions,
.smart-home .smart-category-product-card:hover .smart-grid-actions,
.smart-home .smart-product-card:hover .shop-product-actions {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Style nút */
body.home-index .smart-grid-actions button,
body.home-index .smart-grid-actions a,
body.home-index .shop-product-actions button,
body.home-index .shop-product-actions a,
.smart-home .smart-grid-actions button,
.smart-home .smart-grid-actions a,
.smart-home .shop-product-actions button,
.smart-home .shop-product-actions a {
    height: 56px !important;
    border: none !important;
    border-right: 1px solid #e5eaf0 !important;
    background: #ffffff !important;
    color: #172033 !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

    body.home-index .smart-grid-actions button:first-child,
    body.home-index .shop-product-actions button:first-child,
    .smart-home .smart-grid-actions button:first-child,
    .smart-home .shop-product-actions button:first-child {
        background: #4657c5 !important;
        color: #ffffff !important;
    }

    body.home-index .smart-grid-actions button:hover,
    body.home-index .smart-grid-actions a:hover,
    body.home-index .shop-product-actions button:hover,
    body.home-index .shop-product-actions a:hover,
    .smart-home .smart-grid-actions button:hover,
    .smart-home .smart-grid-actions a:hover,
    .smart-home .shop-product-actions button:hover,
    .smart-home .shop-product-actions a:hover {
        background: #f1f5f9 !important;
        color: #4657c5 !important;
    }

/* Responsive */
@media (max-width: 1200px) {
    body.home-index .smart-home .featured-grid,
    .smart-home .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    body.home-index .smart-home .featured-grid,
    .smart-home .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 576px) {
    body.home-index .smart-home .featured-grid,
    .smart-home .featured-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   HOME PAGE V2 - ISOLATED FINAL FIX
   Dùng riêng cho Views/Home/Index.cshtml mới.
   Không phụ thuộc _ShopProductCard, không làm vỡ Product/Index.
   ========================================================= */

.home-page-v2,
.home-page-v2 * {
    box-sizing: border-box;
}

.home-page-v2 {
    padding-top: 34px;
    padding-bottom: 64px;
}

    /* ---------- Welcome ---------- */

    .home-page-v2 .home-welcome {
        position: relative;
        overflow: hidden;
        border-radius: 28px;
        background: linear-gradient(135deg, #0f172a 0%, #2563eb 55%, #16a34a 100%);
        color: #ffffff;
        padding: 54px 58px;
        margin-bottom: 42px;
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
    }

        .home-page-v2 .home-welcome::after {
            content: "";
            position: absolute;
            width: 280px;
            height: 280px;
            border-radius: 999px;
            right: -90px;
            top: -90px;
            background: rgba(255, 255, 255, 0.14);
        }

    .home-page-v2 .home-welcome-content {
        position: relative;
        z-index: 2;
        max-width: 780px;
    }

    .home-page-v2 .home-eyebrow {
        display: inline-flex;
        align-items: center;
        padding: 7px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-weight: 900;
        margin-bottom: 18px;
    }

    .home-page-v2 .home-welcome h1 {
        font-size: 44px;
        line-height: 1.08;
        font-weight: 950;
        letter-spacing: -1px;
        margin: 0 0 16px;
    }

    .home-page-v2 .home-welcome p {
        font-size: 18px;
        line-height: 1.65;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
    }

    /* ---------- Section heading ---------- */

    .home-page-v2 .home-section-heading {
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 0 0 24px;
    }

        .home-page-v2 .home-section-heading.center {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 24px;
            margin-top: 44px;
        }

        .home-page-v2 .home-section-heading h2 {
            margin: 0;
            font-size: 34px;
            line-height: 1.15;
            font-weight: 950;
            color: #172033;
            letter-spacing: -0.7px;
            white-space: nowrap;
        }

        .home-page-v2 .home-section-heading span {
            display: block;
            height: 1px;
            background: #dbe3ef;
        }

    /* ---------- Categories ---------- */

    .home-page-v2 .home-category-section {
        margin-bottom: 42px;
    }

    .home-page-v2 .home-category-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    .home-page-v2 .home-category-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 230px;
        padding: 22px;
        background: #ffffff;
        border: 1px solid #e5eaf0;
        border-radius: 22px;
        text-decoration: none;
        color: #172033;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

        .home-page-v2 .home-category-card:hover {
            transform: translateY(-5px);
            border-color: #b9c7f8;
            box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
            color: #4657c5;
        }

    .home-page-v2 .home-category-image {
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .home-page-v2 .home-category-image img {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 145px;
            object-fit: contain;
            display: block;
        }

    .home-page-v2 .home-category-card h5 {
        margin: 18px 0 0;
        font-size: 18px;
        font-weight: 950;
        text-align: center;
    }

    /* ---------- Featured products grid ---------- */

    .home-page-v2 .home-product-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 34px 28px;
        align-items: stretch;
    }

    /* Quan trọng: card có overflow hidden để preview không lòi ra ngoài */
    .home-page-v2 .home-product-card {
        position: relative;
        min-width: 0;
        min-height: 465px;
        background: #ffffff;
        border: 1px solid #e5eaf0;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

        .home-page-v2 .home-product-card:hover {
            transform: translateY(-6px);
            border-color: #c8d4ff;
            box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
        }

    /* ---------- Product image ---------- */

    .home-page-v2 .home-product-image-wrap {
        position: relative;
        height: 220px;
        background: #ffffff;
        border-bottom: 1px solid #eef2f7;
        overflow: hidden;
    }

    .home-page-v2 .home-product-image-link {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        overflow: hidden;
    }

        .home-page-v2 .home-product-image-link img {
            position: static;
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 214px;
            object-fit: contain;
            display: block;
            transform: none;
        }

    /* ---------- Badges ---------- */

    .home-page-v2 .home-discount-badge,
    .home-page-v2 .home-featured-badge {
        position: absolute;
        top: 12px;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        padding: 0 11px;
        border-radius: 9px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 950;
        line-height: 1;
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
    }

    .home-page-v2 .home-discount-badge {
        left: 12px;
        background: #ff405f;
    }

    .home-page-v2 .home-featured-badge {
        right: 12px;
        background: #14245f;
    }

    /* ---------- Normal product body ---------- */

    .home-page-v2 .home-product-body {
        position: relative;
        z-index: 2;
        padding: 18px 18px 72px;
        background: #ffffff;
    }

    .home-page-v2 .home-product-category {
        color: #94a3b8;
        font-size: 13px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 7px;
    }

    .home-page-v2 .home-product-name {
        display: block;
        color: #172033;
        font-size: 18px;
        font-weight: 950;
        line-height: 1.28;
        text-decoration: none;
        margin-bottom: 9px;
    }

        .home-page-v2 .home-product-name:hover {
            color: #4657c5;
        }

    .home-page-v2 .home-product-description,
    .home-page-v2 .home-preview-description {
        color: #7b8da5;
        font-size: 14px;
        line-height: 1.45;
        margin: 0 0 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Chấm giao hàng */
    .home-page-v2 .home-delivery-line {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #ff8a00;
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 12px;
    }

        .home-page-v2 .home-delivery-line span {
            width: 14px;
            height: 14px;
            border-radius: 999px;
            background: linear-gradient(135deg, #ff6b4a, #ffb000);
            flex: 0 0 14px;
        }

    .home-page-v2 .home-product-price strong {
        display: block;
        color: #172033;
        font-size: 20px;
        font-weight: 950;
        line-height: 1.2;
    }

    .home-page-v2 .home-product-price small {
        display: block;
        color: #94a3b8;
        font-size: 13px;
        text-decoration: line-through;
        margin-top: 4px;
    }

    /* =========================================================
   Hover preview
   MẶC ĐỊNH ẨN. CHỈ KHI HOVER CARD MỚI HIỆN.
   ========================================================= */

    .home-page-v2 .home-product-hover-preview {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 30;
        padding: 16px;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid #e1e8f0;
        border-radius: 18px;
        box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(18px);
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    }

    .home-page-v2 .home-product-card:hover .home-product-hover-preview {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .home-page-v2 .home-preview-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 8px;
    }

        .home-page-v2 .home-preview-top .home-product-name {
            margin-bottom: 0;
        }

    .home-page-v2 .home-preview-price {
        color: #e11d48;
        font-size: 17px;
        font-weight: 950;
        white-space: nowrap;
    }

    /* ---------- Hover action buttons ---------- */

    .home-page-v2 .home-preview-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        overflow: hidden;
        border: 1px solid #e5eaf0;
        border-radius: 14px;
        background: #ffffff;
    }

    .home-page-v2 .home-action-btn {
        height: 50px;
        border: none;
        border-right: 1px solid #e5eaf0;
        background: #ffffff;
        color: #172033;
        font-size: 18px;
        font-weight: 950;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }

        .home-page-v2 .home-action-btn:last-child {
            border-right: none;
        }

        .home-page-v2 .home-action-btn.primary {
            background: #4657c5;
            color: #ffffff;
        }

        .home-page-v2 .home-action-btn:hover {
            background: #f1f5ff;
            color: #4657c5;
        }

        .home-page-v2 .home-action-btn.primary:hover {
            background: #3543a4;
            color: #ffffff;
        }

    /* ---------- Empty ---------- */

    .home-page-v2 .home-empty-product-box {
        padding: 54px 24px;
        text-align: center;
        background: #ffffff;
        border: 1px solid #e5eaf0;
        border-radius: 22px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    }

        .home-page-v2 .home-empty-product-box h4 {
            font-weight: 950;
            color: #172033;
        }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
    .home-page-v2 .home-category-grid,
    .home-page-v2 .home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .home-page-v2 .home-welcome {
        padding: 42px 34px;
    }

        .home-page-v2 .home-welcome h1 {
            font-size: 36px;
        }

    .home-page-v2 .home-category-grid,
    .home-page-v2 .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page-v2 .home-section-heading.center {
        grid-template-columns: 1fr;
        text-align: center;
    }

        .home-page-v2 .home-section-heading.center span {
            display: none;
        }
}

@media (max-width: 576px) {
    .home-page-v2 {
        padding-top: 20px;
    }

        .home-page-v2 .home-welcome {
            padding: 32px 24px;
            border-radius: 22px;
        }

            .home-page-v2 .home-welcome h1 {
                font-size: 30px;
            }

        .home-page-v2 .home-category-grid,
        .home-page-v2 .home-product-grid {
            grid-template-columns: 1fr;
        }

        .home-page-v2 .home-section-heading h2 {
            font-size: 28px;
            white-space: normal;
        }
}
/* =========================================================
   CHECKOUT SMARTSTORE-LIKE UI
   ========================================================= */

.checkout-smart-page {
    padding-top: 38px;
    padding-bottom: 70px;
}

.checkout-progress-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0 46px;
}

.checkout-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.checkout-step {
    position: relative;
    min-width: 130px;
    text-align: center;
    color: #9aa7b8;
}

    .checkout-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 25px;
        left: calc(50% + 27px);
        width: 76px;
        height: 2px;
        background: #edf0f2;
    }

    .checkout-step.completed:not(:last-child)::after,
    .checkout-step.active:not(:last-child)::after {
        background: #f59e0b;
    }

.checkout-step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid #edf0f2;
    background: #fff;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.checkout-step.active .checkout-step-circle {
    border-color: #f59e0b;
    color: #f59e0b;
    background: #fff;
}

.checkout-step.completed .checkout-step-circle {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #fff;
}

.checkout-step-text {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

.checkout-step.active .checkout-step-text {
    color: #343a40;
    font-weight: 900;
}

.checkout-main-title {
    font-size: 40px;
    font-weight: 900;
    color: #343a40;
    margin-bottom: 28px;
    letter-spacing: -0.8px;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

    .checkout-section-title span {
        color: #9aa7b8;
        font-weight: 900;
        text-transform: uppercase;
        font-size: 15px;
        white-space: nowrap;
    }

    .checkout-section-title i {
        height: 1px;
        background: #d9dee8;
        flex: 1;
    }

.checkout-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: flex-start;
}

.checkout-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    max-width: 920px;
}

.checkout-address-card,
.checkout-new-address-card,
.checkout-form-card,
.checkout-confirm-box,
.checkout-note-card,
.checkout-products-card,
.checkout-summary-box {
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
}

.checkout-address-card {
    padding: 22px;
    min-height: 250px;
}

.checkout-address-info {
    padding-top: 18px;
}

    .checkout-address-info strong {
        display: block;
        color: #343a40;
        font-size: 17px;
        margin-bottom: 14px;
    }

    .checkout-address-info p {
        color: #4b5563;
        margin-bottom: 6px;
    }

.checkout-new-address-card {
    min-height: 250px;
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.checkout-or {
    font-size: 25px;
    color: #343a40;
}

.checkout-plus {
    font-size: 82px;
    line-height: 1;
    color: #9aa7b8;
    font-weight: 300;
}

.checkout-primary-btn,
.checkout-orange-btn,
.checkout-confirm-btn {
    border: none;
    min-height: 48px;
    border-radius: 7px;
    font-weight: 900;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.checkout-primary-btn {
    background: #4657c5;
    color: #fff;
}

    .checkout-primary-btn:hover {
        background: #3646b3;
        color: #fff;
    }

.checkout-orange-btn {
    width: 100%;
    background: #f59e0b;
    color: #fff;
}

    .checkout-orange-btn:hover {
        background: #e58f00;
        color: #fff;
    }

.checkout-confirm-btn {
    width: 100%;
    background: #ef4444;
    color: #fff;
    min-height: 54px;
    font-size: 17px;
}

    .checkout-confirm-btn:hover {
        background: #dc2626;
        color: #fff;
    }

.checkout-form-card {
    max-width: 920px;
    padding: 26px;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 18px;
}

    .checkout-form-row label {
        font-weight: 900;
        color: #343a40;
        padding-top: 12px;
    }

    .checkout-form-row .form-control {
        min-height: 52px;
        border-radius: 8px;
        border: 1px solid #d9dee8;
        padding: 12px 16px;
    }

.checkout-save-address-btn {
    margin-left: 264px;
}

.checkout-method-list {
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.checkout-method-item {
    min-height: 96px;
    display: grid;
    grid-template-columns: 24px auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid #e5eaf0;
    cursor: pointer;
    position: relative;
    transition: 0.15s;
}

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

    .checkout-method-item:hover {
        background: #f8fafc;
    }

    .checkout-method-item:has(input:checked) {
        background: #fbfbfd;
        border-left: 4px solid #f59e0b;
    }

    .checkout-method-item input {
        width: 18px;
        height: 18px;
        accent-color: #4657c5;
    }

    .checkout-method-item strong {
        display: block;
        color: #343a40;
        font-size: 17px;
        font-weight: 900;
        margin-bottom: 6px;
    }

    .checkout-method-item p {
        margin: 0;
        color: #8b97a8;
        line-height: 1.45;
    }

    .checkout-method-item span {
        color: #dc2626;
        font-weight: 900;
        white-space: nowrap;
    }

.payment-icon-box {
    width: 64px;
    height: 54px;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.checkout-summary-box {
    background: #f7f7fa;
    border: none;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.checkout-summary-row,
.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

    .checkout-summary-row span {
        color: #343a40;
    }

    .checkout-summary-row strong {
        color: #343a40;
        font-weight: 800;
        text-align: right;
    }

    .checkout-summary-total span {
        font-size: 18px;
        font-weight: 900;
        color: #343a40;
    }

    .checkout-summary-total strong {
        font-size: 22px;
        font-weight: 900;
        color: #111827;
        text-align: right;
    }

.checkout-term-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
    margin: 18px 0;
}

.checkout-intro-text {
    max-width: 850px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 24px;
}

.checkout-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.checkout-confirm-box {
    padding: 22px;
}

.confirm-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e5eaf0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

    .confirm-title-row h4 {
        font-size: 18px;
        font-weight: 900;
        margin: 0;
    }

    .confirm-title-row a {
        background: #4657c5;
        color: #fff;
        border-radius: 7px;
        padding: 8px 14px;
        text-decoration: none;
        font-weight: 800;
    }

.checkout-confirm-box p {
    margin-bottom: 7px;
    color: #4b5563;
}

.checkout-note-card {
    margin-bottom: 24px;
}

    .checkout-note-card h4 {
        font-size: 17px;
        font-weight: 900;
        padding: 16px 20px;
        margin: 0;
        border-bottom: 1px solid #e5eaf0;
    }

    .checkout-note-card textarea {
        border: none;
        border-radius: 0;
        padding: 18px 20px;
        min-height: 110px;
    }

.checkout-products-card {
    overflow: hidden;
}

.checkout-products-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5eaf0;
}

    .checkout-products-title h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 900;
    }

.checkout-confirm-product {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 24px;
    border-bottom: 1px solid #e5eaf0;
}

    .checkout-confirm-product:last-child {
        border-bottom: none;
    }

    .checkout-confirm-product img {
        width: 180px;
        height: 140px;
        object-fit: contain;
        border-radius: 8px;
        background: #fff;
    }

    .checkout-confirm-product h5 {
        font-size: 18px;
        font-weight: 900;
        color: #343a40;
    }

    .checkout-confirm-product p {
        color: #8b97a8;
        margin-bottom: 10px;
    }

    .checkout-confirm-product strong {
        display: block;
        color: #343a40;
        font-size: 22px;
        font-weight: 900;
    }

    .checkout-confirm-product span {
        display: block;
        color: #6b7280;
        margin-top: 4px;
    }

.checkout-completed-box {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    padding: 55px 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5eaf0;
}

.checkout-completed-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 24px;
}

.checkout-completed-box h1 {
    font-size: 38px;
    font-weight: 900;
    color: #343a40;
}

.checkout-completed-box p {
    color: #94a3b8;
    font-size: 22px;
    margin-bottom: 24px;
}

.checkout-order-number {
    margin-bottom: 28px;
    color: #343a40;
    font-size: 17px;
}

.checkout-completed-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 992px) {
    .checkout-two-column {
        grid-template-columns: 1fr;
    }

    .checkout-summary-box {
        position: static;
    }

    .checkout-address-grid,
    .checkout-confirm-grid {
        grid-template-columns: 1fr;
    }

    .checkout-progress {
        overflow-x: auto;
        justify-content: flex-start;
        width: 100%;
    }

    .checkout-step {
        min-width: 110px;
    }

    .checkout-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .checkout-save-address-btn {
        margin-left: 0;
    }
}
/* =========================================================
   CHECKOUT ADDRESS STEP - USE SAVED ADDRESS OR ADD NEW
   ========================================================= */

.checkout-address-select-grid {
    display: grid;
    grid-template-columns: minmax(0, 450px) minmax(0, 450px);
    gap: 26px;
    align-items: stretch;
    max-width: 950px;
}

.checkout-saved-address-card,
.checkout-no-address-card,
.checkout-new-address-box,
.checkout-address-form-card {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
}

.checkout-saved-address-card {
    padding: 22px;
    min-height: 260px;
}

.checkout-address-use-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 7px;
    background: #f59e0b;
    color: #ffffff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

    .checkout-address-use-btn:hover {
        background: #e58f00;
    }

    .checkout-address-use-btn span,
    .checkout-add-address-btn span,
    .checkout-save-new-address-btn span {
        font-size: 24px;
        line-height: 1;
    }

.checkout-saved-address-body {
    padding-top: 22px;
}

    .checkout-saved-address-body h4 {
        color: #343a40;
        font-size: 18px;
        font-weight: 900;
        margin-bottom: 16px;
    }

    .checkout-saved-address-body p {
        color: #4b5563;
        margin-bottom: 7px;
        line-height: 1.45;
    }

.checkout-no-address-card {
    min-height: 260px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
}

.checkout-no-address-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.checkout-no-address-card h4 {
    color: #343a40;
    font-weight: 900;
    margin-bottom: 8px;
}

.checkout-new-address-box {
    min-height: 260px;
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.checkout-or-text {
    color: #343a40;
    font-size: 24px;
    font-weight: 500;
}

.checkout-big-plus {
    color: #94a3b8;
    font-size: 86px;
    font-weight: 300;
    line-height: 1;
}

.checkout-add-address-btn {
    min-width: 80%;
    height: 48px;
    border: none;
    border-radius: 7px;
    background: #4657c5;
    color: #ffffff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

    .checkout-add-address-btn:hover {
        background: #3646b3;
    }

.checkout-address-form-card {
    max-width: 950px;
    padding: 28px;
}

.checkout-address-form-row {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 18px;
}

    .checkout-address-form-row label {
        padding-top: 12px;
        font-weight: 900;
        color: #343a40;
    }

    .checkout-address-form-row .form-control {
        min-height: 52px;
        border-radius: 8px;
        border: 1px solid #d9dee8;
        padding: 12px 16px;
        box-shadow: none;
    }

    .checkout-address-form-row textarea.form-control {
        min-height: 120px;
    }

.checkout-save-new-address-btn {
    margin-left: 254px;
    min-width: 210px;
    height: 50px;
    border: none;
    border-radius: 7px;
    background: #4657c5;
    color: #ffffff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

    .checkout-save-new-address-btn:hover {
        background: #3646b3;
    }

@media (max-width: 992px) {
    .checkout-address-select-grid {
        grid-template-columns: 1fr;
    }

    .checkout-address-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .checkout-save-new-address-btn {
        margin-left: 0;
        width: 100%;
    }
}
/* =========================================================
   FINAL USER DROPDOWN UI FIX
   ========================================================= */

.ss-user-dropdown {
    position: relative;
}

.ss-user-trigger {
    height: 38px !important;
    padding: 0 11px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

    .ss-user-trigger:hover,
    .ss-user-trigger[aria-expanded="true"] {
        background: #f1f5f9 !important;
        color: #111827 !important;
    }

.ss-user-trigger-text {
    max-width: 175px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}

/* Mũi tên dropdown mới, không dùng ký tự xấu */
.ss-user-trigger-arrow {
    width: 8px !important;
    height: 8px !important;
    display: inline-block !important;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
    margin-left: 2px;
}

.ss-user-trigger[aria-expanded="true"] .ss-user-trigger-arrow {
    transform: translateY(2px) rotate(-135deg);
    border-color: #2563eb;
}

/* Khung dropdown gọn hơn */
.ss-user-menu {
    width: 285px !important;
    padding: 10px !important;
    margin-top: 10px !important;
    border: 1px solid #e5eaf0 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden;
}

    /* Tam giác nhỏ phía trên dropdown */
    .ss-user-menu::before {
        content: "";
        position: absolute;
        top: -7px;
        right: 30px;
        width: 14px;
        height: 14px;
        background: #ffffff;
        border-left: 1px solid #e5eaf0;
        border-top: 1px solid #e5eaf0;
        transform: rotate(45deg);
    }

    /* Item trong dropdown */
    .ss-user-menu .dropdown-item {
        min-height: 46px !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        gap: 13px !important;
        color: #475569 !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
        transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
    }

        .ss-user-menu .dropdown-item:hover,
        .ss-user-menu .dropdown-item:focus {
            background: #f1f5f9 !important;
            color: #111827 !important;
            transform: translateX(2px);
        }

    .ss-user-menu .dropdown-divider {
        margin: 9px 4px !important;
        border-color: #e5eaf0 !important;
    }

    .ss-user-menu form {
        margin: 0 !important;
    }

/* =========================================================
   ICONS - bỏ emoji, dùng icon CSS gọn hơn
   ========================================================= */

.ss-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    display: inline-block !important;
    background-color: #6d28d9;
    opacity: 0.95;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.ss-user-trigger-icon {
    width: 17px !important;
    height: 17px !important;
}

.ss-menu-icon {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    text-align: center !important;
    font-size: 0 !important;
}

/* User */
.ss-icon-user {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5Zm0 2c-4.42 0-8 2.24-8 5v1.2c0 1 .8 1.8 1.8 1.8h12.4c1 0 1.8-.8 1.8-1.8V19c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5Zm0 2c-4.42 0-8 2.24-8 5v1.2c0 1 .8 1.8 1.8 1.8h12.4c1 0 1.8-.8 1.8-1.8V19c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
}

/* Order */
.ss-icon-order {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h9l5 5v15H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2Zm8 1.5V8h4.5L14 3.5ZM8 12h8v-2H8v2Zm0 4h8v-2H8v2Zm0 4h5v-2H8v2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h9l5 5v15H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2Zm8 1.5V8h4.5L14 3.5ZM8 12h8v-2H8v2Zm0 4h8v-2H8v2Zm0 4h5v-2H8v2Z'/%3E%3C/svg%3E");
}

/* Admin */
.ss-icon-admin {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.43 12.98c.04-.32.07-.65.07-.98s-.02-.66-.07-.98l2.1-1.64-2-3.46-2.47 1a7.28 7.28 0 0 0-1.7-.98L15 3.3h-4l-.36 2.64c-.6.23-1.17.56-1.7.98l-2.47-1-2 3.46 2.1 1.64c-.04.32-.07.65-.07.98s.02.66.07.98l-2.1 1.64 2 3.46 2.47-1c.53.42 1.1.75 1.7.98L11 20.7h4l.36-2.64c.6-.23 1.17-.56 1.7-.98l2.47 1 2-3.46-2.1-1.64ZM13 15.5A3.5 3.5 0 1 1 13 8a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.43 12.98c.04-.32.07-.65.07-.98s-.02-.66-.07-.98l2.1-1.64-2-3.46-2.47 1a7.28 7.28 0 0 0-1.7-.98L15 3.3h-4l-.36 2.64c-.6.23-1.17.56-1.7.98l-2.47-1-2 3.46 2.1 1.64c-.04.32-.07.65-.07.98s.02.66.07.98l-2.1 1.64 2 3.46 2.47-1c.53.42 1.1.75 1.7.98L11 20.7h4l.36-2.64c.6-.23 1.17-.56 1.7-.98l2.47 1 2-3.46-2.1-1.64ZM13 15.5A3.5 3.5 0 1 1 13 8a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E");
}

/* Heart */
.ss-icon-heart {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s-7.5-4.57-9.6-9.15C.83 8.43 2.83 4.5 6.5 4.5c2.03 0 3.34 1.04 4.1 2.1h.8c.76-1.06 2.07-2.1 4.1-2.1 3.67 0 5.67 3.93 4.1 7.35C19.5 16.43 12 21 12 21Zm0-2.35c2.58-1.7 5.05-4.06 6-6.1 1-2.17-.12-5.05-2.5-5.05-1.64 0-2.42.95-3.06 2.02h-.88C10.92 8.45 10.14 7.5 8.5 7.5c-2.38 0-3.5 2.88-2.5 5.05.95 2.04 3.42 4.4 6 6.1Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s-7.5-4.57-9.6-9.15C.83 8.43 2.83 4.5 6.5 4.5c2.03 0 3.34 1.04 4.1 2.1h.8c.76-1.06 2.07-2.1 4.1-2.1 3.67 0 5.67 3.93 4.1 7.35C19.5 16.43 12 21 12 21Zm0-2.35c2.58-1.7 5.05-4.06 6-6.1 1-2.17-.12-5.05-2.5-5.05-1.64 0-2.42.95-3.06 2.02h-.88C10.92 8.45 10.14 7.5 8.5 7.5c-2.38 0-3.5 2.88-2.5 5.05.95 2.04 3.42 4.4 6 6.1Z'/%3E%3C/svg%3E");
}

/* Cart */
.ss-icon-cart {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM7.2 14.5h8.95c.75 0 1.4-.41 1.74-1.03L21 7H6.42L5.7 4H2V2h5.25l1.1 4.55L10 13h7.1l2.2-4H9.12l.47 2h8.04l-1.48 2.5H7.2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM7.2 14.5h8.95c.75 0 1.4-.41 1.74-1.03L21 7H6.42L5.7 4H2V2h5.25l1.1 4.55L10 13h7.1l2.2-4H9.12l.47 2h8.04l-1.48 2.5H7.2Z'/%3E%3C/svg%3E");
}

/* Logout */
.ss-icon-logout {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5h5V3Zm8.6 8-3.3-3.3L16.7 6l6 6-6 6-1.4-1.7L18.6 13H9v-2h9.6Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5h5V3Zm8.6 8-3.3-3.3L16.7 6l6 6-6 6-1.4-1.7L18.6 13H9v-2h9.6Z'/%3E%3C/svg%3E");
}

.ss-user-menu .dropdown-item:hover .ss-icon,
.ss-user-trigger:hover .ss-icon,
.ss-user-trigger[aria-expanded="true"] .ss-icon {
    background-color: #2563eb;
}

/* Nút đăng nhập khi chưa login */
.ss-login-link {
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

    .ss-login-link:hover {
        background: #f1f5f9 !important;
        color: #2563eb !important;
    }
/* =========================================================
   GLOBAL FONT FIX
   ========================================================= */

:root {
    --app-font: "Be Vietnam Pro", "Inter", "Segoe UI", Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.dropdown-menu,
.btn,
.form-control,
.form-select {
    font-family: var(--app-font) !important;
}

body {
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.shop-brand-text strong,
.smart-section-title h2,
.hero-section h1,
.product-detail-title,
.ss-account-content h1 {
    font-family: var(--app-font) !important;
    font-weight: 800;
    letter-spacing: -0.035em;
}

p,
span,
a,
label,
small,
strong,
button,
input,
select,
textarea {
    letter-spacing: -0.01em;
}
/* =========================================================
   ADMIN CATEGORY SMARTSTORE STYLE
   ========================================================= */

.admin-category-page {
    padding: 24px 28px;
    background: #f2f5f9;
    min-height: calc(100vh - 120px);
}

.admin-category-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #dfe7ef;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.admin-category-header,
.admin-category-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-category-title-group,
.admin-edit-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .admin-category-title-group h1,
    .admin-edit-title h1 {
        font-size: 25px;
        font-weight: 800;
        color: #1f2937;
        margin: 0;
    }

.admin-category-view-switch {
    display: inline-flex;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    overflow: hidden;
}

    .admin-category-view-switch a {
        width: 40px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #334155;
        text-decoration: none;
        background: #fff;
        font-weight: 800;
    }

        .admin-category-view-switch a.active {
            background: #e9eef5;
            box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.12);
        }

.admin-primary-btn,
.admin-secondary-btn {
    border: 0;
    text-decoration: none;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
}

.admin-primary-btn {
    background: #2f80c9;
    color: #fff;
}

    .admin-primary-btn:hover {
        background: #256dae;
        color: #fff;
    }

.admin-secondary-btn {
    background: #f3f5f7;
    color: #1f2937;
    border: 1px solid #d9e1e8;
}

    .admin-secondary-btn:hover {
        background: #e9eef4;
        color: #111827;
    }

.admin-category-toolbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #dfe7ef;
    border-radius: 8px 8px 0 0;
    background: #f8fafc;
    overflow: hidden;
}

.admin-filter-icon {
    width: 58px;
    height: 56px;
    border-right: 1px solid #dfe7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #64748b;
}

.admin-category-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    flex: 1;
}

    .admin-category-search input {
        width: 280px;
        height: 38px;
        border: 1px solid #d9e1e8;
        border-radius: 7px;
        padding: 0 12px;
        outline: none;
    }

    .admin-category-search button {
        height: 38px;
        padding: 0 16px;
        border-radius: 7px;
        border: 0;
        background: #334155;
        color: #fff;
        font-weight: 700;
    }

.admin-category-table-wrap {
    border-left: 1px solid #dfe7ef;
    border-right: 1px solid #dfe7ef;
    overflow: auto;
    max-height: 560px;
}

.admin-category-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

    .admin-category-table th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #ffffff;
        color: #111827;
        font-weight: 800;
        padding: 17px 18px;
        border-bottom: 1px solid #dfe7ef;
        white-space: nowrap;
    }

    .admin-category-table td {
        padding: 16px 18px;
        border-bottom: 1px solid #e7edf3;
        color: #334155;
        vertical-align: middle;
    }

.admin-cat-name-cell {
    padding-left: calc(var(--level) * 22px);
}

.admin-cat-name {
    color: #1260a8;
    font-weight: 700;
    text-decoration: none;
}

    .admin-cat-name:hover {
        text-decoration: underline;
    }

.admin-cat-path {
    color: #8da0b3;
}

.admin-cat-alias {
    color: #1f2937;
}

.admin-count-badge {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3f8;
    color: #52677d;
    font-weight: 800;
}

.admin-published-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    font-weight: 900;
    background: transparent;
}

    .admin-published-btn.is-on {
        color: #00a36c;
    }

    .admin-published-btn.is-off {
        color: #ef4444;
    }

.admin-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-icon-btn {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid #d9e1e8;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

    .admin-icon-btn.danger {
        color: #dc2626;
    }

.admin-category-footer {
    min-height: 48px;
    border: 1px solid #dfe7ef;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    padding: 0 16px;
    color: #91a3b6;
    font-size: 14px;
}

.admin-alert {
    border-radius: 10px;
    padding: 13px 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.admin-alert-success {
    background: #dcfce7;
    color: #166534;
}

.admin-alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Tree */

.admin-tree-box {
    padding: 12px 0 320px;
}

.admin-tree-row {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: calc(var(--level) * 28px);
    padding-right: 12px;
    border-radius: 8px;
}

    .admin-tree-row:hover {
        background: #f8fafc;
    }

.admin-tree-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tree-arrow {
    font-size: 22px;
    color: #334155;
    transform: rotate(0deg);
    display: inline-flex;
    width: 16px;
}

    .admin-tree-arrow.empty {
        visibility: hidden;
    }

.admin-tree-folder {
    width: 17px;
    height: 13px;
    background: #00a878;
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

    .admin-tree-folder::before {
        content: "";
        width: 8px;
        height: 4px;
        background: #00a878;
        position: absolute;
        top: -3px;
        left: 1px;
        border-radius: 2px 2px 0 0;
    }

.admin-tree-name {
    color: #334155;
    text-decoration: none;
    font-weight: 700;
}

.admin-tree-count,
.admin-tree-alias {
    background: #8fa1b3;
    color: #fff;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 800;
}

.admin-tree-actions {
    opacity: 0;
    display: flex;
    gap: 10px;
}

.admin-tree-row:hover .admin-tree-actions {
    opacity: 1;
}

.admin-tree-actions a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

/* Edit form */

.admin-back-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    text-decoration: none;
    font-size: 21px;
    font-weight: 900;
}

.admin-edit-actions {
    display: flex;
    gap: 10px;
}

.admin-category-edit-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
}

.admin-category-tabs {
    border-right: 1px solid #dfe7ef;
    padding-top: 8px;
}

.admin-tab-link {
    width: 100%;
    height: 48px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-weight: 700;
    text-align: left;
    position: relative;
}

    .admin-tab-link.active::after {
        content: "";
        position: absolute;
        right: -1px;
        top: 5px;
        bottom: 5px;
        width: 3px;
        background: #f59e0b;
        border-radius: 10px;
    }

.admin-category-tab-content {
    max-width: 980px;
}

.admin-tab-panel {
    display: none;
}

    .admin-tab-panel.active {
        display: block;
    }

.admin-form-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 16px;
}

    .admin-form-row label {
        color: #334155;
        font-weight: 800;
    }

.admin-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    padding: 9px 13px;
    outline: none;
    color: #334155;
}

    .admin-input:focus {
        border-color: #2f80c9;
        box-shadow: 0 0 0 4px rgba(47, 128, 201, 0.12);
    }

.admin-switch {
    display: inline-flex;
    align-items: center;
}

    .admin-switch input {
        display: none;
    }

    .admin-switch span {
        width: 50px;
        height: 26px;
        background: #d8dee5;
        border-radius: 999px;
        position: relative;
        cursor: pointer;
    }

        .admin-switch span::after {
            content: "";
            width: 20px;
            height: 20px;
            background: #fff;
            border-radius: 50%;
            position: absolute;
            top: 3px;
            left: 3px;
            box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
            transition: 0.18s;
        }

    .admin-switch input:checked + span {
        background: #f59e0b;
    }

        .admin-switch input:checked + span::after {
            transform: translateX(24px);
        }

.admin-upload-box {
    border: 2px dashed #cad6e2;
    background: #f8fafc;
    border-radius: 10px;
    min-height: 120px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
}

    .admin-upload-box img,
    .admin-upload-placeholder {
        width: 92px;
        height: 92px;
        border-radius: 9px;
        object-fit: cover;
        background: #eef3f8;
        border: 1px solid #d9e1e8;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-weight: 800;
    }

.admin-products-box {
    border: 1px solid #dfe7ef;
    border-radius: 12px;
    background: #f8fafc;
    padding: 24px;
}

    .admin-products-box h3 {
        font-weight: 900;
        margin-bottom: 8px;
    }

.admin-empty-row,
.admin-empty-tree {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    font-weight: 700;
}
/* =========================================================
   ADMIN CATEGORY - VIETNAMESE CLEAN UI
   ========================================================= */

.admin-category-page {
    padding: 34px 42px;
    background: linear-gradient(180deg, #f3f7fb 0%, #eef3f8 100%);
    min-height: calc(100vh - 100px);
}

.admin-category-card {
    background: #ffffff;
    border: 1px solid #dfe8f2;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: 28px;
}

.admin-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-category-title-group {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .admin-category-title-group h1 {
        margin: 0;
        color: #102033;
        font-size: 28px;
        font-weight: 850;
        letter-spacing: -0.04em;
    }

    .admin-category-title-group p {
        margin: 5px 0 0;
        color: #7a8ba3;
        font-size: 14px;
        font-weight: 500;
    }

.admin-category-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: #f2f6fa;
    border: 1px solid #dce6f0;
    border-radius: 12px;
}

    .admin-category-view-switch a {
        min-width: 94px;
        height: 38px;
        padding: 0 14px;
        border-radius: 9px;
        color: #52647a;
        text-decoration: none;
        font-size: 13px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .admin-category-view-switch a.active {
            background: #ffffff;
            color: #0f3f78;
            box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
        }

.admin-primary-btn {
    min-height: 45px;
    padding: 0 20px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, #2d8bd8, #1f67b1);
    color: white;
    text-decoration: none;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(45, 139, 216, 0.25);
}

    .admin-primary-btn:hover {
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(45, 139, 216, 0.32);
    }

.admin-category-toolbar {
    border: 1px solid #dfe8f2;
    border-radius: 16px 16px 0 0;
    background: #f8fbfe;
    padding: 12px 14px;
}

.admin-category-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-search-input-wrap {
    width: 360px;
    height: 44px;
    border: 1px solid #d8e3ee;
    border-radius: 11px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

    .admin-search-input-wrap span {
        width: 15px;
        height: 15px;
        border: 2px solid #8092a8;
        border-radius: 50%;
        position: relative;
        flex: 0 0 auto;
        margin-right: 10px;
    }

        .admin-search-input-wrap span::after {
            content: "";
            width: 7px;
            height: 2px;
            background: #8092a8;
            position: absolute;
            right: -5px;
            bottom: -3px;
            transform: rotate(45deg);
            border-radius: 99px;
        }

    .admin-search-input-wrap input {
        border: 0;
        outline: none;
        width: 100%;
        color: #334155;
        font-weight: 600;
        background: transparent;
    }

        .admin-search-input-wrap input::placeholder {
            color: #9caabd;
        }

.admin-category-search button,
.admin-clear-search {
    height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    border: 0;
    background: #26384f;
    color: white;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-clear-search {
    background: #eef3f8;
    color: #52647a;
}

.admin-category-table-wrap {
    border-left: 1px solid #dfe8f2;
    border-right: 1px solid #dfe8f2;
    overflow: auto;
    max-height: 610px;
    background: #fff;
}

.admin-category-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

    .admin-category-table th {
        background: #ffffff;
        color: #102033;
        font-weight: 850;
        padding: 17px 20px;
        border-bottom: 1px solid #e5edf5;
        white-space: nowrap;
    }

    .admin-category-table td {
        padding: 17px 20px;
        border-bottom: 1px solid #edf2f7;
        color: #415166;
        vertical-align: middle;
    }

    .admin-category-table tbody tr {
        transition: background 0.16s ease;
    }

        .admin-category-table tbody tr:hover {
            background: #f8fbff;
        }

.admin-cat-name-cell {
    padding-left: calc(var(--level) * 24px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-cat-name {
    color: #075ea8;
    font-weight: 850;
    text-decoration: none;
}

    .admin-cat-name:hover {
        color: #034f8e;
        text-decoration: underline;
    }

.admin-cat-path {
    color: #8a9bb0;
    font-weight: 600;
}

.admin-cat-alias {
    color: #52647a;
    font-weight: 700;
}

.admin-small-tag {
    height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e8f3ff;
    color: #1d70b8;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
}

    .admin-small-tag.muted {
        background: #f1f5f9;
        color: #64748b;
    }

.admin-count-badge {
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    background: #eef4fa;
    color: #37516e;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-status-pill {
    min-width: 118px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
}

    .admin-status-pill.is-on {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-status-pill.is-off {
        background: #fee2e2;
        color: #b91c1c;
    }

.admin-order-number {
    width: 36px;
    height: 30px;
    border-radius: 9px;
    background: #f4f7fb;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
}

.admin-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-icon-btn {
    height: 34px;
    min-width: 58px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid #dbe5ef;
    background: #ffffff;
    color: #21334a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-icon-btn:hover {
        background: #eef6ff;
        color: #075ea8;
    }

    .admin-icon-btn.danger {
        color: #dc2626;
    }

        .admin-icon-btn.danger:hover {
            background: #fff1f2;
            color: #b91c1c;
        }

.admin-category-footer {
    min-height: 54px;
    border: 1px solid #dfe8f2;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #f8fbfe;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    padding: 0 18px;
    color: #7d8da3;
    font-weight: 650;
    font-size: 14px;
}

.admin-alert {
    border-radius: 13px;
    padding: 13px 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.admin-alert-success {
    background: #dcfce7;
    color: #166534;
}

.admin-alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.admin-empty-row,
.admin-empty-tree {
    text-align: center;
    color: #94a3b8;
    padding: 42px;
    font-weight: 750;
}

/* Tree view */

.admin-tree-box {
    padding: 10px 0 320px;
}

.admin-tree-row {
    min-height: 48px;
    padding: 8px 12px 8px calc(12px + var(--level) * 34px);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .admin-tree-row:hover {
        background: #f8fbff;
    }

.admin-tree-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-tree-line {
    width: 16px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 99px;
}

.admin-tree-folder {
    width: 18px;
    height: 14px;
    background: #10a37f;
    border-radius: 4px;
    position: relative;
    display: inline-block;
}

    .admin-tree-folder::before {
        content: "";
        width: 9px;
        height: 5px;
        background: #10a37f;
        position: absolute;
        left: 1px;
        top: -4px;
        border-radius: 4px 4px 0 0;
    }

.admin-tree-name {
    color: #26384f;
    text-decoration: none;
    font-weight: 850;
}

.admin-tree-count,
.admin-tree-status {
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
}

.admin-tree-count {
    background: #eef4fa;
    color: #53677e;
}

.admin-tree-status.on {
    background: #dcfce7;
    color: #15803d;
}

.admin-tree-status.off {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-tree-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: 0.15s;
}

.admin-tree-row:hover .admin-tree-actions {
    opacity: 1;
}

.admin-tree-actions a {
    color: #075ea8;
    font-weight: 800;
    text-decoration: none;
    font-size: 13px;
}

html,
body,
button,
input,
select,
textarea,
table,
.dropdown-menu {
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
/* ADMIN CATEGORY - Smartstore style, Vietnamese, no emoji icons */

.admin-category-page {
    padding: 34px 42px;
    background: #eef3f8;
    min-height: calc(100vh - 90px);
}

.admin-category-card {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 28px;
}

.admin-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.admin-category-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .admin-category-title-group h1 {
        margin: 0;
        font-size: 27px;
        font-weight: 850;
        color: #102033;
        letter-spacing: -0.04em;
    }

    .admin-category-title-group p {
        margin: 5px 0 0;
        color: #7b8da4;
        font-size: 14px;
        font-weight: 600;
    }

.admin-category-view-switch.icon-only {
    display: inline-flex;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #dce6f0;
    background: #f6f9fc;
}

    .admin-category-view-switch.icon-only a {
        width: 42px;
        height: 38px;
        border-radius: 9px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

        .admin-category-view-switch.icon-only a.active {
            background: #fff;
            box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
        }

.admin-category-toolbar.smartstore-style {
    height: 62px;
    border: 1px solid #dfe8f2;
    border-radius: 15px 15px 0 0;
    background: #f8fbfe;
    display: flex;
    align-items: center;
}

.admin-filter-btn {
    width: 62px;
    height: 62px;
    border: 0;
    border-right: 1px solid #dfe8f2;
    background: transparent;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.admin-add-inline-btn {
    height: 62px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #26384f;
    text-decoration: none;
    font-weight: 800;
    border-right: 1px solid #dfe8f2;
}

    .admin-add-inline-btn:hover {
        background: #eef6ff;
        color: #075ea8;
    }

.admin-filter-panel {
    position: absolute;
    z-index: 50;
    width: 330px;
    padding: 18px;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    display: none;
}

    .admin-filter-panel.is-open {
        display: block;
    }

.admin-filter-panel-title {
    font-size: 17px;
    font-weight: 850;
    color: #102033;
    margin-bottom: 14px;
}

.admin-filter-panel label {
    font-size: 13px;
    color: #52647a;
    font-weight: 800;
    margin-bottom: 7px;
}

.admin-filter-panel input {
    width: 100%;
    height: 42px;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    font-weight: 600;
}

.admin-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

    .admin-filter-actions button,
    .admin-filter-actions a {
        height: 40px;
        padding: 0 15px;
        border-radius: 10px;
        border: 0;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }

    .admin-filter-actions button {
        background: #26384f;
        color: white;
    }

    .admin-filter-actions a {
        background: #eef3f8;
        color: #52647a;
    }

.admin-category-table-wrap {
    border-left: 1px solid #dfe8f2;
    border-right: 1px solid #dfe8f2;
    overflow: auto;
    background: #fff;
}

.admin-category-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .admin-category-table th {
        padding: 17px 20px;
        color: #102033;
        font-weight: 850;
        border-bottom: 1px solid #e5edf5;
        background: #fff;
        white-space: nowrap;
    }

    .admin-category-table td {
        padding: 17px 20px;
        color: #415166;
        border-bottom: 1px solid #edf2f7;
        vertical-align: middle;
    }

    .admin-category-table tbody tr:hover {
        background: #f8fbff;
    }

.admin-cat-name {
    color: #075ea8;
    font-weight: 850;
    text-decoration: none;
}

.admin-small-tag {
    height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef4fa;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-count-badge,
.admin-order-number {
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    background: #eef4fa;
    color: #37516e;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-status-pill {
    min-width: 118px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
}

    .admin-status-pill.is-on {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-status-pill.is-off {
        background: #fee2e2;
        color: #b91c1c;
    }

.admin-row-actions {
    display: inline-flex;
    gap: 8px;
}

.admin-icon-btn {
    height: 34px;
    min-width: 58px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid #dbe5ef;
    background: #fff;
    color: #21334a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

    .admin-icon-btn.danger {
        color: #dc2626;
    }

.admin-category-grid-footer {
    min-height: 54px;
    border: 1px solid #dfe8f2;
    border-top: 0;
    border-radius: 0 0 15px 15px;
    background: #f8fbfe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.admin-grid-left,
.admin-grid-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-grid-icon-btn,
.admin-grid-page-number {
    width: 36px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid #d8e3ee;
    background: #fff;
    color: #52647a;
    text-decoration: none;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-grid-icon-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

.admin-grid-page-number {
    background: #e9eef5;
    color: #102033;
}

.admin-grid-right span {
    color: #7d8da3;
    font-weight: 650;
    font-size: 14px;
}

.admin-page-size-form select {
    height: 36px;
    border: 1px solid #d8e3ee;
    border-radius: 9px;
    padding: 0 10px;
    font-weight: 700;
    color: #52647a;
    background: #fff;
}

/* CSS-only icons */

.admin-css-icon {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    color: #40546b;
}

.admin-icon-list::before,
.admin-icon-list::after {
    content: "";
    position: absolute;
    left: 2px;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
}

.admin-icon-list::before {
    top: 5px;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.admin-icon-tree::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 2px;
    width: 2px;
    height: 14px;
    background: currentColor;
}

.admin-icon-tree::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 12px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 4px 4px;
}

.admin-icon-filter::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, 62% 45%, 62% 100%, 38% 100%, 38% 45%);
}

.admin-icon-refresh::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.admin-icon-refresh::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(20deg);
}
/* =========================================================
   ADMIN CATEGORY CLEAN UI - CSS ICON ONLY
   ========================================================= */

.admin-category-page {
    min-height: calc(100vh - 86px);
    padding: 52px 56px;
    background: linear-gradient(180deg, #eef4fa 0%, #f7fafc 100%);
}

.admin-category-card {
    max-width: 1580px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dfe8f2;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    padding: 28px 30px 34px;
}

.admin-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.admin-category-title-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

    .admin-category-title-group > div:first-child {
        justify-self: start;
    }

    .admin-category-title-group h1 {
        margin: 0;
        font-size: 28px;
        line-height: 1.15;
        font-weight: 850;
        color: #0f2239;
        letter-spacing: -0.04em;
    }

    .admin-category-title-group p {
        margin: 7px 0 0;
        color: #71849c;
        font-size: 14px;
        font-weight: 600;
    }

.admin-category-view-switch {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid #dce7f2;
    border-radius: 14px;
    background: #f4f8fc;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

    .admin-view-btn,
    .admin-category-view-switch a {
        width: 52px;
        height: 42px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #344963;
        text-decoration: none;
        transition: 0.18s ease;
    }

        .admin-view-btn:hover,
        .admin-category-view-switch a:hover {
            background: #eef5fb;
            color: #1267ad;
        }

        .admin-view-btn.active,
        .admin-category-view-switch a.active {
            background: #fff;
            color: #0f2239;
            box-shadow: 0 7px 18px rgba(15, 23, 42, 0.12);
        }

.admin-category-toolbar.smartstore-style {
    height: 64px;
    border: 1px solid #dfe8f2;
    border-radius: 16px 16px 0 0;
    background: #f8fbfe;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.admin-filter-btn {
    width: 70px;
    height: 64px;
    border: 0;
    border-right: 1px solid #dfe8f2;
    background: transparent;
    color: #344963;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
}

    .admin-filter-btn:hover {
        background: #eef6ff;
        color: #116bb4;
    }

.admin-add-inline-btn {
    height: 64px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border-right: 1px solid #dfe8f2;
    color: #1f3147;
    text-decoration: none;
    font-size: 15px;
    font-weight: 850;
    transition: 0.18s ease;
}

    .admin-add-inline-btn:hover {
        background: #eef6ff;
        color: #116bb4;
    }

    .admin-add-inline-btn span:first-child {
        font-size: 20px;
        line-height: 1;
        font-weight: 900;
    }

.admin-category-table-wrap {
    border-left: 1px solid #dfe8f2;
    border-right: 1px solid #dfe8f2;
    background: #fff;
    overflow: auto;
}

.admin-category-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .admin-category-table th {
        padding: 18px 22px;
        color: #0f2239;
        font-size: 14px;
        font-weight: 850;
        border-bottom: 1px solid #e7eef5;
        background: #fff;
        white-space: nowrap;
    }

    .admin-category-table td {
        padding: 18px 22px;
        color: #40526a;
        border-bottom: 1px solid #edf3f8;
        vertical-align: middle;
    }

    .admin-category-table tbody tr {
        transition: 0.16s ease;
    }

        .admin-category-table tbody tr:hover {
            background: #f8fbff;
        }

.admin-cat-name {
    color: #075fa8;
    font-weight: 850;
    text-decoration: none;
}

    .admin-cat-name:hover {
        color: #004e8d;
        text-decoration: underline;
    }

.admin-small-tag {
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf3f8;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
}

    .admin-small-tag.muted {
        background: #eef3f8;
        color: #64748b;
    }

.admin-count-badge,
.admin-order-number {
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: #eef4fa;
    color: #29435f;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-status-pill {
    min-width: 122px;
    height: 35px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    transition: 0.18s ease;
}

    .admin-status-pill.is-on {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-status-pill.is-off {
        background: #fee2e2;
        color: #b91c1c;
    }

    .admin-status-pill:hover {
        filter: brightness(0.97);
    }

.admin-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.admin-icon-btn {
    height: 36px;
    min-width: 62px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #dbe5ef;
    background: #fff;
    color: #17263a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s ease;
}

    .admin-icon-btn:hover {
        background: #f3f8fd;
        border-color: #c8d8e8;
    }

    .admin-icon-btn.danger {
        color: #dc2626;
    }

        .admin-icon-btn.danger:hover {
            background: #fff1f2;
            border-color: #fecdd3;
        }

.admin-category-grid-footer {
    min-height: 58px;
    border: 1px solid #dfe8f2;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #f8fbfe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.admin-grid-left,
.admin-grid-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-grid-icon-btn,
.admin-grid-page-number {
    width: 38px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d8e3ee;
    background: #fff;
    color: #52647a;
    text-decoration: none;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-grid-icon-btn:hover {
        background: #eef6ff;
        color: #1267ad;
    }

    .admin-grid-icon-btn.disabled {
        opacity: 0.42;
        pointer-events: none;
    }

.admin-grid-page-number {
    background: #eaf1f8;
    color: #0f2239;
}

.admin-grid-right span {
    color: #71849c;
    font-weight: 700;
    font-size: 14px;
}

.admin-page-size-form select {
    height: 38px;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    padding: 0 12px;
    font-weight: 750;
    color: #40526a;
    background: #fff;
}

/* TREE PAGE */

.admin-category-tree-list {
    margin-top: 28px;
    padding-left: 12px;
}

.admin-tree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: #0f2239;
    font-weight: 850;
}

.admin-tree-line {
    width: 16px;
    height: 2px;
    border-radius: 99px;
    background: #cbd8e6;
}

.admin-tree-name {
    color: #0f2239;
    text-decoration: none;
}

    .admin-tree-name:hover {
        color: #075fa8;
    }

.admin-tree-product-count {
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3f8;
    color: #40526a;
    font-size: 12px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
}

.admin-tree-status {
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
}

    .admin-tree-status.is-on {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-tree-status.is-off {
        background: #fee2e2;
        color: #b91c1c;
    }

/* FORM PAGE */

.admin-category-form-page {
    padding: 42px 56px;
    background: linear-gradient(180deg, #eef4fa 0%, #f7fafc 100%);
    min-height: calc(100vh - 86px);
}

.admin-form-card {
    max-width: 1580px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    padding: 28px 30px;
}

.admin-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.admin-form-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .admin-form-title h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 850;
        color: #0f2239;
        letter-spacing: -0.04em;
    }

.admin-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid #dbe5ef;
    background: #fff;
    color: #344963;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .admin-back-btn:hover {
        background: #eef6ff;
        color: #1267ad;
    }

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-save-btn,
.admin-save-secondary-btn {
    height: 46px;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 850;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.admin-save-btn {
    background: #1976c9;
    color: #fff;
    box-shadow: 0 10px 24px rgba(25, 118, 201, 0.22);
}

.admin-save-secondary-btn {
    background: #f8fafc;
    color: #0f2239;
    border-color: #dbe5ef;
}

.admin-form-layout {
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 34px;
}

.admin-category-form-tabs {
    border-right: 1px solid #dbe5ef;
    padding-right: 18px;
}

.admin-tab-link {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #33465f;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 12px;
    text-align: left;
    transition: 0.18s ease;
}

    .admin-tab-link:hover {
        background: #eef6ff;
        color: #1267ad;
    }

    .admin-tab-link.active {
        background: #fff7ed;
        color: #0f2239;
        box-shadow: inset 4px 0 0 #f59e0b;
    }

.admin-form-content {
    min-width: 0;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 18px;
}

    .admin-form-row label {
        color: #17263a;
        font-weight: 850;
    }

    .admin-form-row input,
    .admin-form-row select,
    .admin-form-row textarea {
        width: 100%;
        border: 1px solid #dbe5ef;
        border-radius: 12px;
        background: #fff;
        color: #17263a;
        padding: 12px 15px;
        font-weight: 600;
        outline: none;
    }

    .admin-form-row textarea {
        min-height: 120px;
        resize: vertical;
    }

        .admin-form-row input:focus,
        .admin-form-row select:focus,
        .admin-form-row textarea:focus {
            border-color: #87bff0;
            box-shadow: 0 0 0 4px rgba(25, 118, 201, 0.12);
        }

/* CSS ICONS - no emoji */

.admin-css-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    color: currentColor;
    flex: 0 0 auto;
}

/* list */
.admin-icon-list::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 11px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.admin-icon-list::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 4px;
    width: 2px;
    height: 2px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

/* tree */
.admin-icon-tree::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 3px;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 6px 0 currentColor, 8px 6px 0 currentColor, 0 12px 0 currentColor, 8px 12px 0 currentColor;
}

.admin-icon-tree::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.55;
}

/* filter */
.admin-icon-filter::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid currentColor;
    box-sizing: border-box;
}

.admin-icon-filter::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 9px;
    width: 4px;
    height: 6px;
    background: currentColor;
    border-radius: 0 0 2px 2px;
}

/* refresh */
.admin-icon-refresh::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.admin-icon-refresh::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(18deg);
}

/* folder */
.admin-icon-folder::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 14px;
    height: 10px;
    background: currentColor;
    border-radius: 3px;
}

.admin-icon-folder::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 7px;
    height: 5px;
    background: currentColor;
    border-radius: 3px 3px 0 0;
}

/* back */
.admin-icon-back::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 11px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
}

.admin-icon-back::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* check */
.admin-icon-check::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 9px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* general pencil */
.admin-icon-general::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 3px;
    width: 4px;
    height: 13px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
}

.admin-icon-general::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 2px;
    width: 8px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
}

/* seo search */
.admin-icon-seo::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.admin-icon-seo::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 7px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    transform: rotate(45deg);
}

/* product box */
.admin-icon-box::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 12px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.admin-icon-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 8px;
    height: 5px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: skewY(-25deg);
}
/* =========================================================
   ADMIN CATEGORY TREE - CLEAN VERSION
   ========================================================= */

.admin-category-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-category-title-text h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.04em;
    color: #0f2239;
}

.admin-category-title-text p {
    margin: 7px 0 0;
    color: #71849c;
    font-size: 14px;
    font-weight: 650;
}

.admin-category-topbar .admin-category-view-switch {
    justify-self: center;
}

.admin-category-topbar .admin-primary-btn {
    justify-self: end;
}

.admin-primary-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 13px;
    border: 0;
    background: linear-gradient(135deg, #1976c9, #0d5ca6);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 28px rgba(25, 118, 201, 0.22);
    transition: 0.18s ease;
}

    .admin-primary-btn:hover {
        transform: translateY(-1px);
        color: #fff;
        box-shadow: 0 18px 34px rgba(25, 118, 201, 0.28);
    }

.admin-tree-box {
    min-height: 520px;
    border: 1px solid #dfe8f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 24px 26px;
}

.admin-tree-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 8px 12px 8px calc(12px + (var(--level) * 34px));
    border-radius: 14px;
    transition: 0.18s ease;
}

    .admin-tree-row:hover {
        background: #f5f9fd;
    }

.admin-tree-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-tree-line {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #c8d6e5;
    flex: 0 0 auto;
}

.admin-tree-name {
    color: #0f2239;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

    .admin-tree-name:hover {
        color: #075fa8;
        text-decoration: underline;
    }

.admin-tree-count {
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: #edf3f8;
    color: #415974;
    font-size: 12px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.admin-tree-status {
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

    .admin-tree-status.is-on {
        background: #dcfce7;
        color: #15803d;
    }

    .admin-tree-status.is-off {
        background: #fee2e2;
        color: #b91c1c;
    }

.admin-tree-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    opacity: 0;
    transform: translateX(6px);
    transition: 0.18s ease;
}

.admin-tree-row:hover .admin-tree-actions {
    opacity: 1;
    transform: translateX(0);
}

.admin-tree-actions a {
    height: 34px;
    padding: 0 13px;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #fff;
    color: #29435f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: 0.18s ease;
}

    .admin-tree-actions a:hover {
        background: #eef6ff;
        border-color: #bed7ee;
        color: #075fa8;
    }

.admin-empty-tree {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #71849c;
    text-align: center;
}

    .admin-empty-tree h3 {
        margin: 18px 0 6px;
        color: #0f2239;
        font-size: 22px;
        font-weight: 850;
    }

    .admin-empty-tree p {
        margin: 0 0 20px;
        font-size: 14px;
        font-weight: 650;
    }

.admin-empty-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #eef4fa;
    color: #90a4b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .admin-empty-icon .admin-css-icon {
        width: 30px;
        height: 30px;
    }

/* thêm icon dấu cộng bằng CSS */
.admin-icon-plus::before,
.admin-icon-plus::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.admin-icon-plus::after {
    transform: rotate(90deg);
}

/* chỉnh lại icon folder để không giống emoji */
.admin-icon-folder::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 14px;
    height: 9px;
    background: currentColor;
    border-radius: 3px;
}

.admin-icon-folder::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    width: 7px;
    height: 5px;
    background: currentColor;
    border-radius: 3px 3px 0 0;
}

/* màu folder trong tree */
.admin-tree-main .admin-icon-folder {
    color: #0aa37f;
}

/* responsive nhẹ */
@media (max-width: 1100px) {
    .admin-category-topbar {
        grid-template-columns: 1fr;
    }

        .admin-category-topbar .admin-category-view-switch,
        .admin-category-topbar .admin-primary-btn {
            justify-self: start;
        }

    .admin-tree-row {
        grid-template-columns: 1fr;
    }

    .admin-tree-actions {
        opacity: 1;
        transform: none;
        padding-left: calc(28px + (var(--level) * 34px));
    }
}
/* =========================================================
   SHOP CATEGORY MENU - DATABASE DROPDOWN
   ========================================================= */

.shop-category-nav {
    background: #f6f8fb;
    border-top: 1px solid #e6edf5;
    border-bottom: 1px solid #e6edf5;
    position: relative;
    z-index: 50;
}

.shop-category-nav-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 56px;
}

.shop-nav-link {
    height: 56px;
    padding: 0 15px;
    color: #17263a;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    transition: 0.18s ease;
    white-space: nowrap;
}

    .shop-nav-link:hover {
        color: #0d6efd;
    }

    .shop-nav-link::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 0;
        height: 3px;
        background: #f59e0b;
        border-radius: 999px 999px 0 0;
        transform: scaleX(0);
        transform-origin: center;
        transition: 0.18s ease;
    }

    .shop-nav-link:hover::after {
        transform: scaleX(1);
    }

.shop-nav-item {
    position: relative;
    height: 56px;
    display: inline-flex;
    align-items: center;
}

.shop-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: 0.18s ease;
}

.shop-nav-item:hover .shop-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
}

.shop-submenu {
    min-width: 245px;
    position: absolute;
    top: 56px;
    left: 0;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.18s ease;
    z-index: 100;
}

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

.shop-submenu-link {
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 11px;
    color: #17263a;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: 0.16s ease;
}

    .shop-submenu-link:hover {
        background: #f3f8fd;
        color: #0d6efd;
    }

    .shop-submenu-link span {
        font-size: 14px;
        font-weight: 800;
    }

    .shop-submenu-link small {
        color: #7c8fa5;
        font-size: 12px;
        font-weight: 650;
    }

.sale-link {
    position: relative;
}

.shop-sale-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    min-width: 30px;
    height: 25px;
    border-radius: 7px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* =========================================================
   FIX SALE MENU - CHỈ HIGHLIGHT KHI HOVER
   ========================================================= */

.shop-category-nav .shop-sale-menu-item {
    position: relative !important;
    height: 56px !important;
    min-width: 64px !important;
    padding: 0 22px 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #17263a !important;
    text-decoration: none !important;
}

.shop-category-nav .shop-sale-menu-text {
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

.shop-category-nav .shop-sale-menu-badge {
    position: absolute !important;
    top: 6px !important;
    right: 4px !important;
    min-width: 24px !important;
    height: 18px !important;
    padding: 0 6px !important;
    border-radius: 7px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

/* Mặc định KHÔNG hiện gạch vàng */
.shop-category-nav .shop-sale-menu-item::after {
    content: "" !important;
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 0 !important;
    height: 3px !important;
    border-radius: 999px 999px 0 0 !important;
    background: #f59e0b !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.18s ease !important;
}

/* Chỉ khi rê chuột mới xanh và hiện gạch vàng */
.shop-category-nav .shop-sale-menu-item:hover {
    color: #0d6efd !important;
}

    .shop-category-nav .shop-sale-menu-item:hover::after {
        transform: scaleX(1) !important;
    }
/* =========================================================
   ADMIN SHARED LIST STYLE
   Đồng bộ giao diện: Danh mục / Sản phẩm / Quy tắc sản phẩm
   ========================================================= */

.admin-product-page,
.admin-rule-page,
.admin-category-page {
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f2340;
}

.admin-product-page,
.admin-rule-page {
    padding: 36px 44px;
}

.admin-product-card,
.admin-rule-card,
.admin-category-card {
    background: #fff;
    border: 1px solid #dfe8f3;
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(15, 35, 64, 0.08);
    padding: 28px 30px;
}

/* Header */

.admin-product-header,
.admin-rule-header,
.admin-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

    .admin-product-header h1,
    .admin-rule-header h1,
    .admin-category-header h1,
    .admin-product-title h1,
    .admin-rule-title h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 900;
        letter-spacing: -0.04em;
        color: #0b1d35;
    }

    .admin-product-header p,
    .admin-rule-header p,
    .admin-category-header p,
    .admin-product-title p,
    .admin-rule-title p {
        margin: 6px 0 0;
        color: #7b8ba5;
        font-size: 15px;
        font-weight: 600;
    }

/* Nút chính */

.admin-primary-btn,
.admin-add-inline-btn,
.admin-product-add-btn,
.admin-rule-add-btn,
.admin-rule-apply-btn,
.admin-btn-primary {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #1f7ed0;
    background: linear-gradient(135deg, #2385d8, #176bb8);
    color: #fff !important;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(31, 126, 208, 0.22);
}

    .admin-primary-btn:hover,
    .admin-add-inline-btn:hover,
    .admin-product-add-btn:hover,
    .admin-rule-add-btn:hover,
    .admin-rule-apply-btn:hover,
    .admin-btn-primary:hover {
        background: linear-gradient(135deg, #1d78c7, #135fa5);
        color: #fff !important;
        transform: translateY(-1px);
    }

/* Nút phụ */

.admin-btn-outline,
.admin-rule-apply-btn {
    background: #fff;
    color: #176bb8 !important;
    border: 1px solid #2787da;
    box-shadow: none;
}

    .admin-btn-outline:hover,
    .admin-rule-apply-btn:hover {
        background: #eff7ff;
        color: #135fa5 !important;
    }

/* Toolbar giống danh mục */

.admin-product-toolbar,
.admin-rule-toolbar,
.admin-category-toolbar {
    min-height: 58px;
    background: #f7faff;
    border: 1px solid #dfe8f3;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.admin-filter-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-right: 1px solid #dfe8f3;
    background: #f7faff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .admin-filter-btn:hover {
        background: #eef5fd;
    }

.admin-add-inline-btn {
    height: 58px;
    border-radius: 0;
    border: none;
    border-right: 1px solid #dfe8f3;
    background: transparent;
    color: #0f2340 !important;
    box-shadow: none;
    padding: 0 24px;
}

    .admin-add-inline-btn:hover {
        background: #eef5fd;
        color: #0f2340 !important;
        transform: none;
    }

/* Icon bằng CSS, không dùng emoji */

.admin-css-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
}

.admin-icon-filter::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 14px;
    height: 12px;
    background: #334b68;
    clip-path: polygon(0 0, 100% 0, 62% 48%, 62% 100%, 38% 100%, 38% 48%);
}

.admin-icon-list::before,
.admin-icon-list::after {
    content: "";
    position: absolute;
    left: 3px;
    width: 12px;
    height: 2px;
    background: #334b68;
    border-radius: 999px;
    box-shadow: 0 6px 0 #334b68, 0 12px 0 #334b68;
}

.admin-icon-list::before {
    top: 2px;
}

.admin-icon-tree::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 2px;
    width: 2px;
    height: 14px;
    background: #334b68;
    border-radius: 999px;
}

.admin-icon-tree::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 12px;
    height: 10px;
    border-left: 2px solid #334b68;
    border-bottom: 2px solid #334b68;
    border-radius: 0 0 0 5px;
}

/* Table */

.admin-product-table-wrap,
.admin-rule-table-wrap,
.admin-category-table-wrap {
    border: 1px solid #dfe8f3;
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    background: #fff;
}

.admin-product-table,
.admin-rule-table,
.admin-category-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #fff;
}

    .admin-product-table thead th,
    .admin-rule-table thead th,
    .admin-category-table thead th {
        background: #fff;
        color: #071a31;
        font-size: 14px;
        font-weight: 900;
        padding: 17px 18px;
        border-bottom: 1px solid #dfe8f3;
        white-space: nowrap;
    }

    .admin-product-table tbody td,
    .admin-rule-table tbody td,
    .admin-category-table tbody td {
        padding: 16px 18px;
        border-bottom: 1px solid #e8eef6;
        color: #10233d;
        font-size: 15px;
        vertical-align: middle;
    }

    .admin-product-table tbody tr:hover,
    .admin-rule-table tbody tr:hover,
    .admin-category-table tbody tr:hover {
        background: #f7fbff;
    }

    .admin-product-table tbody tr:last-child td,
    .admin-rule-table tbody tr:last-child td,
    .admin-category-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Tên sản phẩm / tên quy tắc */

.admin-product-name,
.admin-rule-name,
.admin-cat-name {
    color: #005da8;
    font-weight: 900;
    text-decoration: none;
}

    .admin-product-name:hover,
    .admin-rule-name:hover,
    .admin-cat-name:hover {
        color: #003f78;
        text-decoration: underline;
    }

.admin-product-category,
.admin-product-code,
.admin-muted-text {
    color: #8493aa;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Ảnh sản phẩm */

.admin-product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #dfe8f3;
    background: #f6f9fd;
}

/* Badge / trạng thái */

.admin-count-badge,
.admin-order-number,
.admin-product-code-badge {
    min-width: 30px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    background: #eef4fa;
    color: #1e395c;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-status-pill,
.admin-rule-status,
.admin-product-status {
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 106px;
}

    .admin-status-pill.is-on,
    .admin-rule-status.is-on,
    .admin-product-status.is-on {
        background: #d8fbe6;
        color: #087a39;
    }

    .admin-status-pill.is-off,
    .admin-rule-status.is-off,
    .admin-product-status.is-off {
        background: #ffe0e0;
        color: #b91c1c;
    }

/* Check xanh */

.admin-check-mark {
    color: #00a66a;
    font-size: 24px;
    font-weight: 900;
}

/* Nút thao tác */

.admin-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-icon-btn,
.admin-action-btn {
    min-width: 58px;
    height: 36px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid #d8e4f1;
    background: #fff;
    color: #0f2340;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-icon-btn:hover,
    .admin-action-btn:hover {
        background: #eef6ff;
        color: #005da8;
    }

    .admin-icon-btn.danger,
    .admin-action-btn.danger {
        color: #dc2626;
    }

        .admin-icon-btn.danger:hover,
        .admin-action-btn.danger:hover {
            background: #fff1f1;
            border-color: #ffc9c9;
            color: #b91c1c;
        }

/* Nút ba chấm */

.admin-more-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #41536b;
    font-size: 24px;
    line-height: 1;
}

    .admin-more-btn:hover {
        background: #eef5fd;
    }

/* Footer phân trang */

.admin-product-footer,
.admin-rule-footer,
.admin-category-footer {
    min-height: 52px;
    background: #f7faff;
    border: 1px solid #dfe8f3;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8493aa;
    font-weight: 700;
}

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

.admin-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #dfe8f3;
    background: #fff;
    color: #53667f;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .admin-page-btn.active {
        background: #e8f1fb;
        color: #0f2340;
        border-color: #c9d9ea;
    }

    .admin-page-btn.disabled {
        opacity: 0.45;
        pointer-events: none;
    }

.admin-page-size {
    height: 38px;
    border: 1px solid #dfe8f3;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #0f2340;
    font-weight: 700;
}

/* Product Rule riêng */

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

.admin-rule-discount {
    font-weight: 900;
    color: #0f7a42;
}

.admin-rule-time {
    color: #384b63;
    font-weight: 700;
    line-height: 1.45;
}

/* Responsive nhẹ */

@media (max-width: 992px) {
    .admin-product-page,
    .admin-rule-page {
        padding: 22px 16px;
    }

    .admin-product-header,
    .admin-rule-header,
    .admin-category-header {
        flex-direction: column;
    }

    .admin-product-table-wrap,
    .admin-rule-table-wrap,
    .admin-category-table-wrap {
        overflow-x: auto;
    }
}
/* =========================================================
   ADMIN PRODUCT INDEX - SYNC WITH CATEGORY PAGE
   ========================================================= */

.admin-product-page {
    padding: 36px 44px;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f2340;
}

.admin-product-card {
    background: #fff;
    border: 1px solid #dfe8f3;
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(15, 35, 64, 0.08);
    padding: 28px 30px;
}

.admin-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-product-title h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0b1d35;
}

.admin-product-title p {
    margin: 6px 0 0;
    color: #7b8ba5;
    font-size: 15px;
    font-weight: 600;
}

.admin-product-toolbar {
    min-height: 58px;
    background: #f7faff;
    border: 1px solid #dfe8f3;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.admin-filter-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-right: 1px solid #dfe8f3;
    background: #f7faff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .admin-filter-btn:hover,
    .admin-filter-btn.active {
        background: #eef5fd;
    }

.admin-add-inline-btn {
    height: 58px;
    border-radius: 0;
    border: none;
    border-right: 1px solid #dfe8f3;
    background: transparent;
    color: #0f2340 !important;
    box-shadow: none;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .admin-add-inline-btn:hover {
        background: #eef5fd;
        color: #0f2340 !important;
    }

.admin-delete-selected-btn {
    margin-left: auto;
    height: 58px;
    border: none;
    background: transparent;
    color: #95a3b7;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-product-manager {
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr);
    transition: 0.22s ease;
}

    .admin-product-manager.filter-open {
        grid-template-columns: 300px minmax(0, 1fr);
    }

.admin-product-filter-panel {
    overflow: hidden;
    border-left: 1px solid #dfe8f3;
    border-bottom: 1px solid #dfe8f3;
    background: #fbfdff;
}

    .admin-product-filter-panel form {
        width: 300px;
        padding: 20px;
    }

.admin-filter-panel-title {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 900;
    color: #0b1d35;
}

.admin-filter-group {
    margin-bottom: 15px;
}

    .admin-filter-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 850;
        color: #344866;
    }

    .admin-filter-group input,
    .admin-filter-group select {
        width: 100%;
        height: 42px;
        border: 1px solid #d8e4f1;
        border-radius: 11px;
        background: #fff;
        padding: 0 12px;
        outline: none;
        color: #0f2340;
        font-weight: 650;
    }

        .admin-filter-group input:focus,
        .admin-filter-group select:focus {
            border-color: #2f85d8;
            box-shadow: 0 0 0 3px rgba(47, 133, 216, 0.12);
        }

.admin-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.admin-filter-submit,
.admin-filter-reset {
    height: 42px;
    border-radius: 11px;
    border: 1px solid #1f7ed0;
    font-size: 14px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-filter-submit {
    background: #1f7ed0;
    color: #fff;
}

.admin-filter-reset {
    background: #fff;
    color: #1f7ed0;
}

.admin-product-table-section {
    min-width: 0;
}

.admin-product-table-wrap {
    border: 1px solid #dfe8f3;
    border-top: none;
    overflow-x: auto;
    background: #fff;
}

.admin-product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #fff;
}

    .admin-product-table thead th {
        background: #fff;
        color: #071a31;
        font-size: 14px;
        font-weight: 900;
        padding: 17px 18px;
        border-bottom: 1px solid #dfe8f3;
        white-space: nowrap;
    }

    .admin-product-table tbody td {
        padding: 16px 18px;
        border-bottom: 1px solid #e8eef6;
        color: #10233d;
        font-size: 15px;
        vertical-align: middle;
    }

    .admin-product-table tbody tr:hover {
        background: #f7fbff;
    }

.admin-product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #dfe8f3;
    background: #f6f9fd;
}

.admin-product-name {
    color: #005da8;
    font-weight: 900;
    text-decoration: none;
}

    .admin-product-name:hover {
        color: #003f78;
        text-decoration: underline;
    }

.admin-product-category {
    margin-top: 3px;
    color: #8493aa;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-product-code-badge,
.admin-order-number {
    min-width: 30px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    background: #eef4fa;
    color: #1e395c;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-date-text {
    display: block;
    font-weight: 750;
    color: #10233d;
}

    .admin-date-text + small {
        color: #7b8ba5;
        font-weight: 650;
    }

.admin-muted-text.normal-text {
    text-transform: none;
    font-size: 14px;
}

.admin-product-status {
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
}

    .admin-product-status.is-on {
        background: #d8fbe6;
        color: #087a39;
    }

    .admin-product-status.is-off {
        background: #ffe0e0;
        color: #b91c1c;
    }

.admin-more-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #41536b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-more-btn:hover {
        background: #eef5fd;
    }

.admin-row-menu {
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 35, 64, 0.14);
    padding: 8px;
}

    .admin-row-menu .dropdown-item {
        border-radius: 10px;
        font-weight: 700;
        padding: 9px 12px;
    }

.admin-product-footer {
    min-height: 52px;
    background: #f7faff;
    border: 1px solid #dfe8f3;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8493aa;
    font-weight: 700;
}

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

.admin-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #dfe8f3;
    background: #fff;
    color: #53667f;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .admin-page-btn.active {
        background: #e8f1fb;
        color: #0f2340;
        border-color: #c9d9ea;
    }

    .admin-page-btn.disabled {
        opacity: 0.45;
        pointer-events: none;
    }

.admin-footer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-page-size-form {
    margin: 0;
}

.admin-page-size {
    height: 38px;
    border: 1px solid #dfe8f3;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #0f2340;
    font-weight: 750;
}

.admin-empty-row {
    padding: 32px !important;
    text-align: center;
    color: #7b8ba5 !important;
    font-weight: 750;
}

/* CSS icons */

.admin-css-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

.admin-icon-filter::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 14px;
    height: 12px;
    background: #334b68;
    clip-path: polygon(0 0, 100% 0, 62% 48%, 62% 100%, 38% 100%, 38% 48%);
}

.admin-icon-trash::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 7px;
    width: 8px;
    height: 9px;
    border: 2px solid currentColor;
    border-top: none;
    border-radius: 0 0 2px 2px;
}

.admin-icon-trash::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 10px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.admin-icon-more::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.admin-icon-refresh::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.admin-icon-refresh::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(20deg);
}

@media (max-width: 1100px) {
    .admin-product-page {
        padding: 24px 16px;
    }

    .admin-product-header {
        flex-direction: column;
    }

    .admin-product-manager,
    .admin-product-manager.filter-open {
        grid-template-columns: 1fr;
    }

    .admin-product-filter-panel {
        display: none;
    }

    .admin-product-manager.filter-open .admin-product-filter-panel {
        display: block;
    }

    .admin-product-filter-panel form {
        width: 100%;
    }

    .admin-product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .admin-footer-info {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================================
   ADMIN ORDER MANAGEMENT
   ========================================================= */

.admin-order-page,
.admin-order-detail-page {
    padding: 36px 44px;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f2340;
}

.admin-order-card,
.admin-order-detail-card {
    background: #fff;
    border: 1px solid #dfe8f3;
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(15, 35, 64, 0.08);
    padding: 28px 30px;
}

.admin-order-header,
.admin-order-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

    .admin-order-header h1,
    .admin-order-detail-header h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 900;
        color: #0b1d35;
    }

    .admin-order-header p,
    .admin-order-detail-header p {
        margin: 6px 0 0;
        color: #7b8ba5;
        font-weight: 650;
    }

.admin-order-search {
    width: 420px;
    height: 46px;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    background: #fff;
}

    .admin-order-search input {
        flex: 1;
        border: none;
        outline: none;
        padding: 0 16px;
        color: #0f2340;
        font-weight: 650;
    }

    .admin-order-search button {
        width: 52px;
        border: none;
        border-left: 1px solid #dfe8f3;
        background: #f7faff;
    }

.admin-order-toolbar {
    min-height: 58px;
    background: #f7faff;
    border: 1px solid #dfe8f3;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.admin-export-btn {
    height: 58px;
    border: none;
    border-right: 1px solid #dfe8f3;
    background: transparent;
    color: #0f2340;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 850;
}

.admin-order-manager {
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr);
    transition: 0.22s ease;
}

    .admin-order-manager.filter-open {
        grid-template-columns: 330px minmax(0, 1fr);
    }

.admin-order-filter-panel {
    overflow: hidden;
    border-left: 1px solid #dfe8f3;
    border-bottom: 1px solid #dfe8f3;
    background: #fbfdff;
}

    .admin-order-filter-panel form {
        width: 330px;
        padding: 22px;
    }

    .admin-order-filter-panel h3 {
        margin: 0 0 18px;
        font-size: 22px;
        font-weight: 900;
    }

.admin-order-table-wrap {
    border: 1px solid #dfe8f3;
    border-top: none;
    overflow-x: auto;
    background: #fff;
}

.admin-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .admin-order-table th {
        padding: 17px 18px;
        border-bottom: 1px solid #dfe8f3;
        background: #fff;
        color: #0b1d35;
        font-size: 14px;
        font-weight: 900;
        white-space: nowrap;
    }

    .admin-order-table td {
        padding: 18px;
        border-bottom: 1px solid #e8eef6;
        vertical-align: top;
        font-size: 15px;
    }

    .admin-order-table tbody tr:hover {
        background: #f7fbff;
    }

.admin-order-code,
.admin-order-customer {
    color: #005da8;
    font-weight: 900;
    text-decoration: none;
}

.admin-order-table small {
    display: block;
    margin-top: 4px;
    color: #8b99ad;
    font-weight: 650;
}

.admin-shipping-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 320px;
}

.admin-shipping-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
}

.admin-order-status,
.admin-payment-status {
    min-width: 110px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
}

    .admin-order-status.pending,
    .admin-payment-status.pending {
        background: #fff3d8;
        color: #b45309;
    }

    .admin-order-status.processing {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .admin-order-status.completed,
    .admin-payment-status.paid {
        background: #d8fbe6;
        color: #087a39;
    }

    .admin-order-status.cancelled,
    .admin-payment-status.cancelled,
    .admin-payment-status.failed {
        background: #ffe0e0;
        color: #b91c1c;
    }

.admin-order-footer {
    min-height: 52px;
    background: #f7faff;
    border: 1px solid #dfe8f3;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8493aa;
    font-weight: 700;
}

.admin-order-detail-total {
    min-width: 220px;
    background: #f7faff;
    border: 1px solid #dfe8f3;
    border-radius: 18px;
    padding: 18px 22px;
    text-align: right;
}

    .admin-order-detail-total span {
        display: block;
        color: #7b8ba5;
        font-weight: 750;
    }

    .admin-order-detail-total strong {
        display: block;
        margin-top: 4px;
        font-size: 26px;
        font-weight: 950;
        color: #0b1d35;
    }

.admin-back-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    background: #fff;
    color: #0f2340;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
}

.admin-order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 24px;
}

.admin-order-info-box,
.admin-order-products-box {
    border: 1px solid #dfe8f3;
    border-radius: 18px;
    padding: 22px;
    background: #fff;
}

    .admin-order-info-box h2,
    .admin-order-products-box h2 {
        margin: 0 0 18px;
        font-size: 22px;
        font-weight: 900;
    }

    .admin-order-info-box p {
        margin: 8px 0;
        color: #334b68;
        font-weight: 650;
    }

.admin-status-form {
    margin-bottom: 18px;
}

    .admin-status-form label {
        display: block;
        margin-bottom: 7px;
        font-weight: 900;
    }

    .admin-status-form select {
        width: 100%;
        height: 44px;
        border: 1px solid #d8e4f1;
        border-radius: 12px;
        padding: 0 12px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .admin-status-form button {
        height: 42px;
        border: none;
        border-radius: 12px;
        background: #1f7ed0;
        color: #fff;
        padding: 0 18px;
        font-weight: 850;
    }

.admin-order-products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .admin-order-products-table th,
    .admin-order-products-table td {
        padding: 15px;
        border-bottom: 1px solid #e8eef6;
    }

.admin-order-product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .admin-order-product-cell img {
        width: 62px;
        height: 62px;
        border-radius: 13px;
        object-fit: cover;
        border: 1px solid #dfe8f3;
    }

    .admin-order-product-cell strong {
        display: block;
        color: #0b1d35;
        font-weight: 900;
    }

    .admin-order-product-cell span {
        display: block;
        margin-top: 3px;
        color: #8b99ad;
        font-size: 13px;
        font-weight: 700;
    }

.admin-order-detail-summary {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding-top: 18px;
    font-size: 20px;
    font-weight: 900;
}

    .admin-order-detail-summary strong {
        color: #dc2626;
    }

.admin-icon-search::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 10px;
    height: 10px;
    border: 2px solid #60728a;
    border-radius: 50%;
}

.admin-icon-search::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    width: 7px;
    height: 2px;
    background: #60728a;
    border-radius: 999px;
    transform: rotate(45deg);
}

@media (max-width: 1100px) {
    .admin-order-page,
    .admin-order-detail-page {
        padding: 24px 16px;
    }

    .admin-order-header,
    .admin-order-detail-header {
        flex-direction: column;
    }

    .admin-order-search {
        width: 100%;
    }

    .admin-order-manager,
    .admin-order-manager.filter-open {
        grid-template-columns: 1fr;
    }

    .admin-order-filter-panel {
        display: none;
    }

    .admin-order-manager.filter-open .admin-order-filter-panel {
        display: block;
    }

    .admin-order-filter-panel form {
        width: 100%;
    }

    .admin-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }
}
/* =========================================================
   ADMIN ORDER LIST - FIX FILTER + CLEAN UI
   ========================================================= */

.admin-order-page {
    padding: 34px 42px;
    background: #eef3f8;
    min-height: calc(100vh - 90px);
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #10233d;
}

.admin-order-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe8f3;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 35, 64, 0.08);
}

.admin-order-header {
    padding: 26px 30px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .admin-order-header h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 900;
        color: #0b1d35;
    }

    .admin-order-header p {
        margin: 6px 0 0;
        color: #8190a6;
        font-weight: 650;
    }

.admin-order-search {
    width: 410px;
    height: 46px;
    display: flex;
    border: 1px solid #dbe6f2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

    .admin-order-search input {
        flex: 1;
        border: 0;
        outline: none;
        padding: 0 16px;
        font-size: 14px;
        font-weight: 600;
        color: #10233d;
    }

    .admin-order-search button {
        width: 52px;
        border: 0;
        border-left: 1px solid #dbe6f2;
        background: #f7faff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.admin-order-toolbar {
    height: 60px;
    display: flex;
    align-items: center;
    background: #f7faff;
    border-top: 1px solid #dfe8f3;
    border-bottom: 1px solid #dfe8f3;
}

    .admin-order-toolbar .admin-filter-btn {
        width: 64px;
        height: 60px;
        border: 0;
        border-right: 1px solid #dfe8f3;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .admin-order-toolbar .admin-filter-btn.active {
            background: #e9f2ff;
        }

.admin-export-btn {
    height: 60px;
    padding: 0 26px;
    border: 0;
    border-right: 1px solid #dfe8f3;
    background: transparent;
    color: #10233d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-export-btn:hover {
        background: #edf5ff;
        color: #005da8;
    }

/* Quan trọng: filter nổi, không ép bảng nữa */
.admin-order-manager {
    position: relative;
    display: block;
}

.admin-order-filter-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 310px;
    height: calc(100vh - 230px);
    max-height: 680px;
    z-index: 20;
    background: #fff;
    border-right: 1px solid #dfe8f3;
    border-bottom: 1px solid #dfe8f3;
    box-shadow: 18px 0 40px rgba(15, 35, 64, 0.12);
    transform: translateX(-105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    overflow-y: auto;
}

.admin-order-manager.filter-open .admin-order-filter-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.admin-order-filter-panel form {
    padding: 22px;
}

.admin-order-filter-panel h3 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
    color: #0b1d35;
}

.admin-filter-group {
    margin-bottom: 17px;
}

    .admin-filter-group label {
        display: block;
        margin-bottom: 7px;
        color: #10233d;
        font-size: 14px;
        font-weight: 850;
    }

    .admin-filter-group input,
    .admin-filter-group select {
        width: 100%;
        height: 43px;
        border: 1px solid #dbe6f2;
        border-radius: 12px;
        padding: 0 13px;
        background: #fff;
        color: #10233d;
        font-size: 14px;
        font-weight: 650;
        outline: none;
    }

        .admin-filter-group input:focus,
        .admin-filter-group select:focus {
            border-color: #1f7ed0;
            box-shadow: 0 0 0 3px rgba(31, 126, 208, 0.12);
        }

.admin-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-filter-actions {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.admin-filter-submit,
.admin-filter-reset {
    height: 44px;
    border-radius: 12px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.admin-filter-submit {
    border: 0;
    background: #19314f;
    color: #fff;
}

.admin-filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
    color: #10233d;
}

/* Bảng đơn hàng gọn hơn */
.admin-order-table-section {
    width: 100%;
}

.admin-order-table-wrap {
    overflow-x: auto;
    background: #fff;
}

.admin-order-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
}

    .admin-order-table th {
        padding: 15px 16px;
        border-bottom: 1px solid #dfe8f3;
        background: #fff;
        color: #0b1d35;
        font-size: 14px;
        font-weight: 900;
        white-space: nowrap;
    }

    .admin-order-table td {
        padding: 16px;
        border-bottom: 1px solid #edf2f8;
        vertical-align: middle;
        color: #10233d;
        font-size: 14px;
        font-weight: 650;
    }

    .admin-order-table tbody tr:hover {
        background: #f8fbff;
    }

.admin-order-code,
.admin-order-customer {
    color: #005da8;
    font-weight: 900;
    text-decoration: none;
}

.admin-order-table small {
    display: block;
    margin-top: 4px;
    color: #8190a6;
    font-size: 13px;
    font-weight: 700;
}

.admin-shipping-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 260px;
}

.admin-shipping-dot {
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
}

.admin-order-status,
.admin-payment-status {
    min-width: 112px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    text-align: center;
}

    .admin-order-status.pending,
    .admin-payment-status.pending {
        background: #fff1d6;
        color: #b45309;
    }

    .admin-order-status.processing {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .admin-order-status.completed,
    .admin-payment-status.paid {
        background: #d8fbe6;
        color: #087a39;
    }

    .admin-order-status.cancelled,
    .admin-payment-status.cancelled,
    .admin-payment-status.failed {
        background: #ffe0e0;
        color: #b91c1c;
    }

.admin-more-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #dbe6f2;
    border-radius: 11px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-more-btn:hover {
        background: #f3f8ff;
    }

.admin-row-menu {
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(15, 35, 64, 0.16);
    overflow: hidden;
}

    .admin-row-menu .dropdown-item {
        padding: 10px 16px;
        font-weight: 750;
    }

.admin-order-footer {
    min-height: 56px;
    padding: 0 14px;
    background: #f7faff;
    border-top: 1px solid #dfe8f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-footer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7c8da5;
    font-size: 14px;
    font-weight: 750;
}

.admin-page-size {
    height: 40px;
    border: 1px solid #dbe6f2;
    border-radius: 12px;
    padding: 0 12px;
    font-weight: 800;
    color: #10233d;
    background: #fff;
}

.admin-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-page-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #dbe6f2;
    border-radius: 11px;
    background: #fff;
    color: #10233d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
}

    .admin-page-btn.active {
        background: #e7f1ff;
        color: #005da8;
    }

    .admin-page-btn.disabled {
        opacity: 0.45;
        pointer-events: none;
    }

/* Icon CSS, không dùng emoji */
.admin-css-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
}

.admin-icon-filter::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 14px;
    height: 14px;
    background: #334b68;
    clip-path: polygon(0 0, 100% 0, 62% 45%, 62% 100%, 38% 100%, 38% 45%);
}

.admin-icon-search::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid #60728a;
    border-radius: 50%;
}

.admin-icon-search::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    width: 7px;
    height: 2px;
    background: #60728a;
    border-radius: 99px;
    transform: rotate(45deg);
}

.admin-icon-more::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 2px;
    width: 4px;
    height: 4px;
    background: #334b68;
    border-radius: 50%;
    box-shadow: 6px 0 #334b68, 12px 0 #334b68;
}

.admin-icon-refresh::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid #60728a;
    border-right-color: transparent;
    border-radius: 50%;
}

.admin-icon-refresh::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 3px;
    border-left: 6px solid #60728a;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

@media (max-width: 1100px) {
    .admin-order-page {
        padding: 22px 14px;
    }

    .admin-order-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-order-search {
        width: 100%;
    }

    .admin-order-filter-panel {
        width: 290px;
    }

    .admin-order-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }
}
/* =========================================================
   FIX ADMIN ORDER FILTER - LEFT SIDE PANEL, NOT OVERLAY
   ========================================================= */

.admin-order-manager {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 0 minmax(0, 1fr);
    width: 100%;
    transition: grid-template-columns .22s ease;
    border-top: 1px solid #dfe8f3;
}

    .admin-order-manager.filter-open {
        grid-template-columns: 330px minmax(0, 1fr);
    }

.admin-order-filter-panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid #dfe8f3;
    border-bottom: 0;
    box-shadow: none !important;
    z-index: 1;
}

.admin-order-manager:not(.filter-open) .admin-order-filter-panel {
    border-right: 0;
}

    .admin-order-manager:not(.filter-open) .admin-order-filter-panel form {
        visibility: hidden;
    }

.admin-order-manager.filter-open .admin-order-filter-panel form {
    visibility: visible;
}

.admin-order-filter-panel form {
    width: 330px;
    max-height: 620px;
    overflow-y: auto;
    padding: 22px 20px;
}

.admin-order-filter-panel h3 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
    color: #0b1d35;
}

.admin-filter-group {
    margin-bottom: 16px;
}

    .admin-filter-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 14px;
        font-weight: 850;
        color: #10233d;
    }

    .admin-filter-group input,
    .admin-filter-group select {
        width: 100%;
        height: 44px;
        border: 1px solid #dbe6f2;
        border-radius: 12px;
        padding: 0 14px;
        outline: none;
        background: #fff;
        color: #10233d;
        font-size: 14px;
        font-weight: 650;
    }

        .admin-filter-group input:focus,
        .admin-filter-group select:focus {
            border-color: #1f7ed0;
            box-shadow: 0 0 0 3px rgba(31, 126, 208, 0.13);
        }

.admin-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.admin-filter-submit {
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: #19314f;
    color: #fff;
    font-weight: 900;
}

.admin-filter-reset {
    height: 46px;
    border-radius: 12px;
    background: #eef3f8;
    color: #10233d;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-order-table-section {
    min-width: 0;
    overflow: hidden;
    background: #fff;
}

.admin-order-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-order-table {
    min-width: 1050px;
}

.admin-filter-btn.active {
    background: #e7f1ff !important;
}

.admin-export-dropdown {
    height: 60px;
    display: flex;
    align-items: center;
}

.admin-export-btn {
    height: 60px;
    padding: 0 28px;
    border: 0;
    border-right: 1px solid #dfe8f3;
    background: transparent;
    color: #10233d;
    font-size: 15px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .admin-export-btn:hover,
    .admin-export-btn:focus {
        background: #edf5ff;
        color: #005da8;
    }

.admin-export-menu {
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(15, 35, 64, 0.16);
    padding: 8px;
}

    .admin-export-menu .dropdown-item {
        border-radius: 10px;
        padding: 10px 14px;
        font-weight: 750;
        color: #10233d;
    }

        .admin-export-menu .dropdown-item:hover {
            background: #eef6ff;
            color: #005da8;
        }

.admin-order-toolbar {
    position: relative;
    overflow: visible;
    z-index: 30;
}

.admin-export-wrapper {
    position: relative;
    overflow: visible;
    z-index: 50;
}

.admin-export-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    min-width: 260px;
    padding: 8px;
    background: #fff;
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 35, 64, 0.18);
    z-index: 9999;
    display: none;
}

    .admin-export-menu.show {
        display: block;
    }

.admin-export-menu-item {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #10233d;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .admin-export-menu-item:hover {
        background: #eef6ff;
        color: #005da8;
    }
/* =========================================================
   ADMIN SALES PAGES: CURRENT CARTS + RETURNS
   ========================================================= */

.admin-sales-page {
    padding: 28px 34px 46px;
    background: #eef4f8;
    min-height: calc(100vh - 90px);
}

.admin-sales-card {
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 35, 64, 0.08);
    overflow: hidden;
}

.admin-sales-header {
    padding: 28px 32px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

    .admin-sales-header h1 {
        margin: 0;
        color: #10233d;
        font-size: 28px;
        font-weight: 900;
    }

    .admin-sales-header p {
        margin: 6px 0 0;
        color: #7c8da5;
        font-size: 15px;
        font-weight: 700;
    }

.admin-sales-toolbar {
    height: 58px;
    display: flex;
    align-items: center;
    border-top: 1px solid #dce7f1;
    border-bottom: 1px solid #dce7f1;
    background: #f7fafc;
}

.admin-filter-btn {
    width: 68px;
    height: 58px;
    border: 0;
    border-right: 1px solid #dce7f1;
    background: #eef6ff;
    color: #183a5c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-filter-btn:hover,
    .admin-filter-btn.active {
        background: #dceeff;
        color: #005da8;
    }

.admin-sales-manager {
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr);
    transition: 0.25s ease;
}

    .admin-sales-manager.filter-open {
        grid-template-columns: 350px minmax(0, 1fr);
    }

.admin-sales-filter-panel {
    border-right: 1px solid #dce7f1;
    background: #fff;
    overflow: hidden;
}

    .admin-sales-filter-panel form {
        width: 350px;
        padding: 24px 20px;
    }

    .admin-sales-filter-panel h3 {
        margin: 0 0 18px;
        color: #10233d;
        font-size: 24px;
        font-weight: 900;
    }

.admin-filter-group {
    margin-bottom: 18px;
}

    .admin-filter-group label {
        display: block;
        margin-bottom: 8px;
        color: #10233d;
        font-size: 14px;
        font-weight: 900;
    }

    .admin-filter-group input,
    .admin-filter-group select {
        width: 100%;
        min-height: 46px;
        border: 1px solid #dce7f1;
        border-radius: 12px;
        padding: 0 14px;
        color: #10233d;
        font-size: 14px;
        font-weight: 700;
        outline: none;
        background: #fff;
    }

        .admin-filter-group input:focus,
        .admin-filter-group select:focus {
            border-color: #2b7fd3;
            box-shadow: 0 0 0 4px rgba(43, 127, 211, 0.12);
        }

.admin-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.admin-filter-submit,
.admin-filter-reset {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-filter-submit {
    background: #10233d;
    color: #fff;
}

.admin-filter-reset {
    background: #eef4f8;
    color: #334963;
}

.admin-sales-table-section {
    min-width: 0;
}

.admin-sales-table-wrap {
    overflow-x: auto;
}

.admin-sales-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

    .admin-sales-table th {
        height: 56px;
        padding: 0 18px;
        background: #f8fafc;
        color: #10233d;
        font-size: 14px;
        font-weight: 900;
        text-align: left;
        border-bottom: 1px solid #dce7f1;
    }

    .admin-sales-table td {
        padding: 18px;
        color: #10233d;
        font-size: 14px;
        font-weight: 700;
        border-bottom: 1px solid #e8eff6;
        vertical-align: middle;
    }

    .admin-sales-table small {
        display: block;
        margin-top: 4px;
        color: #8494aa;
        font-size: 13px;
        font-weight: 700;
    }

.admin-sales-main-link,
.admin-sales-main-text {
    color: #005da8;
    font-weight: 900;
    text-decoration: none;
}

.admin-cart-parent-row {
    background: #f3f8fd;
}

.admin-cart-expand-btn,
.admin-more-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dce7f1;
    border-radius: 10px;
    background: #fff;
    color: #10233d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .admin-cart-expand-btn:hover,
    .admin-more-btn:hover {
        background: #eef6ff;
        color: #005da8;
    }

    .admin-cart-expand-btn.collapsed .admin-icon-chevron {
        transform: rotate(-90deg);
    }

.admin-cart-detail-row.collapsed {
    display: none;
}

.admin-cart-detail-box {
    margin: -2px 0 0;
    padding: 14px;
    border: 1px solid #dce7f1;
    border-radius: 12px;
    background: #fff;
}

    .admin-cart-detail-box table {
        width: 100%;
        border-collapse: collapse;
    }

    .admin-cart-detail-box th,
    .admin-cart-detail-box td {
        padding: 12px 14px;
        border-bottom: 1px solid #e8eff6;
    }

    .admin-cart-detail-box tr:last-child td {
        border-bottom: 0;
    }

.admin-check-mark,
.admin-x-mark {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

    .admin-check-mark::before {
        content: "";
        position: absolute;
        left: 5px;
        top: 1px;
        width: 7px;
        height: 13px;
        border-right: 3px solid #00a36c;
        border-bottom: 3px solid #00a36c;
        transform: rotate(45deg);
    }

    .admin-x-mark::before,
    .admin-x-mark::after {
        content: "";
        position: absolute;
        left: 8px;
        top: 1px;
        width: 3px;
        height: 16px;
        background: #dc3545;
        border-radius: 2px;
    }

    .admin-x-mark::before {
        transform: rotate(45deg);
    }

    .admin-x-mark::after {
        transform: rotate(-45deg);
    }

.admin-return-status {
    min-width: 112px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

    .admin-return-status.pending {
        background: #fff1d6;
        color: #a75400;
    }

    .admin-return-status.received,
    .admin-return-status.authorized,
    .admin-return-status.repaired {
        background: #e6f2ff;
        color: #005da8;
    }

    .admin-return-status.refunded {
        background: #d8f8e5;
        color: #008a50;
    }

    .admin-return-status.rejected,
    .admin-return-status.cancelled {
        background: #fde0e0;
        color: #bb1111;
    }

.admin-sales-footer {
    min-height: 56px;
    padding: 8px 12px;
    border-top: 1px solid #dce7f1;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-page-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #dce7f1;
    border-radius: 10px;
    background: #fff;
    color: #334963;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-page-btn.active {
        background: #e6f2ff;
        color: #005da8;
    }

    .admin-page-btn.disabled {
        opacity: 0.45;
        pointer-events: none;
    }

.admin-footer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7c8da5;
    font-size: 14px;
    font-weight: 800;
}

.admin-page-size {
    min-height: 38px;
    border: 1px solid #dce7f1;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #10233d;
    font-weight: 800;
}

.admin-empty-row {
    height: 160px;
    text-align: center;
    color: #8ca0b8 !important;
}

/* CSS-only icons */
.admin-css-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.admin-icon-filter::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 14px;
    height: 6px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%);
}

.admin-icon-filter::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    width: 4px;
    height: 7px;
    background: currentColor;
    border-radius: 0 0 2px 2px;
}

.admin-icon-chevron::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.admin-icon-refresh::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.admin-icon-more::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 6px 0 0 currentColor, 12px 0 0 currentColor;
}

@media (max-width: 992px) {
    .admin-sales-manager,
    .admin-sales-manager.filter-open {
        grid-template-columns: 1fr;
    }

    .admin-sales-filter-panel {
        display: none;
    }

    .admin-sales-manager.filter-open .admin-sales-filter-panel {
        display: block;
    }

    .admin-sales-filter-panel form {
        width: 100%;
    }

    .admin-sales-footer,
    .admin-footer-info {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================================
   ADMIN HEADER - SMARTSTORE STYLE UPGRADED
   Dựa theo style Smartstore: xanh indigo, nav 72px,
   dropdown trắng, icon line gọn bằng Bootstrap Icons.
   ========================================================= */

:root {
    --admin-blue: #18509f;
    --admin-blue-2: #2368b8;
    --admin-blue-hover: rgba(255, 255, 255, 0.14);
    --admin-orange: #ee9b00;
    --admin-bg: #eef3f8;
    --admin-text: #273240;
    --admin-muted: #7d8ca0;
    --admin-border: #e3eaf2;
    --admin-card: #ffffff;
    --admin-shadow: 0 12px 32px rgba(15, 23, 42, 0.13);
}

.msa-body {
    margin: 0;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

/* HEADER */
.msa-header {
    height: 72px;
    background: linear-gradient(90deg, var(--admin-blue), var(--admin-blue-2));
    display: flex;
    align-items: stretch;
    padding: 0 30px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.msa-brand {
    width: 300px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.msa-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

    .msa-brand-link:hover {
        color: #fff;
        text-decoration: none;
    }

.msa-logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.msa-brand-text {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1;
    white-space: nowrap;
}

/* NAV */
.msa-nav {
    height: 72px;
    display: flex;
    align-items: stretch;
    flex: 1;
}

.msa-nav-dropdown {
    height: 72px;
    display: flex;
    align-items: stretch;
}

.msa-nav-link,
.msa-nav-button {
    position: relative;
    min-width: 88px;
    height: 72px;
    padding: 0 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-family: inherit;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .msa-nav-link > i,
    .msa-nav-button > i {
        font-size: 21px;
        line-height: 1;
        font-weight: normal;
    }

    .msa-nav-link:hover,
    .msa-nav-button:hover,
    .msa-nav-button.show,
    .msa-nav-link.active,
    .msa-nav-button.active {
        color: #fff;
        background: var(--admin-blue-hover);
        text-decoration: none;
    }

/* RIGHT ACTIONS */
.msa-actions {
    height: 72px;
    display: flex;
    align-items: stretch;
    margin-left: auto;
}

.msa-action-btn {
    width: 54px;
    height: 72px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .msa-action-btn i {
        font-size: 22px;
    }

    .msa-action-btn:hover {
        color: #fff;
        background: var(--admin-blue-hover);
        text-decoration: none;
    }

.msa-account-btn {
    max-width: 250px;
    height: 72px;
    padding: 0 13px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: background-color 0.15s ease;
}

    .msa-account-btn:hover,
    .msa-account-btn.show {
        background: var(--admin-blue-hover);
    }

.msa-account-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .msa-account-icon i {
        font-size: 16px;
    }

.msa-account-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.msa-account-caret {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.msa-account-btn.show .msa-account-caret {
    transform: rotate(180deg);
}

/* MAIN */
.msa-main {
    padding: 28px 36px 46px;
}

/* DROPDOWN BASE */
.msa-menu,
.msa-account-menu {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 9px;
    padding: 8px;
    margin-top: 0 !important;
    box-shadow: var(--admin-shadow);
    animation: msaDropdownShow 0.13s ease;
}

.msa-menu {
    min-width: 335px;
}

.msa-account-menu {
    min-width: 295px;
}

@keyframes msaDropdownShow {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* mũi nhọn dropdown */
.msa-menu::before,
.msa-account-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 28px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 2px;
}

/* MENU ITEMS */
.msa-menu-item {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #465363;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: background-color 0.14s ease, color 0.14s ease;
}

    .msa-menu-item:hover {
        background: #f3f6fa;
        color: #172033;
        text-decoration: none;
    }

.msa-menu-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--admin-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .msa-menu-icon i {
        font-size: 17px;
        line-height: 1;
    }

.msa-menu-item span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msa-menu-item strong {
    font-size: 14px;
    font-weight: 800;
    color: #334155;
}

.msa-menu-item small {
    font-size: 12px;
    font-weight: 500;
    color: #8a98aa;
}

.msa-menu .dropdown-divider,
.msa-account-menu .dropdown-divider {
    margin: 8px -8px;
    border-color: #e5ebf2;
}

/* ACCOUNT DROPDOWN */
.msa-account-head {
    padding: 11px 12px 13px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    gap: 11px;
}

.msa-account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e7f0ff, #f3f7ff);
    color: var(--admin-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .msa-account-avatar i {
        font-size: 20px;
    }

.msa-account-head div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msa-account-head strong {
    font-size: 14px;
    font-weight: 900;
    color: #1e293b;
}

.msa-account-head small {
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7d8ca0;
    font-size: 12px;
    font-weight: 600;
}

.msa-small-item {
    width: 100%;
    min-height: 45px;
    padding: 9px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #465363;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.14s ease, color 0.14s ease;
}

    .msa-small-item i {
        width: 22px;
        text-align: center;
        font-size: 17px;
        color: #64748b;
    }

    .msa-small-item:hover {
        background: #f3f6fa;
        color: #172033;
        text-decoration: none;
    }

        .msa-small-item:hover i {
            color: var(--admin-blue);
        }

    .msa-small-item.danger {
        color: #dc2626;
    }

        .msa-small-item.danger i {
            color: #dc2626;
        }

        .msa-small-item.danger:hover {
            background: #fff1f2;
            color: #be123c;
        }

/* RESPONSIVE */
@media (max-width: 1280px) {
    .msa-header {
        padding: 0 22px;
    }

    .msa-brand {
        width: 265px;
    }

    .msa-brand-text {
        font-size: 24px;
    }

    .msa-nav-link,
    .msa-nav-button {
        min-width: 78px;
        padding: 0 9px;
    }
}

@media (max-width: 1050px) {
    .msa-header {
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        padding: 12px 18px 0;
    }

    .msa-brand {
        width: auto;
        flex: 1;
        height: 56px;
    }

    .msa-actions {
        height: 56px;
    }

    .msa-action-btn,
    .msa-account-btn {
        height: 56px;
    }

    .msa-nav {
        order: 3;
        width: 100%;
        height: 68px;
        overflow-x: auto;
    }

    .msa-nav-link,
    .msa-nav-button {
        height: 68px;
    }

    .msa-main {
        padding: 20px 16px 36px;
    }
}
/* =========================================================
   FIX ADMIN HEADER ACTIVE STATE
   Khi mở dropdown, chỉ dropdown đang mở được highlight.
   Mục active cũ sẽ tạm ẩn để không sáng lung tung.
   ========================================================= */
body.msa-dropdown-is-open .msa-nav-link.active:not(.show)::after,
body.msa-dropdown-is-open .msa-nav-button.active:not(.show)::after {
    display: none !important;
}

body.msa-dropdown-is-open .msa-nav-button.show {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

    body.msa-dropdown-is-open .msa-nav-button.show::after {
        display: block !important;
    }
/* =========================================================
   ADMIN PAGE UI - SMARTSTORE INSPIRED
   Áp dụng cho danh mục, sản phẩm, quy tắc, đơn hàng,
   giỏ hàng hiện tại, hoàn trả / đổi trả.
   ========================================================= */

:root {
    --adm-blue: #18509f;
    --adm-blue-light: #307abe;
    --adm-orange: #ee9b00;
    --adm-green: #009e74;
    --adm-red: #dc3000;
    --adm-bg: #eef3f8;
    --adm-card: #ffffff;
    --adm-border: #dfe7f1;
    --adm-border-soft: #edf2f7;
    --adm-text: #1f2937;
    --adm-muted: #8190a5;
    --adm-head: #f6f8fb;
    --adm-hover: #f8fafc;
    --adm-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* Nền tổng admin */
.msa-body {
    background: var(--adm-bg) !important;
}

/* Khoảng cách nội dung */
.msa-main {
    padding: 30px 42px 52px !important;
}

/* Card chính của các trang admin */
.admin-category-page,
.admin-product-page,
.admin-order-page,
.admin-current-cart-page,
.admin-return-page,
.admin-rule-page,
.admin-page {
    max-width: 100%;
}

.admin-category-card,
.admin-product-card,
.admin-order-card,
.admin-current-cart-card,
.admin-return-card,
.admin-rule-card,
.admin-table-card,
.admin-page-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    box-shadow: var(--adm-shadow);
    overflow: hidden;
}

/* Header trong từng trang */
.admin-category-header,
.admin-product-header,
.admin-order-header,
.admin-current-cart-header,
.admin-return-header,
.admin-rule-header,
.admin-page-header {
    min-height: 74px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--adm-border-soft);
    background: #fff;
}

.admin-category-title-group,
.admin-product-title-group,
.admin-order-title-group,
.admin-current-cart-title-group,
.admin-return-title-group,
.admin-rule-title-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-category-header h1,
.admin-product-header h1,
.admin-order-header h1,
.admin-current-cart-header h1,
.admin-return-header h1,
.admin-rule-header h1,
.admin-page-header h1 {
    margin: 0;
    color: var(--adm-text);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.admin-category-header p,
.admin-product-header p,
.admin-order-header p,
.admin-current-cart-header p,
.admin-return-header p,
.admin-rule-header p,
.admin-page-header p {
    margin: 5px 0 0;
    color: var(--adm-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Nút chính */
.admin-primary-btn,
.admin-add-inline-btn,
.admin-create-btn,
.admin-save-btn,
.admin-blue-btn {
    height: 42px;
    padding: 0 18px;
    border: 1px solid #1b65b8;
    border-radius: 8px;
    background: linear-gradient(180deg, #2c82d0, #1e67b6);
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
    transition: 0.14s ease;
}

    .admin-primary-btn:hover,
    .admin-add-inline-btn:hover,
    .admin-create-btn:hover,
    .admin-save-btn:hover,
    .admin-blue-btn:hover {
        filter: brightness(1.04);
        transform: translateY(-1px);
    }

/* Nút phụ */
.admin-secondary-btn,
.admin-light-btn,
.admin-cancel-btn {
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    background: #f8fafc;
    color: #334155 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* Toolbar kiểu Smartstore */
.admin-category-toolbar,
.admin-product-toolbar,
.admin-order-toolbar,
.admin-current-cart-toolbar,
.admin-return-toolbar,
.admin-rule-toolbar,
.admin-grid-toolbar {
    min-height: 56px;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--adm-border);
    background: var(--adm-head);
}

.admin-filter-btn,
.admin-toolbar-btn {
    width: 58px;
    min-height: 56px;
    border: 0;
    border-right: 1px solid var(--adm-border);
    background: transparent;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.14s ease;
}

    .admin-filter-btn:hover,
    .admin-filter-btn.active,
    .admin-toolbar-btn:hover,
    .admin-toolbar-btn.active {
        background: #e9f1fb;
        color: var(--adm-blue);
    }

/* Icon filter bằng CSS */
.admin-icon-filter {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
}

    .admin-icon-filter::before {
        content: "";
        position: absolute;
        left: 2px;
        top: 3px;
        width: 14px;
        height: 5px;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 9px solid currentColor;
    }

    .admin-icon-filter::after {
        content: "";
        position: absolute;
        left: 7px;
        top: 10px;
        width: 4px;
        height: 6px;
        background: currentColor;
        border-radius: 1px;
    }

/* Nút thêm mới nằm cạnh phễu */
.admin-add-inline-btn {
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: none;
    background: transparent;
    color: #1f2937 !important;
    border-right: 1px solid var(--adm-border);
    min-width: 150px;
    height: 56px;
    font-weight: 800;
}

    .admin-add-inline-btn:hover {
        transform: none;
        background: #e9f1fb;
        color: var(--adm-blue) !important;
    }

/* Switch list/tree */
.admin-category-view-switch {
    height: 42px;
    padding: 3px;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    background: #eef3f8;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .admin-category-view-switch a,
    .admin-view-btn {
        width: 52px;
        height: 34px;
        border-radius: 8px;
        color: #334155;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        transition: 0.14s ease;
    }

        .admin-category-view-switch a:hover,
        .admin-view-btn:hover {
            background: #fff;
        }

        .admin-category-view-switch a.active,
        .admin-view-btn.active {
            background: #fff;
            color: var(--adm-blue);
            box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
        }

/* Icon list/tree bằng CSS */
.admin-icon-list,
.admin-icon-tree {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
}

    .admin-icon-list::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 4px;
        width: 12px;
        height: 2px;
        background: currentColor;
        box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
        border-radius: 2px;
    }

    .admin-icon-tree::before {
        content: "";
        position: absolute;
        left: 9px;
        top: 3px;
        width: 2px;
        height: 14px;
        background: currentColor;
    }

    .admin-icon-tree::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 5px;
        width: 12px;
        height: 10px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        border-right: 2px solid currentColor;
        border-radius: 0 0 4px 4px;
    }

/* Bảng admin */
.admin-category-table-wrap,
.admin-product-table-wrap,
.admin-order-table-wrap,
.admin-current-cart-table-wrap,
.admin-return-table-wrap,
.admin-rule-table-wrap,
.admin-grid-wrap {
    overflow-x: auto;
    background: #fff;
}

.admin-category-table,
.admin-product-table,
.admin-order-table,
.admin-current-cart-table,
.admin-return-table,
.admin-rule-table,
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

    .admin-category-table thead th,
    .admin-product-table thead th,
    .admin-order-table thead th,
    .admin-current-cart-table thead th,
    .admin-return-table thead th,
    .admin-rule-table thead th,
    .admin-table thead th {
        height: 56px;
        padding: 0 18px;
        background: #fff;
        border-bottom: 1px solid var(--adm-border);
        color: #111827;
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
        vertical-align: middle;
    }

    .admin-category-table tbody td,
    .admin-product-table tbody td,
    .admin-order-table tbody td,
    .admin-current-cart-table tbody td,
    .admin-return-table tbody td,
    .admin-rule-table tbody td,
    .admin-table tbody td {
        padding: 16px 18px;
        border-bottom: 1px solid var(--adm-border-soft);
        color: #263445;
        font-size: 14px;
        font-weight: 600;
        vertical-align: middle;
    }

    .admin-category-table tbody tr,
    .admin-product-table tbody tr,
    .admin-order-table tbody tr,
    .admin-current-cart-table tbody tr,
    .admin-return-table tbody tr,
    .admin-rule-table tbody tr,
    .admin-table tbody tr {
        transition: background-color 0.12s ease;
    }

        .admin-category-table tbody tr:hover,
        .admin-product-table tbody tr:hover,
        .admin-order-table tbody tr:hover,
        .admin-current-cart-table tbody tr:hover,
        .admin-return-table tbody tr:hover,
        .admin-rule-table tbody tr:hover,
        .admin-table tbody tr:hover {
            background: var(--adm-hover);
        }

/* Link trong bảng */
.admin-cat-name,
.admin-product-name,
.admin-order-code,
.admin-table-link {
    color: #095aa3 !important;
    font-weight: 800;
    text-decoration: none !important;
}

    .admin-cat-name:hover,
    .admin-product-name:hover,
    .admin-order-code:hover,
    .admin-table-link:hover {
        color: #0b76d1 !important;
        text-decoration: underline !important;
    }

/* Badge số lượng */
.admin-count-badge,
.admin-order-number,
.admin-stock-badge {
    min-width: 28px;
    height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    background: #eef3f8;
    color: #27496d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

/* Trạng thái */
.admin-status-pill,
.admin-payment-pill,
.admin-order-status-pill {
    min-height: 32px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

    .admin-status-pill.is-on,
    .admin-order-status-pill.completed,
    .admin-payment-pill.paid,
    .status-success {
        background: #d8f8e6;
        color: #087a4c;
    }

    .admin-status-pill.is-off,
    .admin-order-status-pill.cancelled,
    .admin-payment-pill.cancelled,
    .status-danger {
        background: #ffe0dc;
        color: #b42318;
    }

    .admin-order-status-pill.pending,
    .admin-payment-pill.pending,
    .status-warning {
        background: #fff0cf;
        color: #a65300;
    }

    .admin-order-status-pill.processing,
    .status-info {
        background: #e1efff;
        color: #075ba7;
    }

/* Action button */
.admin-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.admin-icon-btn {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    background: #fff;
    color: #1f2937 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    transition: 0.13s ease;
}

    .admin-icon-btn:hover {
        background: #f4f8fd;
        border-color: #c9d7e8;
    }

    .admin-icon-btn.danger {
        color: #dc2626 !important;
    }

        .admin-icon-btn.danger:hover {
            background: #fff1f2;
            border-color: #fecdd3;
        }

/* Footer phân trang */
.admin-category-footer,
.admin-product-footer,
.admin-order-footer,
.admin-current-cart-footer,
.admin-return-footer,
.admin-rule-footer,
.admin-grid-footer {
    min-height: 50px;
    padding: 0 16px;
    background: #f8fafc;
    border-top: 1px solid var(--adm-border);
    color: var(--adm-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font-size: 13px;
    font-weight: 700;
}

.admin-pager {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
}

    .admin-pager a,
    .admin-pager span,
    .admin-pager button {
        width: 36px;
        height: 34px;
        border: 1px solid var(--adm-border);
        border-radius: 8px;
        background: #fff;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        font-weight: 800;
    }

        .admin-pager .active,
        .admin-pager span.active {
            background: #e6f0fb;
            color: var(--adm-blue);
            border-color: #c8d9ec;
        }

/* Filter panel trái */
.admin-filter-panel,
.admin-order-filter,
.admin-return-filter,
.admin-current-cart-filter {
    width: 300px;
    max-width: 300px;
    background: #fff;
    border-right: 1px solid var(--adm-border);
    padding: 18px;
    flex-shrink: 0;
}

.admin-filter-panel-title,
.admin-filter-title {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--adm-border);
    color: var(--adm-muted);
    font-size: 17px;
    font-weight: 800;
}

.admin-filter-panel label,
.admin-order-filter label,
.admin-return-filter label,
.admin-current-cart-filter label {
    margin: 12px 0 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.admin-filter-panel input,
.admin-filter-panel select,
.admin-order-filter input,
.admin-order-filter select,
.admin-return-filter input,
.admin-return-filter select,
.admin-current-cart-filter input,
.admin-current-cart-filter select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

    .admin-filter-panel input:focus,
    .admin-filter-panel select:focus,
    .admin-order-filter input:focus,
    .admin-order-filter select:focus,
    .admin-return-filter input:focus,
    .admin-return-filter select:focus,
    .admin-current-cart-filter input:focus,
    .admin-current-cart-filter select:focus {
        border-color: #7fb4e9;
        box-shadow: 0 0 0 3px rgba(48, 122, 190, 0.16);
    }

.admin-filter-actions {
    margin-top: 18px;
    display: grid;
    gap: 9px;
}

    .admin-filter-actions button,
    .admin-filter-apply {
        height: 42px;
        border: 0;
        border-radius: 8px;
        background: #24364d;
        color: #fff;
        font-size: 14px;
        font-weight: 800;
    }

    .admin-filter-actions a,
    .admin-filter-reset {
        height: 40px;
        border-radius: 8px;
        background: #eef3f8;
        color: #334155 !important;
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 800;
    }

/* Layout dạng có filter trái */
.admin-split-grid,
.admin-order-manager,
.admin-return-manager,
.admin-current-cart-manager {
    display: flex;
    align-items: stretch;
    min-height: 560px;
}

.admin-split-main,
.admin-order-main,
.admin-return-main,
.admin-current-cart-main {
    min-width: 0;
    flex: 1;
}

/* Form Create/Edit */
.admin-form-card {
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    box-shadow: var(--adm-shadow);
    overflow: hidden;
}

.admin-form-header {
    min-height: 74px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--adm-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .admin-form-header h1 {
        margin: 0;
        color: var(--adm-text);
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -0.4px;
    }

.admin-form-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 620px;
}

.admin-form-tabs {
    padding: 18px 12px;
    border-right: 1px solid var(--adm-border);
    background: #fbfcfe;
}

.admin-tab-link {
    width: 100%;
    min-height: 46px;
    padding: 9px 13px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
}

    .admin-tab-link:hover {
        background: #f2f6fb;
    }

    .admin-tab-link.active {
        background: #fff8ed;
        border-left-color: var(--adm-orange);
        color: #111827;
    }

.admin-form-content {
    padding: 24px 34px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 18px;
}

    .admin-form-row label {
        padding-top: 9px;
        color: #1f2937;
        font-size: 14px;
        font-weight: 800;
    }

    .admin-form-row input,
    .admin-form-row select,
    .admin-form-row textarea {
        width: 100%;
        min-height: 42px;
        border: 1px solid var(--adm-border);
        border-radius: 8px;
        padding: 9px 12px;
        background: #fff;
        color: #1f2937;
        font-size: 14px;
        font-weight: 600;
        outline: none;
    }

    .admin-form-row textarea {
        min-height: 110px;
        resize: vertical;
    }

        .admin-form-row input:focus,
        .admin-form-row select:focus,
        .admin-form-row textarea:focus {
            border-color: #7fb4e9;
            box-shadow: 0 0 0 3px rgba(48, 122, 190, 0.16);
        }

/* Switch đẹp hơn */
.admin-switch,
.form-check-input[type="checkbox"].admin-switch {
    width: 46px;
    height: 24px;
    border-radius: 999px;
    cursor: pointer;
}

/* Alert */
.admin-alert {
    margin: 16px 0;
    padding: 12px 15px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
}

.admin-alert-success {
    background: #e0f8ea;
    color: #087a4c;
    border: 1px solid #b8eccf;
}

.admin-alert-danger {
    background: #ffe7e3;
    color: #b42318;
    border: 1px solid #ffc8bf;
}

/* Responsive */
@media (max-width: 1100px) {
    .msa-main {
        padding: 22px 18px 42px !important;
    }

    .admin-category-header,
    .admin-product-header,
    .admin-order-header,
    .admin-current-cart-header,
    .admin-return-header,
    .admin-rule-header,
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-split-grid,
    .admin-order-manager,
    .admin-return-manager,
    .admin-current-cart-manager {
        flex-direction: column;
    }

    .admin-filter-panel,
    .admin-order-filter,
    .admin-return-filter,
    .admin-current-cart-filter {
        width: 100%;
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid var(--adm-border);
    }

    .admin-form-layout {
        grid-template-columns: 1fr;
    }

    .admin-form-tabs {
        border-right: 0;
        border-bottom: 1px solid var(--adm-border);
    }

    .admin-form-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}
/* =========================================================
   FIX ADMIN HEADER DROPDOWN / ACTIVE
   Chỉ dropdown đang mở mới có mũi tam giác.
   Không còn highlight lung tung nhiều mục.
   ========================================================= */

/* Mục đang ở trang hiện tại chỉ đổi nền nhẹ, không tạo tam giác */
.msa-nav-link.active,
.msa-nav-button.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

    /* Tắt toàn bộ mũi tam giác cũ trên nav item */
    .msa-nav-link::after,
    .msa-nav-button::after,
    .msa-nav-link.active::after,
    .msa-nav-button.active::after,
    .msa-nav-button.show::after {
        display: none !important;
        content: none !important;
    }

/* Khi dropdown mở thì mục đó sáng rõ hơn */
.msa-nav-button.show {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

/* Khi đang mở dropdown, mục active cũ không bị nổi quá mạnh */
.msa-header.dropdown-open .msa-nav-link.active,
.msa-header.dropdown-open .msa-nav-button.active {
    background: rgba(255, 255, 255, 0.06);
}

/* Mục dropdown đang mở luôn ưu tiên sáng */
.msa-header.dropdown-open .msa-nav-button.show {
    background: rgba(255, 255, 255, 0.20) !important;
}

/* Mũi tam giác chỉ nằm ở chính dropdown menu */
.msa-nav-dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    z-index: -1;
}

/* Căn dropdown menu đẹp hơn theo Smartstore */
.msa-nav-dropdown .dropdown-menu {
    margin-top: 12px !important;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}
/* =========================================================
   FIX ADMIN SMARTSTORE DROPDOWN POSITION
   Giữ dropdown nằm đúng ngay dưới từng mục menu.
   ========================================================= */

.msa-header .msa-nav {
    display: flex;
    align-items: stretch;
}

.msa-header .msa-nav-dropdown {
    position: relative !important;
    display: flex;
    align-items: stretch;
}

    /* Button dropdown giữ kích thước như nav item bình thường */
    .msa-header .msa-nav-dropdown > .msa-nav-button {
        height: 100%;
        border: 0;
        outline: none;
        box-shadow: none;
    }

    /* Chặn Bootstrap/Popper kéo menu lệch */
    .msa-header .msa-nav-dropdown > .dropdown-menu.msa-menu {
        position: absolute !important;
        inset: auto auto auto auto !important;
        top: calc(100% + 12px) !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        min-width: 420px;
        max-width: 430px;
        padding: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
        z-index: 1055;
    }

        /* Trường hợp Bootstrap tự thêm data-bs-popper */
        .msa-header .msa-nav-dropdown > .dropdown-menu.msa-menu[data-bs-popper] {
            top: calc(100% + 12px) !important;
            left: 50% !important;
            right: auto !important;
            transform: translateX(-50%) !important;
            margin-top: 0 !important;
        }

    /* Mũi tam giác nằm đúng giữa dropdown */
    .msa-header .msa-nav-dropdown > .msa-menu::before {
        content: "";
        position: absolute;
        top: -8px;
        left: 50%;
        width: 16px;
        height: 16px;
        background: #fff;
        transform: translateX(-50%) rotate(45deg);
        border-left: 1px solid rgba(15, 23, 42, 0.08);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 2px;
    }

/* Bỏ mũi tam giác giả nằm trên nav item nếu còn tồn tại */
.msa-nav-link::after,
.msa-nav-button::after,
.msa-nav-link.active::after,
.msa-nav-button.active::after,
.msa-nav-button.show::after {
    display: none !important;
    content: none !important;
}

/* Dropdown đang mở thì sáng đúng mục đó */
.msa-nav-button.show {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

/* Mục active chỉ sáng nhẹ, không tạo mũi tên */
.msa-nav-link.active,
.msa-nav-button.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Item bên trong dropdown đẹp kiểu Smartstore */
.msa-menu .msa-menu-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    transition: 0.16s ease;
}

    .msa-menu .msa-menu-item:hover {
        background: #f3f7fd;
        color: #18509f;
    }

.msa-menu .msa-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #eef5ff;
    color: #1d66b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.msa-menu .msa-menu-item strong {
    display: block;
    color: #334155;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.msa-menu .msa-menu-item small {
    display: block;
    color: #8b98aa;
    font-size: 13px;
    font-weight: 700;
    margin-top: 3px;
}
/* =========================================================
   PRODUCT DETAIL GALLERY - THUMBNAIL LEFT
   ========================================================= */

.product-detail-gallery {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 22px;
    align-items: flex-start;
}

.product-detail-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 560px;
    overflow-y: auto;
    padding: 2px 5px 2px 0;
}

.product-detail-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    background: #ffffff;
    padding: 4px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .product-detail-thumb:hover {
        border-color: #7eb8f0;
        transform: translateY(-1px);
    }

    .product-detail-thumb.active {
        border-color: #0f2748;
        box-shadow: 0 0 0 3px rgba(15, 39, 72, 0.08);
    }

    .product-detail-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

.product-detail-image-box {
    width: 100%;
    min-height: 520px;
    background: #f8fbff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-detail-image-box img {
        width: 100%;
        height: auto;
        max-height: 520px;
        object-fit: contain;
        object-position: center;
        display: block;
        background: #fff;
    }

.product-detail-discount {
    position: absolute;
    left: 18px;
    top: 18px;
    min-width: 72px;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    background: #f23867;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-detail-edit-btn,
.product-detail-add-cart,
.product-detail-action-bar button,
.product-detail-action-bar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

@media (max-width: 900px) {
    .product-detail-gallery {
        grid-template-columns: 1fr;
    }

    .product-detail-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        order: 2;
    }

    .product-detail-image-box {
        order: 1;
    }
}

/* =========================================================
   SHOP SERVICE PAGES
   ========================================================= */

.shop-service-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 16px 70px;
}

.shop-service-hero {
    min-height: 240px;
    padding: 46px 54px;
    border-radius: 28px;
    background: linear-gradient(135deg, #12284f, #2563eb 54%, #12a05c);
    color: #ffffff;
    box-shadow: 0 24px 54px rgba(15, 39, 72, .14);
    overflow: hidden;
    position: relative;
}

    .shop-service-hero::after {
        content: "";
        position: absolute;
        right: -70px;
        top: -90px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .14);
    }

    .shop-service-hero.about {
        background: linear-gradient(135deg, #071d3a, #1f63ad);
    }

    .shop-service-hero span {
        min-height: 34px;
        padding: 0 15px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .16);
        color: #ffffff;
        font-size: 13px;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
    }

    .shop-service-hero h1 {
        margin: 22px 0 12px;
        font-size: 44px;
        line-height: 1.1;
        font-weight: 950;
        letter-spacing: -0.055em;
    }

    .shop-service-hero p {
        margin: 0;
        max-width: 760px;
        font-size: 17px;
        line-height: 1.65;
        font-weight: 650;
        color: rgba(255, 255, 255, .9);
    }

.shop-service-section {
    margin-top: 42px;
}

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

    .shop-service-section-head h2 {
        margin: 0;
        color: #071d3a;
        font-size: 28px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .shop-service-section-head p {
        margin: 6px 0 0;
        color: #8192aa;
        font-size: 14px;
        font-weight: 650;
    }

    .shop-service-section-head a {
        min-height: 40px;
        padding: 0 16px;
        border: 1px solid #dce7f3;
        border-radius: 999px;
        color: #1f63ad;
        background: #ffffff;
        font-size: 13px;
        font-weight: 850;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
    }

        .shop-service-section-head a:hover {
            background: #f3f8ff;
        }

.shop-service-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.shop-service-product-card {
    border: 1px solid #dce7f3;
    border-radius: 20px;
    background: #ffffff;
    color: #071d3a;
    text-decoration: none;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

    .shop-service-product-card:hover {
        transform: translateY(-3px);
        border-color: #bdd8f5;
        box-shadow: 0 18px 36px rgba(15, 39, 72, .1);
    }

.shop-service-product-image {
    height: 230px;
    background: #f8fbff;
    position: relative;
    overflow: hidden;
}

    .shop-service-product-image span {
        position: absolute;
        top: 14px;
        left: 14px;
        height: 34px;
        padding: 0 12px;
        border-radius: 10px;
        background: #f23867;
        color: #ffffff;
        font-size: 13px;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        z-index: 2;
    }

    .shop-service-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.shop-service-product-info {
    padding: 17px 18px 19px;
}

    .shop-service-product-info small {
        color: #8798af;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .035em;
    }

    .shop-service-product-info h3 {
        margin: 7px 0 12px;
        color: #071d3a;
        font-size: 16px;
        line-height: 1.35;
        font-weight: 900;
    }

.shop-service-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .shop-service-product-price strong {
        color: #071d3a;
        font-size: 17px;
        font-weight: 950;
    }

    .shop-service-product-price del {
        color: #94a3b8;
        font-size: 13px;
        font-weight: 700;
    }

.shop-service-empty {
    padding: 42px 20px;
    border: 1px dashed #cddced;
    border-radius: 18px;
    background: #fbfdff;
    color: #8192aa;
    font-size: 15px;
    font-weight: 750;
    text-align: center;
}

.shop-about-grid {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.shop-about-card {
    min-height: 230px;
    padding: 28px;
    border: 1px solid #dce7f3;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 39, 72, .06);
}

    .shop-about-card h2 {
        margin: 0 0 12px;
        color: #071d3a;
        font-size: 22px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .shop-about-card p,
    .shop-about-card li {
        color: #52647c;
        font-size: 14px;
        line-height: 1.75;
        font-weight: 650;
    }

    .shop-about-card ul {
        margin: 0;
        padding-left: 20px;
    }

.shop-about-btn {
    min-height: 42px;
    margin-top: 12px;
    padding: 0 18px;
    border-radius: 999px;
    background: #1f63ad;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .shop-about-btn:hover {
        color: #ffffff;
        background: #2479c8;
    }

@media (max-width: 1100px) {
    .shop-service-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .shop-service-menu {
        right: auto;
        left: 0;
        width: 330px;
    }

    .shop-service-hero {
        padding: 34px 26px;
    }

        .shop-service-hero h1 {
            font-size: 34px;
        }

    .shop-service-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .shop-service-product-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SHOP SERVICE DROPDOWN - CLICK STYLE LIKE ACCOUNT MENU
   ========================================================= */

.shop-service-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shop-service-toggle {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #071d3a;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    line-height: 1;
}

    .shop-service-toggle:hover,
    .shop-service-toggle.show {
        background: #f3f5f9;
        color: #071d3a;
    }

    .shop-service-toggle i {
        font-size: 13px;
        transition: transform .16s ease;
    }

    .shop-service-toggle.show i {
        transform: rotate(180deg);
    }

/* chặn kiểu hover cũ */
.shop-service-dropdown:hover .shop-service-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

/* dùng Bootstrap .show để click mới hiện */
.shop-service-dropdown .shop-service-menu.dropdown-menu {
    display: none;
    width: 340px;
    margin-top: 12px;
    padding: 14px 0;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 39, 72, .14);
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: 3000;
}

    .shop-service-dropdown .shop-service-menu.dropdown-menu.show {
        display: block;
    }

.shop-service-menu::before {
    display: none !important;
}

.shop-service-menu li {
    list-style: none;
}

.shop-service-item {
    min-height: 58px;
    padding: 11px 18px;
    color: #43546b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background .15s ease, color .15s ease;
}

    .shop-service-item:hover {
        background: #f7f9fc;
        color: #6d35e8;
    }

    .shop-service-item > i {
        width: 26px;
        min-width: 26px;
        color: #7c3aed;
        font-size: 21px;
        line-height: 1;
        text-align: center;
    }

    .shop-service-item span {
        min-width: 0;
        display: block;
    }

    .shop-service-item strong {
        display: block;
        margin-bottom: 3px;
        color: #43546b;
        font-size: 15px;
        line-height: 1.25;
        font-weight: 900;
        letter-spacing: -0.01em;
    }

    .shop-service-item small {
        display: block;
        color: #8a97aa;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 700;
    }

    .shop-service-item:hover strong {
        color: #24324a;
    }

    .shop-service-item:hover small {
        color: #7b8798;
    }

/* =========================================================
   PRODUCT REVIEW PAGE
   ========================================================= */

.product-review-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 16px 70px;
}

    .product-review-page h1 {
        margin: 0 0 24px;
        color: #2d3645;
        font-size: 34px;
        line-height: 1.25;
        font-weight: 800;
        letter-spacing: -0.035em;
    }

        .product-review-page h1 a {
            color: #005baa;
            text-decoration: underline;
            text-underline-offset: 4px;
        }

.product-review-form-card {
    padding: 34px 36px;
    border-radius: 8px;
    background: #f5f5f7;
}

.product-review-page-form {
    display: grid;
    gap: 20px;
}

.product-review-page-row {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

    .product-review-page-row label {
        color: #344054;
        font-size: 14px;
        font-weight: 700;
    }

    .product-review-page-row input[type="text"],
    .product-review-page-row textarea {
        width: 100%;
        border: 1px solid #d8dee8;
        border-radius: 6px;
        background: #ffffff;
        color: #111827;
        font-size: 15px;
        font-weight: 500;
        outline: none;
    }

    .product-review-page-row input[type="text"] {
        height: 46px;
        padding: 0 14px;
    }

    .product-review-page-row textarea {
        padding: 12px 14px;
        resize: vertical;
    }

        .product-review-page-row input[type="text"]:focus,
        .product-review-page-row textarea:focus {
            border-color: #7b92e8;
            box-shadow: 0 0 0 4px rgba(76, 91, 212, .12);
        }

.product-review-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 7px;
}

    .product-review-star-input input {
        display: none;
    }

    .product-review-star-input label {
        margin: 0;
        color: #cbd5e1;
        cursor: pointer;
    }

        .product-review-star-input label i {
            font-size: 36px;
            line-height: 1;
        }

        .product-review-star-input input:checked ~ label,
        .product-review-star-input label:hover,
        .product-review-star-input label:hover ~ label {
            color: #ffb000;
        }

.product-review-page-help {
    margin-left: 318px;
    color: #8a97aa;
    font-size: 14px;
    font-weight: 500;
}

.product-review-privacy {
    margin-left: 318px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .product-review-privacy input {
        margin-top: 5px;
    }

    .product-review-privacy a {
        color: #005baa;
    }

.product-review-submit-btn {
    width: fit-content;
    min-height: 44px;
    margin-left: 318px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: #4c5bd4;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

    .product-review-submit-btn:hover {
        background: #3647c8;
    }

.product-review-alert {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
}

    .product-review-alert.success {
        background: #d7f8e4;
        color: #007a3d;
    }

    .product-review-alert.danger {
        background: #ffe0e0;
        color: #b10012;
    }

.product-review-already {
    padding: 18px 20px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dce7f3;
}

    .product-review-already h3 {
        margin: 0 0 8px;
        color: #071d3a;
        font-size: 20px;
        font-weight: 900;
    }

    .product-review-already p {
        color: #667892;
        font-size: 14px;
        font-weight: 650;
    }

    .product-review-already a {
        color: #005baa;
        font-weight: 800;
    }

.product-review-existing {
    margin-top: 34px;
}

    .product-review-existing h2 {
        margin-bottom: 16px;
        color: #071d3a;
        font-size: 24px;
        font-weight: 900;
    }

@media (max-width: 768px) {
    .product-review-page-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-review-page-help,
    .product-review-privacy,
    .product-review-submit-btn {
        margin-left: 0;
    }

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

/* =========================================================
   FINAL PRODUCT DETAIL ACTION BAR RESTORE
   - Khôi phục style icon cũ: icon mảnh, nằm trên chữ, chia 4 ô.
   - Giảm kích cỡ vừa lại, không dùng icon CSS tự vẽ .pd-*.
   ========================================================= */

.product-detail-edit-btn {
    min-width: 112px !important;
    height: 42px !important;
    padding: 0 18px !important;
    border: 1px solid #dce7f3 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #071d3a !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

    .product-detail-edit-btn:hover {
        background: #f6f9fc !important;
        border-color: #c9d8ea !important;
        color: #071d3a !important;
    }

    .product-detail-edit-btn i {
        font-size: 14px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
    }

.product-detail-add-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.product-detail-add-cart {
    min-height: 54px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #4c5bd4 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .product-detail-add-cart:hover {
        background: #3c4cca !important;
        color: #ffffff !important;
    }

    .product-detail-add-cart i {
        font-size: 19px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
    }

.product-detail-buy-card {
    overflow: hidden;
}

.product-detail-action-bar {
    margin-top: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border-top: 1px solid #e5ebf3 !important;
    background: #f7f8fb !important;
    border-radius: 0 0 14px 14px !important;
    overflow: hidden !important;
}

    .product-detail-action-bar > button,
    .product-detail-action-bar > a,
    .product-detail-action-item {
        min-height: 64px !important;
        padding: 8px 6px !important;
        border: 0 !important;
        border-right: 1px solid #e5ebf3 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #071d3a !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer;
        transition: background .15s ease, color .15s ease;
    }

        .product-detail-action-bar > button:last-child,
        .product-detail-action-bar > a:last-child,
        .product-detail-action-item:last-child {
            border-right: 0 !important;
        }

        .product-detail-action-bar > button:hover,
        .product-detail-action-bar > a:hover,
        .product-detail-action-item:hover {
            background: #eef3ff !important;
            color: #4c5bd4 !important;
        }

    .product-detail-action-bar i {
        color: inherit !important;
        font-size: 20px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
    }

    .product-detail-action-bar span {
        color: inherit !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 650 !important;
    }

/* Ẩn icon CSS tự vẽ cũ nếu HTML còn sót lại */
.pd-btn-icon,
.pd-action-icon {
    display: none !important;
}

/* =========================================================
   FINAL PRODUCT REVIEW COMPACT FIX
   - Nút đánh giá nằm đúng trong khung.
   - Sao chọn review hiện rõ bằng ký tự ★.
   ========================================================= */

.product-review-cta {
    margin-top: 20px !important;
    display: flex !important;
    justify-content: flex-start !important;
}

.product-review-open-btn {
    width: fit-content !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    background: #4c5bd4 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .product-review-open-btn:hover {
        background: #3647c8 !important;
        color: #ffffff !important;
    }

.product-rating-stars,
.product-review-stars,
.product-review-score span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .product-rating-stars span,
    .product-review-stars span,
    .product-review-score span span {
        color: #cbd5e1;
        font-size: 15px;
        line-height: 1;
    }

        .product-rating-stars span.filled,
        .product-review-stars span.filled,
        .product-review-score span span.filled {
            color: #f5a400;
        }

.product-review-star-input {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    gap: 7px !important;
}

    .product-review-star-input input {
        display: none !important;
    }

    .product-review-star-input label {
        margin: 0 !important;
        color: #cbd5e1 !important;
        cursor: pointer !important;
        font-size: 38px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
        transition: color .12s ease, transform .12s ease;
    }

        .product-review-star-input label:hover,
        .product-review-star-input label:hover ~ label,
        .product-review-star-input input:checked ~ label {
            color: #ffb000 !important;
        }

        .product-review-star-input label:hover {
            transform: translateY(-1px) scale(1.03);
        }

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

    .product-detail-action-bar > button,
    .product-detail-action-bar > a,
    .product-detail-action-item {
        min-height: 58px !important;
        font-size: 12px !important;
    }

    .product-detail-action-bar i {
        font-size: 18px !important;
    }
}
.product-detail-main-image {
    cursor: zoom-in;
}

.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
}

    .product-image-modal.show {
        display: flex;
    }

    .product-image-modal img {
        max-width: 95vw;
        max-height: 92vh;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

.product-image-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

    .product-image-modal-close:hover {
        background: rgba(255, 255, 255, 0.28);
    }

/* ===== LƯU Ý: MODAL HỦY ĐƠN HÀNG ===== */

.order-cancel-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 20px;
}

.order-cancel-overlay.show {
    display: flex;
}

.order-cancel-modal {
    position: relative;
    width: 540px;
    max-width: 100%;
    padding: 30px 32px 26px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
}

.order-cancel-modal h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.order-cancel-modal > p {
    margin: 0 0 18px;
    color: #555;
    font-size: 16px;
}

.order-cancel-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 30px;
    color: #999;
    cursor: pointer;
}

.order-cancel-info {
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
}

.order-cancel-info div {
    margin-top: 6px;
    font-size: 14px;
    color: #64748b;
}

.order-cancel-info strong {
    color: #222;
}

.order-cancel-warning {
    padding: 12px 14px;
    margin-bottom: 24px;
    border-radius: 6px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.5;
}

.order-cancel-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.order-cancel-actions form {
    margin: 0;
}

.order-cancel-back {
    min-width: 90px;
    height: 44px;
    border: none;
    background: transparent;
    color: #777;
    font-size: 16px;
    cursor: pointer;
}

.order-cancel-confirm {
    min-width: 130px;
    height: 44px;
    border: none;
    border-radius: 4px;
    background: #ee4d2d;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.order-cancel-confirm:hover {
    background: #d94325;
}

/* ===== KẾT THÚC MODAL HỦY ĐƠN HÀNG ===== */
/* ===== LƯU Ý: ICON LIST VÀ TREE MỚI ===== */

.category-list-icon,
.category-tree-icon {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
}

/* =========================
   ICON LIST
   ========================= */

.category-list-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.category-list-icon-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

    .category-list-icon-row i {
        display: block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
        flex: 0 0 5px;
    }

    .category-list-icon-row b {
        display: block;
        width: 18px;
        height: 3px;
        border-radius: 999px;
        background: currentColor;
    }


/* =========================
   ICON TREE
   ========================= */

.category-tree-icon {
    width: 30px;
    height: 30px;
}

    .category-tree-icon .tree-top-node,
    .category-tree-icon .tree-node {
        position: absolute;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .category-tree-icon .tree-top-node {
        top: 2px;
        left: 12px;
    }

    .category-tree-icon .tree-stem {
        position: absolute;
        top: 7px;
        left: 14px;
        width: 2px;
        height: 8px;
        background: currentColor;
    }

    .category-tree-icon .tree-branch {
        position: absolute;
        top: 14px;
        height: 2px;
        background: currentColor;
    }

    .category-tree-icon .tree-branch-left {
        left: 5px;
        width: 10px;
    }

    .category-tree-icon .tree-branch-right {
        left: 15px;
        width: 10px;
    }

    .category-tree-icon::before,
    .category-tree-icon::after {
        content: "";
        position: absolute;
        top: 14px;
        width: 2px;
        height: 7px;
        background: currentColor;
    }

    .category-tree-icon::before {
        left: 5px;
    }

    .category-tree-icon::after {
        right: 5px;
    }

    .category-tree-icon .tree-node-left {
        left: 2px;
        bottom: 2px;
    }

    .category-tree-icon .tree-node-center {
        left: 12px;
        bottom: 2px;
    }

    .category-tree-icon .tree-node-right {
        right: 2px;
        bottom: 2px;
    }

    .category-tree-icon .tree-branch-left::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 2px;
        height: 7px;
        background: currentColor;
    }


/* =========================
   NÚT SWITCH
   ========================= */

.admin-category-view-switch .admin-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .admin-category-view-switch .admin-view-btn.active {
        color: #174a7c;
    }

    .admin-category-view-switch .admin-view-btn:not(.active) {
        color: #536b87;
    }

/* ===== KẾT THÚC ICON LIST VÀ TREE MỚI ===== */
/* ===== LƯU Ý: POPUP QUẢNG CÁO TRANG CHỦ ===== */

.home-promotion-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .home-promotion-overlay.show {
        opacity: 1;
        visibility: visible;
    }


/* Popup chính */

.home-promotion-popup {
    position: relative;
    width: 540px;
    max-width: 94vw;
    padding: 34px 44px 38px;
    overflow: visible;
    text-align: center;
    border: 5px solid #ffffff;
    border-radius: 32px;
    background: radial-gradient( circle at top, rgba(255,255,255,0.28), transparent 35% ), linear-gradient( 145deg, #e0f8ff 0%, #bdeeff 45%, #93e4ff 100% );
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 3px #ffca4b;
    transform: scale(0.82) translateY(30px);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.home-promotion-overlay.show .home-promotion-popup {
    transform: scale(1) translateY(0);
}


/* Nút đóng */

.home-promotion-close {
    position: absolute;
    top: -28px;
    right: -28px;
    width: 58px;
    height: 58px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    color: #424242;
    font-size: 42px;
    font-weight: 500;
    line-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

    .home-promotion-close:hover {
        transform: scale(1.06);
    }


/* Flash sale */

.home-promotion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    margin-bottom: 13px;
    padding: 7px 22px;
    border-radius: 999px;
    background: linear-gradient( 135deg, #ff405f, #ff7a18 );
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 1px;
    box-shadow: 0 7px 16px rgba(255,64,95,0.25);
}


/* Logo */

.home-promotion-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #182237;
    font-size: 25px;
    font-weight: 950;
}

.home-promotion-logo {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #10a8e8, #19b99c );
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}


/* Nội dung quảng cáo */

.home-promotion-title {
    color: #ff5b4d;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.home-promotion-discount-text {
    color: #ff6845;
    font-size: 20px;
    font-weight: 900;
}

.home-promotion-percent {
    color: #ff4c45;
    font-size: 76px;
    line-height: 0.95;
    font-weight: 1000;
    margin: 3px 0 16px;
    text-shadow: 0 4px 0 #ffffff, 0 9px 24px rgba(255,76,69,0.22);
}


/* Ảnh sản phẩm */

.home-promotion-product-image {
    width: 270px;
    height: 220px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 14px 30px rgba(15,23,42,0.12);
    overflow: hidden;
}

    .home-promotion-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }


/* Tên */

.home-promotion-product-name {
    margin: 0 auto 8px;
    max-width: 420px;
    color: #182237;
    font-size: 21px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Giá */

.home-promotion-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 20px;
}

.home-promotion-old-price {
    color: #77869b;
    font-size: 15px;
    text-decoration: line-through;
}

.home-promotion-new-price {
    color: #e11d48;
    font-size: 23px;
    font-weight: 950;
}


/* Mua ngay */

.home-promotion-buy-btn {
    min-width: 205px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 28px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: linear-gradient( 135deg, #ff4c60, #ff7650 );
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 950;
    text-decoration: none !important;
    box-shadow: 0 9px 20px rgba(255,76,96,0.27);
}

    .home-promotion-buy-btn span {
        width: 23px;
        height: 23px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #ffffff;
        color: #ff4c60;
        font-size: 23px;
    }

    .home-promotion-buy-btn:hover {
        transform: translateY(-2px);
    }


/* Mobile */

@media (max-width: 600px) {

    .home-promotion-popup {
        padding: 28px 22px 30px;
    }

    .home-promotion-close {
        top: -20px;
        right: -10px;
        width: 48px;
        height: 48px;
        font-size: 34px;
    }

    .home-promotion-title {
        font-size: 27px;
    }

    .home-promotion-percent {
        font-size: 60px;
    }

    .home-promotion-product-image {
        width: 220px;
        height: 180px;
    }
}

/* ===== KẾT THÚC POPUP QUẢNG CÁO TRANG CHỦ ===== */
/* ===== LƯU Ý: THEME MINI SMARTSTORE - NAVY BLUE PURPLE PINK ===== */

:root {
    --mini-primary: #1E3A8A;
    --mini-blue: #3B82F6;
    --mini-blue-dark: #172554;
    --mini-purple: #7C3AED;
    --mini-purple-light: #A78BFA;
    --mini-pink: #EC4899;
    --mini-sale: #F43F5E;
    --mini-warning: #F59E0B;
    --mini-success: #10B981;
    --mini-background: #F8FAFC;
    --mini-surface: #FFFFFF;
    --mini-text: #172033;
    --mini-muted: #64748B;
    --mini-border: #E2E8F0;
}


/* =========================================================
   NỀN TRANG CHỦ
   ========================================================= */

body {
    background: linear-gradient( 180deg, #ffffff 0%, #f8faff 50%, #faf8ff 100% );
}

.home-page-v2 {
    position: relative;
}


    /* =========================================================
   BANNER CHÀO MỪNG
   ========================================================= */

    .home-page-v2 .home-welcome {
        background: radial-gradient( circle at 90% 5%, rgba(255,255,255,0.20), transparent 28% ), radial-gradient( circle at 75% 120%, rgba(236,72,153,0.28), transparent 35% ), linear-gradient( 130deg, #172554 0%, #1e3a8a 26%, #2563eb 50%, #7c3aed 76%, #ec4899 100% ) !important;
        border: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 24px 55px rgba(30, 58, 138, 0.22), 0 12px 30px rgba(124, 58, 237, 0.10);
    }


    .home-page-v2 .home-eyebrow {
        background: rgba(255,255,255,0.16);
        border: 1px solid rgba(255,255,255,0.25);
        color: #ffffff;
        backdrop-filter: blur(8px);
    }


    /* =========================================================
   TIÊU ĐỀ SECTION
   ========================================================= */

    .home-page-v2 .home-section-heading h2 {
        background: linear-gradient( 90deg, #172554, #2563eb, #7c3aed );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }


    .home-page-v2 .home-section-heading > span {
        height: 2px;
        background: linear-gradient( 90deg, transparent, #3b82f6, #7c3aed, #ec4899, transparent );
    }


    /* =========================================================
   CARD DANH MỤC
   ========================================================= */

    .home-page-v2 .home-category-card {
        border: 1px solid #e2e8f0;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }


        /* Điện thoại */

        .home-page-v2 .home-category-card:nth-child(1) {
            background: linear-gradient( 145deg, #ffffff, #eff6ff, #dbeafe );
        }

            .home-page-v2 .home-category-card:nth-child(1):hover {
                border-color: #60a5fa;
                box-shadow: 0 18px 40px rgba(59,130,246,0.20);
            }


        /* Laptop */

        .home-page-v2 .home-category-card:nth-child(2) {
            background: linear-gradient( 145deg, #ffffff, #f5f3ff, #ede9fe );
        }

            .home-page-v2 .home-category-card:nth-child(2):hover {
                border-color: #a78bfa;
                box-shadow: 0 18px 40px rgba(124,58,237,0.20);
            }


        /* Phụ kiện */

        .home-page-v2 .home-category-card:nth-child(3) {
            background: linear-gradient( 145deg, #ffffff, #fdf2f8, #fce7f3 );
        }

            .home-page-v2 .home-category-card:nth-child(3):hover {
                border-color: #f472b6;
                box-shadow: 0 18px 40px rgba(236,72,153,0.18);
            }


        .home-page-v2 .home-category-card:hover {
            transform: translateY(-7px);
        }


    /* =========================================================
   ẢNH DANH MỤC
   ========================================================= */

    .home-page-v2 .home-category-image {
        overflow: hidden;
        border-radius: 15px;
    }

        .home-page-v2 .home-category-image img {
            transition: transform 0.3s ease, filter 0.3s ease;
        }

    .home-page-v2 .home-category-card:hover
    .home-category-image img {
        transform: scale(1.06);
        filter: saturate(1.12) contrast(1.03);
    }


    /* =========================================================
   TÊN DANH MỤC
   ========================================================= */

    .home-page-v2 .home-category-card h5 {
        color: #172033;
        transition: color 0.2s ease;
    }

    .home-page-v2
    .home-category-card:nth-child(1):hover h5 {
        color: #2563eb;
    }

    .home-page-v2
    .home-category-card:nth-child(2):hover h5 {
        color: #7c3aed;
    }

    .home-page-v2
    .home-category-card:nth-child(3):hover h5 {
        color: #db2777;
    }


    /* =========================================================
   CARD SẢN PHẨM
   ========================================================= */

    .home-page-v2 .home-product-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px rgba(15,23,42,0.07);
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }


        .home-page-v2 .home-product-card:hover {
            transform: translateY(-8px);
            border-color: #c4b5fd;
            box-shadow: 0 24px 55px rgba(30,58,138,0.14), 0 12px 28px rgba(124,58,237,0.10);
        }


        /* =========================================================
   THANH GRADIENT TRÊN CARD
   ========================================================= */

        .home-page-v2 .home-product-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            z-index: 10;
            background: linear-gradient( 90deg, #2563eb, #7c3aed, #ec4899 );
            opacity: 0;
            transition: opacity 0.2s ease;
        }


        .home-page-v2 .home-product-card:hover::before {
            opacity: 1;
        }


    /* =========================================================
   ẢNH SẢN PHẨM
   ========================================================= */

    .home-page-v2 .home-product-image-wrap {
        background: linear-gradient( 180deg, #ffffff 0%, #f8faff 100% );
    }


    .home-page-v2 .home-product-image-link img {
        transition: transform 0.28s ease, filter 0.28s ease;
    }


    .home-page-v2 .home-product-card:hover
    .home-product-image-link img {
        transform: scale(1.045);
        filter: saturate(1.08);
    }


    /* =========================================================
   BADGE GIẢM GIÁ
   ========================================================= */

    .home-page-v2 .home-discount-badge {
        background: linear-gradient( 135deg, #f43f5e, #ec4899 ) !important;
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(244,63,94,0.32);
    }


    /* =========================================================
   BADGE NỔI BẬT
   ========================================================= */

    .home-page-v2 .home-featured-badge {
        background: linear-gradient( 135deg, #1e3a8a, #2563eb, #7c3aed ) !important;
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(124,58,237,0.25);
    }


    /* =========================================================
   DANH MỤC TRONG CARD
   ========================================================= */

    .home-page-v2 .home-product-category {
        color: #6366f1;
        font-weight: 850;
    }


    /* =========================================================
   TÊN SẢN PHẨM
   ========================================================= */

    .home-page-v2 .home-product-name {
        color: #172033;
        transition: color 0.18s ease;
    }


        .home-page-v2 .home-product-name:hover {
            color: #6d28d9;
        }


    /* =========================================================
   GIÁ
   ========================================================= */

    .home-page-v2 .home-product-price strong,
    .home-page-v2 .home-preview-price {
        color: #e11d48 !important;
    }


    .home-page-v2 .home-product-price small {
        color: #94a3b8;
    }


    /* =========================================================
   GIAO HÀNG
   ========================================================= */

    .home-page-v2 .home-delivery-line {
        color: #d97706;
        font-weight: 750;
    }


        .home-page-v2 .home-delivery-line span {
            width: 8px;
            height: 8px;
            display: inline-block;
            margin-right: 7px;
            border-radius: 50%;
            background: linear-gradient( 135deg, #f59e0b, #f97316 );
            box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
        }


    /* =========================================================
   PREVIEW KHI HOVER
   ========================================================= */

    .home-page-v2 .home-product-hover-preview {
        background: linear-gradient( 180deg, rgba(255,255,255,0.99), rgba(245,243,255,0.98) );
    }


    /* =========================================================
   NÚT GIỎ HÀNG
   ========================================================= */

    .home-page-v2 .home-action-btn.primary {
        background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
        color: #ffffff !important;
    }


        .home-page-v2 .home-action-btn.primary:hover {
            background: linear-gradient( 135deg, #1d4ed8, #6d28d9 ) !important;
            box-shadow: 0 8px 18px rgba(124,58,237,0.24);
        }


    /* =========================================================
   NÚT YÊU THÍCH
   ========================================================= */

    .home-page-v2
    .home-preview-actions
    .home-action-btn:nth-child(2):hover {
        background: #fdf2f8;
        color: #db2777;
    }


    /* =========================================================
   NÚT SO SÁNH
   ========================================================= */

    .home-page-v2
    .home-preview-actions
    .home-action-btn:nth-child(3):hover {
        background: #eff6ff;
        color: #2563eb;
    }


    /* =========================================================
   NÚT CHI TIẾT
   ========================================================= */

    .home-page-v2
    .home-preview-actions
    .home-action-btn:nth-child(4):hover {
        background: #f5f3ff;
        color: #7c3aed;
    }


/* =========================================================
   SEARCH BOX
   ========================================================= */

.site-search,
.header-search,
.shop-search-box {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .site-search:focus-within,
    .header-search:focus-within,
    .shop-search-box:focus-within {
        border-color: #7c3aed !important;
        box-shadow: 0 0 0 4px rgba(124,58,237,0.10);
    }


/* =========================================================
   MENU
   ========================================================= */

.main-nav a,
.shop-nav a {
    transition: color 0.18s ease, background 0.18s ease;
}


    .main-nav a:hover,
    .shop-nav a:hover {
        color: #6d28d9;
        background: #f5f3ff;
    }


    /* =========================================================
   SALE TRÊN MENU
   ========================================================= */

    .main-nav a[href*="sale"],
    .shop-nav a[href*="sale"] {
        color: #e11d48;
    }


/* =========================================================
   POPUP KHUYẾN MÃI
   ========================================================= */

.home-promotion-popup {
    background: radial-gradient( circle at 20% 5%, rgba(255,255,255,0.28), transparent 30% ), linear-gradient( 145deg, #eff6ff 0%, #ede9fe 45%, #fce7f3 100% ) !important;
    border-color: #ffffff;
    box-shadow: 0 30px 80px rgba(30,58,138,0.28), 0 18px 45px rgba(124,58,237,0.20);
}


.home-promotion-badge {
    background: linear-gradient( 135deg, #f43f5e, #ec4899 ) !important;
}


.home-promotion-logo {
    background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
}


.home-promotion-percent {
    color: #e11d48 !important;
}


.home-promotion-buy-btn {
    background: linear-gradient( 135deg, #2563eb, #7c3aed, #ec4899 ) !important;
    color: #ffffff !important;
}


    .home-promotion-buy-btn:hover {
        box-shadow: 0 12px 28px rgba(124,58,237,0.32);
    }


/* =========================================================
   SCROLLBAR
   ========================================================= */

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


::-webkit-scrollbar-track {
    background: #f8fafc;
}


::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, #60a5fa, #8b5cf6, #ec4899 );
    border-radius: 20px;
    border: 2px solid #f8fafc;
}


    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient( 180deg, #2563eb, #7c3aed );
    }


/* =========================================================
   SELECTION TEXT
   ========================================================= */

::selection {
    background: #ddd6fe;
    color: #312e81;
}


/* ===== KẾT THÚC THEME MINI SMARTSTORE - NAVY BLUE PURPLE PINK ===== */

/* ===== LƯU Ý: THEME CHUNG MINI SMARTSTORE TOÀN WEBSITE ===== */

:root {
    --mini-navy: #172554;
    --mini-primary: #1e3a8a;
    --mini-blue: #2563eb;
    --mini-blue-light: #3b82f6;
    --mini-purple: #7c3aed;
    --mini-purple-light: #a78bfa;
    --mini-pink: #ec4899;
    --mini-sale: #f43f5e;
    --mini-orange: #f59e0b;
    --mini-green: #10b981;
    --mini-bg: #f8faff;
    --mini-surface: #ffffff;
    --mini-border: #e2e8f0;
    --mini-text: #172033;
    --mini-muted: #64748b;
    --mini-gradient: linear-gradient( 135deg, #1e3a8a 0%, #2563eb 40%, #7c3aed 72%, #ec4899 100% );
}


/* Nền chung */

body:not(.auth-double-body) {
    background: radial-gradient( circle at 4% 35%, rgba(59, 130, 246, 0.07), transparent 18% ), radial-gradient( circle at 96% 62%, rgba(236, 72, 153, 0.07), transparent 18% ), linear-gradient( 180deg, #ffffff, #f8faff );
    color: var(--mini-text);
}


    /* Link */

    body:not(.auth-double-body) a {
        transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    }


    /* Tiêu đề */

    body:not(.auth-double-body) h1,
    body:not(.auth-double-body) h2 {
        color: var(--mini-text);
    }


    /* Input */

    body:not(.auth-double-body) input,
    body:not(.auth-double-body) select,
    body:not(.auth-double-body) textarea {
        border-color: #dbe3f0;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        body:not(.auth-double-body) input:focus,
        body:not(.auth-double-body) select:focus,
        body:not(.auth-double-body) textarea:focus {
            border-color: var(--mini-purple) !important;
            box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10) !important;
            outline: none;
        }


    /* Button primary */

    body:not(.auth-double-body) .btn-primary {
        border-color: transparent !important;
        background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
    }

        body:not(.auth-double-body) .btn-primary:hover {
            background: linear-gradient( 135deg, #1d4ed8, #6d28d9 ) !important;
            transform: translateY(-1px);
        }


    /* Button danger */

    body:not(.auth-double-body) .btn-danger {
        background: linear-gradient( 135deg, #f43f5e, #ec4899 ) !important;
        border-color: transparent !important;
    }


    /* Card chung */

    body:not(.auth-double-body) .card {
        border-color: var(--mini-border);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    }


/* Breadcrumb */

.breadcrumb a,
.smart-category-breadcrumb a {
    color: var(--mini-blue);
}


/* Badge sale */

.badge-sale,
.sale-badge,
.discount-badge {
    background: linear-gradient( 135deg, #f43f5e, #ec4899 ) !important;
    color: #ffffff !important;
}


/* Badge nổi bật */

.badge-featured,
.featured-badge {
    background: linear-gradient( 135deg, #1e3a8a, #7c3aed ) !important;
    color: #ffffff !important;
}


/* Trạng thái thành công */

.text-success,
.status-success {
    color: var(--mini-green) !important;
}


/* Warning */

.text-warning,
.status-warning {
    color: var(--mini-orange) !important;
}


/* Phân trang */

.pagination .page-link {
    color: var(--mini-primary);
    border-color: #dbe3f0;
}

.pagination .page-item.active .page-link {
    border-color: transparent;
    background: linear-gradient( 135deg, #2563eb, #7c3aed );
}


/* Bảng */

.table thead th {
    background: linear-gradient( 180deg, #f8faff, #f5f3ff );
    color: var(--mini-primary);
}


/* Checkbox / radio */

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--mini-purple);
}


/* ===== KẾT THÚC THEME CHUNG MINI SMARTSTORE TOÀN WEBSITE ===== */

/* ===== LƯU Ý: ĐỒNG BỘ THEME TÍM CHO TOÀN BỘ GIAO DIỆN SHOP ===== */

:root {
    --ms-navy: #172554;
    --ms-blue-dark: #1e3a8a;
    --ms-blue: #2563eb;
    --ms-blue-light: #3b82f6;
    --ms-purple: #7c3aed;
    --ms-purple-light: #a78bfa;
    --ms-pink: #ec4899;
    --ms-sale: #f43f5e;
    --ms-green: #10b981;
    --ms-orange: #f59e0b;
    --ms-text: #172033;
    --ms-muted: #64748b;
    --ms-border: #e2e8f0;
    --ms-soft-blue: #eff6ff;
    --ms-soft-purple: #f5f3ff;
    --ms-soft-pink: #fdf2f8;
    --ms-gradient: linear-gradient( 135deg, #1e3a8a 0%, #2563eb 38%, #7c3aed 70%, #ec4899 100% );
    --ms-gradient-primary: linear-gradient( 135deg, #2563eb, #7c3aed );
    --ms-gradient-sale: linear-gradient( 135deg, #f43f5e, #ec4899 );
}


/* =========================================================
   HEADER - LOGO
   ========================================================= */

.shop-brand-icon {
    background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18);
}


/* =========================================================
   THANH TÌM KIẾM HEADER
   ========================================================= */

.smart-search {
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .smart-search:focus-within {
        border-color: #8b5cf6 !important;
        box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10);
    }

        .smart-search:focus-within
        .search-icon {
            color: #7c3aed;
        }


/* =========================================================
   ACTION HEADER
   ========================================================= */

.header-action-link {
    transition: color .18s ease, transform .18s ease;
}

    .header-action-link:hover {
        color: #7c3aed !important;
        transform: translateY(-2px);
    }

        .header-action-link:hover
        .action-icon {
            color: #7c3aed;
        }


/* =========================================================
   DỊCH VỤ DROPDOWN
   ========================================================= */

.shop-service-item:hover {
    background: linear-gradient( 90deg, #eff6ff, #f5f3ff, #fdf2f8 ) !important;
    color: #6d28d9 !important;
}

.shop-service-item > i {
    color: #7c3aed !important;
}


/* =========================================================
   MENU DANH MỤC HEADER
   ========================================================= */

.shop-nav {
    background: linear-gradient( 180deg, #f8faff, #f5f7ff );
}

    .shop-nav a {
        position: relative;
        transition: color .18s ease, background .18s ease;
    }

        .shop-nav a:hover {
            color: #6d28d9 !important;
            background: #f5f3ff;
        }

        .shop-nav a::after {
            content: "";
            position: absolute;
            left: 20%;
            right: 20%;
            bottom: 0;
            height: 3px;
            border-radius: 99px;
            background: linear-gradient( 90deg, #2563eb, #7c3aed, #ec4899 );
            transform: scaleX(0);
            transition: transform .2s ease;
        }

        .shop-nav a:hover::after {
            transform: scaleX(1);
        }


        /* =========================================================
   SALE TRÊN MENU
   ========================================================= */

        .shop-nav a[href*="sale"],
        .shop-nav a[href*="Sale"] {
            color: #e11d48 !important;
        }


/* =========================================================
   TRANG DANH SÁCH SẢN PHẨM
   ========================================================= */

.smart-category-page {
    position: relative;
}


/* Breadcrumb */

.smart-category-breadcrumb {
    color: #8492a6;
}

    .smart-category-breadcrumb a {
        color: #7c3aed;
        text-decoration: none;
    }


/* =========================================================
   TIÊU ĐỀ TRANG SẢN PHẨM
   ========================================================= */

.smart-category-main h1 {
    background: linear-gradient( 90deg, #172554, #2563eb, #7c3aed );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* =========================================================
   CARD BỘ LỌC
   ========================================================= */

.smart-filter-card {
    border: 1px solid #e2e8f0 !important;
    background: linear-gradient( 145deg, #ffffff 0%, #fbfaff 100% );
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .smart-filter-card:hover {
        border-color: #ddd6fe !important;
        box-shadow: 0 14px 32px rgba(124, 58, 237, 0.08);
    }


/* =========================================================
   TIÊU ĐỀ BỘ LỌC
   ========================================================= */

.smart-filter-title {
    color: #172554;
    background: linear-gradient( 90deg, #eff6ff, #f5f3ff );
}


/* =========================================================
   DANH MỤC TRONG SIDEBAR
   ========================================================= */

.smart-category-filter-item {
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

    .smart-category-filter-item:hover {
        color: #6d28d9 !important;
        background: linear-gradient( 90deg, #eff6ff, #f5f3ff );
    }

    .smart-category-filter-item.active {
        color: #5b21b6 !important;
        background: linear-gradient( 90deg, #eff6ff 0%, #f5f3ff 55%, #fdf2f8 100% ) !important;
        border-left: 4px solid #7c3aed !important;
    }

        .smart-category-filter-item.active
        strong {
            color: #7c3aed;
        }


/* =========================================================
   COLLAPSE FILTER
   ========================================================= */

.smart-filter-collapse {
    color: #172554;
}

    .smart-filter-collapse:hover {
        color: #7c3aed;
    }


/* =========================================================
   RADIO / CHECKBOX
   ========================================================= */

.smart-filter-form
input[type="radio"],
.smart-filter-form
input[type="checkbox"] {
    accent-color: #7c3aed;
}


/* =========================================================
   INPUT FILTER
   ========================================================= */

.smart-filter-form
.form-control,
.smart-filter-form
.form-select {
    border-color: #dbe3ef;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .smart-filter-form
    .form-control:focus,
    .smart-filter-form
    .form-select:focus {
        border-color: #8b5cf6 !important;
        box-shadow: 0 0 0 4px rgba(124, 58, 237, .10) !important;
    }


/* =========================================================
   NÚT LỌC
   ========================================================= */

.smart-filter-form
button[type="submit"],
.smart-filter-submit {
    border: none !important;
    background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .20);
}

    .smart-filter-form
    button[type="submit"]:hover,
    .smart-filter-submit:hover {
        background: linear-gradient( 135deg, #1d4ed8, #6d28d9 ) !important;
        transform: translateY(-1px);
    }


/* =========================================================
   SORT SELECT
   ========================================================= */

.smart-category-toolbar
select,
.smart-category-sort select {
    border-color: #ddd6fe !important;
}

    .smart-category-toolbar
    select:focus,
    .smart-category-sort select:focus {
        border-color: #7c3aed !important;
        box-shadow: 0 0 0 4px rgba(124, 58, 237, .09);
    }


/* =========================================================
   NÚT GRID / LIST
   ========================================================= */

.smart-view-btn,
.smart-view-mode-btn {
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

    .smart-view-btn:hover,
    .smart-view-mode-btn:hover {
        color: #7c3aed !important;
        background: #f5f3ff !important;
    }

    .smart-view-btn.active,
    .smart-view-mode-btn.active {
        background: linear-gradient( 135deg, #eff6ff, #ede9fe ) !important;
        color: #6d28d9 !important;
        border-color: #c4b5fd !important;
    }


/* =========================================================
   CARD SẢN PHẨM TRANG DANH MỤC
   ========================================================= */

.smart-category-product-card,
.smart-product-list-row {
    position: relative;
    border-color: #e2e8f0 !important;
    background: #ffffff;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

    .smart-category-product-card:hover,
    .smart-product-list-row:hover {
        transform: translateY(-6px);
        border-color: #c4b5fd !important;
        box-shadow: 0 22px 45px rgba(124, 58, 237, .13);
    }


    /* Thanh màu khi hover */

    .smart-category-product-card::before,
    .smart-product-list-row::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        z-index: 5;
        background: linear-gradient( 90deg, #2563eb, #7c3aed, #ec4899 );
        opacity: 0;
        transition: opacity .2s ease;
    }

    .smart-category-product-card:hover::before,
    .smart-product-list-row:hover::before {
        opacity: 1;
    }


/* =========================================================
   CATEGORY TRONG SẢN PHẨM
   ========================================================= */

.smart-product-category {
    color: #7c3aed !important;
    font-weight: 800;
}


/* =========================================================
   TÊN SẢN PHẨM
   ========================================================= */

.smart-grid-product-name,
.smart-list-product-name {
    color: #172033 !important;
    transition: color .18s ease;
}

    .smart-grid-product-name:hover,
    .smart-list-product-name:hover {
        color: #6d28d9 !important;
    }


/* =========================================================
   GIÁ
   ========================================================= */

.smart-grid-price strong,
.smart-list-price strong {
    color: #e11d48 !important;
}


/* =========================================================
   BADGE SALE
   ========================================================= */

.smart-discount-badge {
    border: none !important;
    background: linear-gradient( 135deg, #f43f5e, #ec4899 ) !important;
    color: #ffffff !important;
    box-shadow: 0 7px 17px rgba(244, 63, 94, .24);
}


/* =========================================================
   BADGE NỔI BẬT
   ========================================================= */

.smart-featured-badge {
    background: linear-gradient( 135deg, #1e3a8a, #2563eb, #7c3aed ) !important;
    color: #ffffff !important;
}


/* =========================================================
   BUTTON THÊM GIỎ
   ========================================================= */

.smart-add-cart-btn {
    border: none !important;
    background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .18);
}

    .smart-add-cart-btn:hover {
        background: linear-gradient( 135deg, #1d4ed8, #6d28d9 ) !important;
    }


/* =========================================================
   ICON ACTION
   ========================================================= */

.smart-grid-actions button:hover,
.smart-grid-actions a:hover,
.smart-list-icon-btn:hover {
    color: #7c3aed !important;
    background: #f5f3ff !important;
}


/* =========================================================
   TRANG CHI TIẾT SẢN PHẨM
   ========================================================= */

.smart-product-detail-page {
    position: relative;
}

.smart-detail-breadcrumb a {
    color: #7c3aed !important;
}


/* Giá */

.detail-price-box,
.smart-detail-price-box {
    background: linear-gradient( 135deg, #fff1f2, #fdf2f8, #f5f3ff ) !important;
    border-color: #fbcfe8 !important;
}

.detail-price,
.smart-detail-price {
    color: #e11d48 !important;
}


/* Thumbnail */

.smart-detail-thumb:hover,
.smart-detail-thumb.active {
    border-color: #7c3aed !important;
}


/* =========================================================
   NÚT CHI TIẾT SẢN PHẨM
   ========================================================= */

.smart-detail-add-cart,
.detail-add-cart-btn {
    border: none !important;
    background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(124, 58, 237, .22);
}


/* =========================================================
   SERVICE BOX CHI TIẾT
   ========================================================= */

.service-box div {
    background: linear-gradient( 145deg, #ffffff, #f5f3ff ) !important;
    border: 1px solid #ede9fe;
}


/* =========================================================
   SẢN PHẨM LIÊN QUAN
   ========================================================= */

.smart-related-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .smart-related-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 36px rgba(124, 58, 237, .12);
    }

    .smart-related-card strong {
        color: #e11d48 !important;
    }


/* =========================================================
   GIỎ HÀNG
   ========================================================= */

.cart-card,
.order-summary {
    border: 1px solid #e8e5f4 !important;
    box-shadow: 0 14px 34px rgba(30, 58, 138, .07) !important;
}


/* Header card */

.cart-header {
    background: linear-gradient( 90deg, #eff6ff, #f5f3ff ) !important;
    border-bottom-color: #ede9fe !important;
}


/* Giá */

.cart-price,
.cart-total strong,
.summary-total strong {
    color: #e11d48 !important;
}


/* Order summary */

.order-summary {
    background: linear-gradient( 145deg, #ffffff 0%, #fbfaff 100% );
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.checkout-smart-page {
    position: relative;
}


/* Step connector */

.checkout-step.completed:not(:last-child)::after,
.checkout-step.active:not(:last-child)::after {
    background: linear-gradient( 90deg, #2563eb, #7c3aed ) !important;
}


/* Step đang active */

.checkout-step.active
.checkout-step-circle {
    border-color: #7c3aed !important;
    color: #7c3aed !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .14);
}


/* Step hoàn thành */

.checkout-step.completed
.checkout-step-circle {
    border-color: transparent !important;
    background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
    color: #ffffff !important;
}


/* Text active */

.checkout-step.active
.checkout-step-text {
    color: #6d28d9 !important;
}


/* Tiêu đề checkout */

.checkout-main-title {
    background: linear-gradient( 90deg, #172554, #2563eb, #7c3aed );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}


/* Checkout card */

.checkout-card {
    border: 1px solid #e8e5f4;
    box-shadow: 0 14px 34px rgba(124, 58, 237, .07) !important;
}

.checkout-card-header {
    background: linear-gradient( 90deg, #eff6ff, #f5f3ff ) !important;
}


/* =========================================================
   PAYMENT METHOD
   ========================================================= */

.payment-method-item {
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

    .payment-method-item:hover {
        border-color: #a78bfa !important;
        background: #f5f3ff !important;
    }

    .payment-method-item:has( input:checked ) {
        border-color: #7c3aed !important;
        background: linear-gradient( 90deg, #eff6ff, #f5f3ff ) !important;
        box-shadow: inset 4px 0 #7c3aed;
    }

    .payment-method-item
    input[type="radio"] {
        accent-color: #7c3aed;
    }


/* =========================================================
   CUSTOMER ACCOUNT
   ========================================================= */

.customer-account-page {
    position: relative;
}

    .customer-account-page
    .card,
    .account-order-card {
        border-color: #e8e5f4 !important;
        box-shadow: 0 12px 30px rgba(124, 58, 237, .07) !important;
    }

        .account-order-card:hover {
            border-color: #c4b5fd !important;
        }

        .account-order-card
        .order-total {
            color: #e11d48 !important;
        }


/* =========================================================
   COMPARE PAGE
   ========================================================= */

.compare-page {
    position: relative;
}

    .compare-page
    .card {
        border-color: #e8e5f4;
        box-shadow: 0 14px 34px rgba(124, 58, 237, .07);
    }


/* =========================================================
   PRODUCT REVIEW
   ========================================================= */

.product-review-page h1 {
    background: linear-gradient( 90deg, #172554, #2563eb, #7c3aed );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.product-review-form-card {
    background: linear-gradient( 145deg, #ffffff, #f5f3ff ) !important;
    border: 1px solid #ede9fe;
}


/* =========================================================
   FORM CONTROL TOÀN SHOP
   ========================================================= */

main .form-control,
main .form-select {
    transition: border-color .18s ease, box-shadow .18s ease;
}

    main .form-control:focus,
    main .form-select:focus {
        border-color: #8b5cf6 !important;
        box-shadow: 0 0 0 4px rgba(124, 58, 237, .10) !important;
    }


/* =========================================================
   BUTTON PRIMARY TOÀN SHOP
   ========================================================= */

main .btn-primary {
    border-color: transparent !important;
    background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .18);
}

    main .btn-primary:hover {
        background: linear-gradient( 135deg, #1d4ed8, #6d28d9 ) !important;
        transform: translateY(-1px);
    }


/* =========================================================
   BUTTON OUTLINE PRIMARY
   ========================================================= */

main .btn-outline-primary {
    color: #6d28d9 !important;
    border-color: #a78bfa !important;
}

    main .btn-outline-primary:hover {
        color: #ffffff !important;
        background: linear-gradient( 135deg, #2563eb, #7c3aed ) !important;
        border-color: transparent !important;
    }


/* =========================================================
   BUTTON DANGER
   ========================================================= */

main .btn-danger {
    border-color: transparent !important;
    background: linear-gradient( 135deg, #f43f5e, #ec4899 ) !important;
    color: #ffffff !important;
}


/* =========================================================
   LINK
   ========================================================= */

main a:not( .btn ):hover {
    color: #6d28d9;
}


/* =========================================================
   FOOTER
   ========================================================= */

.shop-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #111c44 0%, #172554 35%, #312e81 72%, #581c87 100% ) !important;
    color: #e2e8f0;
}

    .shop-footer::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        right: -100px;
        top: -180px;
        border-radius: 50%;
        background: rgba(236, 72, 153, .13);
    }

    .shop-footer h5 {
        color: #ffffff !important;
    }

    .shop-footer p {
        color: #cbd5e1;
    }


/* =========================================================
   SCROLLBAR
   ========================================================= */

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

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #f8fafc;
    border-radius: 999px;
    background: linear-gradient( 180deg, #60a5fa, #8b5cf6, #ec4899 );
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient( 180deg, #2563eb, #7c3aed );
    }


/* =========================================================
   TEXT SELECTION
   ========================================================= */

::selection {
    background: #ddd6fe;
    color: #312e81;
}
/* ===== KẾT THÚC ĐỒNG BỘ THEME TÍM CHO TOÀN BỘ GIAO DIỆN SHOP ===== */


/* ===== LƯU Ý: LÀM NỔI TIÊU ĐỀ BANNER TRANG CHỦ ===== */
.home-page-v2 .home-welcome h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.20), 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* ===== KẾT THÚC LÀM NỔI TIÊU ĐỀ BANNER TRANG CHỦ ===== */

/* ===== LƯU Ý: SLIDER BANNER TRANG CHỦ ===== */

.home-hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 32px;
    border-radius: 22px;
    background: #111827;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}


/* TRACK CHỨA 3 BANNER */

.home-hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}


/* TỪNG BANNER */

.home-hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}


    /* ẢNH BANNER */

    .home-hero-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        user-select: none;
        -webkit-user-drag: none;
    }


/* =========================
   NÚT MŨI TÊN
   ========================= */

.home-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}


/* HOVER BANNER THÌ HIỆN MŨI TÊN */

.home-hero-slider:hover
.home-slider-arrow {
    opacity: 1;
}


/* HOVER MŨI TÊN */

.home-slider-arrow:hover {
    background: rgba(124, 58, 237, 0.95);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}


/* KHI BẤM */

.home-slider-arrow:active {
    transform: translateY(-50%) scale(0.92);
}


/* MŨI TÊN TRÁI */

.home-slider-prev {
    left: 16px;
}


/* MŨI TÊN PHẢI */

.home-slider-next {
    right: 16px;
}


/* =========================
   CHẤM ĐIỀU HƯỚNG
   ========================= */

.home-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateX(-50%);
}


/* TỪNG CHẤM */

.home-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}


    /* HOVER CHẤM */

    .home-slider-dot:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1.15);
    }


    /* CHẤM ĐANG ACTIVE */

    .home-slider-dot.active {
        width: 28px;
        background: #ffffff;
    }


/* =========================
   TABLET
   ========================= */

@media (max-width: 992px) {

    .home-hero-slider {
        border-radius: 18px;
        margin-bottom: 28px;
    }


    .home-slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 34px;
    }


    .home-slider-prev {
        left: 12px;
    }


    .home-slider-next {
        right: 12px;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .home-hero-slider {
        aspect-ratio: 3 / 1;
        border-radius: 14px;
        margin-bottom: 22px;
    }


    .home-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 28px;
        opacity: 0.90;
    }


    .home-slider-prev {
        left: 7px;
    }


    .home-slider-next {
        right: 7px;
    }


    .home-slider-dots {
        bottom: 7px;
        gap: 6px;
        padding: 4px 7px;
    }


    .home-slider-dot {
        width: 7px;
        height: 7px;
    }


        .home-slider-dot.active {
            width: 20px;
        }
}


/* MOBILE NHỎ */

@media (max-width: 480px) {

    .home-hero-slider {
        border-radius: 11px;
        margin-bottom: 18px;
    }


    .home-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 25px;
    }


    .home-slider-dots {
        bottom: 5px;
    }
}

/* ===== KẾT THÚC SLIDER BANNER TRANG CHỦ ===== */

/* ===== LƯU Ý: GIAO DIỆN TRANG ABOUT ===== */

.about-page {
    width: min(1248px, calc(100% - 40px));
    margin: 42px auto 70px;
}


/* HERO */

.about-hero {
    position: relative;
    min-height: 290px;
    padding: 52px 56px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(
        120deg,
        #172554 0%,
        #1e3a8a 45%,
        #2563eb 100%
    );
    box-shadow: 0 20px 45px rgba(30, 58, 138, 0.18);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 17px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.about-hero h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.about-hero p {
    max-width: 750px;
    margin: 0;
    color: #e0e7ff;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 500;
}


/* TRANG TRÍ HERO */

.about-hero-decoration {
    position: absolute;
    border-radius: 50%;
}

.about-hero-decoration-1 {
    width: 240px;
    height: 240px;
    top: -100px;
    right: -35px;
    background: rgba(255, 255, 255, 0.14);
}

.about-hero-decoration-2 {
    width: 120px;
    height: 120px;
    right: 210px;
    bottom: -65px;
    background: rgba(124, 58, 237, 0.32);
}


/* THÔNG TIN NHÓM */

.about-team-section {
    margin-top: 36px;
    padding: 32px;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.about-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.about-section-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.about-section-heading h2 {
    margin: 0 0 7px;
    color: #172554;
    font-size: 30px;
    font-weight: 800;
}

.about-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.about-team-count {
    min-width: 105px;
    padding: 14px 20px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.about-team-count span {
    display: block;
    color: #7c3aed;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.about-team-count small {
    display: block;
    margin-top: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}


/* BẢNG THÀNH VIÊN */

.about-team-table-wrapper {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

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

.about-team-table thead {
    background: linear-gradient(90deg, #172554, #1e3a8a);
}

.about-team-table th {
    padding: 15px 20px;
    color: #ffffff;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

.about-team-table th:first-child {
    width: 90px;
    text-align: center;
}

.about-team-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.about-team-table td:first-child {
    text-align: center;
    color: #7c3aed;
    font-weight: 800;
}

.about-team-table tbody tr {
    transition: background 0.2s ease;
}

.about-team-table tbody tr:hover {
    background: #f8faff;
}

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


/* CÁC CARD NỘI DUNG */

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.about-info-card {
    position: relative;
    display: flex;
    gap: 20px;
    min-height: 220px;
    padding: 30px;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.about-info-card:hover {
    transform: translateY(-4px);
    border-color: #c4b5fd;
    box-shadow: 0 18px 38px rgba(30, 58, 138, 0.10);
}

.about-card-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
    color: #7c3aed;
    font-size: 21px;
}

.about-info-card h3 {
    margin: 4px 0 12px;
    color: #172554;
    font-size: 22px;
    font-weight: 800;
}

.about-info-card p {
    margin: 0;
    color: #52627a;
    font-size: 14px;
    line-height: 1.75;
}


/* CÔNG NGHỆ */

.about-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.about-tech-list span {
    padding: 8px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8faff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
}


/* NÚT LIÊN HỆ */

.about-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.about-contact-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.22);
}


/* RESPONSIVE */

@media (max-width: 900px) {
    .about-page {
        width: min(100% - 24px, 1248px);
        margin-top: 24px;
    }

    .about-hero {
        min-height: auto;
        padding: 40px 30px;
        border-radius: 22px;
    }

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

@media (max-width: 640px) {
    .about-hero {
        padding: 34px 22px;
    }

    .about-hero h1 {
        font-size: 36px;
    }

    .about-team-section {
        padding: 22px 16px;
    }

    .about-section-heading {
        align-items: flex-start;
    }

    .about-team-count {
        min-width: 80px;
        padding: 12px;
    }

    .about-team-table th,
    .about-team-table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .about-info-card {
        padding: 24px 20px;
    }
}

/* ===== KẾT THÚC GIAO DIỆN TRANG ABOUT ===== */

/* ===== LƯU Ý: ĐỔI MÀU TIÊU ĐỀ ABOUT US ===== */
.about-hero h1 {
    color: #ffffff !important;
}
/* ===== KẾT THÚC ĐỔI MÀU TIÊU ĐỀ ABOUT US ===== */

/* ===== LƯU Ý: GIAO DIỆN RIÊNG CHO BỘ LỌC GIÁ ===== */


/* =========================
   TOÀN BỘ KHU VỰC GIÁ
   ========================= */

.smart-price-filter-v2 {
    position: relative;
}


    /* =========================
   RADIO KHOẢNG GIÁ
   ========================= */

    .smart-price-filter-v2 .smart-filter-radio {
        min-height: 34px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 2px 0;
        color: #4b5563;
        cursor: pointer;
    }


        .smart-price-filter-v2 .smart-filter-radio input[type="radio"] {
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
            margin: 0;
            cursor: pointer;
            accent-color: #2563eb;
        }


        .smart-price-filter-v2 .smart-filter-radio span {
            display: block;
            color: #4b5563;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.35;
            white-space: nowrap;
        }


        .smart-price-filter-v2 .smart-filter-radio:hover span {
            color: #1e3a8a;
        }


/* =========================
   TIÊU ĐỀ KHOẢNG GIÁ TÙY CHỌN
   ========================= */

.smart-price-custom-title {
    margin-top: 17px;
    margin-bottom: 9px;
    padding-top: 14px;
    border-top: 1px solid #edf1f5;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}


/* =========================
   HAI Ô TỪ - ĐẾN
   ========================= */

.smart-price-filter-v2 .smart-price-custom-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 0;
}


    .smart-price-filter-v2 .smart-price-custom-v2 .form-control {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 8px 8px;
        border: 1px solid #d8e0ea;
        border-radius: 8px;
        background: #ffffff;
        color: #1f2937;
        font-size: 12px;
        font-weight: 600;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    }


        .smart-price-filter-v2 .smart-price-custom-v2 .form-control:hover {
            border-color: #b8c5d5;
        }


        .smart-price-filter-v2 .smart-price-custom-v2 .form-control:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
            background: #ffffff;
        }


        .smart-price-filter-v2 .smart-price-custom-v2 .form-control::placeholder {
            color: #9ca3af;
            font-size: 11px;
            font-weight: 500;
            opacity: 1;
        }


/* =========================
   DẤU "-" Ở GIỮA
   ========================= */

.smart-price-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}


/* =========================
   DÒNG HƯỚNG DẪN NHẬP
   ========================= */

.smart-price-help {
    margin-top: 8px;
    color: #8794a6;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.5;
}


/* =========================
   THÔNG BÁO LỖI
   ========================= */

.smart-price-error {
    display: none;
    margin-top: 9px;
    padding: 8px 9px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}


    .smart-price-error.show {
        display: block;
    }


/* =========================
   KHI RADIO ĐƯỢC CHỌN
   ========================= */

.smart-price-filter-v2
.smart-filter-radio:has(input[type="radio"]:checked)
span {
    color: #1e3a8a;
    font-weight: 700;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {

    .smart-price-filter-v2 .smart-filter-radio span {
        font-size: 13px;
    }


    .smart-price-filter-v2 .smart-price-custom-v2 .form-control {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 11px;
    }


    .smart-price-help {
        font-size: 10px;
    }
}


/* ===== KẾT THÚC GIAO DIỆN RIÊNG CHO BỘ LỌC GIÁ ===== */

/* ===== LƯU Ý: ĐỒNG BỘ RADIO VÀ CỠ CHỮ BỘ LỌC ===== */

.smart-filter-radio input[type="radio"] {
    accent-color: #7c4dff !important;
}

.smart-filter-radio,
.smart-filter-radio span {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.smart-price-custom-title {
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
}

/* ===== KẾT THÚC ĐỒNG BỘ RADIO VÀ CỠ CHỮ ===== */


/* ===== LƯU Ý: TĂNG CỠ CHỮ TRONG Ô NHẬP KHOẢNG GIÁ ===== */
.smart-price-custom-v2 .form-control {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}
/* ===== KẾT THÚC CỠ CHỮ Ô NHẬP KHOẢNG GIÁ ===== */


/* ===== LƯU Ý: LOGO MINISMARTSTORE MỚI ===== */
.shop-brand-logo,
.shop-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    flex: 0 0 60px;
}
/* ===== KẾT THÚC LOGO MINISMARTSTORE MỚI ===== */


/* ===== LƯU Ý: LOGO MINISMARTSTORE ADMIN ===== */
.msa-logo-img {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}
/* ===== KẾT THÚC LOGO MINISMARTSTORE ADMIN ===== */


/* ===== LƯU Ý: GIẢM KHOẢNG CÁCH LOGO ADMIN VÀ TÊN ===== */
.msa-brand-link {
    gap: 6px !important;
}

.msa-logo-img {
    margin-right: 0 !important;
}
/* ===== KẾT THÚC KHOẢNG CÁCH LOGO ADMIN ===== */


/* ===== LƯU Ý: FOOTER RIÊNG CHO CHỨC NĂNG SO SÁNH ===== */
.shop-drawer-footer.compare-footer {
    position: static !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 16px 18px !important;
    background: #22c55e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    z-index: 999 !important;
}

.drawer-compare-main-btn,
.drawer-compare-clear-btn {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.drawer-compare-main-btn {
    border: 1px solid #ffffff !important;
    background: #ffffff !important;
    color: #166534 !important;
    text-decoration: none !important;
}

    .drawer-compare-main-btn:hover {
        background: #f0fdf4 !important;
        color: #14532d !important;
        text-decoration: none !important;
    }

.drawer-compare-clear-btn {
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

    .drawer-compare-clear-btn:hover {
        background: rgba(255, 255, 255, 0.3) !important;
    }

/* ===== KẾT THÚC FOOTER RIÊNG CHO CHỨC NĂNG SO SÁNH ===== */

