/* ============================================================
   TITV Homepage — Shop & Events secties
   Huisstijl: oranje #D57239 | bordeaux #520B0F | lavendel #E1D9EE
   ============================================================ */

/* --- Gedeelde basis --- */
.titv-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.titv-label {
    font-family: var(--wp--preset--font-family--titv-body), sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.4rem;
}

.titv-section-heading {
    font-family: var(--wp--preset--font-family--titv-heading), serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 400;
    color: #520B0F;
    margin-bottom: 0.6rem;
    line-height: 1.15;
}

.titv-section-sub {
    font-family: var(--wp--preset--font-family--titv-body), sans-serif;
    color: #666;
    font-size: 16px;
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.titv-no-items {
    color: #888;
    font-style: italic;
    padding: 1.5rem 0;
}

/* --- Filtertabs --- */
.titv-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.titv-filter-tab {
    padding: 5px 16px;
    font-size: 13px;
    font-family: var(--wp--preset--font-family--titv-body), sans-serif;
    border-radius: 9999px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    color: #444;
}

.titv-filter-tab.active {
    background: #D57239;
    color: #fff;
    border-color: #D57239;
    font-weight: 500;
}

.titv-filter-tab:hover:not(.active) {
    border-color: #D57239;
    color: #D57239;
}

/* --- Taxonomy dropdown-filters (pill-stijl) --- */
.titv-extra-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.titv-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 5px 28px 5px 16px;
    font-size: 13px;
    font-family: var(--wp--preset--font-family--titv-body), sans-serif;
    border: 1px solid #ddd;
    border-radius: 9999px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: #444;
    cursor: pointer;
    transition: all 0.18s ease;
}

.titv-filter-select:hover {
    border-color: #D57239;
    color: #D57239;
}

.titv-filter-select:focus {
    outline: none;
    border-color: #D57239;
    color: #520B0F;
}

/* Actieve staat: zelfde look als .titv-filter-tab.active */
.titv-filter-select.is-active {
    background-color: #D57239;
    color: #fff;
    border-color: #D57239;
    font-weight: 500;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* --- CTA knoppen --- */
.titv-section-cta {
    text-align: center;
    margin-top: 2rem;
}

.titv-btn-outline {
    display: inline-block;
    padding: 11px 24px;
    border: 1.5px solid #D57239;
    border-radius: 9999px;
    font-size: 14px;
    font-family: var(--wp--preset--font-family--titv-body), sans-serif;
    color: #D57239;
    text-decoration: none;
    transition: all 0.18s ease;
}

.titv-btn-outline:hover {
    background: #D57239;
    color: #fff;
}

/* ============================================================
   SHOP SECTIE
   ============================================================ */
.titv-shop-section {
    padding: 4rem 0;
    border-top: 1px solid #f0eee9;
}

.titv-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.titv-product-card {
    background: #fff;
    border: 1px solid #ede8e2;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.titv-product-card:hover {
    box-shadow: 0 6px 20px rgba(213, 114, 57, 0.12);
    transform: translateY(-2px);
}

.titv-product-card[style*="display: none"] {
    display: none !important;
}

.titv-product-img-link {
    display: block;
    text-decoration: none;
}

.titv-product-img {
    height: 150px;
    background: #E1D9EE;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.titv-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.titv-product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E1D9EE 0%, #CBBDE1 100%);
}

.titv-product-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.titv-product-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #D57239;
    background: #fdf3ec;
    padding: 2px 9px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 7px;
}

.titv-product-name {
    font-family: var(--wp--preset--font-family--titv-heading), serif;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.titv-product-name a {
    color: #520B0F;
    text-decoration: none;
}

.titv-product-name a:hover {
    color: #D57239;
}

.titv-product-price del {
    color: #aaa;
    font-size: 12px;
    font-weight: 400;
}

.titv-product-price ins {
    text-decoration: none;
    color: #D57239;
}

.titv-product-price {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #520B0F;
    flex: 1;
}

.titv-product-btn {
    display: block;
    padding: 9px 12px;
    text-align: center;
    background: transparent;
    border: 1.5px solid #D57239;
    color: #D57239 !important;
    border-radius: 9999px;
    font-size: 13px;
    font-family: var(--wp--preset--font-family--titv-body), sans-serif;
    text-decoration: none !important;
    transition: all 0.18s ease;
    margin-top: auto;
}

.titv-product-btn:hover {
    background: #D57239;
    color: #fff !important;
}

/* ============================================================
   EVENTS SECTIE
   ============================================================ */
.titv-events-section {
    padding: 4rem 0;
    background: #FFFAFA;
}

.titv-events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.titv-events-all-link {
    font-size: 14px;
    color: #D57239;
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.titv-events-all-link:hover {
    border-bottom-color: #D57239;
}

.titv-month-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.titv-month-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1.5px solid #CBBDE1;
    border-radius: 9999px;
    font-size: 13px;
    font-family: var(--wp--preset--font-family--titv-body), sans-serif;
    color: #520B0F;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.titv-month-btn:hover {
    border-color: #D57239;
    color: #D57239;
}

.titv-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.titv-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #ede8e2;
    border-radius: 14px;
    padding: 14px 20px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
    color: inherit;
}

.titv-event-card:hover {
    border-color: #D57239;
    box-shadow: 0 3px 12px rgba(213, 114, 57, 0.08);
}

.titv-event-card[style*="display: none"] {
    display: none !important;
}

.titv-event-date {
    min-width: 52px;
    text-align: center;
    background: #E1D9EE;
    border-radius: 10px;
    padding: 9px 7px;
    flex-shrink: 0;
}

.titv-event-day {
    display: block;
    font-family: var(--wp--preset--font-family--titv-heading), serif;
    font-size: 22px;
    font-weight: 600;
    color: #520B0F;
    line-height: 1;
}

.titv-event-month {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #D57239;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.titv-event-info {
    flex: 1;
    min-width: 0;
}

.titv-event-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.titv-event-title {
    font-family: var(--wp--preset--font-family--titv-heading), serif;
    font-size: 15px;
    font-weight: 400;
    color: #520B0F;
    text-decoration: none;
}

.titv-event-title:hover {
    color: #D57239;
}

.titv-event-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Badge-kleuren per categorie */
.titv-badge-workshop      { background: #E1F5EE; color: #0F6E56; }
.titv-badge-online        { background: #E1D9EE; color: #520B0F; }
.titv-badge-event         { background: #fdf3ec; color: #b85f2a; }
.titv-badge-hq            { background: #fdf3ec; color: #b85f2a; }
.titv-badge-gratis        { background: #E1F5EE; color: #0F6E56; }
.titv-badge-online-pill   { background: #E1D9EE; color: #520B0F; }

.titv-event-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.titv-meta-sep {
    color: #ccc;
}

.titv-event-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.titv-event-price {
    font-size: 14px;
    font-weight: 600;
    color: #520B0F;
    white-space: nowrap;
}

.titv-event-btn {
    font-size: 12px;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid #D57239;
    border-radius: 9999px;
    color: #D57239;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.titv-event-btn:hover {
    background: #D57239;
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .titv-events-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .titv-event-card {
        flex-wrap: wrap;
    }

    .titv-event-right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .titv-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .titv-month-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .titv-products-grid {
        grid-template-columns: 1fr;
    }

    .titv-filter-tabs {
        gap: 6px;
    }

    .titv-filter-tab {
        font-size: 12px;
        padding: 4px 12px;
    }
}
