/* Cart Page Styles */

.cart-section {
    min-height: 500px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 25px;
    opacity: 0.5;
}

.empty-cart-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.empty-cart-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Cart Items */
.cart-items-container {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: var(--light-color);
    padding: 25px 15px;
    margin: 0 -15px;
    border-radius: 10px;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cart-item-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    line-height: 1.3;
}

.cart-item-brand {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cart-item-size {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.cart-item-size span {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    color: #ff4757;
    transform: scale(1.1);
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn-cart {
    background: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
}

.qty-btn-cart:hover {
    background: var(--light-color);
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 0 10px;
}

.cart-item-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
}

.summary-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.summary-label {
    color: var(--text-dark);
    font-weight: 500;
}

.summary-value {
    color: var(--dark-color);
    font-weight: 600;
}

.summary-row.total {
    font-size: 20px;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 2px solid var(--border-color);
}

.summary-row.total .summary-label {
    font-weight: 700;
    color: var(--dark-color);
}

.summary-row.total .summary-value {
    font-size: 28px;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
}

.delivery-notice {
    background: rgba(0, 173, 239, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-dark);
}

.delivery-notice i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Checkout Form */
.checkout-form {
    background: var(--light-color);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.checkout-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 173, 239, 0.15);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.btn-checkout {
    width: 100%;
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.btn-checkout:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-checkout i {
    font-size: 20px;
}

.btn-continue-shopping {
    width: 100%;
    background: var(--white);
    color: var(--dark-color);
    border: 2px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-continue-shopping:hover {
    background: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

.btn-clear-cart {
    background: none;
    border: none;
    color: #ff4757;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-cart:hover {
    color: #dc3545;
    text-decoration: underline;
}

/* Success Modal */
.success-icon {
    font-size: 64px;
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 991px) {
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .cart-items-container {
        padding: 20px;
    }

    .cart-item {
        flex-direction: column;
        gap: 15px;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .cart-item-header {
        flex-direction: column;
        gap: 10px;
    }

    .cart-item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-item-price {
        font-size: 20px;
    }

    .cart-summary {
        padding: 20px;
    }

    .summary-title {
        font-size: 20px;
    }

    .summary-row.total {
        font-size: 18px;
    }

    .summary-row.total .summary-value {
        font-size: 24px;
    }

    .checkout-form {
        padding: 20px;
    }

    .empty-cart {
        padding: 60px 20px;
    }

    .empty-cart-icon {
        font-size: 60px;
    }

    .empty-cart-title {
        font-size: 24px;
    }
}

/* Cart Header Actions */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.cart-count-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
}

/* Loading State */
.cart-loading {
    text-align: center;
    padding: 60px 20px;
}

.cart-loading i {
    font-size: 48px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
