﻿/**
 * ThemeForge Pro Fashion — Product Card Add to Cart Button
 */

.tf-product-card__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: #171717;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #171717;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 44px;
}

.tf-product-card__add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.tf-product-card__add-btn:hover {
    background: linear-gradient(135deg, #f5576c, #764ba2);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.35);
}

.tf-product-card__add-btn:hover::before {
    left: 100%;
}

.tf-product-card__add-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tf-product-card__add-btn:hover svg {
    transform: translateX(3px);
}

.tf-product-card__add-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.tf-product-card__add-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tf-spin 0.8s linear infinite;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

.tf-product-card__add-btn.added {
    background: #15803d;
    border-color: #15803d;
}

.tf-product-card__add-btn.added::after {
    content: ' ✓';
    margin-left: 4px;
}

.tf-product-card__add-btn--outline {
    background: transparent;
    color: #171717;
    border-color: #171717;
}

.tf-product-card__add-btn--outline:hover {
    background: #171717;
    color: #ffffff;
    border-color: #171717;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .tf-product-card__add-btn {
        font-size: 0.625rem;
        padding: 10px 12px;
        min-height: 40px;
    }
}
