/* Product Detail Page Styles */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Breadcrumb Section */
.breadcrumb-section {
    padding: 120px 0 20px;
    background: #f8f9fa;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #5a6fd8;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Product Hero Section */
.product-hero-section {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.product-hero-content {
    position: relative;
    z-index: 2;
}

.product-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.product-hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.product-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-hero-actions .btn {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.product-hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-hero-image {
    position: relative;
    z-index: 2;
}

.product-main-img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.product-main-img:hover {
    transform: scale(1.05);
}

.product-placeholder {
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-placeholder i {
    font-size: 5rem;
    opacity: 0.7;
}

/* Product Information Section */
.product-info-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #667eea;
    color: white;
    transform: translateX(10px);
}

.feature-item i {
    color: #28a745;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.feature-item:hover i {
    color: white;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Product Gallery */
.product-gallery {
    margin-top: 20px;
}

.gallery-swiper {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f8f9fa;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-swiper .swiper-pagination {
    bottom: 15px;
    position: absolute !important; 
}

.gallery-swiper .swiper-pagination-bullet {
    background: #667eea;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #667eea;
    transform: scale(1.2);
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: #667eea;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.gallery-swiper .swiper-button-next {
    right: 15px;
}

.gallery-swiper .swiper-button-prev {
    left: 15px;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-swiper .swiper-button-next:after,
.gallery-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pricing Card */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    top: 120px;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.pricing-option {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-option:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.pricing-option.recommended {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
}

.pricing-option.recommended .price {
    color: white;
}

.pricing-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.pricing-actions {
    margin-top: 30px;
}

/* Features Card (Sidebar) */
.features-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.features-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item-sidebar {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

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

.feature-item-sidebar:hover {
    color: #667eea;
    transform: translateX(5px);
}

.feature-item-sidebar i {
    color: #28a745;
    font-size: 1rem;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.feature-item-sidebar:hover i {
    color: #667eea;
}

.feature-item-sidebar span {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.info-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #5a6fd8;
    transform: translateY(-3px);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-hero-title {
        font-size: 2.5rem;
    }
    
    .product-hero-description {
        font-size: 1.1rem;
    }
    
    .product-hero-actions {
        justify-content: center;
    }
    
    .product-hero-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        padding: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card,
    .features-card {
        margin-top: 30px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Gallery slider mobile optimizations */
    .gallery-swiper .swiper-button-next,
    .gallery-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .gallery-swiper .swiper-button-next {
        right: 10px;
    }
    
    .gallery-swiper .swiper-button-prev {
        left: 10px;
    }
    
    .gallery-swiper .swiper-button-next:after,
    .gallery-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-hero-section {
        padding: 40px 0 60px;
    }
    
    .product-hero-title {
        font-size: 2rem;
    }
    
    .product-info-section {
        padding: 60px 0;
    }
    
    .product-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    /* Very small screens - gallery slider */
    .gallery-swiper .swiper-button-next,
    .gallery-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .gallery-swiper .swiper-button-next:after,
    .gallery-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .gallery-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}