/* Modern Mobile-First Design */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    min-height: 100vh;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-5px);
    color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Product Slider */
.product-slider-section {
    background: rgba(128, 128, 128, 0.7);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.product-slider::-webkit-scrollbar {
    height: 8px;
}

.product-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.product-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

.product-slide {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 8px;
    border: 2px solid transparent;
}

.product-slide:hover, .product-slide.active {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-3px);
}

.product-slide img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-slide h6 {
    font-size: 0.8rem;
    color: white;
    margin-top: 6px;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}



/* Product Detail Section */
.product-detail-section {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 100px;
    border: none;
    overflow: hidden;
}

/* Chat Widget Styles - Same as other pages */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.chat-widget-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-widget-header:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

.chat-widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
}

.expand-icon {
    transition: transform 0.3s ease;
}

.chat-widget-header.expanded .expand-icon {
    transform: rotate(180deg);
}

.chat-widget-body {
    height: 280px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f8f9fa;
    max-height: 220px;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 14px;
}

.ai-bubble {
    background: #e3f2fd;
    color: #1565c0;
    margin-right: auto;
}

.user-bubble {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    margin-left: auto;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 10px;
    }
    
    .product-slider {
        gap: 8px;
    }
    
    .product-slide {
        width: 85px;
        padding: 6px;
    }
    
    .product-slide img {
        width: 60px;
        height: 60px;
    }
    
    .product-slide h6 {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    
    .chat-widget-container {
        width: 90% !important;
        right: 5% !important;
        max-width: none !important;
    }
    
    .back-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 8px;
    }
    
    .product-slider-section, .product-detail-section {
        margin-bottom: 15px;
        padding: 8px;
    }
    
    .product-slide {
        width: 75px;
        padding: 4px;
    }
    
    .product-slide img {
        width: 50px;
        height: 50px;
    }
    
    .product-slide h6 {
        font-size: 0.7rem;
        margin-top: 3px;
    }
    
}