/* Product Pages Professional Animations */

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

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

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

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Hero Section */
.hero-title {
    animation: slideInDown 0.8s ease-out;
    cursor: default;
}

.hero-title:hover {
    text-decoration: none !important;
    transform: none !important;
}

.breadcrumb-item {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Product Gallery */
.product-gallery {
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-image-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.product-image-main:hover {
    transform: scale(1.05) rotateY(2deg);
}

/* Product Info Card */
.product-info-card {
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.product-info-card:hover {
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.15);
}

.product-info-card .card-body {
    padding: 30px;
}

/* Info Badge */
.info-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    animation: bounceIn 0.6s ease-out;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    animation: slideInRight 0.6s ease-out;
    transition: all 0.3s ease;
}

.info-item:hover {
    padding-left: 10px;
    background: rgba(220, 53, 69, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.2) rotate(10deg);
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.info-value {
    color: #666;
    font-size: 0.95rem;
}

/* Staggered animations for info items */
.info-item:nth-child(1) {
    animation-delay: 0.1s;
}

.info-item:nth-child(2) {
    animation-delay: 0.2s;
}

.info-item:nth-child(3) {
    animation-delay: 0.3s;
}

.info-item:nth-child(4) {
    animation-delay: 0.4s;
}

.info-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* Specs Table */
.specs-table {
    animation: fadeInUp 0.6s ease-out;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.specs-table tr:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Feature Boxes */
.feature-box {
    animation: fadeInUp 0.6s ease-out;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    animation: bounceIn 0.8s ease-out;
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.3) rotate(15deg);
}

.feature-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-title {
    color: #dc3545;
}

.feature-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-text {
    color: #555;
}

/* Staggered animations for feature boxes */
.feature-box:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-box:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-box:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-box:nth-child(4) {
    animation-delay: 0.4s;
}

/* Section Title */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #333;
    animation: slideDown 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 2px;
    animation: slideInRight 0.6s ease-out 0.3s both;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    animation: bounceIn 0.8s ease-out;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.4);
}

/* Related Product Cards */
.related-product-card {
    animation: fadeInUp 0.6s ease-out;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
    position: relative;
}

.related-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.related-product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(220, 53, 69, 0.3);
}

.related-product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.4s ease;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.12) rotate(2deg);
}

.related-product-card .card-body {
    padding: 20px;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.related-product-card .card-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.related-product-card:hover .card-title {
    color: #dc3545;
}

.related-product-card .card-text {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.related-product-card .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.related-product-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
}

/* Staggered animations for related products */
.related-product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.related-product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.related-product-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Navigation Tabs */
.nav-tabs {
    animation: slideDown 0.6s ease-out;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tabs .nav-link:hover {
    color: #dc3545;
    border-bottom-color: #dc3545;
    transform: translateY(-3px);
}

.nav-tabs .nav-link.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    background: none;
}

/* Tab Content */
.tab-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Product Section */
.product-section {
    animation: fadeInUp 0.8s ease-out;
}

/* CTA Section */
.cta-section {
    animation: slideUp 0.8s ease-out;
}

.cta-section h2 {
    animation: slideDown 0.6s ease-out;
}

.cta-section p {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.cta-section .btn {
    animation: bounceIn 0.8s ease-out 0.4s both;
}
