/* 
 * Dolo in Motion - Cart & Checkout Styles
 */

/* Cart Page */
.dolo-cart-wrapper {
    width: 100%;
    color: var(--text-primary);
}

.dolo-cart-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.dolo-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.dolo-cart-table th {
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dolo-cart-table td {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.product-thumbnail img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.product-name a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.product-name dl.variation {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.product-name dl.variation p {
    margin: 0;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
}

.product-remove a {
    color: var(--text-secondary);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.product-remove a:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.dolo-cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

.cart_totals {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px;
}

.cart_totals h2 {
    font-size: 20px;
    margin-bottom: 24px;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.cart_totals table th,
.cart_totals table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart_totals table th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
}
.cart_totals table td {
    text-align: right;
    font-weight: 600;
}

.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent-primary);
    color: #000;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s;
}
.checkout-button:hover {
    transform: translateY(-2px);
    background: #3ECF8E;
}

/* Checkout Page */
.dolo-checkout-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

@media (max-width: 992px) {
    .dolo-checkout-wrapper {
        grid-template-columns: 1fr;
    }
}

.dolo-checkout-customer-details h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-wide {
    grid-column: 1 / -1;
}

.form-row-first, 
.form-row-last {
    width: 100% !important;
    float: none !important;
}

.form-row label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(35, 240, 120, 0.1);
}

.dolo-checkout-order-review {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px;
    position: sticky;
    top: 40px;
}

.dolo-checkout-order-review h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 24px;
}

.shop_table.woocommerce-checkout-review-order-table th,
.shop_table.woocommerce-checkout-review-order-table td {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.shop_table.woocommerce-checkout-review-order-table th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
}
.shop_table.woocommerce-checkout-review-order-table td {
    text-align: right;
    font-weight: 600;
}

.woocommerce-checkout-payment {
    margin-top: 32px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.wc_payment_method {
    margin-bottom: 16px;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
}

.payment_box {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.button.alt#place_order {
    display: block;
    width: 100%;
    background: var(--accent-primary);
    color: #000;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.button.alt#place_order:hover {
    transform: translateY(-2px);
    background: #3ECF8E;
}

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    grid-column: 1 / -1;
}

/* WooCommerce blockui overlay (loading state) */
.blockUI.blockOverlay {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
}
