/* Minimalist Indie Cart Widget */
/* Only shows when items are in cart - Hidden by default */

.indie-cart-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.indie-cart-widget.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Minimalist Cart Button */
.indie-cart-button {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.indie-cart-button:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* Simple Cart Icon - Indie Style */
.indie-cart-icon {
    width: 24px;
    height: 20px;
    position: relative;
}

/* Cart body - simple box */
.indie-cart-icon::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    top: 4px;
    left: 6px;
    transition: border-color 0.3s ease;
}

/* Cart handle - minimal arc */
.indie-cart-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 2px 0 0 0;
    top: 1px;
    left: 2px;
    transition: border-color 0.3s ease;
}

/* Cart wheels - subtle dots */
.indie-cart-icon {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px);
    background-position:
        9px 16px,    /* left wheel */
        16px 16px;   /* right wheel */
    background-size: 3px 3px;
    background-repeat: no-repeat;
}

.indie-cart-button:hover .indie-cart-icon::before,
.indie-cart-button:hover .indie-cart-icon::after {
    border-color: rgba(255, 255, 255, 1);
}

.indie-cart-button:hover .indie-cart-icon {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 1) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 1) 1.5px, transparent 1.5px);
    background-position: 9px 16px, 16px 16px;
    background-size: 3px 3px;
    background-repeat: no-repeat;
}

/* Count Badge - Indie minimal style */
.indie-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(255, 255, 255, 0.95);
    color: #0d1a34;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: indiePopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Pop-in animation for count */
@keyframes indiePopIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .indie-cart-widget {
        bottom: 20px;
        right: 20px;
    }

    .indie-cart-button {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .indie-cart-widget {
        bottom: 16px;
        right: 16px;
    }

    .indie-cart-button {
        width: 48px;
        height: 48px;
    }

    .indie-cart-icon {
        width: 22px;
        height: 18px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .indie-cart-button {
        width: 52px;
        height: 52px;
    }

    .indie-cart-button:active {
        transform: scale(0.95);
    }
}
