/* =============================================
   AutoTelex Voorraad — Stylesheet v3
   ============================================= */

/* ── Layout ── */
.at-voorraad-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;

}
@media (max-width: 900px) {
    .at-voorraad-wrap { grid-template-columns: 1fr; }
    .at-filters { border-right: none !important; border-bottom: 1px solid #e5e7eb; padding-bottom: 24px; }
}

/* ── Filters sidebar ── */
.at-filters {
    border-right: 1px solid #1e2e34;
    padding-right: 32px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
.at-filter-groep {
    border-bottom: 1px solid #1e2e34;
    padding: 14px 0;
}
.at-filter-groep:last-child { border-bottom: none; }

.at-filter-titel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
    transform: none !important;
}
.at-filter-titel:hover {
    color: #E4FA00 !important;
    background: none !important;
    transform: none !important;
}
.at-filter-titel:hover .at-chevron {
    color: #E4FA00;
}
.at-chevron {
    font-size: 16px;
    color: #9ca3af;
    transition: transform 0.2s;
    display: inline-block;
    line-height: 1;
}
.at-filter-titel[aria-expanded="false"] .at-chevron { transform: rotate(-90deg); }

.at-filter-inhoud { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }

.at-check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13.5px;
    color: #d1d5db;
    user-select: none;
}
.at-check input[type="checkbox"] {
    width: 17px; height: 17px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #111827;
    flex-shrink: 0;
}
.at-check:hover span { color: #111; }

/* ── Range slider labels ── */
.at-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

/* ── Dual-range track wrapper ── */
.at-dual-range {
    position: relative;
    height: 14px;
    margin: 0 2px;
}

.at-dual-range::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #1e2e34;
    border-radius: 1px;
    transform: translateY(-50%);
    z-index: 0;
}

.at-dual-range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 2px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    padding: 0;
    margin: 0;
}

/* Webkit — volkomen plat */
.at-dual-range input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 2px;
}
.at-dual-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #111827;
    pointer-events: all;
    cursor: pointer;
    border: none;
    box-shadow: none;
    margin-top: -5px;
    position: relative;
    z-index: 2;
}

/* Firefox — volkomen plat */
.at-dual-range input[type="range"]::-moz-range-track {
    background: transparent;
    height: 2px;
}
.at-dual-range input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #111827;
    pointer-events: all;
    cursor: pointer;
    border: none;
    box-shadow: none;
}

/* ── Zoek input ── */
.at-zoek-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #1e2e34;
    border-radius: 8px;
    font-size: 13.5px;
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #1e2e34;
}
.at-zoek-input:focus {
    border-color: #E4FA00;
    background: #1e2e34;
    box-shadow: 0 0 0 3px rgba(212,240,0,0.15);
}

