/* Enhanced styling for product and service detail pages */

/* Main layout improvements */
.product-detail-container,
.service-detail-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 0;
}

@media (min-width: 992px) {
    .product-detail-container,
    .service-detail-container {
        flex-direction: row;
    }
}

/* Product/Service Images */
.main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background-color: #fff;
}

.main-image img {
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 1rem;
    min-height: 300px;
    max-height: 500px;
}

.thumbnail-gallery {
    margin-top: 1rem;
}

.thumbnail-item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    opacity: 0.7;
}

.thumbnail-item:hover, 
.thumbnail-item.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
}

/* Product/Service Info */
.product-title,
.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.price-section {
    background-color: rgba(74, 144, 226, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.price {
    color: #2563eb;
    font-weight: 700;
}

.description-section {
    margin-bottom: 2rem;
}

.description-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #4a5568;
}

/* Seller/Provider Card */
.seller-card,
.provider-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.seller-image img,
.provider-image img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.seller-info h5,
.provider-info h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.seller-info p,
.provider-info p {
    color: #718096;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.contact-buttons .btn {
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.contact-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-buttons .btn-primary {
    background-color: #4a90e2;
}

.contact-buttons .btn-success {
    background-color: #25d366;
}

/* Social Media Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links .btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links .btn i {
    font-size: 1.1rem;
}

/* Badges and status indicators */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.85rem;
}

.product-availability .badge {
    padding: 0.5rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .seller-card,
    .provider-card {
        padding: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }
}