/* Cart System Styles - Include in all pages */


/* Cart Icon */

.cart-icon {
    position: relative;
    cursor: pointer;
    background-color: var(--grunge-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--grunge-border);
    transition: all 0.3s ease;
    margin-left: 20px;
    z-index: 1001;
    
}



.cart-icon:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: var(--grunge-dark);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease;
    padding: 20px;
    overflow-y: auto;
    border-left: 2px solid var(--primary-red);
}

.cart-modal.open {
    right: 0;
    animation: slideIn 0.4s;

}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--grunge-border);

}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--primary-white);
    text-transform: uppercase;
    font-family: 'Archivo Black', sans-serif;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--primary-red);
}

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

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--grunge-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: var(--grunge-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid var(--grunge-border);
}

.cart-item-image img {
    max-width: 90%;
    max-height: 90%;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-white);
}

.cart-item-variations {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-red);
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background-color: var(--grunge-light);
    border: 1px solid var(--grunge-border);
    color: var(--text-light);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid var(--grunge-border);
    border-radius: 3px;
    padding: 3px;
    background-color: var(--grunge-dark);
    color: var(--text-light);
}

.remove-item {
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    align-self: flex-start;
    transition: color 0.3s;
}

.remove-item:hover {
    color: var(--primary-red);
}

.cart-total {
    margin-bottom: 20px;
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-white);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

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

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.cart-overlay.active {
    display: block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.4s;

}

/* Responsive */
@media (max-width: 768px) {
    .cart-modal {
        width: 100%;
        right: -100%;
        border-left: none;
        border-top: 2px solid var(--primary-red);
        height: 50vh;
        overflow-y: auto;

    }
}

/* End of Cart System Styles */
