@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #b86b35;
    --primary-hover: #9e5524;
    --primary-light: #fbeee4;
    --secondary-color: #775D4A;
    --secondary-hover: #604735;
    --secondary-light: #F3EBE4;
    --accent-color: #D9B99B;
    --dark-color: #1e293b;
    --light-bg: #fffdfa;
    --card-bg: #ffffff;
    --border-color: #E8DED5;
    --text-muted: #786F68;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
.brand-font {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
}

.navbar-milktea {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

.table-badge {
    background: var(--secondary-light);
    color: var(--secondary-color);
    border: 1px solid rgba(45, 106, 79, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(184, 107, 53, 0.4);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: #F3EBE4;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-CHO_XAC_NHAN {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-CHO_CHE_BIEN {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-DANG_CHE_BIEN {
    background-color: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
    animation: pulse 1.8s infinite;
}

.badge-HOAN_THANH {
    background-color: #d1fae5;
    color: #198754;
    border: 1px solid #a7f3d0;
}

.badge-DA_HUY {
    background-color: #F3EBE4;
    color: #786F68;
    border: 1px solid #DCCFC2;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: white;
}

.category-chip {
    padding: 8px 18px;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-chip:hover,
.category-chip.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(184, 107, 53, 0.3);
}

.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1030;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: 50px;
    padding: 12px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.floating-cart-btn:hover {
    transform: scale(1.04);
    color: white;
}

.table-card {
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-card.TRONG {
    border-color: #DCCFC2;
    background: #F8F4EF;
}

.table-card.CO_KHACH {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kds-order-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kds-order-card.DANG_CHE_BIEN {
    border-left: 6px solid #f97316;
}

.kds-order-card.CHO_CHE_BIEN {
    border-left: 6px solid #3b82f6;
}

.admin-sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 60px);
}

.admin-sidebar-column {
    width: 300px;
    flex: 0 0 300px;
}

.admin-content-column {
    min-width: 0;
}

.admin-nav-link {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 4px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .admin-sidebar-column {
        width: 100%;
        flex: 0 0 100%;
    }
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.spinner-custom {
    color: var(--primary-color);
}

@media (max-width: 575.98px) {
    #productsGrid {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 14px;
    }

    #productsGrid.row-cols-1>* {
        width: 50%;
        flex: 0 0 auto;
    }

    #productsGrid .product-item {
        min-width: 0;
    }

    #productsGrid .product-card {
        width: 100%;
        min-width: 0;
        height: 100%;
        border-radius: 12px;
    }

    #productsGrid .product-img-wrapper {
        padding-top: 82%;
    }

    #productsGrid .product-img-wrapper .badge {
        font-size: 10px;
        padding: 4px 6px !important;
        margin: 6px !important;
    }

    #productsGrid .product-card>.p-3 {
        padding: 10px !important;
        min-width: 0;
    }

    #productsGrid .product-card h5 {
        font-size: 13px;
        font-weight: 650;
        line-height: 1.35;
        height: 36px;
        min-height: 36px;
        margin-bottom: 5px !important;
        white-space: normal !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    #productsGrid .product-card p {
        font-size: 11px;
        line-height: 1.4;
        height: 47px;
        min-height: 47px;
        margin-bottom: 8px !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    #productsGrid .product-card .border-top {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 7px;
        padding-top: 9px !important;
    }

    #productsGrid .product-price {
        display: block;
        width: 100%;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
        text-align: left;
    }

    #productsGrid .product-card .border-top .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 34px;
        padding: 7px 8px !important;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 600;
        white-space: nowrap;
        border-radius: 18px !important;
    }

    #productsGrid .product-card .border-top .btn i {
        font-size: 11px;
        margin-right: 5px !important;
    }

    .menu-category-filter {
        width: 100%;
    }

    .menu-category-filter select {
        width: 100%;
        font-size: 14px;
    }

    .floating-cart-btn {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        gap: 7px;
        font-size: 12px;
    }
}

@media (max-width: 359.98px) {
    #productsGrid {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 10px;
    }

    #productsGrid.row-cols-1>* {
        width: 50%;
        flex: 0 0 auto;
    }

    #productsGrid .product-card>.p-3 {
        padding: 8px !important;
    }

    #productsGrid .product-card h5 {
        font-size: 12px;
        height: 34px;
        min-height: 34px;
    }

    #productsGrid .product-card p {
        font-size: 10px;
        height: 43px;
        min-height: 43px;
    }

    #productsGrid .product-price {
        font-size: 13px;
    }

    #productsGrid .product-card .border-top .btn {
        font-size: 11px;
        min-height: 32px;
        padding: 6px !important;
    }

    #productsGrid .product-card .border-top .btn i {
        font-size: 10px;
        margin-right: 4px !important;
    }

    .floating-cart-btn {
        bottom: 14px;
        right: 14px;
        padding: 9px 12px;
        font-size: 11px;
    }
}


html,
body,
button,
input,
select,
textarea,
table,
th,
td,
label,
.navbar,
.nav-link,
.dropdown-menu,
.modal,
.card,
.btn,
.badge,
.form-control,
.form-select,
.brand-font,
.dashboard-page,
.pos-workspace,
.milk-receipt,
.milk-menu-page {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    letter-spacing: 0;
}

button,
.btn,
input,
select,
textarea {
    font-family: inherit;
}