/* ── Onglets WC KustomLab ──────────────────────────────────────────── */

/* Contenu des onglets */
.kld-tab-content {
    font-size: 0.95em;
    line-height: 1.7;
    color: #374151;
}
.kld-tab-content h3 {
    font-size: 1.1em;
    margin: 20px 0 10px;
    color: #1f2937;
}

/* Fiche technique */
.kld-fiche-download .button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.kld-fiche-download .button:hover { background: #1d4ed8; color: #fff; }
.kld-fiche-download .button::before {
    content: '';
    display: inline-block;
    width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 10v6m0 0l-3-3m3 3l3-3M3 17v3a2 2 0 002 2h14a2 2 0 002-2v-3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Table mensurations */
.kld-mensurations table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.kld-mensurations th,
.kld-mensurations td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
.kld-mensurations thead th {
    background: #f3f4f6;
    font-weight: 700;
    color: #1f2937;
}
.kld-mensurations tbody tr:nth-child(even) { background: #f9fafb; }
.kld-mensurations tbody tr:hover { background: #eef2ff; }

/* Table livraison */
.kld-livraison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-bottom: 20px;
}
.kld-livraison-table th,
.kld-livraison-table td {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.kld-livraison-table thead th {
    background: #f3f4f6;
    font-weight: 700;
}
.kld-livraison-table tbody tr:hover { background: #f9fafb; }

/* ── Liens SEO ────────────────────────────────────────────────────── */
.kld-seo-links {
    margin: 30px 0;
    padding: 20px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.8;
}
.kld-seo-links__label {
    font-weight: 600;
    color: #6b7280;
    margin-right: 6px;
}
.kld-seo-links__cats { margin-bottom: 8px; }
.kld-seo-links__cats a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.kld-seo-links__cats a:hover { text-decoration: underline; }
.kld-seo-links__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kld-seo-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e5e7eb;
    color: #374151;
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    transition: background 0.2s;
}
.kld-seo-tag:hover { background: #d1d5db; color: #1f2937; }

/* ── Complementaires ──────────────────────────────────────────────── */
.kld-complementary {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.kld-complementary h2 {
    font-size: 1.3em;
    margin-bottom: 16px;
}
.kld-complementary .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
}
.kld-complementary .product {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.kld-complementary .product:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.kld-complementary .product a { text-decoration: none; color: inherit; }
.kld-complementary .product img { width: 100%; height: auto; display: block; }
.kld-complementary .woocommerce-loop-product__title {
    font-size: 0.9em;
    padding: 10px 12px 4px;
    margin: 0;
}
.kld-complementary .price {
    display: block;
    padding: 0 12px 10px;
    font-weight: 600;
    color: #2563eb;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .kld-complementary .products { grid-template-columns: repeat(2, 1fr); }
    .kld-seo-links { padding: 14px 16px; }
}
@media (max-width: 480px) {
    .kld-complementary .products { grid-template-columns: 1fr; }
}
