.cart-icon {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #333;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
    
        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #e53935;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .cart-popup {
            position: fixed;
            top: 0;
            right: -600px;
            width: 580px;
            height: 100vh;
            background: white;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            z-index: 99999;
            display: flex;
            flex-direction: column;
        }
        
        .cart-popup.active {
            right: 0;
        }
        
        .cart-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 40px;
        }
        div#cartItemsContainer {
           padding-top: 40px;
        }

        button#closeCart{
            font-size: 34px;
        }
        .close-cart {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
        }
        
        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }
        
            .item-details{

                display: flex;
                justify-content: space-between;
                align-items: center;
        }

        .cart-item {
            display: flex;
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .item-image {
            width: 120px;
            height: 130px;
            background: #f9f9f9;
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ccc;
        }
        
        .item-details {
            flex: 1;
        }
        
        .item-name {
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .item-price {
            color: #333;
            font-weight: bold;
            margin: 5px 0;
        }
        
        .item-remove {
            color: #999;
            font-size: 12px;
            cursor: pointer;
            margin-top: 5px;
            display: inline-block;
        }
        
        .item-remove:hover {
            color: #e53935;
        }
        
        .quantity-controls {
            display: flex;
            align-items: center;
            margin: 10px 0;
        }
        
        .quantity-btn {
            width: 25px;
            height: 25px;
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .quantity-controls {
            border: 1px solid;
            border-radius: 30px;
            height: 60px;
            width: 138px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cart-header h3 {
            font-size: 24px;
            font-family: 'Lato';
            font-weight: 600;
            line-height: 100%;
        }
        
        .quantity-input {
            width: 40px;
            height: 25px;
            text-align: center;
            margin: 0 5px;
            border: none;
            position: relative;
    left: 10px;
        }
        
        .item-total {
            font-weight: bold;
            margin-top: 5px;
        }
        
        .cart-summary {
            padding: 20px;
            border-top: 1px solid #eee;
        }
        
        .subtotal {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            font-size: 24px;
    font-family: 'Lato';
        }
        
        .cart-actions {
            display: flex;
            flex-direction: row;
            gap: 10px;
        }
        
        .cart-button {
            padding: 12px;
            border: none;
            cursor: pointer;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            width: 100%;
        }
        
        .view-cart {
            background: #f5f5f5;
            color: #333;
        }
        
        .checkout {
            background: #333;
            color: white;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s;
        }
        
        .overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .cart-actions button.btn-primary {
    width: 100%;
}
   .cart-actions button.btn-secondary {
    width: 100%;
}
button.btn-primary:hover {
    background: #333;
    color: white;
}



@media (max-width: 768px) {
  
        .cart-popup {
           
            right: -100%;
            width: 85%;
        }
        .item-details{
           flex-direction: column;
           align-items: flex-start;
        }
        .quantity-controls {
          height: 50px;
        }
        .cart-actions {

    flex-direction: column;
}
}

@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {
   .cart-popup {
           
            right: -100%;
            width: 65%;
        }
        .cart-actions {

    flex-direction: column;
}
        .item-details{
           flex-direction: row;
           align-items: center;
        }
}