/**
 * Add to Cart Styles
 */

/* Base button styles */
.aurabricks-add-to-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    color: #111827;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.abr-product-card:hover .aurabricks-add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.aurabricks-add-to-cart-btn i,
.aurabricks-add-to-cart-btn svg {
    display: block;
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s;
}

.aurabricks-add-to-cart-btn .abr-add-to-cart-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aurabricks-add-to-cart-btn:hover {
    color: #fff;
    background-color: #4f46e5;
    transform: scale(1.05) !important;
}

/* Success State */
.aurabricks-add-to-cart-btn.added {
    background-color: #10b981 !important;
    color: #fff !important;
}

/* Loading State */
.aurabricks-add-to-cart-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.aurabricks-add-to-cart-btn.is-loading i,
.aurabricks-add-to-cart-btn.is-loading svg {
    animation: atc-spin 1s linear infinite;
}

@keyframes atc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Disabled/Out of Stock */
.aurabricks-add-to-cart-btn.disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mini "View Cart" Link */
.abr-atc-view-cart {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10;
}

.aurabricks-add-to-cart-btn.added .abr-atc-view-cart {
    opacity: 1;
    bottom: -20px;
    pointer-events: auto;
}

.abr-atc-view-cart:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .aurabricks-add-to-cart-btn {
        opacity: 1;
        transform: none;
    }
}
