/* Cart Notification System */
#cart-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background-color: #ffffff;
    padding: 12px 24px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    min-width: 200px;
    max-width: 400px;
}

.notification.success {
    border-left: 4px solid #4CAF50;
    color: #2e7d32;
}

.notification.error {
    border-left: 4px solid #f44336;
    color: #c62828;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Cart Page Styles */
.cart-title {
    font-size: 2rem;
    margin: 2rem 0 1.5rem 0;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2rem;
    margin: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.cart-items {
    flex: 2;
    min-width: 320px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    position: relative;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8f8f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.cart-item-info {
    flex: 1;
    min-width: 200px;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.cart-item-price {
    color: #d2691e;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.qty-btn {
    background: #eee;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #d2691e;
    color: #fff;
}

.cart-item-quantity {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #d9534f;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    padding: 5px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #c82333;
}

.cart-item-total {
    font-weight: 600;
    color: #222;
    min-width: 110px;
    text-align: right;
    font-size: 1.1rem;
}

/* Cart Summary */
.cart-summary {
    flex: 1;
    min-width: 260px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.cart-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #d2691e;
}

.summary-items, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #222;
}

.summary-total {
    font-weight: bold;
    font-size: 1.1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #eee;
}

/* Buttons */
.btn-checkout {
    width: 100%;
    padding: 0.8rem;
    background: #d2691e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    background: #a0522d;
}

.btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    background: #eee;
    color: #222;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.2s;
    text-align: center;
}

.btn-secondary:hover {
    background: #d2691e;
    color: #fff;
}

/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 2rem 0;
}

.cart-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.cart-empty h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .cart-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cart-summary {
        width: 100%;
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .cart-item-info {
        width: 100%;
    }

    .cart-item-total {
        width: 100%;
        text-align: left;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }
}
