:root {
    --bg-color-gray: #cbcbcb;
    --bg-color-white: #fff
}

/* background */
.bg-primary {
    background-color: var(--primary-color);
    color: var(--text-color-when-primary);
}

.bg-gray {
    background-color: var(--bg-color-gray);
}

.bg-white {
    background-color: var(--bg-color-white);
}

/* width - height */
.wh-full {
    display: block;
    width: 100%;
    height: 100%;
}

.w-full {
    width: 100%;
}

.w-full-vw {
    width: 100vw;
}

.w-60pt {
    width: 60%;
}

.w-50pt {
    width: 40%;
}

.max-w-80pt {
    max-width: 80%;
}

.h-full-vh {
    height: 100vh;
}

.h-full {
    height: 100%;
}

.h-90pt {
    height: 90%;
}

.h-80pt {
    height: 80%;
}

.h-10pt {
    height: 10%;
}

.h-3rem {
    height: 3rem;
}

.min-h-90vh {
    min-height: 90vh;
}

.min-h-90pt {
    min-height: 90%;
}

/* ==== Margin & Padding ==== */
.mar-top-24px {
    margin-top: 24px;
}

.mar-top-12px {
    margin-top: 12px;
}

.mar-top-8px {
    margin-top: 12px;
}

.mar-left-12px {
    margin-left: 12px;
}

.mar-right-8px {
    margin-right: 8px;
}

.mar-top-bot-12px {
    margin-top: 12px;
    margin-bottom: 12px;
}


.pad-24px {
    padding: 24px;
}

.pad-12px {
    padding: 12px;
}

.pad-8px {
    padding: 8px;
}

.pad-top-24px {
    padding-top: 24px;
}

.pad-left-24px {
    padding-left: 24px;
}

.pad-left-12px {
    padding-left: 8px;
}

.pad-left-8px {
    padding-left: 8px;
}

.pad-bot-12px {
    padding-bottom: 12px;
}

.pad-horizontal-24px {
    padding-top: 24px;
    padding-bottom: 24px;
}

.pad-horizontal-12px {
    padding-top: 12px;
    padding-bottom: 12px;
}

.pad-vertical-12px {
    padding-left: 24px;
    padding-right: 24px;
}

.pad-vertical-24px {
    padding-left: 24px;
    padding-right: 24px;
}

.pad-left-24px {
    padding-left: 24px;
}

.pad-left-8px {
    padding-left: 8px;
}

/* ==== Bordering ==== */
.no-border {
    border: none;
}

.border-bot-style-1 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* border radius */
.border-radius-8px {
    border-radius: 8px;
}

/* ==== Box-shadow ==== */
.box-shadow-1 {
    box-shadow: 0px 0px 8px 3px rgba(0, 0, 0, 0.15);
}

/* ==== TEXT & Paragraph ==== */
.paragraph {
    text-align: justify;
}
.disable-link {
    color: inherit;
    text-decoration: none;
}

.text-xs {
    /* 12px */
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    /* 14px */
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    /* 16px */
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    /* 18px */
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    /* 20px */
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-3xl {
    /* 30px */
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

/* ==== TEXT WEIGHT ==== */
.font-extralight {
    font-weight: 200;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* ==== Special Text ====  */
.text-error {
    color: #ff3b3b;
}

.text-color-price {
    color: #ee4d2d;
}

/* ==== Text Adjustment ==== */

.text-ac {
    text-align: center;
}


/* ==== Flexbox ==== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.grow-1 {
    flex-grow: 1;
}

.row-gap-10px {
    row-gap: 10px;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

/* ==== Display ==== */

.display-block {
    display: block;
}

/* ==== Input ==== */
.no-outline {
    outline: none;
}

/* ==== Cursor ==== */
.cursor-pointer {
    cursor: pointer;
}

/* ==== Overflow ==== */
.overflow-hiden {
    overflow: hidden;
}

.overflow-scroll-y {
    overflow: hidden;
    overflow-y: scroll;
}


/* ==== Dash & Selecter ==== */
.dash-light {
    display: block;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.dash-dark {
    display: block;
    height: 0.8px;
    background-color: rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    margin-bottom: 8px;
}

.selected-style-1 {
    color: var(--text-color-when-primary);
    position: relative;
    background-color: var(--primary-color);
    border-radius: 8px;
    /* filter: brightness(1.3) saturate(0.6); */
}

/* ==== Hover style ==== */
.hover-style:hover {
    color: var(--primary-color);
}

/* ==== Avatar ==== */
.avatar-40px {
    width: 40px;
    border-radius: 50%;
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* button */

.button-primary {
    display: block;
    width: 100%;
    padding: 4px 6px 4px 6px;
    border-radius: 5px;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    /* chữ trắng để dễ nhìn */
    font-weight: bold;
    cursor: pointer;
}

.button-primary:hover {
    filter: brightness(120%);
}

.button-red {
    display: block;
    width: 100%;
    padding: 4px 6px;
    border-radius: 5px;
    border: none;
    background-color: #e53935;
    /* đỏ tươi */
    color: #fff;
    /* chữ trắng để dễ nhìn */
    font-weight: bold;
    cursor: pointer;
}

.button-red:hover {
    background-color: #c62828;
    /* đỏ đậm khi hover */
}


/* ==== Table ==== */
.product-table-wrapper {
    width: 100%;
    padding: 16px;
    padding-left: 0;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-table .product-image {
    width: 80px;
}

.product-table .product-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-table thead {
    background: #f5f6f8;
    text-transform: uppercase;
    font-size: 12px;
    color: #555;
}

.product-table th,
.product-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.product-table tbody tr {
    border-top: 1px solid #eee;
    transition: background 0.2s ease-in;
}

.product-table tbody tr:hover {
    background: #fafafa;
}

.product-table .product-table-id {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 350px;
}

.product-table .price {
    color: #0f9d58;
    font-weight: bold;
}

.product-table .stock {
    text-align: center;
    font-weight: bold;
    color: #333;
}

.product-table .actions {
    text-align: center;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-blue:hover {
    background: #bbdefb;
}

.btn-danger {
    background: #ffebee;
    color: #d32f2f;
}

.btn-danger:hover {
    background: #ffcdd2;
}


/* ==== Image ==== */

.image-contain {
    width: 100%;
    object-fit: contain;
    aspect-ratio: 16/9;
}