/* Shared with default.htm look — rare parts DB pages */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-image: url("https://www.oldspeed.net/assets/site/fond.jpg");
    background-color: #cccccc;
}
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.content-section { margin-bottom: 2rem; }
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}
.brand-logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}
.brand-logo:hover { transform: scale(1.1); }
.brand-section { margin-bottom: 3rem; }
.brand-title {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.brand-title h2 {
    color: #fff;
}
.brand-title-logo-wrap {
    background: #ffffff;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.brand-title-logo-wrap img {
    display: block;
    max-height: 130px;
    width: auto;
    margin: 0 auto;
}
.item-image {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.item-image:hover { transform: scale(1.05); }
.item-image-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    border-radius: 4px;
    cursor: zoom-in;
}
.item-image-link:focus-visible {
    outline: 2px solid #495057;
    outline-offset: 3px;
}
.item-image-link:hover .item-image {
    transform: scale(1.05);
}
/* Image zoom overlay: /assets/site/image-lightbox.css */
.price-highlight { font-weight: bold; color: #28a745; }
td.price-highlight { text-align: center; }
/* default2 catalogue: centre price & period (headers + single-row cells) */
.brand-section .table thead th:nth-child(5),
.brand-section .table thead th:nth-child(6) {
    text-align: center;
}
.brand-section .table tbody tr:not(.prix-item-multi) > td:nth-child(6) {
    text-align: center;
}
/* Tighter stacked lines in Complete / Price / Country (DB newlines; avoids double <br> gaps) */
.prix-multiline {
    white-space: pre-line;
    line-height: 1.2;
    display: block;
}
.btn-primary {
    background-color: #495057;
    border-color: #495057;
}
.btn-primary:hover {
    background-color: #343a40;
    border-color: #343a40;
}
.table-responsive { border-radius: 8px; overflow: hidden; }
.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}
.year-toolbar {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}
.db-banner {
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .item-image { max-width: 60px; }
    .table-responsive { font-size: 0.85rem; }
}

/* Several conditions for one part: stacked sub-rows, aligned columns */
.prix-variant-stack-td {
    vertical-align: middle;
    background-color: rgba(0, 0, 0, 0.02);
}
.prix-variant-line:last-child {
    border-bottom: none !important;
}
.prix-variant-line-inner {
    display: grid;
    grid-template-columns: minmax(5.5rem, auto) minmax(3rem, 1fr) minmax(5.5rem, 1.15fr) minmax(4.5rem, auto);
    gap: 0.35rem 0.65rem;
    align-items: center;
}
.prix-v-price {
    text-align: center;
    justify-self: center;
}
.prix-v-date {
    text-align: center;
    justify-self: center;
}
@media (max-width: 767.98px) {
    .prix-variant-line-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "cond cond"
            "complete price"
            "date date";
    }
    .prix-variant-line-inner .prix-v-cond { grid-area: cond; }
    .prix-variant-line-inner .prix-v-complete { grid-area: complete; }
    .prix-variant-line-inner .prix-v-price { grid-area: price; }
    .prix-variant-line-inner .prix-v-date { grid-area: date; }
}

/* UI prototypes: collapsed row + expandable detail */
.prix-ui-picker {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.prix-ui-picker a { font-weight: 600; }
.prix-summary-row td.prix-muted-col {
    color: #adb5bd;
    font-size: 0.85rem;
    vertical-align: middle;
}
.prix-detail-panel {
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
}
.prix-detail-tbody .prix-detail-data-row td {
    background: #f8f9fa;
    vertical-align: middle;
}
.prix-detail-data-row.prix-year-divider td {
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}
.prix-toggle-data[aria-expanded="true"] .prix-toggle-show {
    display: none;
}
.prix-toggle-data[aria-expanded="true"] .prix-toggle-hide {
    display: inline;
}
.prix-toggle-data[aria-expanded="false"] .prix-toggle-hide,
.prix-toggle-data:not([aria-expanded]) .prix-toggle-hide {
    display: none;
}
.prix-detail-panel .prix-year-block {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}
.prix-detail-panel .prix-year-block:last-child {
    border-bottom: none;
}
.prix-detail-panel .prix-year-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #495057;
}
.prix-detail-inner-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}
.prix-detail-inner-table th {
    background: #e9ecef;
    font-size: 0.8rem;
}
.prix-obs-count {
    font-size: 0.8rem;
    color: #6c757d;
}
/* Design B: year accordion */
.prix-year-accordion .accordion-button {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}
/* Design C: card grid */
.prix-item-card {
    height: 100%;
}
.prix-item-card .card-img-top,
.prix-item-card .item-image {
    max-height: 120px;
    object-fit: contain;
    padding: 0.5rem;
    background: #fff;
}
.prix-item-card .item-image-link {
    display: inline-block;
    padding: 0.5rem;
}
.prix-detail-inner-table tr.prix-year-divider td {
    background: #e9ecef;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    border-top: 1px solid #dee2e6;
}
