/* ==========================================================
   Arman_Alerter – Vergelijkbare Banden Slider
   Stijl gebaseerd op BandenKopen CategoryTabs v2
   ========================================================== */

.alerter-wrapper {
    width: 100%;
    background: #f8f9fb;
    border-top: 1px solid #edf0f4;
    padding: 28px 0 30px;
    box-sizing: border-box;
    margin: 0 0 32px;
}

/* ---------- Header ---------- */
.alerter-header {
    text-align: center;
    margin-bottom: 18px;
    padding: 0 20px;
}

.alerter-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #21314b;
    margin: 0 0 6px;
    line-height: 1.2;
}

.alerter-header .alerter-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ---------- Tabs: goedkoper / duurder ---------- */
.alerter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.alerter-tab-btn {
    cursor: pointer;
    border: 2px solid #21314b;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #21314b;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.alerter-tab-btn[aria-selected="true"] {
    background: #21314b;
    border-color: #21314b;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(33, 49, 75, 0.3);
}

.alerter-tab-btn:hover {
    background: #EF5B33;
    border-color: #EF5B33;
    color: #fff;
}

/* ---------- Slider wrapper met pijlen ---------- */
.alerter-slider-outer {
    position: relative;
    padding: 0 52px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .alerter-slider-outer { padding: 0 40px; }
}

/* Pijlknoppen */
.alerter-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #21314b;
    background: #fff;
    color: #21314b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.alerter-arrow:hover {
    background: #EF5B33;
    border-color: #EF5B33;
    color: #fff;
}

.alerter-arrow--prev { left: 6px; }
.alerter-arrow--next { right: 6px; }

.alerter-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Track ---------- */
.alerter-track-clip {
    overflow: hidden;
    border-radius: 4px;
}

.alerter-track {
    display: flex;
    gap: 16px;
    padding: 6px 2px 12px;
    scroll-behavior: smooth;
    /* No overflow-x scroll — JS handles transform */
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ---------- Panel (goedkoper / duurder) ---------- */
.alerter-panel {
    display: flex;
    flex-shrink: 0;
    gap: 16px;
}

.alerter-panel--hidden {
    display: none;
}

/* ---------- Card ---------- */
.alerter-card {
    flex: 0 0 170px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    position: relative;
    overflow: visible;
    animation: bk-card-in 0.25s ease both;
}

@keyframes bk-card-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alerter-card:hover {
    box-shadow: 0 12px 36px rgba(33,49,75,0.18), 0 0 0 2px #21314b;
    border-color: #21314b;
    transform: translateY(-4px);
    text-decoration: none !important;
    z-index: 10;
}

/* Badge */
.alerter-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.6;
}

.alerter-badge--cheaper {
    background: #e6f5ed;
    color: #1a7a4a;
    border: 1px solid #b3dfc3;
}

.alerter-badge--expensive {
    background: #fff0ee;
    color: #EF5B33;
    border: 1px solid #f5c4b8;
}

/* Afbeelding */
.alerter-card__image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 30px 16px 10px;
    box-sizing: border-box;
    display: block;
}

/* Body */
.alerter-card__body {
    padding: 0 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.alerter-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #21314b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    margin-bottom: 8px;
}

/* Prijs */
.alerter-card__price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 4px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    margin-top: auto;
}

.alerter-card__price-label {
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

.alerter-card__price {
    font-size: 20px;
    font-weight: 800;
    color: #21314b;
    line-height: 1.1;
}

.alerter-card__original-price {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
}

/* Verschil pill */
.alerter-card__diff {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 6px;
    white-space: nowrap;
}

.alerter-card__diff--save {
    background: #e6f5ed;
    color: #1a7a4a;
}

.alerter-card__diff--extra {
    background: #fff0ee;
    color: #EF5B33;
}

/* CTA knop onderaan */
.alerter-card__cta {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 12px 12px;
    width: calc(100% - 24px);
    padding: 8px 10px;
    background: #21314b;
    color: #fff !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.alerter-card:hover .alerter-card__cta {
    background: #EF5B33;
}

/* ---------- Geen resultaten ---------- */
.alerter-empty {
    text-align: center;
    padding: 30px 20px;
    color: #aaa;
    font-size: 14px;
    width: 100%;
}

/* ---------- Teller ---------- */
.alerter-count {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .alerter-card { flex: 0 0 148px; }
    .alerter-card__image { height: 110px; }
    .alerter-header h2 { font-size: 17px; }
}
