/* Cart Page Styles - Matching gallery design system */

/* Promotion Note */
.promotion-note {
    background: #fef5e7;
    border: 1px solid #f39c12;
    border-radius: 5px;
    padding: 8px 12px;
    margin-top: 10px;
    text-align: center;
}

.promotion-note small {
    color: #d68910;
    font-weight: 600;
}

/* Price Display */
.price-display {
    margin-top: 15px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.price-line.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
    margin-top: 8px;
}

.unit-price {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: #e67f0d;
    margin-bottom: 10px;
}

/* Cart Items */
.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

.item-image img.cart-item-thumbnail {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-details h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
}

.item-details p {
    margin: 2px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.item-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 10px;
}

.item-quantity label {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #e67f0d;
    box-shadow: 0 0 0 3px rgba(230, 127, 13, 0.1);
}

.item-price {
    text-align: right;
}

.total-price {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #e67f0d;
}

.item-actions {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.edit-item-btn,
.remove-item-btn {
    padding: 8px 12px;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0 5px;
}

.edit-item-btn {
    background-color: #e67f0d;
}

.edit-item-btn:hover {
    background-color: #d16a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 127, 13, 0.3);
}

.remove-item-btn {
    background-color: #e74c3c;
}

.remove-item-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.quantity-display {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.summary-row.discount-row {
    color: #27ae60;
    font-weight: 600;
}

.discount-amount {
    color: #27ae60;
}

.summary-row.total-row {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.3rem;
    color: #e67f0d;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.continue-shopping-btn,
.checkout-btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.continue-shopping-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #e67f0d;
}

.continue-shopping-btn:hover {
    background-color: #e67f0d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 127, 13, 0.3);
}

.checkout-btn {
    background-color: #e67f0d;
    color: white;
}

.checkout-btn:hover {
    background-color: #d16a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 127, 13, 0.3);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.empty-cart h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.empty-cart .continue-shopping-btn {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 10px;
        padding: 15px;
        text-align: left;
    }
    
    .item-image img.cart-item-thumbnail {
        width: 70px;
        height: 55px;
    }
    
    .item-details h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .item-details p {
        font-size: 0.8rem;
        margin: 1px 0;
    }
    
    .item-details {
        display: flex;
        flex-direction: column;
    }
    
    .item-details-content {
        flex: 1;
    }
    
    .item-quantity {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
        margin-top: 8px;
    }
    
    .item-quantity label {
        font-size: 0.75rem;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .quantity-input {
        width: 45px;
        padding: 5px;
        font-size: 12px;
    }
    
    .item-price {
        text-align: right;
        align-self: flex-start;
        margin-top: 5px;
    }
    
    .total-price {
        font-size: 1rem;
    }
    
    .item-actions {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 10px;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
    
    .remove-item-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .continue-shopping-btn,
    .checkout-btn {
        width: 100%;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cart-summary {
        padding: 20px;
    }
    
    .summary-row {
        font-size: 1rem;
    }
    
    .summary-row.total-row {
        font-size: 1.2rem;
    }
}