/* =========================================
   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;
}
