/* Single Product Page Styles */

.product-header { 
    background: #81b9f0; 
    padding: 20px 0; 
    color: white; 
    margin-bottom: 30px;
    margin-top: 0;
}

.product-header h1 {
    margin: 0;
    font-size: 32px;
}

.single-product-container {
    padding-top: 100px;
    padding-bottom: 0;
}

.single-product-container > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Product Main Section */
.product-main-section {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: stretch;
}

/* Product Images Section */
.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-wrapper {
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Related Images */
.related-images-wrapper {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.related-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.related-image:hover {
    border-color: #81b9f0;
}

/* Product Details Section */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    height: 100%;
}

/* Title and Rating Wrapper */
.title-rating-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-details-section h2 {
    margin: 0;
    font-size: 32px;
    color: #333;
}

/* Rating Section */
.product-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    margin: 0;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Disabled rating display */
.rating-display.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.rating-display.disabled .review-count a.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.stars {
    display: flex;
    gap: 2px;
    font-size: 20px;
}

.star {
    color: #ddd;
}

.star.filled {
    color: #f39c12;
}

.rating-number {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.review-count a {
    color: #81b9f0;
    text-decoration: none;
    font-size: 14px;
}

.review-count a:hover {
    text-decoration: underline;
}

.write-review-link {
    color: #81b9f0;
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
}

.write-review-link:hover {
    text-decoration: underline;
}

/* Disabled write review link */
.write-review-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Product Description */
.product-description {
    line-height: 1.6;
    color: #666;
}

.product-description p {
    margin: 0 0 15px 0;
}

/* Request Quote Button */
.btn-request-quote {
    display: block;
    width: 100%;
    background-color: white;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #333;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

.btn-request-quote:hover {
    background-color: #f0f0f0;
    border-color: #333;
}

/* Tabs Section */
.product-tabs-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.tab-button {
    padding: 15px 30px;
    border: none;
    background-color: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: #333;
    background-color: #f0f0f0;
}

.tab-button.active {
    color: white;
    background-color: #1e3c72;
    border-bottom-color: #1e3c72;
}

/* Disabled tab button */
.tab-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.tab-button.disabled:hover {
    background-color: transparent;
    color: #666;
}

.tab-content {
    padding: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Hide disabled tab content */
.tab-content.disabled {
    display: none !important;
}

.tab-inner-content {
    color: #666;
    line-height: 1.6;
}

/* Details List */
.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.details-list li:last-child {
    border-bottom: none;
}

.details-list strong {
    color: #333;
    min-width: 150px;
    display: inline-block;
}

/* Tab Inner Content */
.tab-inner-content h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Request Quote Form */
.request-quote-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #81b9f0;
    box-shadow: 0 0 0 2px rgba(129, 185, 240, 0.1);
}

.form-group input[type="text"][readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.required {
    color: #e74c3c;
}

.btn-submit-quote {
    background-color: #81b9f0;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.btn-submit-quote:hover:not(:disabled) {
    background-color: #6ea8e0;
}

.btn-submit-quote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    color: #999;
    font-size: 12px;
    margin-top: 15px;
}
.reviews-list {
    margin-bottom: 40px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.review-header strong {
    color: #333;
    font-size: 16px;
}

.review-rating {
    display: flex;
    gap: 2px;
    font-size: 14px;
}

.review-rating .star {
    color: #ddd;
}

.review-rating .star.filled {
    color: #f39c12;
}

.review-date {
    color: #999;
    font-size: 12px;
    margin-left: auto;
}

.review-text {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Review Form */
.review-form-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.review-form-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.custom-review-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #81b9f0;
    box-shadow: 0 0 0 2px rgba(129, 185, 240, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Star Rating Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    width: fit-content;
}

.rating-input input[type="radio"] {
    display: none;
}

.star-label {
    cursor: pointer;
    font-size: 32px;
    color: #ddd;
    transition: color 0.2s ease;
    line-height: 1;
}

.star-label:hover,
.star-label.filled {
    color: #f39c12;
}

/* reCAPTCHA */
.form-group .g-recaptcha {
    margin-top: 10px;
}

/* Form Buttons */
.btn-submit-review {
    background-color: #81b9f0;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.btn-submit-review:hover:not(:disabled) {
    background-color: #6ea8e0;
}

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    color: #999;
    font-size: 12px;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-main-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-details-section h2 {
        font-size: 24px;
    }

    .write-review-link {
        margin-left: 0;
    }

    .rating-display {
        flex-wrap: wrap;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        text-align: center;
    }

    .tab-content {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
