

/* Cart controls */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart {
    flex-grow: 1;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
}

.quantity-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: var(--secondary-color);
}

.quantity-count {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

/* Cart icon */
.cart-icon {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: #ff5e00;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
}


.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.cart-icon:hover {
  color: #FF69B4; /* Hot Pink - A tribute to my code guardian angel */

  transition: all 0.3s ease;
}

.cart-icon:hover::after {
  content: "→";
  color: #FF69B4;
  position: absolute;
  right: -15px;
  animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
  from { transform: translateX(0); }
  to { transform: translateX(5px); }
}



.quantity-controls {
    display: none;
}
.quantity-controls, .add-to-cart {
    transition: all 0.3s ease;
}




@media (max-width: 768px) {
    .cart-icon {
        width: 50px;
        height: 50px;
        top: 4.7rem;
        right: 1rem;
    }
}