/* =============================================
   ORTHOPROMED - Enhanced Product Page Styles
   Site palette: Navy #2c2e3d, Dark #171b2d,
   Blue accent #00a4ef, Muted #b6c6c9
   ============================================= */

/* --- Fix oversized Call Now / E-Mail header icons --- */
.thegem-te-infobox .elementor-icon {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
}
.thegem-te-infobox .elementor-icon svg,
.thegem-te-infobox .e-font-icon-svg {
    width: 24px !important;
    height: 24px !important;
}

/* --- Full-width product page (remove sidebar) --- */
.single-product .site-content .container,
.single-product #main-content .container {
    max-width: 1200px;
}
.single-product .sidebar,
.single-product #sidebar,
.single-product .shop-sidebar,
.single-product .sidebar.col-lg-3,
.single-product .page-sidebar {
    display: none !important;
}
.single-product .content-area,
.single-product #primary,
.single-product .panel-center.col-lg-9 {
    width: 100% !important;
    float: none !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}
.single-product .panel.with-sidebar {
    display: flex;
    flex-wrap: wrap;
}

/* --- Product Title --- */
.single-product .product_title {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: #1a1a2e;
    margin-bottom: 12px !important;
    text-transform: none !important;
    line-height: 1.3;
}

/* --- Short Description --- */
.single-product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* --- Product Highlights --- */
.orthopromed-highlights {
    margin: 15px 0;
    padding: 16px 20px;
    background: #f0f4f8;
    border-radius: 8px;
    border-left: 4px solid #2c2e3d;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}
.orthopromed-highlights ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.orthopromed-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.orthopromed-highlights li svg {
    flex-shrink: 0;
}

/* --- Request Quote Button --- */
.orthopromed-quote-btn-wrap {
    margin: 20px 0 25px;
    clear: both;
    width: 100%;
    float: none;
}
.orthopromed-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2c2e3d;
    color: #fff !important;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    letter-spacing: 0.3px;
}
.orthopromed-quote-btn:hover {
    background: #171b2d;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,46,61,0.35);
}
.orthopromed-quote-btn svg {
    flex-shrink: 0;
}

/* --- Trust Badges --- */
.orthopromed-trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 0;
    margin: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* --- Catalogue Download Link --- */
.orthopromed-catalogue-link {
    margin: 12px 0;
}
.orthopromed-catalogue-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00a4ef !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 8px 0;
    transition: color 0.2s;
}
.orthopromed-catalogue-link a:hover {
    color: #0080c0 !important;
    text-decoration: underline !important;
}

/* --- Need Help Section --- */
.orthopromed-need-help {
    background: #f5f7fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 18px;
}
.orthopromed-need-help h4 {
    margin: 0 0 6px !important;
    font-size: 15px !important;
    font-weight: 700;
    color: #1a1a2e;
}
.orthopromed-need-help p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}
.help-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00a4ef !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
}
.help-link:hover {
    color: #0080c0 !important;
}

/* --- Quote Modal Overlay --- */
.orthopromed-quote-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.orthopromed-quote-overlay.active {
    display: flex;
}
.orthopromed-quote-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}
.orthopromed-quote-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.orthopromed-quote-modal-close:hover {
    color: #333;
}
.orthopromed-quote-modal h3 {
    margin: 0 0 4px !important;
    font-size: 22px !important;
    color: #1a1a2e;
}
.orthopromed-quote-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 18px;
    border-bottom: 1px solid #eee;
    margin-bottom: 18px;
}
.orthopromed-quote-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}
.orthopromed-quote-product-info .product-details {
    flex: 1;
}
.orthopromed-quote-product-info .product-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
}
.orthopromed-quote-product-info .product-sku {
    font-size: 12px;
    color: #999;
    margin: 2px 0 0;
}

/* Quote Form Fields */
.orthopromed-quote-form .form-row {
    margin-bottom: 14px;
}
.orthopromed-quote-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.orthopromed-quote-form input[type="text"],
.orthopromed-quote-form input[type="email"],
.orthopromed-quote-form input[type="tel"],
.orthopromed-quote-form textarea,
.orthopromed-quote-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}
.orthopromed-quote-form input:focus,
.orthopromed-quote-form textarea:focus,
.orthopromed-quote-form select:focus {
    border-color: #00a4ef;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,164,239,0.1);
}
.orthopromed-quote-form textarea {
    resize: vertical;
    min-height: 80px;
}
.orthopromed-quote-form .form-row-half {
    display: flex;
    gap: 12px;
}
.orthopromed-quote-form .form-row-half > div {
    flex: 1;
}
.orthopromed-quote-submit {
    background: #2c2e3d;
    color: #fff;
    border: none;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 6px;
}
.orthopromed-quote-submit:hover {
    background: #171b2d;
}
.orthopromed-quote-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error messages */
.orthopromed-quote-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
    display: none;
}
.orthopromed-quote-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: block;
}
.orthopromed-quote-message.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
    display: block;
}

/* --- Product Image Gallery Enhancement --- */
.single-product .woocommerce-product-gallery {
    margin-bottom: 24px;
}

/* --- Tabs Enhancement --- */
.single-product .woocommerce-tabs {
    margin-top: 40px !important;
}
.single-product .woocommerce-tabs .tabs li a {
    font-weight: 600 !important;
}

/* --- Specifications Table --- */
.single-product .woocommerce-product-details__short-description table,
.single-product .woocommerce-Tabs-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.single-product .woocommerce-product-details__short-description table td,
.single-product .woocommerce-Tabs-panel table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}
.single-product .woocommerce-product-details__short-description table tr:nth-child(even),
.single-product .woocommerce-Tabs-panel table tr:nth-child(even) {
    background: #f9f9f9;
}
.single-product .woocommerce-product-details__short-description table td:first-child,
.single-product .woocommerce-Tabs-panel table td:first-child {
    font-weight: 600;
    background: #f5f7fa;
    width: 100px;
    text-align: center;
}

/* --- Related Products Grid --- */
.single-product .related.products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

/* --- SKU & Meta --- */
.single-product .product_meta {
    padding: 10px 0;
}
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .single-product .product_title {
        font-size: 22px !important;
    }
    .orthopromed-trust-badges {
        gap: 12px;
    }
    .trust-badge {
        font-size: 12px;
    }
    .orthopromed-quote-modal {
        padding: 24px;
        margin: 10px;
    }
    .orthopromed-quote-form .form-row-half {
        flex-direction: column;
        gap: 14px;
    }
    .orthopromed-quote-product-info img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .orthopromed-trust-badges {
        flex-direction: column;
        gap: 10px;
    }
}
