/* ==========================================================================
   NEOTUR - Cart & Checkout Styles
   ========================================================================== */

/* General Cart/Checkout Styles
   ========================================================================== */

/* Cart wrapper - simple container */
.cart-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Remove WooCommerce default grid */
.cart-wrapper .woocommerce {
    display: block !important;
    width: 100% !important;
}

/* Cart Page Layout 
   ========================================================================== */
   
/* Cart content uses flexbox layout - NO GRID */
.cart-section .cart-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Main cart area */
.cart-section .cart-main {
    flex: 1;
    min-width: 0;
}

/* Cart sidebar for totals */
.cart-section .cart-sidebar {
    width: 380px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Remove any woocommerce grid overrides */
.woocommerce-page .woocommerce {
    display: block !important;
    grid-template-columns: none !important;
}

/* Reset WooCommerce default structures */
.woocommerce-page .woocommerce > * {
    display: block !important;
}

/* Ensure cart section takes full width */
.cart-section {
    width: 100%;
    padding: 0;
    background: transparent;
}

.cart-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Cart Table - Simplified and Uniform */
.woocommerce table.shop_table,
.woocommerce table.cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

/* Column widths optimized for no horizontal scroll */
.woocommerce table.shop_table .product-remove,
.woocommerce table.cart .product-remove {
    width: 40px;
    text-align: center;
}

.woocommerce table.shop_table .product-thumbnail,
.woocommerce table.cart .product-thumbnail {
    width: 80px;
    text-align: center;
}

.woocommerce table.shop_table .product-name,
.woocommerce table.cart .product-name {
    min-width: 200px;
}

.woocommerce table.shop_table .product-price,
.woocommerce table.cart .product-price {
    /* width: 120px; */
    text-align: center;
    white-space: nowrap;
    display: table-cell;
}

.woocommerce table.shop_table .product-quantity,
.woocommerce table.cart .product-quantity {
    width: 140px;
    text-align: center;
}

.woocommerce table.shop_table .product-subtotal,
.woocommerce table.cart .product-subtotal {
    width: 120px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.woocommerce table.shop_table thead th,
.woocommerce table.cart thead th {
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f8f8;
    text-align: left;
}

.woocommerce table.shop_table tbody td,
.woocommerce table.cart tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #666;
    font-size: 14px;
}

.woocommerce table.shop_table tbody tr:last-child td,
.woocommerce table.cart tbody tr:last-child td {
    border-bottom: none;
}

/* Ensure uniform row height */
.woocommerce table.shop_table tbody tr,
.woocommerce table.cart tbody tr {
    height: 80px;
}

.woocommerce table.shop_table tbody tr td,
.woocommerce table.cart tbody tr td {
    height: inherit;
}

/* Product Image in Cart - Uniform sizing */
.woocommerce table.shop_table .product-thumbnail img,
.woocommerce table.cart .product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

/* Product Name - Uniform text */
.woocommerce table.shop_table .product-name a,
.woocommerce table.cart .product-name a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.woocommerce table.shop_table .product-name a:hover,
.woocommerce table.cart .product-name a:hover {
    color: var(--primary-color);
}

.woocommerce table.shop_table .product-name small,
.woocommerce table.cart .product-name small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    font-weight: normal;
}

/* Product Price - Uniform styling */
.woocommerce table.shop_table .product-price,
.woocommerce table.cart .product-price {
    /* color: #666; */
    /* font-weight: 500; */
    /* font-size: 14px; */
}

.woocommerce table.shop_table .product-price .amount,
.woocommerce table.cart .product-price .amount,
.woocommerce table.shop_table .product-price span.price,
.woocommerce table.cart .product-price span.price {
    color: #333;
    font-weight: 600;
}

/* Quantity Input - Clean and uniform */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce .quantity input[type="number"],
.woocommerce .quantity .qty {
    width: 50px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    -moz-appearance: textfield;
    margin: 0 5px;
}

