.wl.cart-page {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    padding: 20px;
    background-color: var(--color-bg-page);
}

@media (min-width: 992px) {
    .wl.cart-page {
        align-items: flex-start;
        gap: 1rem;
        padding: 40px;
    }
}

header.cart-page-header {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

header.cart-page-header h1 {
    margin: 0;
    font-weight: var(--font-weight-regular);
}

header.cart-page-header .btn {
    text-decoration: none;
    padding: 0.25rem 1rem;
    background-color: var(--depth);
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    color: var(--primary);
    border-radius: 0.5rem;
    font-size: var(--font-size-sm);
}

.products-list {
    list-style: none;
    padding: 0 1rem;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--white);
    box-shadow: var(--shadow-float-1);
}

.product-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    gap: 15px;
    transition: box-shadow var(--td-fast);
    flex-flow: row wrap;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 1rem;
    flex-shrink: 0;
}

.informatics {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    margin: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    align-items: stretch;
}

.quantity-btn {
    background-color: var(--depth);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--secondary-text);
    cursor: pointer;
    transition: background-color var(--td-fast), color var(--td-fast);
}

.quantity-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-btn-primary-text);
}

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

.quantity-btn.deduct-btn {
    border-end-end-radius: 0;
    border-start-end-radius: 0;
}

.quantity-btn.add-btn {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.current-qty {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    min-width: 20px;
    text-align: center;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 100px;
}

.item-total {
    font-size: var(--font-size-sm);
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color var(--td-fast);
}

.remove-item-btn:hover {
    background-color: var(--negative);
    color: white;
}

.amount-info {
    position: sticky;
    top: 20px;
    width: 100%;
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-float-1);
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .amount-info {
        width: 400px;
    }
}

.amount-info h3 {
    font-size: var(--font-size-base);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.total-line {
    margin-top: 15px;
    padding: 15px 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--td-fast), box-shadow var(--td-fast);
    display: block;
    text-align: center;
    text-decoration: none;
}

.checkout-btn:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-default);
}

.secure-payment {
    border: 1px solid var(--border);
    margin-top: 1rem;
    border-radius: 0.5rem;
    background: var(--bg-light);
}

.secure-payment>p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0;
}

.secure-payment .icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.secure-payment .icons .payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    padding: 0;
    list-style: none;
    gap: 1rem;
}

.secure-payment .payment-option img {
    width: 2rem;
}

.empty-cart-message {
    text-align: center;
    padding: 50px 20px;
    margin: 50px auto;
    background-color: var(--bg-deep);
    border: 1px dashed var(--border);
    border-radius: 8px;
    max-width: 500px;
}

.empty-cart-message h2 {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.empty-cart-message p {
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.empty-cart-message a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--text);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color var(--td-fast);
}

.empty-cart-message a:hover {
    background-color: var(--positive);
}
