@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.btn-cart .ripple {
    background: rgba(37, 99, 235, 0.15);
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.5);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
    transition-delay: 0.5s;
}

@keyframes scaleInSpring {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes floatSpring {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-gallery {
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-info {
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badges {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-rating {
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-desc {
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-price {
    animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-meta {
    animation: fadeInUp 0.6s ease 0.7s both;
}

.product-options {
    animation: fadeInUp 0.6s ease 0.8s both;
}

.purchase-buttons {
    animation: fadeInUp 0.6s ease 0.9s both;
}

.gallery-main-img {
    animation: imageFadeIn 0.4s ease;
}

.gallery-main-img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-main-img.fade-in {
    animation: imageFadeIn 0.4s ease;
}

.option-card {
    position: relative;
    overflow: hidden;
}

.option-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.option-card:active::after {
    width: 300px;
    height: 300px;
}

.color-swatch {
    position: relative;
    overflow: hidden;
}

.color-swatch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 50%;
}

.btn-buy,
.btn-cart,
.btn-purchase {
    position: relative;
    overflow: hidden;
}

.btn-buy::before,
.btn-cart::before,
.btn-purchase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-buy:active::before,
.btn-cart:active::before,
.btn-purchase:active::before {
    width: 400px;
    height: 400px;
}

.trust-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-8px);
}

.trust-card:hover .trust-icon {
    animation: float 2s ease-in-out infinite;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover .feature-icon-wrap {
    animation: float 2s ease-in-out infinite;
}

.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
}

.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.delivery-option {
    transition: all 0.3s ease;
}

.delivery-option:hover {
    transform: translateX(4px);
}

.nav {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.gallery-main-img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.thumb {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumb:hover {
    transform: translateY(-4px) scale(1.05);
}

.stat-number {
    transition: color 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--accent-secondary);
}

.summary-line {
    transition: transform 0.2s ease;
}

.summary-line:hover {
    transform: translateX(4px);
}

.form-group input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    animation: glow 2s ease-in-out infinite;
}

.toast.show {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(calc(100% + 40px));
    }
    to {
        transform: translateX(0);
    }
}

.parallax {
    transition: transform 0.1s ease-out;
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
