/* Additional CSS for animations and fixes */
.animate {
    animation: fadeInUp 0.8s ease forwards;
}

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

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle span.active:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle span.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header.sticky {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff3860;
}

.success-message {
    text-align: center;
    padding: 30px;
    background-color: #f0fff4;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.success-message i {
    font-size: 3rem;
    color: #48c774;
    margin-bottom: 15px;
}

/* Fix for testimonial slides */
.testimonial-slide {
    display: none;
}

.testimonial-slide:first-child {
    display: block;
}

/* Improve image loading */
.category-image img, .carousel-image, .collection-img, .about-img, .gift-img {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.category-image img:not([src]), .carousel-image:not([src]), .collection-img:not([src]), .about-img:not([src]), .gift-img:not([src]) {
    opacity: 0;
}

/* Improve accessibility */
.btn:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .btn, .nav-link, .carousel-btn, .dot {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
    }
}
