/* CSS Custom Properties for Modern Gallery */
:root {
    --gallery-primary: #007bff;
    --gallery-primary-hover: #0056b3;
    --gallery-border: #e9ecef;
    --gallery-border-hover: #adb5bd;
    --gallery-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --gallery-shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.15);
    --gallery-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gallery-border-radius: 12px;
    --gallery-spacing: 1rem;
}

/* Modern Product Gallery */
.product-gallery {
    margin-bottom: 2rem;
    position: relative;
}

/* Enhanced Main Image Container */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--gallery-border-radius);
    box-shadow: var(--gallery-shadow);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-bottom: var(--gallery-spacing);
    transition: var(--gallery-transition);
    aspect-ratio: 4/3;
}

.main-image-container:hover {
    box-shadow: var(--gallery-shadow-hover);
    transform: translateY(-2px);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    cursor: zoom-in;
    transition: var(--gallery-transition);
}

.main-image-container:hover img {
    transform: scale(1.02);
}

.main-image-container a {
    display: block;
    cursor: zoom-in;
    height: 100%;
}

/* Image Loading Skeleton */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--gallery-border-radius);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Modern Thumbnail Grid */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-bottom: var(--gallery-spacing);
    max-width: 100%;
}

@media (min-width: 768px) {
    .gallery-thumbs {
        grid-template-columns: repeat(5, 1fr);
        max-width: 400px;
    }
}

.thumbs-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.thumbs-slider {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Thumbnail Navigation */
.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid var(--gallery-border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: var(--gallery-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumb-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.thumb-nav.prev {
    left: -16px;
}

.thumb-nav.next {
    right: -16px;
}

.thumb-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* Modern Thumbnail Items */
.thumb-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--gallery-border);
    transition: var(--gallery-transition);
    background: white;
}

.thumb-item:hover {
    border-color: var(--gallery-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumb-item.active {
    border-color: var(--gallery-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gallery-transition);
}

.thumb-item:hover img {
    transform: scale(1.05);
}

/* Enhanced Zoom Controls */
.gallery-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

.gallery-control-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gallery-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--gallery-transition);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-control-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gallery-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--gallery-transition);
    color: #333;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoom-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Gallery Navigation Controls */
.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gallery-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--gallery-transition);
    z-index: 3;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-image-container:hover .gallery-control {
    opacity: 1;
}

.gallery-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-control.prev {
    left: 1rem;
}

.gallery-control.next {
    right: 1rem;
}

/* Navigation Dots Indicator */
.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--gallery-transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.gallery-dot.active,
.gallery-dot:hover {
    background: white;
    transform: scale(1.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Fullscreen Mode */
.fullscreen-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gallery-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--gallery-transition);
    color: #333;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fullscreen-toggle:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 767px) {
    .main-image-container {
        aspect-ratio: 1;
        margin-bottom: 1rem;
    }

    .main-image-container img {
        padding: 0.75rem;
    }

    .gallery-control {
        opacity: 1;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.95);
    }

    .gallery-control.prev {
        left: 0.75rem;
    }

    .gallery-control.next {
        right: 0.75rem;
    }

    .gallery-controls {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.375rem;
    }

    .gallery-control-btn,
    .zoom-icon,
    .fullscreen-toggle {
        width: 36px;
        height: 36px;
    }

    .gallery-dots {
        bottom: 0.75rem;
    }

    .gallery-dot {
        width: 10px;
        height: 10px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .image-counter {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
        border-radius: 12px;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-image-container {
        aspect-ratio: 5/4;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(5, 1fr);
        max-width: 450px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) {
    .gallery-control {
        opacity: 1;
    }

    .thumb-item:hover {
        transform: none;
    }

    .gallery-control-btn:hover,
    .zoom-icon:hover {
        transform: none;
    }
}

/* Mobile control auto-hide */
.gallery-control.mobile-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modern Image Counter */
.image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    border: 1px solid var(--gallery-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--gallery-transition);
}

.image-counter:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Performance and Animation Optimizations */
.thumb-item,
.gallery-control,
.gallery-control-btn,
.main-image-container img {
    will-change: transform;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .main-image-container,
    .thumb-item,
    .gallery-control,
    .gallery-control-btn,
    .gallery-dot {
        transition: none;
    }

    .main-image-container:hover img,
    .thumb-item:hover img {
        transform: none;
    }
}

/* Support section styles */
.d-flex.justify-content-between.align-items-center.border.p-3.mb-3.rounded.shadow-sm:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
    border-color: #0d6efd;
}

