/* ========================================
   MODERN CART PAGE - PROFESSIONAL DESIGN
   ======================================== */

/* Cart Page Container - WP Blocks Support */
.woocommerce-page-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.woocommerce-page-content-wrapper .wp-block-group,
.woocommerce-page-content-wrapper main {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.woocommerce-cart {
    padding: 40px 0 60px;
}

/* Cart form and collaterals within container */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
    max-width: 100%;
    margin: 0 auto 30px;
}

.woocommerce-cart .woocommerce-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.woocommerce-cart .woocommerce-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #00a76b, #007a52);
    border-radius: 2px;
}

/* Modern Cart Form */
.woocommerce-cart-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Modern Cart Table */
.woocommerce table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
}

.woocommerce table.shop_table thead {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px 12px 0 0;
}

.woocommerce table.shop_table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-bottom: 2px solid #e9ecef;
}

.woocommerce table.shop_table th.product-remove {
    width: 50px;
    text-align: center;
}

.woocommerce table.shop_table th.product-thumbnail {
    width: 120px;
}

.woocommerce table.shop_table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.woocommerce table.shop_table tbody tr:hover {
    background-color: #f8f9fa;
}

.woocommerce table.shop_table tbody tr:last-child {
    border-bottom: none;
}

.woocommerce table.shop_table td {
    padding: 25px 15px;
    vertical-align: middle;
    border: none;
}

/* Product Thumbnail */
.woocommerce table.shop_table .product-thumbnail {
    width: 120px;
}

.woocommerce table.shop_table .product-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce table.shop_table .product-thumbnail img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.2);
}

.woocommerce table.shop_table .product-thumbnail a {
    display: block;
}

/* Product Name */
.woocommerce table.shop_table .product-name {
    min-width: 200px;
}

.woocommerce table.shop_table .product-name a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.woocommerce table.shop_table .product-name a:hover {
    color: #00a76b;
}

.woocommerce table.shop_table .product-name .variation {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.woocommerce table.shop_table .product-name .variation dt,
.woocommerce table.shop_table .product-name .variation dd {
    display: inline;
    margin: 0;
}

.woocommerce table.shop_table .product-name .variation dt::after {
    content: ': ';
}

/* Product Price */
.woocommerce table.shop_table .product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.woocommerce table.shop_table .product-price .amount {
    color: #00a76b;
}

/* Quantity Input Modern */
.woocommerce table.shop_table .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.woocommerce table.shop_table .quantity .qty {
    width: 80px;
    height: 45px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 0 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -moz-appearance: textfield;
}

.woocommerce table.shop_table .quantity .qty::-webkit-inner-spin-button,
.woocommerce table.shop_table .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce table.shop_table .quantity .qty:focus {
    outline: none;
    border-color: #00a76b;
    box-shadow: 0 0 0 3px rgba(0, 167, 107, 0.1);
}

/* Product Subtotal */
.woocommerce table.shop_table .product-subtotal {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.woocommerce table.shop_table .product-subtotal .amount {
    color: #00a76b;
}

/* Remove Button Modern */
.woocommerce table.shop_table .product-remove {
    text-align: center;
}

.woocommerce table.shop_table .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #dc3545;
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
    line-height: 1;
}

.woocommerce table.shop_table .product-remove a:hover {
    background: #dc3545;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

/* Cart Actions */
.woocommerce-cart-form .actions {
    padding: 30px 0 0;
    margin-top: 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.woocommerce-cart-form .coupon {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.woocommerce-cart-form .coupon label {
    display: none;
}

.woocommerce-cart-form .coupon input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-cart-form .coupon input:focus {
    outline: none;
    border-color: #00a76b;
    box-shadow: 0 0 0 3px rgba(0, 167, 107, 0.1);
}

.woocommerce-cart-form .actions .button {
    padding: 12px 30px;
    background: #ffffff;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.woocommerce-cart-form .actions .button:hover {
    background: #00a76b;
    color: #ffffff;
    border-color: #00a76b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.3);
}

/* Cart Totals Sidebar */
.cart-collaterals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
}

.cart_totals {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart_totals h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cart_totals table {
    width: 100%;
    border: none;
    margin-bottom: 25px;
}

.cart_totals table tr {
    border-bottom: 1px solid #f0f0f0;
}

.cart_totals table tr:last-child {
    border-bottom: none;
}

.cart_totals table th {
    padding: 15px 0;
    font-weight: 600;
    color: #666;
    text-align: left;
    width: 50%;
}

.cart_totals table td {
    padding: 15px 0;
    text-align: right;
    font-weight: 600;
    color: #333;
}

.cart_totals table .cart-subtotal .amount,
.cart_totals table .shipping .amount {
    color: #333;
}

.cart_totals table .order-total th,
.cart_totals table .order-total td {
    padding: 20px 0;
    font-size: 20px;
    color: #00a76b;
    border-top: 2px solid #f0f0f0;
}

.cart_totals table .order-total .amount {
    font-size: 24px;
    font-weight: 700;
    color: #00a76b;
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout {
    margin-top: 25px;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #00a76b, #007a52);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 167, 107, 0.3);
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 167, 107, 0.4);
    background: linear-gradient(135deg, #007a52, #00a76b);
}

/* Empty Cart */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.woocommerce-cart .cart-empty::before {
    content: '🛒';
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.woocommerce-cart .cart-empty h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.woocommerce-cart .cart-empty p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.woocommerce-cart .cart-empty .wc-backward {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #00a76b, #007a52);
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 167, 107, 0.3);
}

.woocommerce-cart .cart-empty .wc-backward:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 167, 107, 0.4);
}

/* Responsive Design */
@media (max-width: 991px) {
    .cart-collaterals {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-cart-form {
        padding: 20px;
    }
    
    .woocommerce-cart-form .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .woocommerce-cart-form .coupon {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 767px) {
    .woocommerce-cart {
        padding: 20px 0 40px;
    }
    
    .woocommerce table.shop_table {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .woocommerce table.shop_table thead {
        display: none;
    }
    
    .woocommerce table.shop_table tbody {
        display: block;
    }
    
    .woocommerce table.shop_table tbody tr {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 15px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .woocommerce table.shop_table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    .woocommerce table.shop_table td {
        display: block;
        padding: 10px 0;
        text-align: left !important;
        border: none;
        position: relative;
        padding-left: 40%;
    }
    
    .woocommerce table.shop_table td::before {
        content: attr(data-title);
        position: absolute;
        left: 0;
        top: 10px;
        font-weight: 600;
        color: #666;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .woocommerce table.shop_table td.product-remove {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 0;
    }
    
    .woocommerce table.shop_table td.product-remove::before {
        display: none;
    }
    
    .woocommerce table.shop_table td.product-thumbnail {
        padding-left: 0;
        text-align: center !important;
        margin-bottom: 15px;
    }
    
    .woocommerce table.shop_table td.product-thumbnail::before {
        display: none;
    }
    
    .woocommerce table.shop_table td.product-name {
        padding-left: 0;
        margin-bottom: 15px;
    }
    
    .woocommerce table.shop_table td.product-name::before {
        display: none;
    }
    
    .woocommerce table.shop_table .quantity {
        justify-content: flex-start;
    }
    
    .cart_totals,
    .woocommerce-cart-form {
        padding: 20px 15px;
    }
}

