/* Cart specific styles */
.main {
    min-height: calc(100vh - 140px);
    padding: 40px 0;
}

.page-title {
    font-size: 36px;
    color: #1c6ca9;
    margin-bottom: 16px;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: #1c6ca9;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.empty-cart h2 {
    color: #1c6ca9;
    margin-bottom: 16px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 32px;
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

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

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-details {
    flex: 1;
}

.item-name {
    color: #1c6ca9;
    font-size: 18px;
    margin-bottom: 8px;
}

.item-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
}

.item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.item-quantity label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.quantity-input:focus {
    outline: none;
    border-color: #1c6ca9;
    box-shadow: 0 0 0 3px rgba(28, 108, 169, 0.1);
}

.item-total {
    text-align: center;
    min-width: 100px;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: #1c6ca9;
}

.item-actions {
    display: flex;
    align-items: center;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-remove:hover {
    background-color: #f8f9fa;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 24px;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    border: 2px solid #1c6ca9;
}

.summary-card h3 {
    color: #1c6ca9;
    margin-bottom: 20px;
    text-align: center;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.summary-line:last-of-type {
    border-bottom: none;
}

.summary-line.total {
    font-weight: 700;
    font-size: 18px;
    color: #1c6ca9;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #1c6ca9;
}

.checkout-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-checkout {
    background-color: #28a745;
    font-size: 18px;
    padding: 16px;
}

.btn-checkout:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: left;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
    }
    
    .item-quantity {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .total-price {
        text-align: left;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 20px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .cart-item {
        padding: 16px;
    }
    
    .summary-card {
        padding: 16px;
    }
}