/* Quantity buttons if they exist */
.woocommerce .quantity .quantity-btn {
    width: 30px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #666;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.woocommerce .quantity .quantity-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.woocommerce .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Product Button - Clean style */
.woocommerce table.shop_table .product-remove a,
.woocommerce table.cart .product-remove a,
.woocommerce a.remove {
    color: #999 !important;
    font-size: 20px;
    font-weight: normal;
    text-decoration: none;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.woocommerce table.shop_table .product-remove a:hover,
.woocommerce table.cart .product-remove a:hover,
.woocommerce a.remove:hover {
    color: #fff !important;
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Subtotal - Uniform and prominent */
.woocommerce table.shop_table .product-subtotal,
.woocommerce table.cart .product-subtotal {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

/* Make all price displays consistent and fix common issues */
.woocommerce-Price-amount,
.woocommerce .amount {
    color: #333 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Fix WooCommerce sale price display issues */
.woocommerce .price del,
.woocommerce-Price-amount del {
    opacity: 0.6 !important;
    text-decoration: line-through !important;
    font-size: 0.9em !important;
}

.woocommerce .price ins,
.woocommerce-Price-amount ins {
    text-decoration: none !important;
    background: none !important;
    font-weight: 600 !important;
}

/* Ensure consistent price display across cart */
.woocommerce table.cart .product-price .price,
.woocommerce table.cart .product-subtotal .price,
.woocommerce table.shop_table .product-price .price,
.woocommerce table.shop_table .product-subtotal .price {
    color: #333 !important;
    font-weight: 600 !important;
}

/* Fix any strike-through price issues in cart */
.woocommerce table.cart .product-price .price del,
.woocommerce table.shop_table .product-price .price del {
    display: none !important; /* Hide regular prices when there's a special price */
}

/* Cart Totals Box */
.woocommerce .cart_totals {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.woocommerce .cart_totals h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.woocommerce .cart_totals table {
    width: 100%;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-color);
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
}

/* Coupon Form */
.woocommerce .coupon {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.woocommerce .coupon label {
    display: none;
}

.woocommerce .coupon input[type="text"] {
    flex: 1;
    max-width: 300px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* Update Cart & Checkout Buttons */
.woocommerce button[name="update_cart"],
.woocommerce .checkout-button,
.woocommerce .button,
.woocommerce a.button {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.woocommerce button[name="update_cart"]:hover,
.woocommerce .checkout-button:hover,
.woocommerce .button:hover,
.woocommerce a.button:hover {
    background: var(--primary-dark, #5a9e2b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(104, 182, 50, 0.3);
}

.woocommerce button[name="update_cart"]:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.woocommerce .checkout-button {
    width: 100%;
    margin-top: 20px;
    font-size: 18px;
    padding: 15px;
}

/* Empty Cart Message */
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .cart-empty {
    background: rgba(104, 182, 50, 0.1);
    border-left: 3px solid var(--primary-color);
    color: var(--text-color);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 16px;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 30px;
}

/* Checkout Page Styles
   ========================================================================== */

/* Checkout Section - Clean and Simple */
.checkout-section {
    padding: 0;
    background: transparent;
}

.checkout-section .container {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Remove any duplicate woocommerce wrappers */
.woocommerce-checkout .woocommerce {
    width: 100%;
    display: block !important;
}

/* Checkout Content Layout - Fixed structure */
.checkout-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.checkout-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.checkout-sidebar {
    width: 380px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Checkout Form Layout - Billing and Shipping side by side */
.woocommerce-checkout .col2-set {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-flow: column;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    flex: 1;
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Checkout Form Headings */
.woocommerce-checkout h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Order Review Section - Simplify */
.woocommerce-checkout-review-order {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.woocommerce-checkout-review-order table {
    width: 100%;
    margin: 0;
    border: none;
}

.woocommerce-checkout-review-order th,
.woocommerce-checkout-review-order td {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
}

.woocommerce-checkout-review-order .order-total th,
.woocommerce-checkout-review-order .order-total td {
    font-size: 18px;
    font-weight: 600;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

/* Remove excessive nested divs and padding */
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
    margin: 0;
    padding: 0;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Checkout Form Fields - Override problematic grid from style.css */
.checkout-section .form-row,
.woocommerce-checkout .form-row {
    display: block !important; /* Override grid from style.css */
    grid-template-columns: none !important;
    gap: 0 !important;
    margin-bottom: 15px;
    width: 100%;
}

/* Specific grid layout only for col2-set */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    display: inline-block;
    width: 100%;
    margin-right: 0;
}

.woocommerce-checkout .form-row-last {
    margin-right: 0;
}

.woocommerce-checkout .form-row-wide {
    display: block !important;
    width: 100% !important;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 13px;
}

.woocommerce-checkout .form-row label .required {
    color: var(--danger-color);
    font-weight: 700;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(104, 182, 50, 0.1);
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 20px;
}

/* Order Review - Simplified */
.woocommerce-checkout #order_review {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.woocommerce-checkout #order_review_heading {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 30px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-color);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
}

/* Payment Methods - Simplified Design */
.woocommerce-checkout #payment {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
}

.woocommerce-checkout #payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.woocommerce-checkout #payment .payment_methods li {
    margin-bottom: 8px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.woocommerce-checkout #payment .payment_methods li.woocommerce-PaymentMethod--active {
    border-color: var(--primary-color);
    background: #f0fff4;
}

.woocommerce-checkout #payment .payment_methods li label {
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.woocommerce-checkout #payment .payment_methods li input[type="radio"] {
    margin-right: 10px;
}

.woocommerce-checkout .payment_box {
    background: #f5f5f5;
    padding: 10px;
    margin-top: 10px;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    width: 100%;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.woocommerce-checkout #place_order:hover {
    background: var(--primary-dark, #5a9e2b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(104, 182, 50, 0.3);
}

/* Terms and Conditions */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 20px 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
    font-size: 14px;
    color: var(--text-color);
}

/* Global Checkout Cleanup - Remove excessive padding and shadows */
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.woocommerce-checkout form.checkout {
    margin: 0;
    padding: 0;
}

/* Ensure no double containers or excessive spacing */
.checkout-wrapper {
    padding: 0;
    margin: 0;
    background: transparent;
}

.woocommerce-page .entry-content {
    max-width: none;
    padding: 0;
}

/* Clean up any WooCommerce default excessive spacing */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    margin: 0;
    padding: 0;
}

/* Notices and Messages */
.woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.woocommerce-message {
    background: rgba(104, 182, 50, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.woocommerce-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 3px solid var(--danger-color);
}

.woocommerce-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border-left: 3px solid var(--info-color);
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 991px) {
    /* Cart layout - stack columns */
    .cart-section .cart-content {
        flex-direction: column;
    }
    
    .cart-section .cart-sidebar {
        width: 100%;
        position: static;
        margin-top: 30px;
    }
    
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        grid-column: 1;
    }
    
    .woocommerce-cart .cart-collaterals {
        position: static;
    }
    
    /* Checkout responsive - stack all columns */
    .checkout-content {
        flex-direction: column;
    }
    
    .checkout-sidebar {
        width: 100%;
        position: static;
        margin-top: 30px;
    }
    
    .woocommerce-checkout .col2-set {
        flex-direction: column;
    }
    
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile Checkout Order Review - Clean Layout */
    .checkout-sidebar {
        padding: 0 15px;
    }
    
    .woocommerce-checkout-review-order {
        padding: 20px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #e0e0e0;
    }
    
    /* Ensure clean structure for order review wrapper */
    #order_review {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .woocommerce-checkout-review-order table {
        font-size: 14px;
    }
    
    .woocommerce-checkout-review-order th,
    .woocommerce-checkout-review-order td {
        padding: 8px 0;
        font-size: 14px;
    }
    
    .woocommerce-checkout-review-order .order-total th,
    .woocommerce-checkout-review-order .order-total td {
        font-size: 16px;
        padding-top: 12px;
    }
    
    /* Adjust checkout sidebar padding on mobile */
    .checkout-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile Cart - Clean Card-based Design */
    .cart-section .container {
        padding: 0;
        background: #f8f9fa;
        border-radius: 0;
    }
    
    /* Remove table structure completely */
    .woocommerce table.shop_table,
    .woocommerce table.cart {
        border: none;
        background: transparent;
        margin: 0;
    }
    
    .woocommerce table.shop_table thead {
        display: none !important;
    }
    
    .woocommerce table.shop_table tbody {
        display: block;
    }
    
    /* Transform each row into a product card - ONLY for cart page */
    .woocommerce-cart table.shop_table tbody tr,
    .cart-section table.shop_table tbody tr {
        display: block !important;
        height: auto !important;
        margin-bottom: 20px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        padding: 0;
        position: relative;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        overflow: hidden;
    }
    
    .woocommerce-cart table.shop_table tbody tr:hover,
    .cart-section table.shop_table tbody tr:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }
    
    /* Table cells as blocks - ONLY for cart page */
    .woocommerce-cart table.shop_table tbody td,
    .cart-section table.shop_table tbody td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        text-align: left !important;
        height: auto !important;
        width: 100% !important;
    }
    
    /* Remove button - positioned in top-right corner */
    .woocommerce table.shop_table .product-remove {
        position: absolute !important;
        top: 12px;
        right: 12px;
        z-index: 20;
        width: auto !important;
    }
    
    .woocommerce table.shop_table .product-remove a {
        width: 28px !important;
        height: 28px !important;
        line-height: 26px !important;
        font-size: 16px !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 50% !important;
        color: #999 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        transition: all 0.2s ease !important;
    }
    
    .woocommerce table.shop_table .product-remove a:hover {
        background: #ff4757 !important;
        color: #fff !important;
        border-color: #ff4757 !important;
        transform: scale(1.1) !important;
    }
    
    /* Product header - image and name side by side */
    .woocommerce table.shop_table .product-thumbnail,
    .woocommerce table.shop_table .product-name {
        display: inline-block !important;
        vertical-align: top;
    }
    
    .woocommerce table.shop_table .product-thumbnail {
        width: 100px !important;
        padding: 16px 12px 16px 16px !important;
    }
    
    .woocommerce table.shop_table .product-thumbnail img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 10px !important;
        object-fit: cover !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .woocommerce table.shop_table .product-name {
        width: calc(100% - 140px) !important;
        padding: 16px 16px 16px 0 !important;
    }
    
    .woocommerce table.shop_table .product-name a {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
        line-height: 1.4 !important;
        display: block !important;
        margin-bottom: 8px !important;
        text-decoration: none !important;
    }
    
    .woocommerce table.shop_table .product-name a:hover {
        color: var(--primary-color, #68b632) !important;
    }
    
    /* Travel date styling */
    .woocommerce table.shop_table .product-name .woocommerce-item-data {
        margin-top: 8px !important;
    }
    
    .woocommerce table.shop_table .product-name .woocommerce-item-data dt {
        font-size: 11px !important;
        color: #666 !important;
        text-transform: uppercase !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 2px !important;
    }
    
    .woocommerce table.shop_table .product-name .woocommerce-item-data dd {
        font-size: 13px !important;
        color: var(--primary-color, #68b632) !important;
        font-weight: 500 !important;
        margin-bottom: 0 !important;
    }
    
    /* Bottom section with price, quantity, subtotal */
    .woocommerce table.shop_table .product-price,
    .woocommerce table.shop_table .product-quantity,
    .woocommerce table.shop_table .product-subtotal {
        display: inline-block !important;
        text-align: center !important;
        border-top: 1px solid #c1c1c1 !important;
        padding: 14px 8px 16px !important;
        vertical-align: top !important;
    }
    
    .woocommerce table.shop_table .product-price {
        /* width: 32% !important; */
    }
    
    .woocommerce table.shop_table .product-quantity {
        /* width: 36% !important; */
        border-left: 1px solid #f5f5f5 !important;
        border-right: 1px solid #f5f5f5 !important;
    }
    
    .woocommerce table.shop_table .product-subtotal {
        /* width: 32% !important; */
        background: #f9f9f9 !important;
    }
    
    /* Section labels - ONLY FOR CART PAGE */
    .woocommerce-cart table.shop_table .product-price::before,
    .woocommerce-cart table.shop_table .product-quantity::before,
    .woocommerce-cart table.shop_table .product-subtotal::before,
    .cart-section table.shop_table .product-price::before,
    .cart-section table.shop_table .product-quantity::before,
    .cart-section table.shop_table .product-subtotal::before {
        display: block !important;
        font-size: 10px !important;
        color: #999 !important;
        text-transform: uppercase !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    
    .woocommerce-cart table.shop_table .product-price::before,
    .cart-section table.shop_table .product-price::before {
        content: "Precio" !important;
    }
    
    .woocommerce-cart table.shop_table .product-quantity::before,
    .cart-section table.shop_table .product-quantity::before {
        content: "Cantidad" !important;
    }
    
    .woocommerce-cart table.shop_table .product-subtotal::before,
    .cart-section table.shop_table .product-subtotal::before {
        content: "Subtotal" !important;
    }
    
    /* ENSURE NO ::before labels in checkout */
    .woocommerce-checkout table.shop_table .product-price::before,
    .woocommerce-checkout table.shop_table .product-quantity::before,
    .woocommerce-checkout table.shop_table .product-subtotal::before,
    .woocommerce-checkout-review-order-table .product-price::before,
    .woocommerce-checkout-review-order-table .product-quantity::before,
    .woocommerce-checkout-review-order-table .product-subtotal::before {
        content: "" !important;
        display: none !important;
    }
    
    /* Price display - comprehensive price formatting */
    .woocommerce table.shop_table .product-price .amount,
    .woocommerce table.shop_table .product-price .woocommerce-Price-amount,
    .woocommerce table.shop_table .product-price .price {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #333 !important;
        text-decoration: none !important;
        display: block !important;
    }
    
    /* Handle custom pricing from tour system */
    .woocommerce table.shop_table .product-price span.price {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #333 !important;
        text-decoration: none !important;
    }
    
    /* Completely hide strikethrough elements in mobile */
    .woocommerce table.shop_table .product-price del,
    .woocommerce table.shop_table .product-price .woocommerce-Price-amount del,
    .woocommerce table.shop_table .product-price .price del {
        display: none !important;
    }
    
    .woocommerce table.shop_table .product-price ins,
    .woocommerce table.shop_table .product-price .woocommerce-Price-amount ins,
    .woocommerce table.shop_table .product-price .price ins {
        text-decoration: none !important;
        background: none !important;
        font-weight: 600 !important;
        font-style: normal !important;
    }
    
    /* Subtotal styling */
    .woocommerce table.shop_table .product-subtotal .amount,
    .woocommerce table.shop_table .product-subtotal .woocommerce-Price-amount {
        font-size: 17px !important;
        font-weight: 700 !important;
        color: var(--primary-color, #68b632) !important;
        text-decoration: none !important;
    }
    
    /* Quantity input styling */
    .woocommerce .quantity {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .woocommerce .quantity input.qty {
        width: 45px !important;
        height: 32px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        margin: 0 !important;
        background: #fff !important;
        color: #333 !important;
    }
    
    .woocommerce .quantity input.qty:focus {
        border-color: var(--primary-color, #68b632) !important;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(104, 182, 50, 0.2) !important;
    }
    
    /* Cart actions - improved mobile design */
    .cart-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 20px !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        margin-top: 25px !important;
        border: 1px solid #e9ecef !important;
    }
    
    .cart-actions .btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        border: none !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .cart-actions .btn-outline {
        background: #fff !important;
        color: var(--primary-color, #68b632) !important;
        border: 2px solid var(--primary-color, #68b632) !important;
    }
    
    .cart-actions .btn-outline:hover {
        background: var(--primary-color, #68b632) !important;
        color: #fff !important;
    }
    
    .cart-actions .btn-secondary {
        background: var(--primary-color, #68b632) !important;
        color: #fff !important;
    }
    
    .cart-actions .btn-secondary:hover {
        background: var(--primary-dark, #5a9e2b) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(104, 182, 50, 0.3) !important;
    }
    
    /* Coupon section */
    .coupon-section {
        margin-top: 20px;
        padding: 18px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    
    .coupon-section h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #333;
    }
    
    .coupon-input-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .coupon-input-group input {
        width: 100% !important;
        padding: 12px 16px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }
    
    .coupon-input-group button {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    /* Cart totals mobile */
    .woocommerce .cart_totals {
        margin-top: 25px;
        padding: 20px;
        background: #fff;
        border: 2px solid var(--primary-color, #68b632);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(104, 182, 50, 0.1);
    }
    
    .woocommerce .cart_totals h2 {
        font-size: 18px;
        margin-bottom: 15px;
        color: var(--primary-color, #68b632);
        font-weight: 700;
    }
    
    .woocommerce .cart_totals table th,
    .woocommerce .cart_totals table td {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .woocommerce .cart_totals .order-total th,
    .woocommerce .cart_totals .order-total td {
        font-size: 18px;
        font-weight: 700;
    }
    
    /* Checkout button - prominent and attractive */
    .woocommerce .checkout-button {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 600;
        background: var(--primary-color, #68b632);
        color: #fff;
        border-radius: 10px;
        margin-top: 15px;
        text-transform: none;
        letter-spacing: 0;
        box-shadow: 0 4px 12px rgba(104, 182, 50, 0.3);
        transition: all 0.3s ease;
    }
    
    .woocommerce .checkout-button:hover {
        background: var(--primary-dark, #5a9e2b);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(104, 182, 50, 0.4);
    }
    
    /* Checkout mobile layout */
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
        order: -1; /* Move order summary to top on mobile */
    }
    
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        padding: 15px;
    }
    
    .woocommerce-checkout #order_review {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .woocommerce-checkout h3 {
        font-size: 16px;
    }
    
    /* Mobile Order Review - Match Desktop Layout */
    #order_review_heading {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e0e0e0;
    }
    
    /* Reset all table styles for checkout on mobile */
    .woocommerce-checkout-review-order-table,
    .woocommerce-checkout-review-order-table * {
        box-sizing: border-box;
    }
    
    .woocommerce-checkout-review-order-table {
        width: 100% !important;
        display: table !important;
        border-collapse: collapse;
        margin: 0;
    }
    
    .woocommerce-checkout-review-order-table thead {
        display: table-header-group !important;
    }
    
    .woocommerce-checkout-review-order-table tbody {
        display: table-row-group !important;
    }
    
    .woocommerce-checkout-review-order-table tfoot {
        display: table-footer-group !important;
    }
    
    .woocommerce-checkout-review-order-table tr {
        display: table-row !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        display: table-cell !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        box-shadow: none !important;
        width: auto !important;
        vertical-align: top !important;
    }
    
    /* Header row */
    .woocommerce-checkout-review-order-table thead th {
        font-size: 12px !important;
        text-transform: uppercase;
        color: #999;
        font-weight: 600;
        padding: 8px 0 !important;
    }
    
    .woocommerce-checkout-review-order-table thead th:first-child {
        text-align: left !important;
    }
    
    .woocommerce-checkout-review-order-table thead th:last-child {
        text-align: right !important;
    }
    
    /* Product row */
    .woocommerce-checkout-review-order-table .cart_item .product-name {
        text-align: left !important;
        font-size: 14px !important;
        color: #333 !important;
        padding-right: 15px !important;
        width: 70% !important;
    }
    
    .woocommerce-checkout-review-order-table .cart_item .product-total {
        text-align: right !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #333 !important;
        width: 30% !important;
    }
    
    /* Remove pseudo-elements ONLY in checkout */
    .woocommerce-checkout-review-order-table .product-quantity::before,
    .woocommerce-checkout-review-order-table .product-quantity::after,
    .woocommerce-checkout table.shop_table .product-quantity::before,
    .woocommerce-checkout table.shop_table .product-quantity::after {
        content: "" !important;
        display: none !important;
    }
    
    /* Hide standalone quantity blocks completely */
    .woocommerce-checkout-review-order-table .product-quantity:not(.product-name .product-quantity) {
        display: none !important;
    }
    
    /* Product name styling - ensure it's clean */
    .woocommerce-checkout-review-order-table .product-name {
        line-height: 1.4 !important;
    }
    
    .woocommerce-checkout-review-order-table .product-name strong {
        font-weight: 600;
        color: #333;
        display: inline !important;
    }
    
    /* Quantity when inside product name */
    .woocommerce-checkout-review-order-table .product-name .product-quantity,
    .woocommerce-checkout-review-order-table .product-name strong.product-quantity {
        display: inline !important;
        color: #666 !important;
        font-size: 14px !important;
        margin-left: 5px !important;
        font-weight: normal !important;
    }
    
    /* Passenger count text styling */
    .woocommerce-checkout-review-order-table .passenger-count {
        display: inline-block !important;
        color: #666 !important;
        font-size: 13px !important;
        font-weight: normal !important;
        margin-left: 8px !important;
    }
    
    /* Remove any ::before content that says "CANTIDAD" */
    .woocommerce-checkout-review-order-table .product-name::before,
    .woocommerce-checkout-review-order-table strong::before,
    .woocommerce-checkout-review-order-table td::before {
        content: "" !important;
    }
    
    /* Meta info (fecha de salida) - Clean display */
    .woocommerce-checkout-review-order-table dl.variation {
        margin: 5px 0 0 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
        color: #666 !important;
        display: block !important;
        clear: both !important;
        line-height: 1.3 !important;
    }
    
    .woocommerce-checkout-review-order-table dl.variation dt,
    .woocommerce-checkout-review-order-table dl.variation dd {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        width: auto !important;
    }
    
    .woocommerce-checkout-review-order-table dl.variation dt:after {
        content: ": ";
    }
    
    .woocommerce-checkout-review-order-table dl.variation dd {
        font-weight: normal !important;
    }
    
    /* Override any content added via CSS */
    .woocommerce-checkout-review-order-table .product-name *[content*="Cantidad"],
    .woocommerce-checkout-review-order-table .product-name *[content*="CANTIDAD"] {
        content: "" !important;
    }
    
    /* Footer section of table */
    .woocommerce-checkout-review-order-table tfoot tr {
        display: table-row !important;
    }
    
    /* Subtotal row */
    .woocommerce-checkout-review-order-table .cart-subtotal {
        border-top: 1px solid #e0e0e0 !important;
    }
    
    .woocommerce-checkout-review-order-table .cart-subtotal th,
    .woocommerce-checkout-review-order-table .cart-subtotal td {
        text-align: left !important;
        font-size: 14px !important;
        padding: 12px 0 8px 0 !important;
        color: #333 !important;
        font-weight: 600 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .woocommerce-checkout-review-order-table .cart-subtotal td {
        text-align: right !important;
    }
    
    /* Total row special styling */
    .woocommerce-checkout-review-order-table .order-total th,
    .woocommerce-checkout-review-order-table .order-total td {
        border-top: 2px solid #68b632 !important;
        border-bottom: none !important;
        padding: 15px 0 !important;
    }
    
    .woocommerce-checkout-review-order-table .order-total th {
        text-align: left !important;
        font-size: 16px !important;
        color: #68b632 !important;
        font-weight: 700 !important;
    }
    
    .woocommerce-checkout-review-order-table .order-total td {
        text-align: right !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #333 !important;
    }
    
    /* Remove last border */
    .woocommerce-checkout-review-order-table tbody tr:last-child td,
    .woocommerce-checkout-review-order-table tbody tr:last-child th {
        border-bottom: none !important;
    }
    
    /* Remove any inherited card styles */
    .woocommerce-checkout .woocommerce table.shop_table tbody tr:last-child td {
        border-bottom: none !important;
    }
    
    /* Simplify payment methods on mobile */
    .woocommerce-checkout #payment {
        padding: 15px;
        margin-top: 20px;
        background: #fff;
        border-radius: 8px;
    }
    
    .woocommerce-checkout #payment .payment_methods li {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* Place order button mobile */
    .woocommerce-checkout #place_order {
        padding: 12px 20px;
        font-size: 15px;
        margin-top: 15px;
        width: 100%;
    }
    
    .woocommerce-checkout #payment .payment_methods li {
        padding: 10px;
        font-size: 14px;
    }
    .cart-table tbody td.product-name::before {
        opacity: 0;
    }
}

@media (max-width: 375px) {
    /* Extra small screens - optimized for iPhone SE and similar */
    .cart-section .container {
        padding: 15px 10px;
    }
    
    /* Compact cards for small screens */
    .woocommerce table.shop_table tbody tr {
        margin-bottom: 15px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    /* Compact product header */
    .woocommerce table.shop_table .product-thumbnail {
        width: 85px !important;
        padding: 12px 8px 12px 12px !important;
    }
    
    .woocommerce table.shop_table .product-thumbnail img {
        width: 65px !important;
        height: 65px !important;
        border-radius: 8px !important;
    }
    
    .woocommerce table.shop_table .product-name {
        width: calc(100% - 125px) !important;
        padding: 12px 12px 12px 0 !important;
    }
    
    .woocommerce table.shop_table .product-name a {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    
    /* Compact travel date display */
    .woocommerce table.shop_table .product-name .woocommerce-item-data dt {
        font-size: 10px !important;
    }
    
    .woocommerce table.shop_table .product-name .woocommerce-item-data dd {
        font-size: 12px !important;
    }
    
    /* Remove button - slightly smaller */
    .woocommerce table.shop_table .product-remove a {
        width: 26px !important;
        height: 26px !important;
        line-height: 24px !important;
        font-size: 14px !important;
        top: 10px;
        right: 10px;
    }
    
    /* Bottom section - adjusted spacing */
    .woocommerce table.shop_table .product-price,
    .woocommerce table.shop_table .product-quantity,
    .woocommerce table.shop_table .product-subtotal {
        padding: 12px 6px 14px !important;
    }
    
    /* Compact section labels - ONLY FOR CART */
    .woocommerce-cart table.shop_table .product-price::before,
    .woocommerce-cart table.shop_table .product-quantity::before,
    .woocommerce-cart table.shop_table .product-subtotal::before,
    .cart-section table.shop_table .product-price::before,
    .cart-section table.shop_table .product-quantity::before,
    .cart-section table.shop_table .product-subtotal::before {
        display: block !important;
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
    
    /* Force CANTIDAD label to show in cart mobile */
    .woocommerce-cart table.shop_table .product-quantity::before,
    .cart-section table.shop_table .product-quantity::before {
        content: "CANTIDAD" !important;
        display: block !important;
    }
    
    /* Compact price display */
    .woocommerce table.shop_table .product-price .amount,
    .woocommerce table.shop_table .product-price .price {
        font-size: 14px !important;
    }
    
    .woocommerce table.shop_table .product-subtotal .amount {
        font-size: 15px !important;
    }
    
    /* Smaller quantity input */
    .woocommerce .quantity input.qty {
        width: 40px !important;
        height: 30px !important;
        font-size: 13px !important;
    }
    
    /* Compact cart actions */
    .cart-actions {
        padding: 16px !important;
        margin-top: 20px !important;
    }
    
    .cart-actions .btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    /* Compact coupon section */
    .coupon-section {
        padding: 15px;
        margin-top: 15px;
    }
    
    .coupon-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    /* Compact cart totals */
    .woocommerce .cart_totals {
        padding: 16px;
        margin-top: 20px;
    }
    
    .woocommerce .cart_totals h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .woocommerce .cart_totals table th,
    .woocommerce .cart_totals table td {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .woocommerce .cart_totals .order-total th,
    .woocommerce .cart_totals .order-total td {
        font-size: 16px;
    }
    
    /* Compact checkout button */
    .woocommerce .checkout-button {
        padding: 14px 18px;
        font-size: 15px;
        margin-top: 12px;
    }
    
    /* Additional mobile optimizations */
    .page-header {
        padding: 25px 0;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .page-header .breadcrumb {
        font-size: 12px;
    }
}