.whatsapp-button:hover {
    background-color: #25D366 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px);
}

/* Consultant Card Styling - Compact Version for Product Page */
.consultant-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 1.25rem;
    color: white;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.25);
    position: relative;
    overflow: hidden;
}

.consultant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.consultant-avatar {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 3px 12px rgba(25, 135, 84, 0.4);
}

.consultant-avatar i {
    font-size: 1.5rem;
    color: white;
}

.consultant-info {
    padding: 0 0.75rem;
}

.consultant-name {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.consultant-title {
    color: #20c997;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0;
    line-height: 1.3;
}

.consultant-contact {
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-buttons .btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-buttons .btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0da354 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.contact-buttons .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.contact-buttons .btn i {
    font-size: 0.85rem;
}

.availability-status {
    text-align: center;
}

.status-badge {
    background: rgba(25, 135, 84, 0.2);
    color: #20c997;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-indicator {
    color: #20c997;
    font-size: 0.5rem;
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Consultant Card Responsive Styles */
@media (max-width: 992px) {
    .consultant-card {
        padding: 1.25rem;
        text-align: center;
    }

    .consultant-info {
        margin-bottom: 1rem;
        padding: 0;
    }

    .consultant-name {
        font-size: 1.2rem;
    }

    .consultant-title {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .consultant-card {
        padding: 1rem;
    }

    .consultant-avatar {
        width: 50px;
        height: 50px;
    }

    .consultant-avatar i {
        font-size: 1.2rem;
    }

    .consultant-name {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .consultant-title {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 0.4rem;
    }

    .contact-buttons .btn {
        width: 100%;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }

    .status-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .consultant-card {
        padding: 0.875rem;
    }

    .consultant-info {
        margin-bottom: 0.75rem;
    }

    .consultant-name {
        font-size: 1rem;
    }

    .consultant-title {
        font-size: 0.55rem;
    }

    .contact-buttons .btn {
        font-size: 0.65rem;
        padding: 0.45rem 0.65rem;
    }
}

/* Rating Stars */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.rating-input input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: all 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #ffc107;
}

.rating-input label:hover i,
.rating-input label:hover ~ label i,
.rating-input input:checked ~ label i {
    font-weight: 900;
    transform: scale(1.1);
}

/* Review Items */
.review-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-item {
    animation: fadeIn 0.3s ease-out forwards;
}

/* FancyBox customization */
.fancybox-slide--image {
    padding: 44px 0;
}

.fancybox-slide--image .fancybox-content {
    background: transparent;
}

.fancybox-is-zoomable {
    cursor: zoom-in;
}

.fancybox-can-zoomOut {
    cursor: zoom-out;
}

.fancybox-navigation .fancybox-button {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
}

.fancybox-navigation .fancybox-button:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
}

/* =============================================
   DARK MODE STYLES FOR PRODUCT PAGE
   ============================================= */

/* Main product gallery */
[data-bs-theme="dark"] .main-image-container {
    background: linear-gradient(135deg, rgba(15, 20, 25, 1) 0%, rgba(20, 25, 30, 1) 100%);
}

[data-bs-theme="dark"] .thumb-item {
    background: rgba(30, 35, 40, 1);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .thumb-item.active {
    border-color: #20c997;
}

/* Gallery controls */
[data-bs-theme="dark"] .gallery-control,
[data-bs-theme="dark"] .gallery-control-btn,
[data-bs-theme="dark"] .zoom-icon,
[data-bs-theme="dark"] .fullscreen-toggle {
    background: rgba(30, 35, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e8eaed;
}

[data-bs-theme="dark"] .gallery-control:hover,
[data-bs-theme="dark"] .gallery-control-btn:hover,
[data-bs-theme="dark"] .zoom-icon:hover,
[data-bs-theme="dark"] .fullscreen-toggle:hover {
    background: rgba(40, 45, 50, 0.95);
}

[data-bs-theme="dark"] .image-counter {
    background: rgba(30, 35, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e8eaed;
}

/* Product cards and sections */
[data-bs-theme="dark"] .card {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .card-body {
    background-color: rgba(0, 0, 0, 0.9);
}

[data-bs-theme="dark"] .bg-light {
    background-color: rgba(15, 20, 25, 0.95) !important;
}

/* Benefits card */
[data-bs-theme="dark"] .card.bg-light {
    background: rgba(15, 20, 25, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Info sections */
[data-bs-theme="dark"] .info-group {
    background: rgba(15, 20, 25, 0.95);
    border-left-color: #20c997;
}

[data-bs-theme="dark"] .info-label {
    color: #e8eaed;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .info-content {
    color: #b0b4ba;
}

/* Vehicle details grid dark mode */
[data-bs-theme="dark"] .vehicle-detail-item {
    background: rgba(30, 35, 40, 1);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .vehicle-detail-item:hover {
    border-color: #20c997;
}

[data-bs-theme="dark"] .vehicle-detail-item .detail-label {
    color: #b0b4ba;
}

[data-bs-theme="dark"] .vehicle-detail-item .detail-value {
    color: #e8eaed;
}

[data-bs-theme="dark"] .vehicle-power {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2) 0%, rgba(25, 135, 84, 0.2) 100%);
    border-color: #20c997;
}

[data-bs-theme="dark"] .vehicle-power .detail-value {
    color: #20c997;
}

/* Vehicle image container dark mode */
[data-bs-theme="dark"] .d-flex.justify-content-center.align-items-center.py-4.mb-4 {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(20, 25, 30, 0.95) 100%) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Vehicle compatibility section */
[data-bs-theme="dark"] .vehicle-compat-container {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(20, 25, 30, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .vehicle-logo-container {
    background: rgba(30, 35, 40, 1);
}

[data-bs-theme="dark"] .vehicle-brand-logo {
    filter: brightness(0.9) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1));
}

[data-bs-theme="dark"] .vehicle-detail-item {
    background: rgba(30, 35, 40, 1);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .vehicle-detail-item:hover {
    border-color: #20c997;
}

[data-bs-theme="dark"] .vehicle-detail-item .detail-label {
    color: #b0b4ba;
}

[data-bs-theme="dark"] .vehicle-detail-item .detail-value {
    color: #e8eaed;
}

[data-bs-theme="dark"] .vehicle-power {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2) 0%, rgba(25, 135, 84, 0.2) 100%);
    border-color: #20c997;
}

[data-bs-theme="dark"] .vehicle-power .detail-value {
    color: #20c997;
}

/* Compatible codes section */
[data-bs-theme="dark"] .turbine-code-display {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.3) 0%, rgba(25, 135, 84, 0.3) 100%);
    color: #20c997;
    border-color: #20c997;
}

[data-bs-theme="dark"] .turbine-code-display:hover {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.4) 0%, rgba(25, 135, 84, 0.4) 100%);
}

/* Installation guide */
[data-bs-theme="dark"] .step-container {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .step-container:hover {
    border-color: #20c997;
}

[data-bs-theme="dark"] .step-title {
    color: #e8eaed;
}

[data-bs-theme="dark"] .step-description {
    color: #b0b4ba;
}

[data-bs-theme="dark"] .step-illustration {
    background: rgba(15, 20, 25, 0.95);
}

[data-bs-theme="dark"] .tools-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Defective turbo cards */
[data-bs-theme="dark"] .defect-card,
[data-bs-theme="dark"] .prevention-card {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .defect-image {
    background: rgba(15, 20, 25, 0.95);
}

[data-bs-theme="dark"] .defect-description {
    color: #b0b4ba;
}

[data-bs-theme="dark"] .prevention-content {
    color: #e8eaed;
}

[data-bs-theme="dark"] .prevention-list li {
    color: #b0b4ba;
}

/* Reviews section */
[data-bs-theme="dark"] .overall-rating {
    background: rgba(15, 20, 25, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .rating-value {
    color: #e8eaed;
}

[data-bs-theme="dark"] .review-item {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .review-text {
    color: #b0b4ba;
}

[data-bs-theme="dark"] .review-form-container {
    background: rgba(15, 20, 25, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .review-form-container h5 {
    color: #e8eaed;
    border-bottom-color: #20c997;
}

/* FAQ section */
[data-bs-theme="dark"] .accordion-item {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .accordion-button {
    background-color: rgba(15, 20, 25, 0.95);
    color: #e8eaed;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
}

[data-bs-theme="dark"] .accordion-body {
    background-color: rgba(20, 25, 30, 0.98);
    color: #e8eaed;
}

/* Sticky banner */
[data-bs-theme="dark"] .sticky-banner {
    background: rgba(0, 0, 0, 0.95);
    border-top-color: #20c997;
}

[data-bs-theme="dark"] .sticky-product-image {
    background: rgba(30, 35, 40, 1);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .sticky-product-placeholder {
    background: rgba(15, 20, 25, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .sticky-product-title {
    color: #e8eaed;
}

/* Alerts */
[data-bs-theme="dark"] .alert-info {
    background-color: rgba(32, 201, 151, 0.1);
    border-color: rgba(32, 201, 151, 0.3);
    color: #e8eaed;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #e8eaed;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #e8eaed;
}

/* Breadcrumb */
[data-bs-theme="dark"] .breadcrumb {
    background-color: transparent;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #20c997;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #b0b4ba;
}

/* Product badges */
[data-bs-theme="dark"] .badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%) !important;
}

[data-bs-theme="dark"] .badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

/* Support info */
[data-bs-theme="dark"] .support-info,
[data-bs-theme="dark"] .warranty-info {
    color: #e8eaed;
}

[data-bs-theme="dark"] .support-info h6,
[data-bs-theme="dark"] .warranty-info h6 {
    color: #20c997;
}

/* Text visibility */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #e8eaed;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] span:not(.badge) {
    color: #b0b4ba;
}

[data-bs-theme="dark"] .text-muted {
    color: #6c757d !important;
}

[data-bs-theme="dark"] .text-success {
    color: #20c997 !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #0d6efd !important;
}

/* HR separator */
[data-bs-theme="dark"] hr {
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* Sticky Product Bar */
#product-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#product-sticky-bar.visible {
    transform: translateY(0);
}

/* Enhance modal animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Make the gallery controls more visible on hover */
.gallery-control {
    transition: all 0.2s ease;
}

.gallery-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.15);
}

/* Improve quantity input appearance */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
    height: 40px;
}

/* Cart form input focus states */
#cartInfoModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

/* Enhanced Buy Button Styling - Red Theme */
.enhanced-buy-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.7rem 1.3rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.enhanced-buy-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4) !important;
}

.enhanced-buy-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3) !important;
}

/* Star Rating Styling */
.rating .fa-star {
    font-size: 1.1rem;
    margin-right: 2px;
}

.rating .fa-star.text-warning {
    color: #ffc107 !important;
}

/* Price Display Enhancements */
.price-container .text-decoration-line-through {
    opacity: 0.7;
}

.price-container .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.6rem !important;
}

.price-container .text-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #198754;
    font-size: 0.9rem;
}

/* Basic Information Section Styling */
.info-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    height: 100%;
}

.info-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.info-content {
    color: #6c757d;
}

.info-content .fas {
    width: 20px;
    text-align: center;
}

/* Vehicle Details Grid Styling for Basic Info Section */
.vehicle-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vehicle-detail-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.vehicle-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.vehicle-detail-item .detail-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.vehicle-detail-item .detail-value {
    display: block;
    font-size: 1.125rem;
    color: #2c3e50;
    font-weight: 700;
}

.vehicle-power {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1) 0%, rgba(25, 135, 84, 0.1) 100%);
    border-color: #20c997;
}

