/* 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/images_fond/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);
}
/* Full-screen image over the page: dark layer + fixed close (Bootstrap icon) */
.prix-img-lightbox-root {
    position: fixed;
    inset: 0;
    z-index: 10060;
}
.prix-img-lightbox-root[hidden] {
    display: none !important;
}
.prix-img-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    z-index: 0;
}
.prix-img-lightbox-pane {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.75rem 1rem 1.25rem;
    box-sizing: border-box;
    pointer-events: none;
}
.prix-img-lightbox-close-btn {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 10062;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    background: #fff;
    color: #212529;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.prix-img-lightbox-close-btn:hover {
    background: #f8f9fa;
}
.prix-img-lightbox-close-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.prix-img-lightbox-frame {
    pointer-events: auto;
    max-width: 92vw;
    max-height: 86vh;
}
.prix-img-lightbox-frame img {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    cursor: default;
}
.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; }
}
