/* Manubolu 3.0 — Subtle Professional Animations */

/* Product Card Hover */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--surface-shadow-lg);
}

/* Button Press */
.btn-ios:active {
    transform: scale(0.98);
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Nav Link Underline */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Link Transitions */
a {
    transition: color 0.2s ease;
}

/* Image Zoom on Hover */
.product-image-container {
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.product-image-container img {
    transition: transform 0.4s ease;
}

.product-image-container:hover img {
    transform: scale(1.03);
}

/* Details/Accordion */
details summary {
    cursor: pointer;
    transition: all 0.3s ease;
}

details[open] summary {
    color: var(--primary-green);
}

details summary i {
    transition: transform 0.3s ease;
}

details[open] summary i {
    transform: rotate(180deg);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}