/* Trust & Conversion Enhancements */

/* Why Our Prices Section */
.vvsoutlet-why-prices {
    background: #f8f9fa;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
}

.vvsoutlet-why-prices h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.vvsoutlet-price-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vvsoutlet-reason {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.vvsoutlet-reason-icon {
    width: 60px;
    height: 60px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.vvsoutlet-reason-icon svg {
    width: 30px;
    height: 30px;
}

.vvsoutlet-reason h4 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.vvsoutlet-reason p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.vvsoutlet-learn-more {
    display: inline-block;
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.vvsoutlet-learn-more:hover {
    background: #219a52;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Reviews Section */
.vvsoutlet-reviews {
    background: white;
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.vvsoutlet-reviews h3 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.vvsoutlet-review-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
}

.vvsoutlet-review-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vvsoutlet-review-logo {
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vvsoutlet-review-logo img {
    height: 40px !important;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

/* Google logo specific */
.vvsoutlet-review-platform:first-child .vvsoutlet-review-logo img {
    height: 30px !important;
    max-width: 100px;
}

.vvsoutlet-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
}

.vvsoutlet-star {
    width: 20px;
    height: 20px;
    fill: #ffc107;
}

.vvsoutlet-review-score {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.vvsoutlet-review-count {
    font-size: 14px;
    color: #666;
}

/* Review Carousel */
.vvsoutlet-review-carousel {
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    overflow: hidden; /* Keep hidden to hide non-active slides */
    z-index: 1;
    min-height: 450px; /* Increased to accommodate longer content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px; /* Increased padding for arrow space */
}

/* Ensure track container is properly sized */
.vvsoutlet-review-carousel > div:first-child {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Arrows */
.vvsoutlet-review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #27ae60;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    pointer-events: all !important;
}

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

.vvsoutlet-review-arrow.prev {
    left: 20px; /* Back inside for proper functionality */
}

.vvsoutlet-review-arrow.next {
    right: 20px; /* Back inside for proper functionality */
}

.vvsoutlet-review-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.vvsoutlet-review-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: stretch; /* Changed to stretch for full height */
    width: 100%;
    position: relative;
}

.vvsoutlet-review-item {
    flex: 0 0 100%;
    padding: 20px 60px; /* Increased horizontal padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    box-sizing: border-box;
}

.vvsoutlet-review-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vvsoutlet-review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
    justify-content: center;
}

.vvsoutlet-review-content .vvsoutlet-star {
    width: 20px;
    height: 20px;
    fill: #00B67A;
}

.vvsoutlet-review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
}

.vvsoutlet-review-author {
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 5px;
}

.vvsoutlet-review-date {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.vvsoutlet-review-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 100;
    pointer-events: all !important;
}

.vvsoutlet-review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
    pointer-events: all !important;
    z-index: 100;
    position: relative;
    border: 1px solid transparent;
}

.vvsoutlet-review-dot:hover {
    background: #27ae60;
    transform: scale(1.2);
}

.vvsoutlet-review-dot.active {
    background: #27ae60;
}

/* Mobile review carousel adjustments */
@media (max-width: 768px) {
    .vvsoutlet-review-carousel {
        min-height: 300px;
        touch-action: pan-y pinch-zoom;
        -webkit-user-select: none;
        user-select: none;
        cursor: grab;
    }
    
    .vvsoutlet-review-carousel:active {
        cursor: grabbing;
    }
    
    /* Hide arrows on mobile - rely on swipe */
    .vvsoutlet-review-arrow {
        display: none !important;
    }
    
    .vvsoutlet-review-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .vvsoutlet-review-item {
        padding: 10px;
        min-height: 300px;
    }
    
    .vvsoutlet-review-arrow {
        width: 36px;
        height: 36px;
    }
    
    .vvsoutlet-review-arrow.prev {
        left: 10px;
    }
    
    .vvsoutlet-review-arrow.next {
        right: 10px;
    }
    
    .vvsoutlet-review-nav {
        bottom: 10px;
        padding: 16px 0;
    }
    
    /* Larger touch targets for dots on mobile */
    .vvsoutlet-review-dot {
        width: 12px;
        height: 12px;
        margin: 0 8px;
        position: relative;
    }
    
    /* Invisible larger touch area */
    .vvsoutlet-review-dot::before {
        content: '';
        position: absolute;
        top: -16px;
        left: -16px;
        right: -16px;
        bottom: -16px;
    }
    
    /* Swipe hint animation */
    .vvsoutlet-review-carousel.swipe-hint .vvsoutlet-review-track {
        animation: swipeHint 1s ease-in-out;
    }
    
    @keyframes swipeHint {
        0% { transform: translateX(0); }
        25% { transform: translateX(-5%); }
        75% { transform: translateX(5%); }
        100% { transform: translateX(0); }
    }
    
    /* Smooth scrolling for review track */
    .vvsoutlet-review-track {
        will-change: transform;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    /* Prevent text selection during swipe */
    .vvsoutlet-review-item * {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Visual swipe indicator */
    .vvsoutlet-review-carousel::after {
        content: '← Swipe →';
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        color: #666;
        font-size: 12px;
        opacity: 0;
        animation: fadeInOut 3s ease-in-out;
        animation-delay: 1s;
        pointer-events: none;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0; }
        50% { opacity: 0.7; }
    }
}

/* Mobile Improvements */
@media (max-width: 768px) {
    /* Keep desktop layout but optimize for mobile */
    .vvsoutlet-product-container {
        padding: 15px;
    }
    
    .vvsoutlet-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Breadcrumbs mobile */
    .vvsoutlet-breadcrumbs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 15px;
    }
    
    .vvsoutlet-breadcrumbs ul {
        flex-wrap: nowrap;
    }
    
    /* Brand logo in header */
    .vvsoutlet-product-header {
        position: relative;
    }
    
    .vvsoutlet-brand-block-desktop {
        display: block !important;
        margin-bottom: 15px;
    }
    
    /* Gallery mobile friendly */
    .vvsoutlet-product-gallery {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .vvsoutlet-product-gallery > div {
        display: flex;
        gap: 10px;
    }
    
    /* Tags mobile */
    .vvsoutlet-product-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Price section mobile */
    .vvsoutlet-price-section {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
        margin: 0 -15px;
    }
    
    /* Add to cart mobile */
    .vvsoutlet-add-to-cart {
        margin: 0;
    }
    
    .vvsoutlet-add-to-cart form.cart {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .vvsoutlet-add-to-cart .quantity {
        flex: 0 0 auto;
    }
    
    .vvsoutlet-add-to-cart .single_add_to_cart_button {
        flex: 1;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    /* Reviews mobile */
    .vvsoutlet-review-stats {
        gap: 30px;
    }
    
    .vvsoutlet-review-content {
        padding: 20px;
    }
    
    /* Hide complex mobile layout */
    .vvsoutlet-mobile-layout,
    .vvsoutlet-mobile-sticky-footer {
        display: none !important;
    }
    
    .vvsoutlet-desktop-layout {
        display: block !important;
    }
}

/* Notification styles */
.vvsoutlet-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.vvsoutlet-notification.show {
    transform: translateX(-50%) translateY(0);
}