/* Clean Checkout & Cart - Brand Colors: #C83528 (Red), #33538E (Blue), #62A787 (Green) */

/* Hide default WooCommerce elements */
.woocommerce-cart .woocommerce-info,.woocommerce-cart .coupon,.woocommerce-checkout .woocommerce-info,.woocommerce-checkout .showcoupon,.woocommerce-checkout #ship-to-different-address-checkbox,.woocommerce-checkout .woocommerce-shipping-fields,.woocommerce-checkout .woocommerce-additional-fields,.woocommerce-checkout #order_review_heading,.woocommerce-checkout .woocommerce-checkout-review-order-table,.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{display:none!important}

/* Main Container */
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce{max-width:550px;margin:0 auto;padding:20px}

/* Page Header */
.clean-page-header{background:linear-gradient(135deg,#33538E,#2a4575);color:#fff;padding:25px;text-align:center;border-radius:16px 16px 0 0;margin-bottom:0}
.clean-page-header h1{font-size:22px;font-weight:600;margin:0 0 5px 0;color:#fff}
.clean-page-header p{font-size:14px;opacity:0.9;margin:0}

/* Delivery Notice */
.clean-delivery-notice{background:#fff8e1;border:1px solid #ffe082;border-radius:12px;padding:16px;margin-bottom:20px}
.clean-delivery-notice .delivery-free{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px dashed #ffe082}
.clean-delivery-notice .delivery-free svg{width:22px;height:22px;fill:#62A787;flex-shrink:0}
.clean-delivery-notice .delivery-free span{font-size:14px;font-weight:600;color:#62A787}
.clean-delivery-notice .delivery-other{display:flex;align-items:flex-start;gap:10px}
.clean-delivery-notice .delivery-other svg{width:20px;height:20px;fill:#C83528;flex-shrink:0;margin-top:1px}
.clean-delivery-notice .delivery-other span{font-size:13px;color:#333;line-height:1.5}
.clean-delivery-notice .phone-link{color:#33538E;font-weight:600;text-decoration:none;direction:ltr;display:inline-block}
.clean-delivery-notice .phone-link:hover{text-decoration:underline}

/* Price Summary */
.clean-price-summary{background:#f9fafb;border-radius:12px;padding:20px;margin-bottom:20px}
.clean-price-summary .summary-row{display:flex;justify-content:space-between;padding:8px 0;font-size:14px;color:#555}
.clean-price-summary .summary-row.vat{padding-bottom:12px;border-bottom:1px solid #e0e0e0}
.clean-price-summary .summary-row.total{padding-top:12px}
.clean-price-summary .summary-row.total span:first-child{font-weight:600;color:#333}
.clean-price-summary .summary-row.total span:last-child{font-weight:700;font-size:20px;color:#C83528}

/* Checkout Button */
.clean-checkout-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:18px;font-size:18px;font-weight:600;color:#fff!important;background:linear-gradient(135deg,#C83528,#a82d22);border:none;border-radius:12px;cursor:pointer;transition:all 0.3s ease;text-decoration:none!important}
.clean-checkout-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(200,53,40,0.3);color:#fff!important}
.clean-checkout-btn svg{width:20px;height:20px;fill:#fff}

/* Continue Shopping Link */
.clean-continue-shopping{display:block;text-align:center;margin-top:20px;font-size:14px;color:#33538E;text-decoration:none}
.clean-continue-shopping:hover{text-decoration:underline;color:#2a4575}

/* Secure Note */
.clean-secure-note{text-align:center;margin-top:15px;font-size:13px;color:#888;display:flex;align-items:center;justify-content:center;gap:5px}
.clean-secure-note svg{width:14px;height:14px}

/* CART PAGE */
.woocommerce-cart .woocommerce-cart-form{background:#fff;border-radius:0 0 16px 16px;box-shadow:0 4px 20px rgba(0,0,0,0.08);padding:25px;margin-bottom:20px}
.woocommerce-cart table.shop_table{border:none!important;margin:0}
.woocommerce-cart table.shop_table th,.woocommerce-cart table.shop_table td{border:none!important;padding:0}
.woocommerce-cart table.shop_table thead{display:none}

/* Cart Item */
.woocommerce-cart table.shop_table tr.cart_item{display:flex;flex-wrap:wrap;gap:15px;padding:15px;background:#f9fafb;border-radius:12px;margin-bottom:12px;position:relative;align-items:flex-start}
.woocommerce-cart table.shop_table tr.cart_item:last-child{margin-bottom:0}

/* Product Thumbnail */
.woocommerce-cart table.shop_table .product-thumbnail{width:80px;order:1}
.woocommerce-cart table.shop_table .product-thumbnail a{display:block}
.woocommerce-cart table.shop_table .product-thumbnail img,.woocommerce-cart table.shop_table .product-thumbnail .clean-cart-thumb{width:80px!important;height:80px!important;object-fit:cover;border-radius:10px}

/* Product Name */
.woocommerce-cart table.shop_table .product-name{flex:1;order:2;min-width:150px}
.woocommerce-cart table.shop_table .product-name a{font-size:15px;font-weight:600;color:#333;text-decoration:none;line-height:1.3;display:block;margin-bottom:5px}
.woocommerce-cart table.shop_table .product-name a:hover{color:#33538E}
.woocommerce-cart table.shop_table .product-name .variation{font-size:12px;color:#888}

/* Product Price */
.woocommerce-cart table.shop_table .product-price{display:none}

/* Product Quantity */
.woocommerce-cart table.shop_table .product-quantity{order:4;width:auto}
.woocommerce-cart table.shop_table .product-quantity .quantity{display:flex;align-items:center;gap:0;border:2px solid #e0e0e0;border-radius:8px;overflow:hidden}
.woocommerce-cart table.shop_table .product-quantity input.qty{width:45px!important;height:36px;text-align:center;font-size:14px;font-weight:600;color:#333;background:#fff;border:none;padding:0;margin:0;-moz-appearance:textfield}
.woocommerce-cart table.shop_table .product-quantity input.qty::-webkit-outer-spin-button,.woocommerce-cart table.shop_table .product-quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* Subtotal */
.woocommerce-cart table.shop_table .product-subtotal{order:5;font-size:16px;font-weight:700;color:#C83528;display:flex;align-items:center}

/* Remove Button */
.woocommerce-cart table.shop_table .product-remove{position:absolute;top:10px;right:10px;order:6;width:auto}
[dir="rtl"] .woocommerce-cart table.shop_table .product-remove{right:auto;left:10px}
.woocommerce-cart table.shop_table .product-remove a.remove{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:rgba(200,53,40,0.1);border-radius:50%;color:#C83528!important;font-size:18px;line-height:1;text-decoration:none;transition:background 0.2s}
.woocommerce-cart table.shop_table .product-remove a.remove:hover{background:rgba(200,53,40,0.2)}

/* Cart Actions */
.woocommerce-cart table.shop_table tr.actions{display:none}
.woocommerce-cart .actions .button{display:none}
.woocommerce-cart button[name="update_cart"]{display:none!important}

/* Cart Collaterals */
.woocommerce-cart .cart-collaterals{width:100%!important;float:none!important}
.woocommerce-cart .cart_totals{display:none!important}
.clean-cart-summary{background:#fff;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,0.08);padding:25px}

/* Empty Cart */
.woocommerce-cart .cart-empty{text-align:center;padding:40px 20px;background:#fff;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,0.08)}
.woocommerce-cart .return-to-shop{margin-top:20px}
.woocommerce-cart .return-to-shop .button{background:#33538E!important;color:#fff!important;padding:12px 30px;border-radius:10px;font-weight:500}
.woocommerce-cart .return-to-shop .button:hover{background:#2a4575!important}

/* CHECKOUT PAGE */
.woocommerce-checkout form.checkout{background:#fff;border-radius:0 0 16px 16px;box-shadow:0 4px 20px rgba(0,0,0,0.08);padding:30px;margin-top:0}

/* Order Summary */
.clean-order-summary{background:#f9fafb;border-radius:12px;padding:20px;margin-bottom:25px}
.clean-order-summary h3{font-size:16px;font-weight:600;color:#333;margin:0 0 15px 0;padding-bottom:10px;border-bottom:1px solid #e0e0e0}
.clean-order-summary .order-item{display:flex;justify-content:space-between;align-items:center;padding:10px 0}
.clean-order-summary .item-name{font-size:14px;color:#555}
.clean-order-summary .item-qty{color:#888;font-size:13px}
.clean-order-summary .item-price{font-weight:500;color:#333}

/* Form Fields */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{display:flex;flex-direction:column;gap:0}
.woocommerce-checkout .form-row{margin-bottom:20px;padding:0;width:100%!important;float:none!important}
.woocommerce-checkout .form-row label{display:block;font-size:14px;font-weight:500;color:#333;margin-bottom:8px}
.woocommerce-checkout .form-row label .required{color:#C83528}
.woocommerce-checkout .form-row label .optional{font-weight:400;color:#888;font-size:12px}
.woocommerce-checkout .form-row input,.woocommerce-checkout .form-row select,.woocommerce-checkout .form-row textarea{width:100%;padding:14px 16px;font-size:16px;border:2px solid #e0e0e0;border-radius:10px;transition:all 0.2s ease;background:#fff;box-sizing:border-box}
.woocommerce-checkout .form-row input:focus,.woocommerce-checkout .form-row select:focus,.woocommerce-checkout .form-row textarea:focus{outline:none;border-color:#33538E;box-shadow:0 0 0 4px rgba(51,83,142,0.1)}
.woocommerce-checkout .form-row input::placeholder,.woocommerce-checkout .form-row textarea::placeholder{color:#aaa}
.woocommerce-checkout .form-row textarea{min-height:80px;resize:vertical}

/* Select2 */
.woocommerce-checkout .select2-container--default .select2-selection--single{height:auto;padding:10px 16px;border:2px solid #e0e0e0;border-radius:10px}

/* Payment Method */
.clean-payment-method{background:rgba(98,167,135,0.1);border:2px solid #62A787;border-radius:12px;padding:18px;margin-bottom:25px;display:flex;align-items:center;gap:15px}
.clean-payment-method .payment-icon{width:50px;height:50px;background:#62A787;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.clean-payment-method .payment-icon svg{width:26px;height:26px;fill:#fff}
.clean-payment-method .payment-details h4{font-size:16px;font-weight:600;color:#4a8a6a;margin:0 0 3px 0}
.clean-payment-method .payment-details p{font-size:13px;color:#5a9a7a;margin:0}

/* Hide default payment */
.woocommerce-checkout #payment{background:transparent!important;border:none!important;padding:0!important}
.woocommerce-checkout #payment .payment_methods{display:none!important}
.woocommerce-checkout #payment .place-order{padding:0!important}

/* Place Order Button */
.woocommerce-checkout .clean-place-order,.woocommerce-checkout #place_order{width:100%;padding:18px;font-size:18px;font-weight:600;color:#fff!important;background:linear-gradient(135deg,#C83528,#a82d22)!important;border:none!important;border-radius:12px!important;cursor:pointer;transition:all 0.3s ease}
.woocommerce-checkout .clean-place-order:hover,.woocommerce-checkout #place_order:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(200,53,40,0.3)}

/* Error Messages */
.woocommerce-cart .woocommerce-error,.woocommerce-cart .woocommerce-message,.woocommerce-checkout .woocommerce-error,.woocommerce-checkout .woocommerce-message{border-radius:10px;margin-bottom:20px}
.woocommerce-checkout .woocommerce-error{border-color:#C83528}

/* Loading */
.woocommerce-cart .blockUI.blockOverlay,.woocommerce-checkout .blockUI.blockOverlay{background:rgba(255,255,255,0.8)!important}

/* RTL */
[dir="rtl"] .clean-order-summary .order-item,[dir="rtl"] .clean-price-summary .summary-row{flex-direction:row-reverse}
[dir="rtl"] .clean-delivery-notice .delivery-free,[dir="rtl"] .clean-delivery-notice .delivery-other,[dir="rtl"] .clean-payment-method{flex-direction:row-reverse}
[dir="rtl"] .clean-delivery-notice .phone-link{direction:ltr;unicode-bidi:embed}
[dir="rtl"] .clean-checkout-btn svg{transform:rotate(180deg)}

/* RESPONSIVE */
@media(max-width:480px){
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce{padding:10px}
.clean-page-header{padding:20px 15px;border-radius:12px 12px 0 0}
.clean-page-header h1{font-size:20px}
.woocommerce-cart .woocommerce-cart-form,.woocommerce-checkout form.checkout,.clean-cart-summary{padding:20px 15px;border-radius:0 0 12px 12px}
.woocommerce-cart table.shop_table tr.cart_item{padding:12px}
.woocommerce-cart table.shop_table .product-thumbnail,.woocommerce-cart table.shop_table .product-thumbnail img,.woocommerce-cart table.shop_table .product-thumbnail .clean-cart-thumb{width:70px!important;height:70px!important}
.woocommerce-cart table.shop_table .product-name a{font-size:14px}
.woocommerce-cart table.shop_table .product-subtotal{font-size:15px}
.woocommerce-checkout .form-row input,.woocommerce-checkout .form-row select,.woocommerce-checkout .form-row textarea{padding:12px 14px;font-size:16px}
.clean-order-summary,.clean-price-summary{padding:15px}
.clean-payment-method{padding:15px}
.clean-payment-method .payment-icon{width:44px;height:44px}
.clean-checkout-btn,.woocommerce-checkout .clean-place-order,.woocommerce-checkout #place_order{padding:16px;font-size:17px}
.clean-delivery-notice{padding:14px}
.clean-delivery-notice .delivery-free span,.clean-delivery-notice .delivery-other span{font-size:13px}
}

@media(max-width:360px){
.clean-page-header h1{font-size:18px}
.woocommerce-cart .woocommerce-cart-form,.woocommerce-checkout form.checkout,.clean-cart-summary{padding:15px 12px}
.woocommerce-cart table.shop_table tr.cart_item{flex-direction:column;align-items:center;text-align:center}
.clean-order-summary .order-item{flex-direction:column;align-items:flex-start;gap:5px}
.clean-payment-method{flex-direction:column;text-align:center}
[dir="rtl"] .clean-payment-method{flex-direction:column}
}

@media(min-width:481px) and (max-width:768px){
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce{max-width:90%}
}

/* Electro Theme Overrides */
.woocommerce-checkout .col2-set,.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{width:100%!important;max-width:100%!important;float:none!important;padding:0!important;margin:0!important}
.woocommerce-checkout #customer_details{margin:0!important}
.woocommerce-checkout #order_review{width:100%!important;float:none!important;margin:0!important;padding:0!important}
.woocommerce-checkout .checkout-sidebar,.woocommerce-checkout .checkout-order-review{display:none!important}
.woocommerce-checkout .checkout-content,.woocommerce-checkout .checkout-main-content,.woocommerce-cart .cart-content,.woocommerce-cart .cart-main-content{width:100%!important;max-width:550px!important;margin:0 auto!important;float:none!important}
.woocommerce-cart .cross-sells{display:none!important}
