/* ==========================================
   FRANZ Framework - Buttons & Links
========================================== */

.franz-button,
.franz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--motion-fast, 180ms) var(--ease-standard, ease),
        background-color var(--motion-fast, 180ms) var(--ease-standard, ease),
        color var(--motion-fast, 180ms) var(--ease-standard, ease),
        border-color var(--motion-fast, 180ms) var(--ease-standard, ease),
        box-shadow var(--motion-fast, 180ms) var(--ease-standard, ease);
}

.franz-button--primary,
.franz-btn {
    background: #111;
    color: #fff;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
}

.franz-button--primary:hover,
.franz-btn:hover {
    transform: translateY(-1px);
    background: #1d1d1d;
    color: #fff;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.2);
}

.franz-button--secondary,
.franz-button--outline {
    border-color: rgba(17, 17, 17, 0.16);
    background: transparent;
    color: #111;
    box-shadow: none;
}

.franz-button--secondary:hover,
.franz-button--outline:hover {
    border-color: rgba(17, 17, 17, 0.35);
    background: rgba(17, 17, 17, 0.04);
    color: #111;
}

.franz-link,
.franz-product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.franz-link::after,
.franz-product-card-link::after {
    content: "\2192";
    transition: transform var(--motion-fast, 180ms) var(--ease-standard, ease);
}

.franz-link:hover::after,
.franz-product-card-link:hover::after {
    transform: translateX(3px);
}

.franz-button:focus-visible,
.franz-btn:focus-visible,
.franz-link:focus-visible,
.franz-product-card-link:focus-visible {
    outline: 3px solid var(--franz-green);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--franz-white);
}

.franz-button:active,
.franz-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .franz-actions .franz-button,
    .franz-actions .franz-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .franz-button,
    .franz-btn,
    .franz-link::after,
    .franz-product-card-link::after {
        transition-duration: 0.01ms;
    }

    .franz-button--primary:hover,
    .franz-btn:hover,
    .franz-link:hover::after,
    .franz-product-card-link:hover::after {
        transform: none;
    }
}
