/* Animations CSS for Ostsee Fisch Theme */

a .product-tile,
.product-tile.clickable {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a .product-tile:hover,
.product-tile.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

a .product-tile .product-tile-image img,
.product-tile.clickable .product-tile-image img {
    transition: transform 0.3s ease;
}

a .product-tile:hover .product-tile-image img,
.product-tile.clickable:hover .product-tile-image img {
    transform: scale(1.05);
}

/* Button Animations */
.hero-button, .button, 
button, input[type="submit"], 
.elementor-button,
a.elementor-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hero-button:hover, .button:hover,
button:hover, input[type="submit"]:hover,
.elementor-button:hover,
a.elementor-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Navigation Animations */
.main-nav-item a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.main-nav-item a:hover:after,
.main-nav-item.current-menu-item a:after {
    width: 100%;
}

/* Modal Animations */
.product-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

a .product-tile,
.product-tile.clickable {
    opacity: 0;
    transform: translateY(20px);
}

.product-category-grid a:nth-child(1) .product-tile,
.product-category-grid .product-tile.clickable:nth-child(1) {
    animation: fadeIn 0.5s ease 0.1s forwards;
}

.product-category-grid a:nth-child(2) .product-tile,
.product-category-grid .product-tile.clickable:nth-child(2) {
    animation: fadeIn 0.5s ease 0.2s forwards;
}

.product-category-grid a:nth-child(3) .product-tile,
.product-category-grid .product-tile.clickable:nth-child(3) {
    animation: fadeIn 0.5s ease 0.3s forwards;
}

.product-category-grid a:nth-child(4) .product-tile,
.product-category-grid .product-tile.clickable:nth-child(4) {
    animation: fadeIn 0.5s ease 0.4s forwards;
}

.product-category-grid a:nth-child(5) .product-tile,
.product-category-grid .product-tile.clickable:nth-child(5) {
    animation: fadeIn 0.5s ease 0.5s forwards;
}

.product-category-grid a:nth-child(6) .product-tile,
.product-category-grid .product-tile.clickable:nth-child(6) {
    animation: fadeIn 0.5s ease 0.6s forwards;
}

/* Wave Animation for Footer */
.wave-footer {
    position: relative;
    overflow: hidden;
}

.wave-footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('../images/wave.svg') repeat-x;
    animation: waveAnimation 10s linear infinite;
}

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}
