.cart-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cart-detail-container h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.5em;
}

/* Cart Items Styling - Mobile First */
.cart-items {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Item Image - Mobile First */
.item-image {
    width: 100%;
    max-width: 120px;
    height: 120px;
    border-radius: 2px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item Details - Mobile First */
.item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.item-details h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
}

.print-configuration-details {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 2px;
    border-left: 4px solid #3498db;
    text-align: left;
}

.print-detail {
    margin-bottom: 6px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.print-detail:last-child {
    margin-bottom: 0;
}

.print-detail strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 80px;
}

/* Quantity Controls - Mobile First */
.quantity-controls {
    margin-top: 12px;
}

.quantity-controls form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quantity-controls label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.quantity-controls input[type="number"] {
    width: 70px;
    padding: 8px 10px;
    border: 2px solid #e9ecef;
    border-radius: 2px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
    text-align: center;
}

.quantity-controls input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

.btn-update {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 120px;
}

.btn-update:hover {
    background: #2980b9;
}

/* Item Pricing - Mobile First */
.item-pricing {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}

.item-total {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
}

.unit-price {
    font-size: 0.85em;
    color: #7f8c8d;
}

.remove-form {
    margin-top: 8px;
    width: 100%;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 120px;
}

.btn-remove:hover {
    background: #c0392b;
}

/* Cart Summary - Mobile First */
.cart-summary {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    padding: 25px 20px;
    text-align: center;
}

.total-section {
    margin-bottom: 20px;
}

.total-section h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.total-amount {
    font-size: 2em;
    font-weight: 700;
    color: #27ae60;
}

/* Checkout Actions - Mobile First */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-continue, .btn-checkout {
    padding: 12px 20px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    text-align: center;
    font-size: 0.95em;
}

.btn-continue {
    background: white;
    color: #3498db;
    border-color: #3498db;
}

.btn-continue:hover {
    background: #3498db;
    color: white;
}

.btn-checkout {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.btn-checkout:hover {
    background: #219a52;
    border-color: #219a52;
}

/* Empty Cart - Mobile First */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

.empty-cart h2 {
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.3em;
}

.empty-cart p {
    color: #95a5a6;
    margin-bottom: 20px;
    font-size: 1em;
}

/* Stock and Availability Styles */
.stock-info-cart {
    font-size: 0.8em;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 2px;
    display: inline-block;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.low-stock {
    background: #fff3cd;
    color: #856404;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    font-weight: 500;
}

.unavailable-item {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107;
}

.availability-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 2px;
    padding: 15px;
    margin-bottom: 20px;
}

.availability-warning h3 {
    color: #856404;
    margin: 0 0 12px 0;
    font-size: 1.1em;
}

.warning-item {
    margin: 6px 0;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 2px;
    border: 2px solid transparent;
    font-weight: 500;
    font-size: 0.9em;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .cart-detail-container {
        padding: 20px;
    }
    
    .cart-detail-container h1 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .cart-item {
        display: grid;
        grid-template-columns: 120px 1fr auto;
        gap: 20px;
        padding: 25px;
        text-align: left;
    }
    
    .item-image {
        width: 120px;
        height: 120px;
        margin: 0;
        grid-row: auto;
    }
    
    .item-details {
        text-align: left;
        gap: 15px;
    }
    
    .item-details h3 {
        font-size: 1.3em;
    }
    
    .quantity-controls form {
        flex-direction: row;
        align-items: center;
    }
    
    .btn-update {
        width: auto;
    }
    
    .item-pricing {
        grid-column: auto;
        text-align: right;
        flex-direction: column;
        align-items: flex-end;
        border-top: none;
        padding-top: 0;
    }
    
    .remove-form {
        width: auto;
    }
    
    .btn-remove {
        width: auto;
    }
    
    .checkout-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-continue, .btn-checkout {
        width: auto;
        padding: 12px 30px;
    }
    
    .total-amount {
        font-size: 2.5em;
    }
    
    .empty-cart {
        padding: 60px 20px;
    }
    
    .empty-cart h2 {
        font-size: 1.5em;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .cart-detail-container {
        padding: 30px 20px;
    }
    
    .cart-detail-container h1 {
        font-size: 2em;
    }
    
    .cart-items {
        border-radius: 2px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    }
    
    .cart-summary {
        border-radius: 2px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        padding: 30px;
    }
    
    .checkout-actions {
        gap: 15px;
    }
}