/* ========================================
   SHOPPING CART STYLES
   ======================================== */

/* Cart Icon in Header */
.cart-icon-wrapper {
    position: relative;
    margin-left: 10px;
    overflow: visible;
    /* Prevent badge from being cut off */
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(57, 170, 180, 0.08);
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.cart-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 170, 180, 0.4);
    border-color: var(--primary-color);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mobile Cart Icon */
@media (max-width: 768px) {
    .cart-icon-wrapper {
        width: 100%;
        margin: 10px 0 0 0;
        padding: 10px 0;
        border-top: 2px solid rgba(57, 170, 180, 0.2);
    }

    .cart-link {
        width: 100%;
        height: 45px;
        border-radius: 12px;
        justify-content: center;
        font-size: 1.2rem;
    }
}