/* TP Sync Client — Product Page Styles */

/* Specs tables */
.tp-specs-table,
.tp-refs-table,
.tp-compat-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.tp-specs-table th,
.tp-specs-table td,
.tp-refs-table th,
.tp-refs-table td,
.tp-compat-table th,
.tp-compat-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

.tp-specs-table th {
    width: 180px;
    color: #666;
    font-weight: 600;
    background: #f9f9f9;
}

.tp-refs-table thead th,
.tp-compat-table thead th {
    background: #f5f5f5;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
}

.tp-compat-table tbody tr:hover {
    background: #f9f9f9;
}

/* Similar parts / other parts grid */
.tp-similar-grid,
.tp-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 10px 0;
}

.tp-similar-item,
.tp-part-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tp-similar-item:hover,
.tp-part-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tp-similar-item a,
.tp-part-item a {
    text-decoration: none;
    color: inherit;
}

.tp-similar-item img,
.tp-part-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

.tp-similar-item h5,
.tp-part-item h5 {
    font-size: 13px;
    margin: 4px 0;
    line-height: 1.3;
    color: #333;
}

.tp-similar-ref,
.tp-part-ref {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.tp-similar-price,
.tp-part-price {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
}

/* Video gallery */
.tp-video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 10px 0;
}

.tp-video-item {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.tp-video-item video,
.tp-video-item iframe {
    display: block;
    border-radius: 8px;
}

/* WhatsApp button */
.tp-whatsapp-btn:hover {
    opacity: 0.9;
    text-decoration: none !important;
    color: #fff !important;
}

/* Info request tab */
.tp-tab-info-request {
    max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .tp-specs-table th {
        width: 120px;
    }

    .tp-similar-grid,
    .tp-parts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-video-gallery {
        grid-template-columns: 1fr;
    }

    .tp-compat-table {
        font-size: 12px;
    }

    .tp-compat-table th,
    .tp-compat-table td {
        padding: 6px 8px;
    }
}
