/* Cart Section */

.cart-section {
    position: sticky;
    top: 140px;
    height: fit-content;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(107, 62, 46, 0.1);
}

.cart-header {
    font-size: 2rem;
    color: var(--brown-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(107, 62, 46, 0.1);
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: var(--brown-medium);
    font-style: italic;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    padding: 1rem;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
}

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

.cart-item-name {
    font-weight: 600;
    color: var(--brown-dark);
    flex: 1;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #c44;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-item-details {
    font-size: 0.85rem;
    color: var(--brown-medium);
    margin-bottom: 0.5rem;
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    border: 1px solid var(--brown-medium);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--brown-dark);
    font-size: 1.1rem;
}

.delivery-form {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(107, 62, 46, 0.1);
}

.delivery-form h3 {
    font-size: 1.5rem;
    color: var(--brown-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--brown-medium);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(107, 62, 46, 0.2);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brown-dark);
    box-shadow: 0 0 0 3px rgba(107, 62, 46, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    color: var(--brown-medium);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-style: italic;
}

.required {
    color: #c44;
}

.cart-total {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-medium) 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-total-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-total-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 1200px) {
    .cart-section {
        position: relative;
        top: 0;
    }
}