.vehicle-power .detail-value {
    font-size: 1.25rem;
    color: #198754;
}

/* Vehicle Compatibility Section Styling */
.vehicle-compat-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.vehicle-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 4rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 350px;
}

.vehicle-brand-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 250px;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.vehicle-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vehicle-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.vehicle-detail-item {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.vehicle-detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.vehicle-detail-item .detail-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-detail-item .detail-value {
    display: block;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
}

.vehicle-power {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.vehicle-power .detail-value {
    font-size: 1.3rem;
    color: #1565c0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vehicle-details-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vehicle-detail-item {
        padding: 0.875rem;
    }

    .vehicle-detail-item .detail-label {
        font-size: 0.8rem;
    }

    .vehicle-detail-item .detail-value {
        font-size: 1rem;
    }

    .vehicle-brand-logo {
        width: 100%;
        max-width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .vehicle-logo-container {
        padding: 2.5rem 2rem;
        min-height: 240px;
    }

    .vehicle-power {
        grid-column: 1;
    }

    .vehicle-power .detail-value {
        font-size: 1.125rem;
    }
}

/* Compatible Codes Section Styling */
.turbine-codes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.turbine-code-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #2196f3;
    transition: all 0.3s ease;
}

.turbine-code-display:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Installation Guide Styling */
.step-container {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-container:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
    transform: translateY(-5px);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.step-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.step-illustration {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-illustration img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

.step-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.tools-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Sticky Banner Styling */
.sticky-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid #198754;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.75rem 0;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.sticky-banner.show {
    transform: translateY(0);
}

.sticky-product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: white;
    padding: 4px;
}

.sticky-product-placeholder {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.sticky-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticky-rating .fa-star {
    font-size: 0.8rem;
}

.sticky-price-info {
    text-align: right;
}

.sticky-discount-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sticky-original-price {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
}

.sticky-discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sticky-current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
}

.sticky-buy-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sticky-buy-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-banner {
        padding: 0.5rem 0.75rem;
    }

    .sticky-banner .row {
        flex-wrap: wrap;
        gap: .5rem;
        align-items: center;
    }

    .sticky-banner .col-md-2:first-child {
        flex: 0 0 auto;
        width: auto;
        order: 1;
    }

    .sticky-banner .col-md-5 {
        flex: 1 1 60%;
        order: 2;
        padding: 0;
    }

    .sticky-banner .col-md-3 {
        flex: 1 1 40%;
        order: 3;
        text-align: right;
    }

    .sticky-banner .col-md-2:last-child {
        flex: 1 1 100%;
        order: 4;
    }

    .sticky-product-image, .sticky-product-placeholder {
        width: 48px;
        height: 48px;
    }

    .sticky-product-title {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .sticky-rating {
        display: none;
    }

    .sticky-current-price {
        font-size: 1.05rem;
    }

    .sticky-discount-info {
        justify-content: flex-end;
    }

    .sticky-price-info small {
        display: block;
    }

    .sticky-buy-btn {
        padding: 0.65rem;
        font-size: 0.95rem;
        width: 100%;
        border-radius: 10px;
    }

    .info-group {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .step-container {
        padding: 1rem;
    }
}

/* Add body bottom padding when sticky banner is visible so footer is accessible */
body.has-sticky-banner {
    padding-bottom: 96px;
}

/* Defective Turbo Section Styling */
.defect-card, .prevention-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.defect-card:hover, .prevention-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.defect-header {
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Simple responsive gallery grid reused for install/defect photos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.install-gallery .gallery-item img {
    object-position: center;
}

.defect-gallery .gallery-item img {
    object-position: center;
}

.prevention-header {
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.defect-image {
    padding: 0;
    text-align: center;
    background: #f8f9fa;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.defect-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.defect-description {
    padding: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.prevention-content {
    padding: 1.5rem;
}

.prevention-icon {
    text-align: center;
}

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

.prevention-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* Enhanced Reviews Section Styling */
.overall-rating {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.rating-stars .fa-star {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 0.5rem;
}

.review-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.review-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-rating-small .fa-star {
    font-size: 0.9rem;
    margin-right: 0.125rem;
}

.review-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Write Review Section Styling */
.write-review-section {
    transition: all 0.3s ease;
}

.review-form-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease-out;
}

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

.review-form-container h5 {
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 2px solid #198754;
    padding-bottom: 0.75rem;
}

.review-form .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.review-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.review-form .form-label {
    font-weight: 600;
    color: #495057;
}

/* Mobile responsiveness for review form */
@media (max-width: 768px) {
    .review-form-container {
        padding: 1.5rem !important;
    }

    .review-form .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .rating-input label {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .review-form-container {
        padding: 1rem !important;
    }

    .rating-input label {
        font-size: 1.5rem;
    }

    .review-form .d-md-flex {
        flex-direction: column !important;
    }

    .review-form .d-md-flex button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* FAQ Section with Numbered Questions */
.faq-btn {
    position: relative;
    padding-left: 3.5rem !important;
}

.faq-number {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.faq-btn:not(.collapsed) {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
}

.faq-btn:not(.collapsed) .faq-number {
    background: white;
    color: #198754;
}

/* Enhanced accordion animations */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

/* Tooltip styling */
.tooltip {
    font-size: 0.8rem;
}

/* Mobile adjustments for new sections */
@media (max-width: 768px) {
    .defect-card, .prevention-card {
        margin-bottom: 1rem;
    }

    .defect-image img {
        height: 140px;
    }

    .step-illustration img {
        max-height: 160px;
    }

    .defect-description, .prevention-content {
        padding: 0.75rem;
    }

    .rating-stars .fa-star {
        font-size: 1.2rem;
    }

    .rating-value {
        font-size: 1.2rem;
    }

    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .faq-btn {
        padding-left: 3rem !important;
        font-size: 0.9rem;
    }

    .faq-number {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
