
/* cart new  */
.page-cart-new {
    padding: 20px 0 40px;
}

.cart-header {
    background: #FFF;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.header-row {
    display: grid;
    grid-template-columns: 1fr 110px 130px 110px 65px;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.store-section {
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #FFF;
}

.product-item {
    display: grid;
    grid-template-columns: 1fr 110px 130px 110px 65px;
    gap: 10px;
    align-items: center;
}

.checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-3);
}

.product-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-image {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.badge-sale {
    background: #ee4d2d;
    color: white;
}

.badge-flash {
    background: #ffc107;
    color: white;
}

.badge-official {
    background: #26aa99;
    color: white;
}

.product-variant {
    font-size: 13px;
    color: #757575;
    margin-top: 8px;
}

.price-original {
    color: #888;
    text-decoration: line-through;
    font-size: 14px;
}

.price-current {
    font-size: 15px;
    font-weight: 500;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
	overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    transition: background 0.2s;
    padding: 0;
}

.qty-btn:hover {
    background: #f5f5f5;
}

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

.qty-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-radius: 0;
}

.qty-input:focus {
    outline: none;
}

.total-price {
    font-size: 15px;
    font-weight: 500;
}

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

.btn-delete {
    background: none;
    border: none;
    color: #F00;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-favorite {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-favorite:hover {
    color: #ee4d2d;
}

.voucher-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.voucher-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.voucher-coin-icon {
    color: #ffa500;
    font-size: 20px;
}

.btn-select-voucher {
    color: #05a;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.voucher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.voucher-amount {
    font-size: 13px;
    color: #757575;
}

.voucher-discount {
    color: #ee4d2d;
    font-weight: 500;
}

.checkout-section {
    background: #FFF;
    padding: 20px;
    border-radius: 4px;
    position: sticky;
    bottom: 0;
    margin-top: 15px;
    border-top: 1px solid #FFF;
}

.checkout-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-all label {
    margin-bottom: 0;
}

.btn-delete-selected {
    background: none;
    border: none;
    color: #F00;
    cursor: pointer;
    font-size: 14px;
}

.btn-save-later {
    background: none;
    border: none;
    color: #05a;
    cursor: pointer;
    font-size: 14px;
}

.checkout-summary {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-text {
    font-size: 14px;
}

.summary-total {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.summary-label {
    font-size: 14px;
    color: #333;
}

.summary-amount {
    font-size: 20px;
	color: #F00;
	font-weight: 700;
}

.summary-saved {
    font-size: 12px;
    color: #333;
}

.btn-checkout {
    background: #000;
    color: white;
    border: none;
    padding: 12px 50px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-checkout:hover {
    opacity: 0.9;
}

.checkout-form {
    border-radius: 8px;
    padding: 20px;
    background: #FFF;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #838383;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0px;
}

.form-group {
    margin-bottom: 9px;
    flex: 1;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: unset;
    background: #ffffffc7;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.radio-group {
    margin-bottom: 20px;
}

.radio-group__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.radio-option {
    position: relative;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.radio-option__input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option__input:checked~.radio-option__label .radio-option__checkmark:after {
    display: block;
}

.radio-option__label {
    display: flex;
    align-items: center;
    padding-left: 32px;
    position: relative;
    cursor: pointer;
    font-size: 15px;
}

.radio-option__checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
}

.radio-option__checkmark::after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: red;
}

.radio-option__description {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    display: none;
}

.radio-option__input:checked~.radio-option__description {
    display: block;
}

.radio-option__description ul {
    margin-left: 20px;
}

.checkout-button {
    width: 100%;
    background: var(--color-3);
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-m {
    display: none;
}

.clear-cart button {
	background-color: #F00;
	color: #FFF;
	border-radius: 5px;
	padding: 5px 15px;
	font-size: 14px;
}

/* @media (max-width: 1024px) {
    .header-row,
    .product-item {
        grid-template-columns: 50px 1fr 120px 120px 120px;
    }

    .actions {
        grid-column: 2;
    }
} */

@media (max-width: 990px) {
    .checkout-form {
        padding: 15px;
		margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }

    .product-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-image {
        width: 100%;
        height: auto;
        max-width: 70px;
    }

    .price-section,
    .quantity-section,
    .total-section {
        grid-column: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .actions {
        grid-column: 1;
        justify-content: flex-start;
    }

    .checkout-summary {
        gap: 15px;
    }

    .btn-checkout {
        width: 100%;
    }

    .checkout-section {
        padding: 12px;
    }

    .checkout-row {
        gap: 10px;
    }

    .page-cart-new {
        padding: 15px 0 25px;
    }

    .store-section {
        padding: 12px;
    }

    .text-m {
        display: unset;
    }

    .btn-delete {
        padding: 0;
        color: #F00;
    }

    .summary-amount {
        font-size: 19px;
    }

    .form-row {
        display: block;
    }
}