/* =========================================
   services-common.css — Stiluri comune pentru paginile de servicii
   (canapele.php, saltele.php, covoare.php, drapes.php, auto.php)
   Înlocuiește blocurile <style> duplicate din fiecare pagină.
   ========================================= */

/* --- Tabel prețuri --- */
.prices-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.prices-section th,
.prices-section td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.prices-section th {
    background-color: #f4f4f4;
    color: #0066cc;
}

.prices-section td a.btn-outline {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 2px solid #ff6600;
    color: #ff6600;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.prices-section td a.btn-outline:hover {
    background-color: #ff6600;
    color: #fff;
}

/* --- Preț vechi (cu reducere) --- */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* --- Responsive 768px --- */
@media (max-width: 768px) {
    .service-details, 
    .service-methods, 
    .prices-section, 
    .faq-section, 
    .cta-section {
        padding: 15px;
    }

    .service-details h2,
    .service-methods h2,
    .prices-section h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .service-details p,
    .service-methods p,
    .prices-section p,
    .faq-section p,
    .cta-section p {
        font-size: 1rem;
    }

    .faq-section details summary {
        font-size: 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-section a.btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* --- Responsive 480px --- */
@media (max-width: 480px) {
    .service-details h2,
    .service-methods h2,
    .prices-section h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 1.2rem;
    }

    .service-details p,
    .service-methods p,
    .prices-section p,
    .faq-section p,
    .cta-section p {
        font-size: 0.9rem;
    }

    .faq-section details summary {
        font-size: 0.95rem;
    }

    .cta-section h2 {
        font-size: 1.2rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .cta-section a.btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Stack table headers and data vertically */
    .prices-section table, 
    .prices-section thead, 
    .prices-section tbody, 
    .prices-section th, 
    .prices-section td, 
    .prices-section tr { 
        display: block; 
    }

    .prices-section thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .prices-section tr { 
        margin-bottom: 1rem; 
    }

    .prices-section td { 
        border: none;
        position: relative;
        padding-left: 0;
    }

    .prices-section td::before { 
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #0066cc;
        margin-bottom: 5px;
    }
}

/* --- FAQ details --- */
.faq-section details {
    margin-bottom: 10px;
}

.faq-section details[open] summary {
    background-color: #f9f9f9;
}

/* --- Touch-friendly buttons --- */
.btn-primary, 
.btn-outline {
    min-height: 44px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--gray, #666);
    margin-bottom: 15px;
    padding: 8px 0;
}
.breadcrumbs a {
    color: var(--primary, #0066cc);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: var(--gray-dark, #333);
    font-weight: 600;
}

.service-results {
    margin: 2.5rem 0;
}

.service-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-result-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--gray, #ddd);
    border-radius: 10px;
    background: var(--surface, #fff);
}

.service-result-card h3 {
    margin-top: 0;
}

.service-result-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.service-result-pair figure {
    min-width: 0;
    margin: 0;
}

.service-result-pair img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.service-result-pair figcaption {
    margin-top: 0.35rem;
    text-align: center;
    font-size: 0.9rem;
}

[data-theme="dark"] .service-result-card {
    background: #222;
    color: #f4f4f4;
    border-color: #444;
}

.related-services {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border: 1px solid var(--gray, #ddd);
    border-radius: 10px;
}
.related-services ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}
.related-services a {
    color: var(--primary, #0066cc);
}

/* --- Answer box (includes/answer-box.php) --- */
.answer-box {
    background: #eef6ff;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    padding: 16px 18px;
    margin: 16px 0 24px;
}
.answer-box__lead { margin: 0 0 10px; }
.answer-box__facts { margin: 0 0 14px; padding-left: 20px; }
.answer-box__facts li { margin: 4px 0; }
.answer-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.answer-box__actions .btn-outline {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid #ff6600;
    color: #ff6600;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.answer-box__actions .btn-outline:hover { background: #ff6600; color: #fff; }
[data-theme="dark"] .answer-box { background: #14233a; border-left-color: #4a9eff; }

/* --- Ghiduri utile (includes/service-guides.php) --- */
.related-posts { margin: 28px 0; }
.related-posts ul { padding-left: 20px; }
.related-posts li { margin: 6px 0; }
