/* Custom Cart Styling */

/* Mini Cart Item Styling */
.woocommerce-mini-cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 10px;
    right: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
}

.woocommerce-mini-cart-item .remove:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.cart-item-thumbnail {
    flex-shrink: 0;
    margin-right: 15px;
}

.cart-item-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    padding-right: 30px;
}

.cart-item-name {
    margin-bottom: 5px;
}

.cart-item-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cart-item-name a:hover {
    color: #007bff;
}

.cart-item-meta {
    font-size: 14px;
    color: #666;
}

.cart-item-meta .quantity {
    font-weight: 500;
}

/* Cart Page Styling */
.woocommerce-cart-form__cart-item .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.woocommerce-cart-form__cart-item .product-thumbnail a:hover img {
    transform: scale(1.05);
}

.woocommerce-cart-form__cart-item .product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.woocommerce-cart-form__cart-item .product-name a:hover {
    color: #007bff;
}

/* Variation data styling */
.woocommerce-cart-form__cart-item .variation,
.cart-item-name .variation {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.woocommerce-cart-form__cart-item .variation dt,
.cart-item-name .variation dt {
    float: left;
    margin-right: 5px;
}

.woocommerce-cart-form__cart-item .variation dd,
.cart-item-name .variation dd {
    margin-left: 0;
}

/* Empty cart message */
.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.empty-cart-message .button {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.empty-cart-message .button:hover {
    background: #0056b3;
}

/* Mobile Responsive Cart Table */
@media (max-width: 768px) {
    .shop_table_responsive tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .shop_table_responsive tbody td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border: none;
        position: relative;
        padding-left: 40%;
    }
    
    .shop_table_responsive tbody td:before {
        content: attr(data-title);
        position: absolute;
        left: 15px;
        font-weight: 600;
        text-align: left;
    }
    
    .shop_table_responsive .product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 0;
    }
    
    .shop_table_responsive .product-thumbnail {
        padding-left: 15px;
        text-align: left;
    }
    
    .shop_table_responsive .product-thumbnail:before {
        display: none;
    }
}

/* Cart Quantity Input Styling */
.quantity {
    display: inline-flex;
    align-items: center;
}

.quantity input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* Cart Actions */
.woocommerce-cart-form .actions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
}

.woocommerce-cart-form .coupon {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.woocommerce-cart-form .coupon input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Cart Totals */
.cart-collaterals .cart_totals {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.cart-collaterals .cart_totals h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.cart-collaterals .shop_table {
    background: transparent;
}

.cart-collaterals .shop_table th {
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-collaterals .shop_table td {
    padding: 10px 0;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.cart-collaterals .order-total th,
.cart-collaterals .order-total td {
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    padding-top: 15px;
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    background: #28a745;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: #218838;
    color: white;
}