/* Unified CSS for all product pages */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f8f9fa; 
    margin: 0;
    padding: 0;
}

.header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 1rem 0; 
}

.breadcrumb { 
    background: none; 
    padding: 0.5rem 0; 
}

.product-image { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    border-radius: 10px; 
}

.price { 
    font-size: 2rem; 
    font-weight: bold; 
    color: #28a745; 
}

.btn-quote { 
    background: #28a745; 
    border: none; 
    padding: 12px 30px; 
    font-weight: bold; 
    color: white;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-quote:hover { 
    background: #218838; 
    color: white;
}

.nav-tabs .nav-link.active { 
    background-color: #667eea; 
    color: white; 
    border-color: #667eea; 
}

.review-card { 
    background: #f8f9fa; 
    border-radius: 10px; 
    padding: 1.5rem; 
    margin-bottom: 1rem; 
    border: 1px solid #e9ecef;
}

.stars { 
    color: #ffc107; 
}

.related-products .card { 
    transition: transform 0.2s; 
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.related-products .card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-products .card-img-top {
    height: 150px;
    object-fit: cover;
    width: 100%;
}

.related-products .card-body {
    padding: 1rem;
    text-align: center;
}

.related-products .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.related-products .card-text {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.related-products .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* Fix for horizontal layout */
.related-products .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.related-products .col-md-4.col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .related-products .col-md-4.col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 768px) {
    .related-products .col-md-4.col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .related-products .col-md-4.col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Tab content styling */
.tab-content {
    background: white;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
    border: 1px solid #dee2e6;
    border-top: none;
}

/* Reviews section */
.reviews-section {
    margin: 3rem 0;
}

.reviews-section h3 {
    color: #333;
    margin-bottom: 2rem;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Product details section */
.product-details h1 {
    color: #333;
    margin-bottom: 1rem;
}

.product-details .text-muted {
    color: #666 !important;
    line-height: 1.6;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
}

.list-unstyled .bx {
    margin-right: 0.5rem;
}

/* Container spacing */
.container {
    max-width: 1200px;
}

.my-4 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

/* Button styling */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Badge styling */
.badge.bg-success {
    background-color: #28a745 !important;
}

/* Link styling */
a.text-decoration-none {
    text-decoration: none !important;
}

a.text-decoration-none:hover {
    text-decoration: none !important;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}