/**
 * WooCommerce Styles for Hello Elementor Theme
 */

/* Global WooCommerce Styles */

/* Product Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Product Title */
.woocommerce-loop-product__title {
    background: #ffffff;
    display: inline-block;
    border-radius: 30px;
    font-family: "Roboto",Tahoma,Sans-serif;
    font-weight: bold;
    font-size: 16pt;
    color: #000000;
    padding: 5px 15px;
    margin: 10px 0;
}

/* Sale badge */
.onsale {
    background: #B30000;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.onsale:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Price */
.woocommerce .price {
    color: #4CAF50;
    font-weight: 700;
    padding: 0 15px 15px;
    display: block;
}


/* Buttons */
.woocommerce .button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.woocommerce .button:hover {
    background-color: #3e8e41;
    color: white;
}

/* Checkout Button */
a.checkout-button.button.alt.wc-forward {
    background: linear-gradient(135deg, #b30000 0%, #990000 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

a.checkout-button.button.alt.wc-forward:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.4);
    background: linear-gradient(135deg, #990000 0%, #800000 100%);
}

a.checkout-button.button.alt.wc-forward::after {
    content: "→";
    margin-left: 10px;
    transition: all 0.3s ease;
}

a.checkout-button.button.alt.wc-forward:hover::after {
    transform: translateX(5px);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

a.checkout-button.button.alt.wc-forward:active {
    animation: pulse 0.3s ease;
}

/* Add to Cart Button */
.single_add_to_cart_button {
    background-color: #B30000 !important;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    text-transform: none !important;
}

.single_add_to_cart_button:hover {
    background-color: #990000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 0, 0, 0.3);
}

.single_add_to_cart_button::before {
    content: "🛒";
    margin-right: 8px;
    display: inline-block;
    animation: bounce 0.5s infinite alternate;
    color: #ff9800; 
    vertical-align: middle;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* Checkout Page */
.woocommerce-checkout .woocommerce {
    padding: 20px;
}

/* Forms */
.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Compatibility with Elementor */
.elementor-widget-woocommerce-products .woocommerce ul.products {
    grid-template-columns: none;
    display: block;
}

.elementor-widget-woocommerce-products .woocommerce ul.products li.product {
    width: 100%;
    margin-bottom: 30px;
}

/* WooCommerce Checkout Layout */
.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.three-col-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.three-col-row .form-row {
    flex: 0 0 calc(33.333% - 10px);
    margin: 0;
}

.three-col-row .form-row-first,
.three-col-row .form-row-middle,
.three-col-row .form-row-last {
    float: none;
}

.three-col-row input[type="text"],
.three-col-row input[type="tel"],
.three-col-row input[type="email"] {
    width: 100%;
    box-sizing: border-box;
}

/* Checkout Page Styles */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Place Order Button */
#place_order.button {
    width: 100%;
    position: relative;
    padding-left: 40px;
    background-color: #4CAF50;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

#place_order.button:hover {
    background-color: #3e8e41;
}

#place_order.button {
    font-weight: bold;
}

@media (max-width: 768px) {
    .three-col-row .form-row {
        flex: 0 0 100%;
    }
}

/* Form Label Styles */
label {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    padding-bottom: 10px;
}

/* Hide login and account creation in checkout */
.woocommerce-form-login-toggle,
.woocommerce-account-fields {
    display: none !important;
}

/* WooCommerce Payment Methods Styling */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.wc_payment_method {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.wc_payment_method:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wc_payment_method label {
    display: inline-block;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
    vertical-align: middle;
}

.wc_payment_method .input-radio {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    display: inline-block;
}

.payment_box {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #0073aa;
}

.payment_box p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Selected payment method style */
.wc_payment_method input[type="radio"]:checked ~ .payment_box {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cart Page Styles */
.woocommerce-cart-form {
    margin-bottom: 40px;
}

.woocommerce-cart-form .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.woocommerce-cart-form .shop_table th {
    background-color: #b30000;
    padding: 15px 12px;
    text-align: left;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

.woocommerce-cart-form .shop_table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.woocommerce-cart-form .product-thumbnail img {
    width: 200px;
    height: auto;
    border-radius: 20px;
}

.woocommerce-cart-form .product-name {
    color: #000000;
    font-weight: 500;
}

.woocommerce-cart-form .product-name a {
    color: #000000;
    font-weight: 500;
    text-decoration: none;
}

.woocommerce-cart-form .product-name a:hover {
    color: #4CAF50;
}

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
    font-weight: bold;
    color: #000000;
}

.woocommerce-cart-form .product-remove a {
    color: #ff0000;
    font-size: 1.5em;
    text-decoration: none;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.woocommerce-cart-form .product-remove a:hover {
    color: white;
    background: #ff0000;
}

.woocommerce-cart-form .quantity .qty {
    width: 70px;
    text-align: center;
    padding: 8px;
}

.cart-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-col {
    flex: 1;
}

.update-col {
    display: flex;
    gap: 10px;
    padding-left: 10px;
}

.woocommerce-cart-form .coupon {
    display: flex;
    gap: 10px;
}

.woocommerce-cart-form .coupon .input-text {
    flex: 1;
    min-width: 200px;
    padding: 10px;
}

.woocommerce-cart-form .coupon .button,
.woocommerce-cart-form .button[name="update_cart"] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.woocommerce-cart-form .coupon .button {
    background-color: #ff9800;
    color: white;
}

.woocommerce-cart-form .coupon .button:hover {
    background-color: #e68a00;
}

.woocommerce-cart-form .button[name="update_cart"] {
    background: linear-gradient(135deg, #b30000 0%, #990000 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.woocommerce-cart-form .button[name="update_cart"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.4);
    background: linear-gradient(135deg, #990000 0%, #800000 100%);
}

.woocommerce-cart-form .button[name="update_cart"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #ff9999 0%, #ff6666 100%);
}

.woocommerce-cart-form .button[name="update_cart"]:active:not(:disabled) {
    animation: pulse 0.3s ease;
}

@media (max-width: 768px) {
    .woocommerce-cart-form .shop_table {
        display: block;
    }
    
    .woocommerce-cart-form .shop_table thead {
        display: none;
    }
    
    .woocommerce-cart-form .shop_table tbody,
    .woocommerce-cart-form .shop_table tr,
    .woocommerce-cart-form .shop_table td {
        display: block;
        width: 100%;
    }
    
    .woocommerce-cart-form .shop_table td {
        text-align: right;
        padding: 10px;
        position: relative;
    }
    
    .woocommerce-cart-form .shop_table td::before {
        content: attr(data-title);
        position: absolute;
        left: 10px;
        font-weight: bold;
    }
    
    .cart-actions-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .update-col {
        width: 100%;
        justify-content: flex-end;
    }
    
    .woocommerce-cart-form .coupon {
        flex-direction: column;
    }
}

/* Bank Transfer Details */
.woocommerce-bacs-bank-details {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.wc-bacs-bank-details-heading {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
    position: relative;
}

.wc-bacs-bank-details-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #3498db;
}

.wc-bacs-bank-details-account-name {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 20px 0 15px;
}

.wc-bacs-bank-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-bacs-bank-details li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 1.1rem;
}

.wc-bacs-bank-details li:last-child {
    border-bottom: none;
}

.wc-bacs-bank-details strong {
    color: #4CAF50;
    font-weight: 600;
}

/* Bank Transfer Heading */
.wc-bacs-bank-details-heading {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    position: relative;
}

.wc-bacs-bank-details-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #3498db;
}

/* Order Details Section */
.woocommerce-order-details {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.woocommerce-order-details__title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-table--order-details thead th {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.woocommerce-table--order-details tbody td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    padding: 15px;
    border-top: 2px solid #f1f1f1;
    font-weight: 600;
}

.woocommerce-table__product-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.woocommerce-table__product-name a:hover {
    color: #4CAF50;
}

.woocommerce-Price-amount {
    color: #4CAF50;
    font-weight: 600;
}

/* Order Received Page Styles */
.woocommerce-order {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.woocommerce-order-overview li {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.woocommerce-order-overview strong {
    display: block;
    margin-top: 5px;
    font-size: 1.1em;
    color: #2c3e50;
}

.woocommerce-notice--success {
    color: #4CAF50;
    font-size: 1.2em;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }
}

/* Customer Details Section */
.woocommerce-customer-details {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.woocommerce-column__title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
    position: relative;
}

.woocommerce-column__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #3498db;
}

.woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.6;
    font-size: 1.1rem;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.woocommerce-customer-details--phone::before {
    content: '📞';
    position: absolute;
    left: 0;
}

.woocommerce-customer-details--email::before {
    content: '✉️';
    position: absolute;
    left: 0;
}

/* Single Column Checkout Layout */
.single-column-checkout {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

#customer_details h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

.woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.form-row {
    margin-bottom: 0;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-row .input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-row .input-text:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    outline: none;
}

/* Hide unnecessary sections */
.woocommerce-account-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    #customer_details {
        padding: 20px;
    }
    
    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Checkout Review Order Section */
#order_review {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 30px;
}

/* Payment Methods */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.wc_payment_method {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.wc_payment_method:hover {
    border-color: #b30000;
    box-shadow: 0 2px 10px rgba(179,0,0,0.1);
}

.wc_payment_method label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
    color: #b30000;
    font-size: 16px;
    padding: 8px 12px;
    background: rgba(179, 0, 0, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.wc_payment_method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.wc_payment_method label:hover {
    background: rgba(179, 0, 0, 0.1);
    transform: translateX(3px);
}

.wc_payment_method input[type="radio"]:checked + label {
    background: rgba(179, 0, 0, 0.15);
    box-shadow: 0 0 0 2px #b30000;
}

.input-radio {
    width: 20px;
    height: 20px;
    accent-color: #b30000;
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.input-radio:checked {
    border-color: #b30000;
    background-color: white;
}

.input-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #b30000;
    border-radius: 50%;
}

.input-radio:hover {
    border-color: #b30000;
    box-shadow: 0 0 0 2px rgba(179, 0, 0, 0.1);
}

/* Payment Box */
.payment_box {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #b30000;
    font-size: 14px;
    line-height: 1.6;
}

.payment_box p {
    margin: 0;
    color: #555;
}

/* Place Order Button */
#place_order.button {
    width: 100%;
    background: linear-gradient(135deg, #b30000 0%, #990000 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#place_order.button:hover {
    background: linear-gradient(135deg, #990000 0%, #800000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(179,0,0,0.3);
}

/* Terms and Conditions */
.form-row.validate-required {
    background: #fff9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #b30000;
    margin: 20px 0;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.woocommerce-form__input-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #b30000;
}

.woocommerce-terms-and-conditions-checkbox-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.woocommerce-terms-and-conditions-link {
    color: #b30000;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.woocommerce-terms-and-conditions-link:hover {
    color: #990000;
    text-decoration: none;
}

.required {
    color: #b30000;
    font-weight: bold;
}

/* Privacy Policy Text */
.woocommerce-privacy-policy-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.woocommerce-privacy-policy-link {
    color: #b30000;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    #order_review {
        padding: 15px;
    }
    
    .wc_payment_method {
        padding: 12px;
    }
    
    .payment_box {
        padding: 12px;
    }
}
