/* Cart Page Styles */
.cart-page {
    padding: 30px 0;
    min-height: 60vh;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 15px;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart i {
    font-size: 60px;
    color: #8e44ad;
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8e44ad;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #7d3c98;
    color: white;
}

/* Cart Items Table - Desktop */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

.cart-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.product-image img {
    width: 100px;
    height: auto;
    border-radius: 4px;
}

.product-details h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.item-attributes {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #666;
}

.item-attributes li {
    margin-bottom: 5px;
}

.product-price,
.product-total {
    font-weight: 600;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-update {
    background: none;
    border: none;
    color: #8e44ad;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
}

.btn-remove {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 18px;
}

/* Cart Summary */
.cart-summary {
    display: flex;
    justify-content: flex-end;
}

.summary-card {
    width: 300px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.summary-row.total {
    font-weight: 600;
    font-size: 18px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.btn-checkout {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.btn-continue {
    display: block;
    text-align: center;
    color: #8e44ad;
    background: none;
    border: 1px solid #8e44ad;
}

.btn-continue:hover {
    background-color: #f5f0f9;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cart-table {
        display: none;
    }

    .mobile-cart-item {
        display: block;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        background: white;
    }

    .mobile-item-header {
        display: flex;
        margin-bottom: 15px;
    }

    .mobile-product-image {
        width: 80px;
        margin-right: 15px;
    }

    .mobile-product-image img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

    .mobile-product-title h3 {
        margin: 0 0 5px 0;
        font-size: 16px;
    }

    .mobile-product-price {
        font-weight: 600;
        color: #8e44ad;
    }

    .mobile-item-attributes {
        list-style: none;
        padding: 0;
        margin: 0 0 15px 0;
        font-size: 14px;
        color: #666;
    }

    .mobile-item-attributes li {
        margin-bottom: 5px;
    }

    .mobile-item-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-quantity-form {
        display: flex;
        align-items: center;
    }

    .mobile-quantity-input {
        width: 50px;
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .mobile-btn-update {
        background: none;
        border: none;
        color: #8e44ad;
        cursor: pointer;
        margin-left: 5px;
        font-size: 12px;
    }

    .mobile-item-total {
        font-weight: 600;
    }

    .mobile-btn-remove {
        background: none;
        border: none;
        color: #d32f2f;
        cursor: pointer;
        font-size: 16px;
    }

    .cart-summary {
        justify-content: center;
    }

    .summary-card {
        width: 100%;
    }
}

/* Tablet Styles */
@media (min-width: 769px) {
    .mobile-cart-item {
        display: none;
    }
}

/* Quantity Controls Styling */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.minus {
    color: #e74c3c;
}

.quantity-btn.plus {
    color: #2ecc71;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.remove-btn:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .quantity-controls {
        gap: 5px;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .quantity {
        min-width: 25px;
    }
}