
:root {
    --primary-color: #8e44ad; 
    --secondary-color: #9b59b6; 
    --accent-color: #e74c3c; 
    --light-pink: #f39c12; 
    --background-color: #f3e5f5; 
    --card-background: #ffffff;
    --text-color: #333;
    --muted-text-color: #6c757d;
    --border-color: #e0d8e7;
    --button-hover-bg: #7d3c98; 
}

body {
    font-family: 'Vazir', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}
.shopping-cart {
    background-color: var(--card-background);
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(142, 68, 173, 0.15); 
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}
h2, h4 {
    color: var(--primary-color);
    font-weight: bold;
}

h5 {
    color: var(--secondary-color);
}

footer h5{
    color: #fff;
}
.cart-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 25px;
    transition: background-color 0.2s ease;
}
.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px; 
    margin-left: 25px;
    flex-shrink: 0;
}
.item-details {
    flex-grow: 1;
    margin-bottom: 15px;
}
.item-details h5 {
    margin-bottom: 8px;
    font-size: 1.2em;
    color: var(--secondary-color);
}
.course-type-badge {
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 5px;
    margin-left: 10px;
    font-weight: bold;
    text-transform: uppercase; 
}
.course-type-online-live {
    background-color: var(--light-pink); 
    color: #fff; 
}
.course-type-offline-recorded {
    background-color: var(--primary-color); 
    color: white;
}
.course-info-line {
    font-size: 0.85em;
    color: var(--muted-text-color);
    margin-top: 6px;
}
.course-info-line i {
    margin-left: 7px;
    color: var(--secondary-color);
}
.item-price {
    font-weight: bold;
    color: var(--accent-color); 
    font-size: 1.15em;
    margin-top: 8px;
}
.quantity-control {
    display: flex;
    align-items: center;
    margin: 0 15px;
    margin-bottom: 15px;
}
.quantity-control .btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}
.quantity-control .btn:hover {
    background-color: var(--button-hover-bg);
}
.quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 0 6px;
    padding: 6px;
    font-size: 1em;
}
.remove-item {
    color: var(--accent-color); 
    cursor: pointer;
    font-size: 1.3em;
    margin-top: 10px; 
    transition: color 0.2s ease;
}
.remove-item:hover {
    color: #c0392b; 
}
.cart-summary {
    margin-top: 40px;
    padding: 30px;
    background-color: #f1eaf4; 
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}
.cart-summary h4 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.05em;
}
.summary-row span {
    font-weight: normal;
    color: var(--muted-text-color);
}
.summary-row.total-price {
    font-weight: bold;
    font-size: 1.4em;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.summary-row.total-price span:last-child {
    color: var(--primary-color);
    font-weight: bolder;
}

.coupon-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f3dff7; 
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
}
.coupon-section label {
    font-weight: bold;
    color: var(--secondary-color);
}
.coupon-section .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--secondary-color);
}
.coupon-section .btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transition: background-color 0.2s ease;
}
.coupon-section .btn:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--button-hover-bg);
}
#coupon_message {
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.25em;
    margin-top: 30px;
    background-color: var(--accent-color); 
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}
.checkout-btn:hover {
    background-color: #c0392b; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.5);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-text-color);
}
.empty-cart i {
    font-size: 4em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}
.empty-cart p {
    font-size: 1.2em;
    margin-bottom: 25px;
}
.empty-cart .btn {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
}


@media (max-width: 768px) {
    .shopping-cart {
        padding: 25px;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item img {
        margin-left: 0;
        margin-bottom: 15px;
    }
    .quantity-control, .remove-item {
        margin-top: 10px;
        margin-left: 0;
    }
    .item-details {
        width: 100%;
    }
    .item-price, .total-item-price {
         margin-top: 8px;
         display: block;
         font-size: 1.1em;
    }
     .cart-summary {
        padding: 20px;
    }
    .checkout-btn {
        font-size: 1.1em;
        padding: 12px;
    }
    .empty-cart i {
        font-size: 3em;
    }
}
