#chat-icon {
    display: none;
}

.cart-page-wrapper {
    background-color: var(--color-bg);
    padding: 0 0 120px 0;
    min-height: 100vh;
    width: 100%;
}

.page-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-heading {
    margin-bottom: 8px;
}

.cart-heading h2 {
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.accent-line {
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cart-table thead tr {
    border-bottom: 2px solid var(--color-border);
}

.cart-table th {
    padding: 12px 14px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.cart-table th.col-product {
    text-align: left;
}

.cart-table td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-light);
    color: #333;
    text-align: center;
}

.cart-table td.col-product {
    text-align: left;
}

.col-check   { width: 52px; }
.col-product { width: 35%; }
.col-qty     { width: 18%; }
.col-unit    { width: 14%; }
.col-total   { width: 14%; }
.col-actions { width: 7%; }

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #c5c5c5;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, background 0.18s;
    flex-shrink: 0;
}

.custom-checkbox input:checked + .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.custom-checkbox input:checked + .checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-cell img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    flex-shrink: 0;
}

.product-cell .product-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.product-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.inline-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg);
}

.inline-qty-control button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.18s;
}

.inline-qty-control button:hover {
    background: #e2e8e2;
}

.inline-qty-control input {
    width: 45px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-weight: 600;
    background: #fff;
    font-size: 0.9rem;
    outline: none;
    -moz-appearance: textfield;
}

.inline-qty-control input::-webkit-outer-spin-button,
.inline-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-text {
    font-weight: 500;
    color: var(--color-text-muted);
}

.total-text {
    font-weight: 700;
    color: var(--color-primary);
}

.btn-delete {
    border: none;
    border-radius: 7px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.btn-delete:hover {
    background: var(--color-danger);
    color: #fff;
}

.cart-empty-state {
    text-align: center;
    padding: 70px 20px;
}

.cart-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.cart-empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}



.cart-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.09);
    z-index: 200;
    padding: 0 24px;
}

.bottom-bar-inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bottom-bar-left .custom-checkbox {
    width: auto;
}

.bar-select-label {
    font-size: 0.93rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.bar-delete-btn {
    background: transparent;
    border: none;
    color: var(--color-danger);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    transition: background 0.18s;
}

.bar-delete-btn:hover {
    background: var(--color-danger-bg);
}

.bar-delete-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.bar-delete-btn:disabled:hover {
    background: transparent;
}

.bottom-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bar-total-block {
    text-align: right;
}

.bar-total-label {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.bar-total-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
}

.bar-checkout-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0 28px;
    height: 44px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.bar-checkout-btn:hover {
    background: var(--color-primary-hover);
}

.bar-checkout-btn:disabled {
    background: #9bbf97;
    cursor: not-allowed;
}

.confirm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay.active {
    display: flex;
}

.confirm-modal {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    width: 300px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    text-align: center;
}

.confirm-modal h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.confirm-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.confirm-modal p {
    color: #666;
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-cancel {
    background: transparent;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.18s;
}

.modal-cancel:hover {
    background: var(--color-bg);
}

.modal-delete {
    background: var(--color-danger);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.18s;
}

.modal-delete:hover {
    background: var(--color-danger-hover);
}

@media (max-width: 1100px) {
    .cart-table th, .cart-table td { padding: 12px 8px; }
}

@media (max-width: 768px) {
    .cart-page-wrapper {
        padding-bottom: 100px;
    }

    .page-card {
        border-radius: 10px;
        padding: 14px;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px 6px;
        font-size: 0.82rem;
    }

    .product-cell img,
    .product-cell .product-img-placeholder {
        width: 44px;
        height: 44px;
    }

    .col-unit { display: none; }

    .bottom-bar-inner {
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .bar-total-amount {
        font-size: 1.1rem;
    }

    .bar-checkout-btn {
        padding: 0 18px;
        height: 38px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-card { padding: 12px; border-radius: var(--radius-sm); }
    .cart-heading h2 { font-size: 1.55rem; }
    .col-unit, .col-total { display: none; }
    .cart-table th, .cart-table td { padding: 8px 4px; font-size: 0.76rem; }
    .bottom-bar-left, .bottom-bar-right { width: 100%; justify-content: space-between; }
}

.cart-hover-container {
    position: relative;
    display: inline-block;
}

