/* ── Teamkledij Frontend Styles ─────────────────────────────────────────── */

.tk-shop { font-family: inherit; }

/* ── FILTERBAR ───────────────────────────────────────────────────────────── */
.tk-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tk-filter-btn {
    padding: 8px 18px;
    border-radius: 24px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}
.tk-filter-btn:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}
.tk-filter-btn.tk-filter-actief {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

/* ── GRID ────────────────────────────────────────────────────────────────── */
.tk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    align-items: start;
}

/* ── PRODUCT CARD ────────────────────────────────────────────────────────── */
.tk-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.tk-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-3px);
}
.tk-product-card.tk-verborgen {
    display: none;
}

/* ── PRODUCT AFBEELDING ──────────────────────────────────────────────────── */
.tk-product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.tk-product-card:hover .tk-product-img img {
    transform: scale(1.04);
}
.tk-product-img-icon {
    font-size: 4rem;
    opacity: .4;
}

/* Categorie pill op de afbeelding */
.tk-cat-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 9px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ── PRODUCT BODY ────────────────────────────────────────────────────────── */
.tk-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.tk-product-naam {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.tk-product-beschr {
    font-size: .82rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* ── PRIJZEN ─────────────────────────────────────────────────────────────── */
.tk-product-prijzen {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    justify-content: flex-end;
    text-align: right;
}
.tk-prijs-blok {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-end;
}
.tk-prijs-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    font-weight: 700;
}
.tk-prijs {
    font-size: .95rem;
    font-weight: 800;
    color: #111827;
}
.tk-stock {
    font-size: .72rem;
    font-weight: 600;
}
.tk-stock-ok   { color: #16a34a; }
.tk-stock-leeg { color: #dc2626; }

.tk-prijs-waarborg-label {
    font-size: .68rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: right;
}

/* ── ACTIE BUTTONS ───────────────────────────────────────────────────────── */
.tk-product-acties {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    justify-content: flex-start;
}
.tk-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.tk-btn:active { transform: scale(.97); }

.tk-btn-koop            { background: #1d4ed8; color: #fff; flex: 1; justify-content: center; }
.tk-btn-koop:hover      { background: #1e40af; }
.tk-btn-ontleen         { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; flex: 1; justify-content: center; }
.tk-btn-ontleen:hover   { background: #e5e7eb; }
.tk-btn-primary         { background: #1d4ed8; color: #fff; padding: 10px 20px; }
.tk-btn-primary:hover   { background: #1e40af; }
.tk-btn-secondary       { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; padding: 10px 20px; }
.tk-btn-secondary:hover { background: #e5e7eb; }

/* ── MODAL ───────────────────────────────────────────────────────────────── */
.tk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tk-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.tk-modal-box h3 { margin-top: 0; font-size: 1.2rem; }
.tk-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.tk-modal-close:hover { background: #e5e7eb; }
.tk-modal-info {
    background: #eff6ff;
    border-left: 3px solid #1d4ed8;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: .9rem;
    margin-bottom: 16px;
}
.tk-modal-box label {
    display: block;
    font-size: .83rem;
    font-weight: 700;
    margin: 12px 0 4px;
    color: #374151;
}
.tk-modal-box input[type="text"],
.tk-modal-box input[type="email"],
.tk-modal-box input[type="tel"],
.tk-modal-box input[type="number"],
.tk-modal-box input[type="date"],
.tk-modal-box select,
.tk-modal-box textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .9rem;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.tk-modal-box input:focus,
.tk-modal-box select:focus,
.tk-modal-box textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.tk-datum-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tk-modal-totaal {
    margin-top: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #1d4ed8;
}
.tk-modal-acties {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── FEEDBACK ────────────────────────────────────────────────────────────── */
.tk-feedback {
    margin-top: 10px;
    font-size: .88rem;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
}
.tk-feedback.success { background:#d1fae5; color:#065f46; display:block; }
.tk-feedback.error   { background:#fee2e2; color:#991b1b; display:block; }
.tk-feedback.loading { background:#eff6ff; color:#1e40af; display:block; }

/* ── PER-MAAT STOCK TABEL ────────────────────────────────────────────────── */
.tk-maten-stock-tabel {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 8px 0 4px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}
.tk-ms-rij {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
}
.tk-ms-maat {
    font-weight: 700;
    color: #374151;
    min-width: 50px;
}
.tk-ms-stock {
    font-weight: 600;
    font-size: .75rem;
}
.tk-ms-ontleen { font-size: .72rem; font-weight: 600; color: #2563eb; }
.tk-ms-ok        { color: #16a34a; }
.tk-ms-leeg      { color: #9ca3af; }
.tk-ms-backorder { color: #7c3aed; }

/* ── BACKORDER HINT IN MODAL ─────────────────────────────────────────────── */
.tk-hint-backorder {
    color: #7c3aed;
    font-weight: 600;
    background: #ede9fe;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: .8rem;
}

/* ── MAATHINT ────────────────────────────────────────────────────────────── */
.tk-maat-hint   { font-size: .8rem; margin-top: 4px; font-weight: 600; min-height: 18px; }
.tk-hint-ok     { color: #16a34a; }
.tk-hint-leeg   { color: #dc2626; }

/* ── DIVERSEN ────────────────────────────────────────────────────────────── */
.tk-empty { color: #6b7280; font-style: italic; margin-top: 24px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .tk-filterbar { gap: 6px; }
    .tk-filter-btn { padding: 6px 14px; font-size: .8rem; }
}
@media (max-width: 480px) {
    .tk-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tk-modal-box { padding: 20px; }
    .tk-datum-row { grid-template-columns: 1fr; }
    .tk-product-body { padding: 12px; }
    .tk-product-naam { font-size: .9rem; }
}

/* ── WINKELMANDJE ────────────────────────────────────────────────────────── */
.tk-mandje-wrap {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}
.tk-mandje {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.tk-mandje-titel {
    margin: 0 0 14px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tk-mandje-badge {
    background: #1d4ed8;
    color: #fff;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: auto;
}
.tk-mandje-leeg { color: #9ca3af; font-size: .88rem; text-align: center; padding: 16px 0; }

.tk-mandje-item {
    border-top: 1px solid #f3f4f6;
    padding: 10px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 8px;
}
.tk-mandje-item-info { grid-column: 1 / 3; }
.tk-mandje-naam  { font-weight: 700; font-size: .85rem; }
.tk-mandje-maat  { color: #6b7280; font-size: .8rem; margin-left: 4px; }
.tk-mandje-backorder { display:inline-block; background:#ede9fe; color:#5b21b6; font-size:.68rem; font-weight:700; padding:1px 6px; border-radius:10px; margin-left:4px; }
.tk-mandje-item-ctrl { display: flex; align-items: center; gap: 4px; }
.tk-mandje-item-ctrl button {
    width: 24px; height: 24px; border-radius: 6px; border: 1px solid #d1d5db;
    background: #f9fafb; cursor: pointer; font-size: .85rem; display:flex; align-items:center; justify-content:center; padding:0;
}
.tk-mandje-item-ctrl button:hover { background: #e5e7eb; }
.tk-mandje-del { color: #dc2626 !important; }
.tk-mandje-aantal { font-size: .85rem; font-weight: 700; min-width: 20px; text-align: center; }
.tk-mandje-sub { font-size: .85rem; font-weight: 700; text-align: right; align-self: center; }

.tk-mandje-totaal-rij {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 2px solid #e5e7eb; margin-top: 8px; padding-top: 10px;
    font-size: .95rem;
}

@media (max-width: 768px) {
    .tk-mandje-wrap { width: 100%; position: static; }
    #tk-grid + .tk-mandje-wrap { margin-top: 24px; }
    [style*="display:flex;gap:24px"] { flex-direction: column !important; }
}

/* Ontleenmandje varianten */
.tk-mandje-badge-ontleen { background: #059669; }
.tk-btn-ontleen-submit {
    background: #059669;
    color: #fff;
    padding: 10px 20px;
}
.tk-btn-ontleen-submit:hover { background: #047857; }

/* ── FOTO SLIDER ─────────────────────────────────────────────────────────── */
.tk-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
}
/* Alle slides zijn hidden, enkel actieve zichtbaar */
.tk-slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tk-slide.tk-slide-actief {
    display: block;
}
.tk-slide-prev,
.tk-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    padding: 0;
    line-height: 1;
}
.tk-product-card:hover .tk-slide-prev,
.tk-product-card:hover .tk-slide-next { opacity: 1; }
.tk-slide-prev { left: 6px; }
.tk-slide-next { right: 6px; }
.tk-slide-prev:hover,
.tk-slide-next:hover { background: rgba(0,0,0,.75); }

.tk-slide-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}
.tk-slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s;
    border: none;
    padding: 0;
}
.tk-slide-dot.tk-dot-actief,
.tk-slide-dot:hover { background: #fff; }

/* ── GLOBALE INFO BANNER ─────────────────────────────────────────────────── */
.tk-globale-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #1d4ed8;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: .93rem;
    line-height: 1.6;
    color: #1e3a5f;
}
.tk-globale-info strong { color: #1d4ed8; }
.tk-globale-info a { color: #1d4ed8; }

/* ── LEVERINGSKEUZE ──────────────────────────────────────────────────────── */
.tk-levering-keuze {
    display: flex;
    gap: 10px;
    margin: 6px 0 12px;
    flex-wrap: wrap;
}
.tk-levering-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 140px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.tk-levering-opt:has(input:checked) {
    border-color: #1d4ed8;
    background: #eff6ff;
}
.tk-levering-opt input[type="radio"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    accent-color: #1d4ed8;
}
.tk-levering-opt-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tk-levering-opt-label strong { font-size: .88rem; }
.tk-levering-opt-sub { font-size: .78rem; color: #6b7280; }

.tk-afhaling-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .85rem;
    color: #78350f;
    margin-bottom: 12px;
}

/* ── MAATTABEL ───────────────────────────────────────────────────────────── */
.tk-btn-maattabel {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
    font-size: .78rem;
    padding: 5px 10px;
    text-decoration: none;
    gap: 4px;
}
.tk-btn-maattabel:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.tk-modal-maattabel-box {
    max-width: 700px !important;
}

/* ── LIGHTBOX ────────────────────────────────────────────────────────────── */
.tk-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
#tk-lb-img-wrap {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#tk-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    user-select: none;
}
#tk-lb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s;
}
#tk-lb-close:hover { background: rgba(255,255,255,.3); }
#tk-lb-prev, #tk-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}
#tk-lb-prev { left: 16px; }
#tk-lb-next { right: 16px; }
#tk-lb-prev:hover, #tk-lb-next:hover { background: rgba(255,255,255,.3); }
#tk-lb-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.tk-lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s;
}
.tk-lb-dot.tk-lb-dot-actief,
.tk-lb-dot:hover { background: #fff; }

/* ── SECTIELIJN IN MODAL ─────────────────────────────────────────────────── */
.tk-sectie-lijn {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin: 16px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

/* ── MANDJE TYPE-BADGES ──────────────────────────────────────────────────── */
.tk-mandje-type-koop {
    display: inline-block;
    background: #dbeafe; color: #1e40af;
    font-size: .68rem; font-weight: 700;
    padding: 1px 6px; border-radius: 10px; margin-right: 4px;
}
.tk-mandje-type-ontleen {
    display: inline-block;
    background: #d1fae5; color: #065f46;
    font-size: .68rem; font-weight: 700;
    padding: 1px 6px; border-radius: 10px; margin-right: 4px;
}
.tk-mandje-sectie-info {
    border-top: 1px solid #f3f4f6;
    padding-top: 6px; margin-top: 4px;
}

/* ── AFREKENEN TOTAALBLOK ────────────────────────────────────────────────── */
.tk-afr-totaal-rij {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: .88rem;
}
.tk-afr-totaal-rij-groot {
    border-top: 2px solid #d1fae5;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 1rem;
}

/* ── MANDJE TOTAAL FINAAL ────────────────────────────────────────────────── */
.tk-mandje-totaal-finaal {
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 8px;
}
.tk-mandje-totaal-rij-groot {
    font-size: 1rem;
    font-weight: 700;
}

/* ── BESCHRIJVING TRUNCATIE ──────────────────────────────────────────────── */
.tk-beschr-ellipsis { color: #9ca3af; }
.tk-beschr-meer {
    background: none;
    border: none;
    color: #1d4ed8;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.tk-beschr-meer:hover { color: #1e40af; }

/* Tooltip via title attribuut wordt door browser getoond bij hover —
   voor een mooier ballontje: custom CSS tooltip */
.tk-product-beschr.tk-beschr-kort {
    position: relative;
    cursor: default;
}
.tk-product-beschr.tk-beschr-kort .tk-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    background: #1f2937;
    color: #fff;
    font-size: .8rem;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    width: 260px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    pointer-events: none;
    white-space: normal;
}
.tk-product-beschr.tk-beschr-kort:hover .tk-tooltip { display: block; }

.tk-beschr-minder {
    background: none;
    border: none;
    color: #6b7280;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.tk-beschr-minder:hover { color: #374151; }

/* ── LEDENPRIJS ──────────────────────────────────────────────────────────── */
.tk-prijs-leden-blok { border-left: 2px solid #ddd6fe; padding-left: 8px; }
.tk-prijs-leden { color: #5b21b6 !important; }