/* ── Resultaten header ── */
.at-resultaten-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.at-aantal { font-size: 22px; font-weight: 700; color: #ffffff; margin: 0; }

.at-sorter {
    padding: 9px 36px 9px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13.5px;
    color: #d1d5db;
    background: #1e2e34 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}
.at-sorter:focus { border-color: #111827; }

/* ── Grid — altijd 3 kolommen ── */
.at-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px)  { .at-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .at-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════
   KAART
   ══════════════════════════════════════════════ */
.at-card {
    background: #101A1E;
    border-style: solid;
    border-width: 1px;
    border-color: #1e2e34;
    border-radius: 120px 15px 15px 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Foto: binnen padding + ronde hoeken */
.at-card__slider {
    margin: 25px 25px 0 25px;
    border-radius: 100px 10px 10px 10px;
    overflow: hidden;
    background: #0d1518;
    flex-shrink: 0;
    position: relative;
    height: 0;
    padding-top: 59%;
}

.at-card__body {
    padding: 20px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Elke slide vult de container volledig */
.at-slide {
    position: absolute;
    top: -7%;
    left: 0;
    right: 0;
    bottom: -7%;
    display: none;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.at-slide.active {
    display: block;
}
/* Img verborgen: we gebruiken background-image op de .at-slide zelf */
.at-slide img {
    display: none !important;
}

/* Pijlen */
.at-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.55);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.at-arrow:hover {
    background: rgba(30, 30, 30, 0.85);
}
.at-prev { left: 10px; }
.at-next { right: 10px; }

/* Dots verborgen */
.at-dots { display: none; }

.at-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.25;
}

/* Specs: jaar | km | transmissie | brandstof */
.at-card__specs {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 14px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Scheidingslijn boven prijs */
.at-card__divider {
    border: none;
    border-top: 1px solid #1e2e34;
    margin: 16px 0 0;
}

.at-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    margin-top: auto;
}

.at-card__prijs {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}
.at-prijs { color: #ffffff; }
.at-prijs-oud {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}
.at-prijs-actie { color: #dc2626; }

/* Bekijk-knop: geel, afgeronde hoeken */
a.at-btn-bekijk,
.at-voorraad-wrap a.at-btn-bekijk,
.at-card a.at-btn-bekijk,
.atd-ook-card a.at-btn-bekijk {
    display: inline-block;
    background: #E4FA00;
    color: #111827 !important;
    font-family: Helvetica, Verdana, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1em !important;
    padding: 10px 20px !important;
    border-radius: 3px !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, transform 0.12s;
    cursor: pointer;
    letter-spacing: 0;
    box-sizing: border-box;
}
.at-btn-bekijk:hover,
a.at-btn-bekijk:hover,
.at-card a.at-btn-bekijk:hover,
.atd-ook-card a.at-btn-bekijk:hover {
    background: #ffffff !important;
    color: #111827 !important;
    transform: translateY(-1px);
}

/* Geen resultaten */
.at-geen-voorraad,
.at-geen-resultaten {
    padding: 48px 32px;
    text-align: center;
    color: #8fa3ab;
    background: transparent;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    font-size: 15px;
    letter-spacing: .01em;
}
.at-geen-resultaten a { color: #E4FA00; font-weight: 600; }


/* =============================================
   Detail pagina — volledig nieuw
   ============================================= */

.atd-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
    width: 100%;
}
@media (max-width: 1024px) {
    .atd-wrap {
        grid-template-columns: 1fr;
        /* Gallery boven, info eronder */
        grid-template-rows: auto auto;
    }
    .atd-gallery { grid-row: 1; }
    .atd-info    { grid-row: 2; }
}

/* Gallery: niet sticky, scrollt gewoon mee met pagina */
.atd-gallery {
    position: relative;
    min-width: 0;
}

.atd-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0d1518;
    /* padding-top met 59% verhouding = inhoudsverhouding zonder witte randen */
    height: 0;
    padding-top: 66.72%;
    width: 100%;
    margin-bottom: 12px;
    cursor: zoom-in;
}
.atd-slides { position: absolute; inset: 0; }
.atd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    overflow: hidden;
}
.atd-slide.active { opacity: 1; }
.atd-slide img {
    /* Gebruik background aanpak voor witte rand crop */
    display: none !important;
}
/* Background-image wordt via JS op .atd-slide gezet */
.atd-slide {
    background-size: cover;
    background-position: center 51%;
    background-repeat: no-repeat;
}

.atd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,20,20,0.55);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.atd-arrow:hover { background: rgba(20,20,20,0.85); }
.atd-prev { left: 14px; }
.atd-next { right: 14px; }

.atd-teller {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.50);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.04em;
}

.atd-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}
.atd-thumbs::-webkit-scrollbar { height: 4px; }
.atd-thumbs::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

.atd-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 34px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: #0d1518;
    opacity: 0.65;
    transition: opacity 0.15s, border-color 0.15s;
    position: relative;
}
.atd-thumb img { display: none !important; }
/* Negatieve positioned div voor crop witte randen */
.atd-thumb-inner {
    position: absolute;
    top: -7%;
    left: 0;
    right: 0;
    bottom: -7%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.atd-thumb:hover { opacity: 0.9; }
.atd-thumb.active { border-color: #E4FA00; opacity: 1; }

/* Info kolom: niet sticky, scrollt gewoon mee */
.atd-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative; /* geen sticky */
}

.atd-titel { font-size: 28px; font-weight: 700; color: #ffffff; margin: 0 0 10px; line-height: 1.2; }

.atd-meta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid #1e2e34;
    border-bottom: 1px solid #1e2e34;
}
.atd-meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.atd-meta-icon {
    display: flex;
    align-items: center;
    color: #E4FA00;
    line-height: 1;
    margin-bottom: 4px;
}
.atd-meta-icon svg {
    stroke: #E4FA00;
}
.atd-meta-waarde {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.atd-meta-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.atd-prijs { font-size: 34px; font-weight: 700; color: #ffffff; line-height: 1; }

.atd-blok { border-top: 1px solid #1e2e34; padding-top: 24px; }
.atd-blok-titel { font-size: 16px; font-weight: 700; color: #ffffff; margin: 0 0 16px; }

.atd-specs-lijst { list-style: none; padding: 0; margin: 0; }
.atd-specs-lijst li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid #1e2e34;
    font-size: 14px;
    gap: 12px;
}
.atd-specs-lijst li:last-child { border-bottom: none; }
.atd-key { color: #9ca3af; font-weight: 400; flex-shrink: 0; min-width: 140px; }
.atd-val { color: #ffffff; font-weight: 600; text-align: right; }

.atd-omschrijving { font-size: 14px; line-height: 1.75; color: #d1d5db; }
.atd-omschrijving p { margin: 0 0 12px; }
.atd-omschrijving p:last-child { margin: 0; }

/* ── Detail body: volle breedte onder de gallery/info ── */
.atd-body {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.atd-sectie {
    padding: 36px 0;
    border-top: 1px solid #1e2e34;
}
.atd-sectie:first-child { border-top: none; }

.atd-sectie-titel {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
}

/* Specs grid: 5 kolommen zoals AutoTelex */
.atd-specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 16px;
}
@media (max-width: 900px)  { .atd-specs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .atd-specs-grid { grid-template-columns: repeat(2, 1fr); } }

.atd-spec-item { display: flex; flex-direction: column; gap: 4px; }
.atd-spec-key  { font-size: 13px; color: #9ca3af; }
.atd-spec-val  { font-size: 14px; font-weight: 600; color: #ffffff; }

/* Accessoires uitklapper */
.atd-acc-blok { border-top: 1px solid #1e2e34; }
.atd-acc-rij  { border-bottom: 1px solid #1e2e34; }
.atd-acc-rij:last-child { border-bottom: none; }

.atd-acc-btn {
    display: flex;
    align-items: center;
    width: 100%;
    /* Geen achtergrond, geen border-radius — puur tekst */
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 16px 0 !important;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff !important;
    cursor: pointer;
    text-align: left;
    gap: 10px;
    transition: none;
    transform: none !important;
}
.atd-acc-btn:hover {
    background: none !important;
    font-weight: 700;
    color: #000 !important;
    transform: none !important;
}
.atd-acc-count {
    font-weight: 400;
    color: #9ca3af;
    font-size: 14px;
}
.atd-acc-chevron {
    font-size: 18px;
    color: #9ca3af;
    transition: transform 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}
.atd-acc-btn[aria-expanded="true"] .atd-acc-chevron { transform: rotate(90deg); }
.atd-acc-btn[aria-expanded="true"] { font-weight: 700; }

.atd-acc-inhoud { padding: 8px 0 16px; }
.atd-acc-lijst {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 3;
    column-gap: 24px;
}
@media (max-width: 768px) { .atd-acc-lijst { columns: 2; } }
@media (max-width: 500px) { .atd-acc-lijst { columns: 1; } }
.atd-acc-lijst li {
    font-size: 14px;
    color: #d1d5db;
    padding: 4px 0;
    break-inside: avoid;
}
.atd-acc-lijst li::before { content: '— '; color: #3d5560; }

/* Omschrijving inklapbaar */
.atd-tekst-wrap {
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.atd-tekst-wrap.open { max-height: 2000px; }
.atd-tekst-inhoud { font-size: 14px; line-height: 1.75; color: #d1d5db; }
.atd-tekst-inhoud p { margin: 0 0 12px; }

.atd-tekst-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #0a1214);
    transition: opacity 0.3s;
}
.atd-tekst-wrap.open .atd-tekst-fade { opacity: 0; pointer-events: none; }

.atd-lees-meer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: #E4FA00;
    color: #111827;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 10px !important;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.12s;
}
.atd-lees-meer:hover { background: #ffffff !important; color: #111827 !important; transform: translateY(-1px); }

/* Ook interessant — zelfde design als voorraadkaartjes */
.atd-ook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) { .atd-ook-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .atd-ook-grid { grid-template-columns: 1fr; } }

.atd-ook-card {
    background: #101A1E;
    border-style: solid;
    border-width: 1px;
    border-color: #1e2e34;
    border-radius: 120px 15px 15px 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.atd-ook-card a { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }

.atd-ook-foto {
    margin: 25px 25px 0 25px;
    border-radius: 100px 10px 10px 10px;
    overflow: hidden;
    background: #0d1518;
    flex-shrink: 0;
    position: relative;
    height: 0;
    padding-top: 59%;
}
.atd-ook-foto .atd-ook-slide {
    position: absolute;
    top: -7%;
    left: 0;
    right: 0;
    bottom: -7%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.atd-ook-foto img { display: none !important; }

.atd-ook-body {
    padding: 16px 25px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.atd-ook-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
}
.atd-ook-specs {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 14px;
    line-height: 1.5;
}
.atd-ook-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #1e2e34;
    padding-top: 16px;
    margin-top: auto;
}
.atd-ook-prijs {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
a.atd-ook-btn,
.atd-ook-card a.atd-ook-btn {
    display: inline-block;
    background: #E4FA00;
    color: #111827 !important;
    font-family: Helvetica, Verdana, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1em !important;
    padding: 10px 20px !important;
    border-radius: 3px !important;
    border: none !important;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.12s;
    box-sizing: border-box;
}
.atd-ook-btn:hover,
a.atd-ook-btn:hover { background: #ffffff !important; color: #111827 !important; transform: translateY(-1px); }

/* ── Info rechts: verticaal gecentreerd ── */
.atd-info {
    display: flex;
    align-items: start;
    min-height: 0;
}
.atd-info-inner {
    width: 100%;
}

/* Buttons contact / inruil */
.atd-knoppen {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.atd-btn {
    display: inline-block;
    background: #E4FA00;
    color: #111827;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 10px !important;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.12s;
    text-decoration: none;
}
.atd-btn:hover {
    background: #ffffff !important;
    color: #111827 !important;
    transform: translateY(-1px);
}
/* Inruilvoorstel knop: zelfde stijl */
.atd-btn--primary,
.atd-btn--secondary {
    background: #E4FA00;
    color: #111827;
}
.atd-btn--primary:hover,
.atd-btn--secondary:hover {
    background: #ffffff !important;
    color: #111827 !important;
}

/* Thumbs: vierkant/rechthoekig, geen border-radius */
.atd-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;         /* klein beetje, bijna vierkant */
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: #f4f4f4;
    opacity: 0.65;
    transition: opacity 0.15s, border-color 0.15s;
}
.atd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atd-thumb:hover { opacity: 0.9; }
.atd-thumb.active { border-color: #111827; opacity: 1; }

/* Afleverpakketten grid */
.atd-pakketten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 4px;
}
.atd-pakket {
    border: 1px solid #1e2e34;
    border-radius: 8px;
    padding: 14px 16px;
    background: #1e2e34;
}
.atd-pakket-naam {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.atd-pakket-prijs {
    font-size: 13px;
    color: #9ca3af;
}

/* ── Modals ── */
/* ── Off-canvas overlay ── */
.atd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.atd-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── Off-canvas paneel ── */
.atd-modal {
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 560px;
    height: 100vh;
    overflow-y: auto;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}
.atd-modal.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* ── Off-canvas paneel (inruil) — breder want meer velden ── */
#atd-modal-inruil {
    max-width: 520px;
}

@media (max-width: 540px) {
    .atd-modal {
        max-width: 100%;
        border-radius: 12px 0 0 0;
    }
}

.atd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 2;
}
.atd-modal-close {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 22px;
    cursor: pointer;
    color: #374151;
    padding: 0 !important;
    line-height: 1;
    transition: color 0.15s;
    transform: none !important;
}
.atd-modal-close:hover {
    color: #E4FA00 !important;
    background: none !important;
    transform: none !important;
}

.atd-modal-body {
    /* padding-top 110px = admin bar (32) + header (~65) + lucht */
    padding: 110px 24px 24px;
    flex: 1;
}
/* Zonder admin bar (uitgelogd) iets minder */
body:not(.admin-bar) .atd-modal-body {
    padding-top: 80px;
}

/* Formulier stijl */
.atd-form-sectie-titel {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 20px 0 12px;
}
.atd-form-sectie-titel:first-child { margin-top: 0; }

.atd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 420px) { .atd-form-row { grid-template-columns: 1fr; } }

.atd-form-col { display: flex; flex-direction: column; gap: 5px; }
.atd-form-col--full { grid-column: 1 / -1; }

.atd-form-col label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}
.atd-form-col input,
.atd-form-col textarea,
.atd-form-col select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.15s;

}
.atd-form-col input:focus,
.atd-form-col textarea:focus { border-color: #111827; }
.atd-form-col textarea { resize: vertical; min-height: 80px; }

.if-kenteken-input {
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.atd-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}
.atd-check-label input { width: 16px; height: 16px; accent-color: #111827; }

.atd-form-feedback {
    font-size: 13px;
    margin: 12px 0;
    min-height: 18px;
}
.atd-form-feedback--ok    { color: #16a34a; }
.atd-form-feedback--error { color: #dc2626; }

.atd-form-submit {
    width: 100%;
    padding: 13px 20px;
    background: #E4FA00;
    color: #111827;
    border: none;
    border-radius: 10px !important;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    margin-top: 8px;
    text-transform: none;
}
.atd-form-submit:hover:not(:disabled) { background: #ffffff !important; color: #111827 !important; transform: translateY(-1px); }
.atd-form-submit:disabled { opacity: 0.6; cursor: default; }


.atd-options-accordion {
    margin-top: 24px;
}

.atd-option-group {
    border-top: 1px solid #d9d9d9;
    padding: 0;
}

.atd-option-group:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.atd-option-group summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 44px 16px 0;
    font-size: 16px;
    font-weight: 600;
    position: relative;
}

.atd-option-group summary::-webkit-details-marker {
    display: none;
}

.atd-option-group summary::after {
    content: "›";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
}

.atd-option-group[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.atd-option-content {
    padding: 0 0 20px 0;
}

/* Opties & Accessoires — indeling zoals AutoTelex voorbeeld */
.atd-options-accordion {
    margin-top: 18px;
    border-bottom: 1px solid #2f2f2f;
}

.atd-option-group {
    border-top: 1px solid #2f2f2f;
    margin: 0;
    padding: 0;
}

.atd-option-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 14px 18px 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    color: #080808;
    position: relative;
}

.atd-option-group summary::-webkit-details-marker {
    display: none;
}

.atd-option-group summary::after {
    content: "›";
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
    color: #080808;
    transform: rotate(0deg);
    transition: transform .18s ease;
}

.atd-option-group[open] summary::after {
    transform: rotate(90deg);
}

.atd-option-count {
    display: none;
}

.atd-option-content {
    padding: 0 0 22px;
}

.atd-option-list {
    columns: 3;
    column-gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.atd-option-list li {
    break-inside: avoid;
    margin: 0 0 8px;
    padding-left: 16px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}

.atd-option-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 768px) {
    .atd-option-list { columns: 2; }
    .atd-option-group summary { font-size: 18px; }
}

@media (max-width: 520px) {
    .atd-option-list { columns: 1; }
}


/* AutoTelex font inheritance */
.autotelex-voorraad,
.autotelex-voorraad *,
.at-wrapper,
.at-wrapper *,
.at-voorraad,
.at-voorraad *,
.atd-page,
.atd-page *,
.atd-wrap,
.atd-wrap *,
.atd-section,
.atd-section *,
.atd-options-accordion,
.atd-options-accordion * {
    font-family: inherit;
}


/* AutoTelex typography + accordion consistency */
.atd-options-accordion {
    margin-top: 16px;
    border-radius: 15px;
    overflow: hidden;
}

.atd-option-group {
    border-top: 1px solid #ECECEC;
    background: transparent;
}

.atd-option-group:last-child {
    border-bottom: 1px solid #ECECEC;
}

.atd-option-group summary {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: inherit;
    padding: 16px 44px 16px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.atd-option-group summary::-webkit-details-marker {
    display: none;
}

.atd-option-group summary::after {
    content: "›";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    color: currentColor;
    opacity: .75;
}

.atd-option-group[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.atd-option-content {
    padding: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
}

.atd-option-content,
.atd-option-content li,
.atd-option-content p,
.atd-option-content span {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.atd-section h2,
.atd-section-title,
.atd-options-title {
    font-family: inherit;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

@media (max-width: 767px) {
    .atd-option-group summary {
        font-size: 15px;
        padding: 14px 38px 14px 0;
    }

    .atd-option-content,
    .atd-option-content li,
    .atd-option-content p,
    .atd-option-content span {
        font-size: 13px;
    }
}


/* Fix Optiepakketten accordion row so it matches the other option rows */
.atd-options-accordion {
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.atd-options-accordion details,
.atd-options-accordion .atd-option-group,
.atd-options-accordion .atd-option-group:last-child {
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
}

.atd-options-accordion .atd-option-group {
    border-top: 1px solid #d9d9d9 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    margin: 0 !important;
}

.atd-options-accordion .atd-option-group:last-child {
    border-bottom: 1px solid #d9d9d9 !important;
}

.atd-options-accordion .atd-option-group summary {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 16px 44px 16px 0 !important;
    min-height: auto !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: inherit !important;
}

.atd-options-accordion .atd-option-group summary::after {
    right: 12px !important;
    font-size: 24px !important;
    color: currentColor !important;
    opacity: .75 !important;
}

.atd-options-accordion .atd-option-group[open] summary::after {
    transform: translateY(-50%) rotate(90deg) !important;
}


/* Detail page thumbnail + right column alignment fix */
.atd-wrap,
.atd-detail-wrap,
.atd-top,
.atd-hero {
    align-items: center !important;
}

.atd-info,
.atd-sidebar,
.atd-detail-info,
.atd-right {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-self: center !important;
    height: 100% !important;
}

.atd-thumbs,
.atd-gallery-thumbs,
.atd-thumb-row {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: 18px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
}

.atd-thumb,
.atd-gallery-thumb,
.atd-thumb-item {
    width: 96px !important;
    min-width: 96px !important;
    height: 72px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    border: 1px solid #ECECEC !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.atd-thumb img,
.atd-gallery-thumb img,
.atd-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
}

.atd-thumb.is-active,
.atd-gallery-thumb.is-active,
.atd-thumb-item.is-active,
.atd-thumb.active,
.atd-gallery-thumb.active,
.atd-thumb-item.active {
    border-color: #1f2937 !important;
}

@media (max-width: 1024px) {
    .atd-wrap,
    .atd-detail-wrap,
    .atd-top,
    .atd-hero {
        align-items: flex-start !important;
    }

    .atd-info,
    .atd-sidebar,
    .atd-detail-info,
    .atd-right {
        justify-content: flex-start !important;
    }

    .atd-thumb,
    .atd-gallery-thumb,
    .atd-thumb-item {
        width: 82px !important;
        min-width: 82px !important;
        height: 62px !important;
    }
}


/* Restore Opties & Accessoires section */
.atd-options,
.atd-options-accordion,
.atd-option-group,
.atd-option-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.atd-options-accordion {
    width: 100% !important;
    margin-top: 28px !important;
}

.atd-option-group {
    width: 100% !important;
    border-top: 1px solid #E5E5E5 !important;
    background: transparent !important;
}

.atd-option-group:last-child {
    border-bottom: 1px solid #E5E5E5 !important;
}

.atd-option-group summary {
    list-style: none !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 18px 48px 18px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.atd-option-group summary::-webkit-details-marker {
    display: none !important;
}

.atd-option-group summary::after {
    content: "›" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 24px !important;
    opacity: .7 !important;
}

.atd-option-group[open] summary::after {
    transform: translateY(-50%) rotate(90deg) !important;
}

.atd-option-content {
    padding: 0 0 20px 0 !important;
}

.atd-option-content ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    columns: 3 !important;
    column-gap: 40px !important;
}

.atd-option-content li {
    break-inside: avoid !important;
    padding: 0 0 14px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

@media (max-width: 767px) {
    .atd-option-content ul {
        columns: 1 !important;
    }
}


/* Fix divider under Optiepakketten */
.atd-option-group:last-child,
.atd-options-accordion .atd-option-group:last-child,
.atd-options-accordion details:last-child {
    border-bottom: 1px solid #E5E5E5 !important;
    box-shadow: none !important;
}

.atd-options-accordion hr,
.atd-options-divider,
.atd-option-divider {
    border: 0 !important;
    border-top: 1px solid #E5E5E5 !important;
    height: 0 !important;
    background: transparent !important;
    margin: 0 !important;
}


/* Final fix for Optiepakketten divider */
.atd-options-accordion .atd-option-group:last-child,
.atd-options-accordion details:last-child {
    border-bottom: 1px solid #DCDCDC !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.atd-options-accordion .atd-option-group:last-child::after,
.atd-options-accordion details:last-child::after {
    display: none !important;
}

.atd-options-accordion {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.atd-options-accordion hr,
.atd-options-accordion::after,
.atd-options::after {
    display: none !important;
}


/* Remove unwanted bullet/icon before option text */
.atd-option-content ul,
.atd-option-content ol,
.atd-option-content li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.atd-option-content li::before,
.atd-option-content li::marker,
.atd-option-content ul li::before,
.atd-option-content ul li::marker {
    content: none !important;
    display: none !important;
}

/* =============================================
   Mobiele filter — off-canvas drawer
   ============================================= */

/* Verberg filterbalk op mobiel standaard */
@media (max-width: 767px) {

    /* Overschrijf de 2-koloms grid naar 1 kolom */
    .at-voorraad-wrap {
        grid-template-columns: 1fr !important;
    }

    /* Filterbalk: off-canvas van links */
    #at-filters {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 85vw;
        max-width: 320px;
        height: 100%;
        overflow-y: auto;
        background: #101A1E;
        z-index: 9999;
        padding: 20px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        border-right: none;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }

    #at-filters.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Backdrop */
    .at-mobile-filter-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .at-mobile-filter-backdrop.is-open {
        display: block;
        opacity: 1;
    }

    /* Sluit-knop: puur × teken */
    .at-mobile-filter-close {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 24px;
        line-height: 1;
        color: #ffffff !important;
        cursor: pointer;
        padding: 0 0 16px 0 !important;
        margin-bottom: 8px;
        border-bottom: 1px solid #1e2e34;
        transform: none !important;
    }
    .at-mobile-filter-close:hover {
        color: #E4FA00 !important;
        background: none !important;
        transform: none !important;
    }

    /* Filter drawer donker thema overrides */
    #at-filters .at-filter-groep {
        border-bottom-color: #1e2e34 !important;
    }
    #at-filters .at-filter-titel {
        color: #ffffff !important;
        background: none !important;
    }
    #at-filters .at-check span,
    #at-filters label {
        color: #d1d5db !important;
    }
    #at-filters .at-range-labels span {
        color: #ffffff !important;
    }
    #at-filters .at-zoek-input {
        background: #1a2c33 !important;
        color: #ffffff !important;
        border-color: #1e2e34 !important;
    }
    #at-filters .at-zoek-input::placeholder {
        color: #6b7280 !important;
    }
    #at-filters .at-dual-range::before {
        background: #1e2e34 !important;
    }
    #at-filters #at-reset-filters {
        color: #9ca3af !important;
        background: none !important;
        border-color: #1e2e34 !important;
    }

    /* Filters tonen knop — gele knop zoals kaartjes */
    .at-mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: #E4FA00 !important;
        color: #111827 !important;
        border: none !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        padding: 13px 20px !important;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        margin-bottom: 16px;
        transform: none !important;
    }
    .at-mobile-filter-toggle:hover {
        background: #ffffff !important;
        color: #111827 !important;
        transform: none !important;
    }

    /* Scroll lock */
    body.at-mobile-filters-open {
        overflow: hidden;
    }
}

/* Verberg toggle op desktop */
@media (min-width: 768px) {
    .at-mobile-filter-toggle { display: none; }
    .at-mobile-filter-backdrop { display: none; }
    .at-mobile-filter-close { display: none; }
}

/* ── Kleur overrides: hoge specificiteit om Astra/Elementor te winnen ── */
#at-voorraad .at-card,
.at-voorraad-wrap .at-card {
    background: #101A1E !important;
    border-color: #1e2e34 !important;
}
#at-voorraad .at-card__title,
.at-voorraad-wrap .at-card__title {
    color: #ffffff !important;
}
#at-voorraad .at-card__specs,
.at-voorraad-wrap .at-card__specs {
    color: #9ca3af !important;
}
#at-voorraad .at-card__prijs,
.at-voorraad-wrap .at-card__prijs,
#at-voorraad .at-prijs,
.at-voorraad-wrap .at-prijs {
    color: #ffffff !important;
}
#at-voorraad .at-card__divider,
.at-voorraad-wrap .at-card__divider {
    border-top-color: #1e2e34 !important;
}
/* Filter sidebar */
#at-filters .at-filter-titel {
    color: #ffffff !important;
}
#at-filters .at-check span,
#at-filters .at-check label {
    color: #d1d5db !important;
}
#at-filters .at-filter-groep {
    border-bottom-color: #1e2e34 !important;
}
#at-filters .at-range-labels span {
    color: #ffffff !important;
}
#at-filters {
    border-right-color: #1e2e34 !important;
}
/* Aantal tekst */
#at-aantal-tekst {
    color: #ffffff !important;
}
/* Ook interessant */
.atd-ook-card {
    background: #101A1E !important;
    border-color: #1e2e34 !important;
}
.atd-ook-body h3 { color: #ffffff !important; }
.atd-ook-specs   { color: #9ca3af !important; }
.atd-ook-prijs   { color: #ffffff !important; }
.atd-ook-footer  { border-top-color: #1e2e34 !important; }
/* Detail pagina */
.atd-sectie-titel { color: #ffffff !important; }
.atd-spec-key     { color: #9ca3af !important; }
.atd-spec-val     { color: #ffffff !important; }
.atd-titel        { color: #ffffff !important; }
.atd-prijs        { color: #ffffff !important; }
.atd-meta-bar span { color: #9ca3af !important; }
.atd-sectie       { border-top-color: #1e2e34 !important; }
.atd-specs-lijst li { border-bottom-color: #1e2e34 !important; }
.atd-blok         { border-top-color: #1e2e34 !important; }
.atd-acc-btn      { color: #ffffff !important; background: none !important; }
.atd-acc-lijst li { color: #d1d5db !important; }

/* ── Lightbox ──────────────────────────────────────────────────────── */
.atd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.atd-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.atd-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.atd-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    /* Crop witte randen ook in lightbox */
    clip-path: inset(5.625% 0% 5.417% 0%);
}
.atd-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.atd-lightbox-close:hover { opacity: 1; }
.atd-lightbox-prev,
.atd-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.atd-lightbox-prev { left: 16px; }
.atd-lightbox-next { right: 16px; }
.atd-lightbox-prev:hover,
.atd-lightbox-next:hover { background: rgba(255,255,255,0.25); }
.atd-lightbox-teller {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 0.05em;
}


/* ── Verkocht badge & kaart stijlen ─────────────────────────────── */
/* .at-verkocht-badge verwijderd */

.at-card--verkocht .at-card__slider {
    position: relative;
}

/* Lichte overlay op de foto om de "verkocht" staat te benadrukken */
.at-card--verkocht .at-card__slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.18);
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
}

.at-card__prijs--verkocht {
    color: #e4fa00;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: .02em;
}

/* Volledig brede resultaten (geen sidebar filters) */
.at-resultaten--vol {
    width: 100%;
}

/* ── Verkochte wrap: geen sidebar, volledige breedte ── */
.at-verkocht-wrap {
    display: block !important;
    grid-template-columns: unset !important;
}

.at-verkocht-wrap .at-resultaten--vol {
    width: 100%;
}

/* ── Detail pagina: verkocht badge & prijs ──────────────────────── */
/* .atd-verkocht-badge verwijderd */

.atd-slider {
    position: relative;
}

.atd-prijs--verkocht,
.atd-prijs.atd-prijs--verkocht,
div.atd-prijs--verkocht {
    color: #e4fa00 !important;
    font-weight: 700;
}

/* ── Afleverpakketten — uitgebreide weergave ─────────────────────── */
.atd-pakketten-lijst {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atd-pakket {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 16px 20px;
    background: rgba(255,255,255,.03);
}

.atd-pakket-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.atd-pakket-titel {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.atd-pakket-naam {
    font-weight: 600;
    font-size: 15px;
    color: var(--at-text, #f0f4f5);
}

.atd-pakket-code {
    font-size: 11px;
    color: #6b7280;
    background: rgba(255,255,255,.06);
    border-radius: 4px;
    padding: 2px 7px;
    font-family: monospace;
    letter-spacing: .04em;
}

.atd-pakket-prijs {
    font-weight: 700;
    font-size: 15px;
    color: var(--at-accent, #E4FA00);
    white-space: nowrap;
    flex-shrink: 0;
}

.atd-pakket-min  { color: #e74c3c; font-weight: 400; font-size: 12px; }
.atd-pakket-meer { color: #e4fa00; font-weight: 400; font-size: 12px; }

.atd-pakket-omschrijving {
    margin: 8px 0 0;
    font-size: 13px;
    color: #8fa3ab;
    line-height: 1.55;
}

.atd-pakket-onderdelen {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.atd-pakket-onderdelen li {
    font-size: 12px;
    color: #8fa3ab;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    padding: 3px 10px;
    line-height: 1.4;
}

/* ── Deel-knop ──────────────────────────────────────────────────────── */
.atd-deel-wrap {
    position: relative;
    margin-top: 12px;
}

.atd-btn.atd-btn--deel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.15);
    color: #8fa3ab !important;
    font-family: Helvetica, Verdana, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1em !important;
    padding: 10px 20px !important;
    border-radius: 3px !important;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    width: 100%;
}

.atd-btn.atd-btn--deel:hover {
    background: rgba(255,255,255,.05) !important;
    border-color: rgba(255,255,255,.3);
    color: #d0dde0 !important;
}

.atd-deel-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a2c33;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 50;
    grid-template-columns: 1fr 1fr;
}

.atd-deel-optie {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    color: #c8d8dd;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0 !important;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-align: left;
    box-shadow: none !important;
    outline: none;
}

/* Kopieer link en E-mail: onderste rij, geen border */
.atd-deel-optie:nth-last-child(-n+2) {
    border-bottom: none;
}

.atd-deel-optie:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.atd-deel-dropdown.is-open {
    display: grid;
}

/* ── PDF download knop ──────────────────────────────────────────── */
.atd-pdf-wrap {
    margin-top: 10px;
}

.atd-btn.atd-btn--pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    color: #8fa3ab !important;
    font-family: Helvetica, Verdana, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1em !important;
    padding: 10px 20px !important;
    border-radius: 3px !important;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    width: 100%;
    text-decoration: none;
    text-align: center;
    border-style: solid !important;
}

.atd-btn.atd-btn--pdf:hover {
    background: rgba(255,255,255,.05) !important;
    border-color: rgba(255,255,255,.3) !important;
    color: #d0dde0 !important;
}

/* ── Deel + PDF naast elkaar ─────────────────────────────────────── */
.atd-knoppen {
    margin-bottom: 0;
}

.atd-knoppen + .atd-secundair-wrap::before,
.atd-deel-wrap + .atd-pdf-wrap {
    /* spacer via wrapper */ 
}

.atd-secundair-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.atd-secundair-wrap .atd-deel-wrap,
.atd-secundair-wrap .atd-pdf-wrap {
    margin-top: 0;
    position: relative;
}

.atd-secundair-wrap .atd-btn.atd-btn--deel,
.atd-secundair-wrap .atd-btn.atd-btn--pdf {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px !important;
    line-height: 1em;
}

/* Dropdown opent naar boven zodat hij niet over PDF knop valt */
.atd-secundair-wrap .atd-deel-dropdown {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    /* Rekt uit tot buiten de eigen kolom: de wrap is 2x breed */
    width: calc(200% + 10px); /* 2 kolommen + gap */
}

/* ═══════════════════════════════════════════
   HOMEPAGE SLIDER
   ═══════════════════════════════════════════ */

.at-slider-wrap {
    width: 100%;
    position: relative;
}

.at-slider-viewport {
    overflow: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

.at-slider-track {
    display: flex;
    gap: 20px;
    user-select: none;
    align-items: stretch;
    /* Geen transform meer — scrollLeft regelt de positie */
}

/* Kaartjes in de slider: zelfde .at-card stijlen, alleen flex-basis anders */
.at-slider-track .at-card.at-slider-item {
    flex: 0 0 calc((100% - 40px) / 3);
    margin-right: 0; /* gap regelt de ruimte */
}

@media (max-width: 900px) {
    .at-slider-track .at-card.at-slider-item {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .at-slider-track .at-card.at-slider-item {
        flex: 0 0 100%;
    }
}

/* ── Navigatie ── */
.at-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.at-slider-prev,
.at-slider-next {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.at-slider-prev:hover,
.at-slider-next:hover {
    background: rgba(255,255,255,.2);
}

.at-slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.at-slider-dot,
.at-slider-wrap .at-slider-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.3) !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    transition: background .2s;
    flex-shrink: 0;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.at-slider-dot.active,
.at-slider-wrap .at-slider-dot.active {
    background: #E4FA00 !important;
    transform: none !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
}

/* ── Montserrat Bold voor plugin-koppen (sluit aan bij Astra-thema) ── */
.atd-wrap .atd-titel,
.atd-sectie-titel,
.atd-body .atd-sectie-titel,
.atd-specs-grid .atd-spec-val,
.atd-wrap h1,
.atd-wrap h2,
.atd-wrap h3,
.atd-wrap h4,
.atd-wrap h5,
.atd-wrap h6,
.atd-body h1,
.atd-body h2,
.atd-body h3,
.atd-body h4,
.atd-body h5,
.atd-body h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
}

/* ── Buttons: Helvetica 15px 400 (passend bij Astra body-tekst) ── */
.atd-btn,
.atd-btn--primary,
.atd-btn--secondary,
.atd-btn--deel,
.atd-btn--pdf,
.at-btn-bekijk,
.at-slider-prev,
.at-slider-next,
.atd-deel-optie {
    font-family: Helvetica, Verdana, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* ── Button padding & font uniformering ─────────────────────────── */
.atd-btn,
.atd-btn--primary,
.atd-btn--secondary,
.at-btn-bekijk,
.atd-lees-meer {
    padding: 10px 20px !important;
    font-family: Helvetica, Verdana, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* ── Astra button settings: padding 10/20, border 0, radius 3px ─── */
.atd-btn,
.atd-btn--primary,
.atd-btn--secondary,
.at-btn-bekijk,
.atd-lees-meer,
.atd-ook-btn,
.at-slider-prev,
.at-slider-next {
    padding: 10px 20px !important;
    border-width: 0 !important;
    border-radius: 3px !important;
    font-family: Helvetica, Verdana, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* ── Deel en PDF knoppen: border herstellen ─────────────────────── */
.atd-btn.atd-btn--deel,
.atd-btn.atd-btn--pdf {
    border: 1px solid rgba(255,255,255,.15) !important;
    border-style: solid !important;
    border-width: 1px !important;
}

/* ── Foto upload inruil formulier ───────────────────────────────── */
.atd-form-optioneel {
    font-size: 12px;
    color: #8fa3ab;
    font-weight: 400;
}

.atd-foto-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .atd-foto-slots { grid-template-columns: repeat(2, 1fr); }
}

.atd-foto-slot {
    position: relative;
    aspect-ratio: 3/2;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.atd-foto-slot:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.atd-foto-slot-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.atd-foto-slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    color: #888;
    font-size: 11.5px;
    font-weight: 500;
    text-align: center;
    padding: 10px 8px 8px;
    pointer-events: none;
    user-select: none;
    line-height: 1.3;
}

.atd-foto-slot-nr {
    position: absolute;
    top: 6px;
    left: 7px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #c0c0c0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.atd-foto-slot-cam {
    width: 28px;
    height: 28px;
    stroke: #ccc;
    flex-shrink: 0;
    margin-top: 4px;
}

.atd-foto-slot-preview {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.atd-foto-slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atd-foto-slot-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50% !important;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none !important;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    z-index: 2;
    font-weight: 400 !important;
}

.atd-schade-teller {
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 2px 0;
}

.atd-foto-slot.has-foto {
    border-color: #888;
}

.atd-upload-tip {
    font-size: 11.5px;
    color: #999;
    margin-top: 8px;
    line-height: 1.5;
}

/* Verkocht badge op kaartje */
.at-card__verkocht-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 2;
}
