/* Cart & Checkout Pages */

.cart-page,
.checkout {
    background: var(--bg-surface);
    padding: 15px;
}

/* Cart Items */
.cart-items {
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    flex: 0 0 80px;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.cart-item-name a {
    color: var(--primary);
    text-decoration: none;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.cart-item-quantity .quantity-selector {
    display: inline-flex;
}

.cart-item-remove {
    position: absolute;
    top: 15px;
    left: 15px;
}

.cart-item-remove .remove-item {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 50%;
    color: var(--danger);
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}

/* Cart Totals */
.cart-totals {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 15px;
}

.cart-totals h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 15px;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-totals-row.total {
    border-bottom: none;
    font-size: 18px;
    font-weight: 800;
    padding-top: 15px;
}

.checkout-button {
    width: 100%;
    margin-top: 15px;
}

/* Checkout Fields */
.checkout-fields {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 15px;
    margin-bottom: 15px;
}

.checkout-billing h3,
.checkout-shipping h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 15px;
}

.checkout-shipping {
    margin-top: 20px;
}

.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce-additional-fields .form-row {
    margin-bottom: 15px;
}

.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.woocommerce-additional-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields input[type="tel"],
.woocommerce-billing-fields textarea,
.woocommerce-billing-fields select,
.woocommerce-shipping-fields input[type="text"],
.woocommerce-shipping-fields textarea,
.woocommerce-shipping-fields select,
.woocommerce-additional-fields textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}

.woocommerce-billing-fields textarea,
.woocommerce-additional-fields textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkout Review */
.checkout-review {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 15px;
    margin-bottom: 15px;
}

.checkout-review h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 15px;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-checkout-review-order-table .cart_item td {
    font-size: 14px;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: 800;
    border-bottom: none;
    padding-top: 15px;
}

/* Payment Methods */
.woocommerce-checkout-payment {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 15px;
    margin-bottom: 80px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.wc_payment_method {
    margin-bottom: 10px;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.wc_payment_method input[type="radio"] {
    margin-left: 10px;
}

.payment_box {
    padding: 15px;
    background: #f9f9f9;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-size: 14px;
}

#place_order {
    width: 100%;
}

/* Empty Cart */
.woocommerce-info,
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: var(--radius-md);
}

.return-to-shop {
    margin-top: 20px;
}
