/* ═══════════════════════════════════════════════════════════
   Island Tides Festival 2.0 - Frontend Styles
   ═══════════════════════════════════════════════════════════ */

:root {
    --itf-primary: #60adc5;
    --itf-primary-dark: #2b6576;
    --itf-primary-light: #d8eaf0;
    --itf-primary-rgb: 96, 173, 197;
    --itf-secondary: #c4889b;
    --itf-accent: #3d9970;
    --itf-danger: #c0392b;
    --itf-warning: #e67e22;
    --itf-success: #27ae60;
    --itf-info: #2980b9;
    --itf-text: #333;
    --itf-text-light: #666;
    --itf-border: #e0e0e0;
    --itf-bg: #f8f9fa;
    --itf-card-bg: #fff;
    --itf-radius: 12px;
    --itf-radius-sm: 8px;
    --itf-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --itf-shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --itf-transition: all 0.3s ease;
    --itf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Base ────────────────────────────────────────────── */

.itf-input {
    width: 100%;
    padding: 10px 14px !important;
    border: 1.5px solid var(--itf-border) !important;
    border-radius: var(--itf-radius-sm);
    font-size: 15px;
    font-family: var(--itf-font);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--itf-text) !important;
    box-sizing: border-box;
}

.itf-input:focus {
    outline: none;
    border-color: var(--itf-primary);
    box-shadow: 0 0 0 3px rgba(var(--itf-primary-rgb), 0.15);
}

.itf-input::placeholder {
    color: #aaa;
}

/* ─── Buttons ─────────────────────────────────────────── */

.itf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--itf-radius-sm);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--itf-font);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--itf-transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.itf-btn-primary {
    background: var(--itf-primary);
    color: #fff;
    border-color: var(--itf-primary);
}

.itf-btn-primary:hover {
    background: var(--itf-primary-dark);
    border-color: var(--itf-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--itf-shadow);
}

.itf-btn-outline {
    background: transparent;
    color: var(--itf-primary);
    border-color: var(--itf-primary);
}

.itf-btn-outline:hover {
    background: var(--itf-primary);
    color: #fff;
}

.itf-btn-danger {
    background: var(--itf-danger);
    color: #fff;
    border-color: var(--itf-danger);
}

.itf-btn-disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    border-color: #ccc;
}

.itf-btn-block { width: 100%; }
.itf-btn-lg { padding: 14px 28px; font-size: 16px; }
.itf-btn-sm { padding: 6px 14px; font-size: 13px; }

.itf-btn-link {
    background: none;
    border: none;
    color: var(--itf-primary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

/* ─── Loading States ──────────────────────────────────── */

.itf-loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--itf-text-light);
}

.itf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: var(--itf-primary);
    border-radius: 50%;
    animation: itfSpin 0.7s linear infinite;
    margin: 0 auto 12px;
}

.itf-spinner-lg {
    width: 56px;
    height: 56px;
    border: 4px solid #eee;
    border-top-color: var(--itf-primary);
    border-radius: 50%;
    animation: itfSpin 0.7s linear infinite;
    margin: 0 auto 16px;
}

@keyframes itfSpin {
    to { transform: rotate(360deg); }
}

.itf-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--itf-text-light);
}

.itf-empty-state .dashicons,
.itf-empty-state .fas {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
    display: block;
}

/* ─── Schedule ────────────────────────────────────────── */

.itf-schedule-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Schedule Header (festival banner) */
.itf-schedule-header {
    background: linear-gradient(135deg, var(--itf-primary), var(--itf-accent));
    color: #fff;
    text-align: center;
    padding: 48px 24px;
    border-radius: var(--itf-radius);
    margin-bottom: 24px;
    position: relative;
}

.itf-schedule-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
}

.itf-schedule-header p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

/* Filter Bar */
.itf-schedule-filters {
    margin-bottom: 20px;
}

.itf-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--itf-card-bg);
    padding: 16px 20px;
    border-radius: var(--itf-radius);
    box-shadow: var(--itf-shadow);
}

.itf-filter-dropdowns {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.itf-filter-select {
    padding: 9px 32px 9px 12px;
    border: 1.5px solid var(--itf-border);
    border-radius: var(--itf-radius-sm);
    font-size: 14px;
    font-family: var(--itf-font);
    color: var(--itf-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.itf-filter-select:hover {
    border-color: var(--itf-primary);
}

.itf-filter-select:focus {
    outline: none;
    border-color: var(--itf-primary);
    box-shadow: 0 0 0 3px rgba(var(--itf-primary-rgb), 0.15);
}

.itf-filter-search-wrap {
    min-width: 220px;
}

input[type=text].itf-filter-search-input {
    width: 100%;
}

/* Date Pills */
.itf-date-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 24px;
    justify-content: center;
}

.itf-date-pill {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid #ebe6e7;
    background: #fff;
    color: var(--itf-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--itf-font);
    transition: var(--itf-transition);
}

.itf-date-pill:hover {
    border:1px solid var(--itf-primary);
}

.itf-date-pill.active {
    background: var(--itf-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(var(--itf-primary-rgb), 0.3);
}

/* Schedule Toolbar (date pills + map toggle) */
.itf-schedule-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.itf-schedule-toolbar .itf-date-pills {
    margin: 0;
    flex: 1;
    justify-content: flex-start;
}

.itf-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.itf-map-toggle i {
    font-size: 15px;
}

.itf-map-toggle.active {
    background: var(--itf-primary);
    color: #fff;
    border-color: var(--itf-primary);
}

/* Schedule Map */
.itf-schedule-map {
    display: none;
    border-radius: var(--itf-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    margin-bottom: 24px;
    border: 1px solid #ebe6e7;
}

.itf-schedule-map__canvas {
    width: 100%;
    height: 380px;
}

.itf-map-no-locations {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.85);
    z-index: 1;
    pointer-events: none;
}

.itf-map-no-locations i {
    font-size: 32px;
    color: var(--itf-primary);
    margin-bottom: 8px;
    opacity: .5;
}

.itf-map-no-locations p {
    margin: 0;
    font-size: 15px;
    color: #888;
    font-family: var(--itf-font);
}

.itf-schedule-map {
    position: relative;
}

/* ─── Venue Map Page ───────────────────────────────────── */
.itf-venue-map-wrap {
    display: flex;
    gap: 0;
    height: 700px;
    border-radius: var(--itf-radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.10);
    border: 1px solid #ebe6e7;
    background: var(--itf-card-bg, #fff);
}

.itf-venue-sidebar {
    width: 360px;
    min-width: 320px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #ebe6e7;
    background: #fafafa;
}

.itf-venue-sidebar__title {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--itf-primary);
    background: #fafafa;
    border-bottom: 1px solid #ebe6e7;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--itf-font);
}

.itf-venue-sidebar__title i {
    font-size: 16px;
}

.itf-venue-sidebar__count {
    margin-left: auto;
    background: var(--itf-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    line-height: 1.4;
}

.itf-venue-sidebar__empty {
    padding: 32px 20px;
    color: #888;
    text-align: center;
    font-size: 15px;
}

.itf-venue-sidebar__list {
    padding: 8px 0;
}

.itf-venue-card {
    padding: 14px 20px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    border-bottom: 1px solid #f0ecec;
}

.itf-venue-card:last-child {
    border-bottom: none;
}

.itf-venue-card:hover,
.itf-venue-card--active {
    background: #fff;
    box-shadow: inset 4px 0 0 var(--itf-primary);
}

.itf-venue-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.itf-venue-card__thumb {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
}

.itf-venue-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itf-venue-card__thumb .itf-venue-card__number {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    LINE-HEIGHT: 20px;
    padding-top: 2px;
    height: 20px;
    font-size: 10px;
    border: 1px solid #fafafa;
    border-radius: 5px;
}

.itf-venue-card__number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--itf-secondary, #c4889b);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.itf-venue-card--active .itf-venue-card__number,
.itf-venue-card:hover .itf-venue-card__number {
    background: var(--itf-primary);
}

.itf-venue-card__info {
    flex: 1;
    min-width: 0;
}

.itf-venue-card__name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--itf-primary);
    line-height: 1.3;
    font-family: var(--itf-font);
    padding-bottom: 0;
}

.itf-venue-card__address {
    margin: 3px 0 0;
    font-size: 11px;
    color: #999;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.itf-venue-card__address i {
    font-size: 10px;
    flex-shrink: 0;
    position: relative;
    top: 0;
}

.itf-venue-card__event-count {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
}

.itf-venue-map {
    flex: 1;
    min-height: 0;
    position: relative;
}

.itf-venue-map__canvas {
    width: 100%;
    height: 100%;
}

/* Venue map responsive */
@media (max-width: 900px) {
    .itf-venue-map-wrap {
        flex-direction: column;
        height: auto;
    }
    .itf-venue-sidebar {
        width: 100%;
        min-width: 0;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #ebe6e7;
        order: 2;
    }
    .itf-venue-map {
        min-height: 400px;
        order: 1;
    }
    .itf-venue-map__canvas {
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .itf-venue-sidebar {
        max-height: 250px;
    }
    .itf-venue-card {
        padding: 12px 16px;
    }
}

/* ─── Venue Map Toggle Buttons ─────────────────────────── */
.itf-venue-map-toggles {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.itf-venue-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--itf-primary);
    border-radius: var(--itf-radius, 8px);
    background: transparent;
    color: var(--itf-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--itf-font);
    cursor: pointer;
    transition: all .2s;
}

.itf-venue-toggle:hover {
    background: rgba(44, 110, 73, .08);
}

.itf-venue-toggle--active {
    background: var(--itf-primary);
    color: #fff;
}

.itf-venue-toggle--active:hover {
    background: var(--itf-primary);
    opacity: .9;
}

/* ─── Venue Carousel ───────────────────────────────────── */
.itf-venue-carousel {
    margin-top: 24px;
}

.itf-venue-carousel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.itf-venue-carousel__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--itf-primary);
    font-family: var(--itf-font);
    display: flex;
    align-items: center;
    gap: 8px;
}

.itf-venue-carousel__title i {
    font-size: 18px;
}

.itf-venue-carousel__nav {
    display: flex;
    gap: 8px;
}

.itf-venue-carousel__prev,
.itf-venue-carousel__next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--itf-border);
    background: #fff;
    color: var(--itf-primary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.itf-venue-carousel__prev:hover,
.itf-venue-carousel__next:hover {
    background: var(--itf-primary);
    border-color: var(--itf-primary);
    color: #fff;
}

.itf-venue-carousel__viewport {
    overflow: hidden;
}

.itf-venue-carousel__track {
    display: flex;
    gap: 20px;
}

.itf-venue-carousel__slide {
    flex: 0 0 var(--itf-slide-w, 300px);
    min-width: 0;
}

/* ─── Venue Info Cards (carousel slides) ───────────────── */
.itf-venue-info-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--itf-radius, 8px);
    overflow: hidden;
    background: var(--itf-card-bg, #fff);
    border: 1px solid #ebe6e7;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}

.itf-venue-info-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.itf-venue-info-card__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.itf-venue-info-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itf-venue-info-card__body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.itf-venue-info-card__name {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--itf-primary);
    font-family: var(--itf-font);
    line-height: 1.3;
}

.itf-venue-info-card__address {
    margin: 0 0 8px;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1.4;
}

.itf-venue-info-card__address i {
    font-size: 11px;
    flex-shrink: 0;
}

.itf-venue-info-card__desc {
    margin: 0 0 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.itf-venue-info-card__socials {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.itf-venue-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f1;
    color: var(--itf-primary);
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.itf-venue-social-icon:hover {
    background: var(--itf-primary);
    color: #fff;
}

.itf-venue-info-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0ecec;
}

.itf-venue-info-card__count {
    margin: 0;
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

.itf-venue-info-card__readmore {
    background: none;
    border: none;
    color: var(--itf-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-family: var(--itf-font);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}

.itf-venue-info-card__readmore:hover {
    color: var(--itf-secondary);
}

.itf-venue-info-card__readmore i {
    font-size: 11px;
    transition: transform .2s;
}

.itf-venue-info-card__readmore:hover i {
    transform: translateX(3px);
}

/* ─── Venue Detail Modal ───────────────────────────────── */
.itf-venue-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .55);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.itf-venue-modal-overlay--active {
    display: flex;
}

.itf-venue-modal {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    background: #fff;
    border-radius: var(--itf-radius, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.itf-venue-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.itf-venue-modal__close:hover {
    background: rgba(0,0,0,.7);
}

.itf-venue-modal__content {
    overflow-y: auto;
    flex: 1;
}

.itf-venue-modal__hero {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}

.itf-venue-modal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itf-venue-modal__body {
    padding: 24px 28px;
}

.itf-venue-modal__name {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--itf-primary);
    font-family: var(--itf-font);
    line-height: 1.3;
}

.itf-venue-modal__address {
    margin: 0 0 14px;
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.itf-venue-modal__address i {
    font-size: 12px;
}

.itf-venue-modal__socials {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.itf-venue-modal__desc {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.itf-venue-modal__desc p {
    margin: 0 0 10px;
    padding: 0;
}

.itf-venue-modal__desc p:last-child {
    margin-bottom: 0;
}

.itf-venue-modal__events {
    padding: 20px 28px 28px;
    border-top: 1px solid #ebe6e7;
    background: #fafafa;
}

.itf-venue-modal__events-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--itf-primary);
    font-family: var(--itf-font);
    display: flex;
    align-items: center;
    gap: 8px;
}

.itf-venue-modal__events-title i {
    font-size: 14px;
}

.itf-venue-modal__events-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.itf-venue-modal__events-prev,
.itf-venue-modal__events-next {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--itf-border);
    background: #fff;
    color: var(--itf-primary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.itf-venue-modal__events-prev:hover,
.itf-venue-modal__events-next:hover {
    background: var(--itf-primary);
    border-color: var(--itf-primary);
    color: #fff;
}

.itf-venue-modal__events-track {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    min-width: 0;
    padding: 4px 0;
}

.itf-venue-modal__events-track::-webkit-scrollbar {
    display: none;
}

.itf-venue-modal__event-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

.itf-venue-modal__event-link {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--itf-radius-sm, 8px);
    border: 1px solid #ebe6e7;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, border-color .2s;
    height: 100%;
    box-sizing: border-box;
}

.itf-venue-modal__event-link:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border-color: var(--itf-primary);
}

.itf-venue-modal__event-link strong {
    display: block;
    font-size: 14px;
    color: var(--itf-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.itf-venue-modal__event-meta {
    font-size: 12px;
    color: #888;
}

/* Responsive: Venue carousel + modal */
@media (max-width: 900px) {
    .itf-venue-modal {
        max-width: 100%;
    }
    .itf-venue-modal__body {
        padding: 20px 22px;
    }
    .itf-venue-modal__events {
        padding: 16px 22px 22px;
    }
}

@media (max-width: 600px) {
    .itf-venue-map-toggles {
        flex-direction: column;
    }
    .itf-venue-toggle {
        justify-content: center;
    }
    .itf-venue-modal-overlay {
        padding: 12px;
    }
    .itf-venue-modal__body {
        padding: 16px 18px;
    }
    .itf-venue-modal__events {
        padding: 14px 18px 18px;
    }
    .itf-venue-modal__event-card {
        flex: 0 0 170px;
    }
}

/* Schedule List */
.itf-schedule-list {
    margin-top: 12px;
}

.itf-date-group {
    margin-bottom: 32px;
}

.itf-date-header {
    font-size: 24px;
    font-weight: 700;
    color: var(--itf-primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--itf-primary);
}

/* ─── Event Card ───────────────────────────────────────── */
.itf-event-card {
    display: flex;
    background: var(--itf-card-bg);
    border-radius: var(--itf-radius);
    overflow: hidden;
    box-shadow: var(--itf-shadow);
    margin-bottom: 20px;
    transition: var(--itf-transition);
}

.itf-event-card:hover {
    box-shadow: var(--itf-shadow-hover);
    transform: translateY(-2px);
}

/* Card Image */
.itf-card-image {
    width: 240px;
    height: 250px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.itf-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.itf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itf-card-image-placeholder {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.itf-card-image-placeholder i {
    font-size: 48px;
    color: #ccc;
}

/* Time pill on image */
.itf-card-time {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--itf-secondary);
    color: #fff;
    padding: 4px 14px 2px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.itf-card-time i {
    font-size: 12px;
}

/* Price badge on image */
.itf-card-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    color: var(--itf-primary);
    padding: 4px 14px 2px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.itf-card-price.free {
    background: var(--itf-success);
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Card Body */
.itf-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 16px;
    min-width: 0;
}

.itf-card-content {
    flex: 1;
}

/* Category pills */
.itf-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.itf-cat-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px 0px;
    border-radius: 7px;
    color: var(--itf-primary);
    background: #EDF7F9;
    letter-spacing: 1.1px;
}

/* Card Title */
.itf-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
    padding: 0;
}

.itf-card-title a {
    color: var(--itf-text);
    text-decoration: none;
    transition: color 0.2s;
}

.itf-card-title a:hover {
    color: var(--itf-primary);
}

/* Card Meta */
.itf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
    font-size: 13px;
}

.itf-card-venue {
    color: var(--itf-secondary);
    font-weight: 500;
}

.itf-card-venue i {
    margin-right: 4px;
}

.itf-event-instructor {
    color: var(--itf-text-light);
    font-weight: 500;
}

.itf-event-instructor i {
    margin-right: 4px;
    color: var(--itf-text-light);
}

/* Card Description */
.itf-card-desc {
    font-size: 13px;
    color: var(--itf-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Card Actions Bar */
.itf-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    /* border-top: 1px solid var(--itf-border); */
}

.itf-card-actions-left {
    flex: 1;
    min-width: 0;
}

.itf-card-actions-left .itf-variation-select {
    width: 100%;
    max-width: 220px;
    padding: 8px 12px;
    border: 1.5px solid var(--itf-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--itf-font);
    color: var(--itf-text);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.itf-card-actions-left .itf-variation-select:focus {
    border-color: var(--itf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--itf-primary-rgb), 0.12);
}

.itf-card-actions-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

/* Details Link */
.itf-details-link {
    color: var(--itf-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    white-space: nowrap;
    padding: 6px 14px 3px;
    border-radius: 5px;
}

.itf-details-link:hover {
    background: #c4889b21;
}

.itf-details-link i {
    font-size: 10px;
}

/* Cart Button */
.itf-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background: var(--itf-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--itf-font);
    cursor: pointer;
    transition: var(--itf-transition);
    white-space: nowrap;
    text-decoration: none;
}

.itf-cart-btn:hover {
    background: var(--itf-primary-dark);
    color: #fff;
}

.itf-cart-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.itf-cart-btn:disabled:hover {
    background: var(--itf-primary);
}

.itf-cart-btn.itf-in-cart {
    background: #e8f5e9;
    color: #2e7d32;
    opacity: 1;
    cursor: default;
    border: 1px solid #a5d6a7;
}

.itf-cart-btn.itf-in-cart:hover {
    background: #e8f5e9;
}

/* Quantity Picker */
.itf-qty-picker {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--itf-border);
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
    flex-shrink: 0;
}

.itf-qty-picker__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 100%;
    border: none;
    background: #f5f5f5;
    color: var(--itf-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--itf-transition);
    padding: 0;
    line-height: 1;
}

.itf-qty-picker__btn:hover {
    background: #e8e8e8;
}

.itf-qty-picker__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.itf-qty-picker .itf-qty-input {
    width: 34px;
    height: 100%;
    border: none;
    border-left: 1.5px solid var(--itf-border);
    border-right: 1.5px solid var(--itf-border);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--itf-font);
    color: var(--itf-text);
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
    margin: 0;
}

.itf-qty-picker .itf-qty-input::-webkit-inner-spin-button,
.itf-qty-picker .itf-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Single event page qty picker */
.itf-sidebar-booking .itf-booking-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.itf-sidebar-booking .itf-qty-picker {
    height: 42px;
    border-radius: 8px;
    flex-shrink: 0;
}

.itf-sidebar-booking .itf-qty-picker__btn {
    width: 42px;
}

.itf-sidebar-booking .itf-qty-picker .itf-qty-input {
    width: 42px;
}

.itf-sold-out-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px 5px;
    border-radius: 6px;
    background: #888;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.itf-reg-closed-label { background: #d97706; }
.itf-reg-closed-label i { margin-right: 5px; }
.itf-event-passed-label { background: #6b7280; }
.itf-event-passed-label i { margin-right: 5px; }
.itf-tickets-soon-label { background: transparent; color: var(--itf-accent); font-weight: bold; }
.itf-tickets-soon-label i { margin-right: 5px; }
.itf-refund-cutoff-msg { color: #d97706 !important; font-size: 12px; }
.itf-refund-cutoff-msg i { margin-right: 3px; }

/* ─── Sticky Cart Bar ─────────────────────────────────── */

.itf-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    font-family: var(--itf-font);
}

.itf-sticky-cart__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--itf-border);
}

.itf-sticky-cart__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--itf-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--itf-text);
    padding: 0;
}

.itf-sticky-cart__icon {
    position: relative;
    font-size: 22px;
    color: var(--itf-primary);
}

.itf-sticky-cart__badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.itf-sticky-cart__label {
    font-size: 15px;
    color: var(--itf-text);
}

.itf-sticky-cart__arrow {
    font-size: 12px;
    color: var(--itf-text-light);
    transition: transform 0.3s ease;
}

.itf-sticky-cart.open .itf-sticky-cart__arrow {
    transform: rotate(180deg);
}

.itf-sticky-cart__summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.itf-sticky-cart__total {
    font-size: 15px;
    color: var(--itf-primary);
    font-weight: 500;
}

.itf-sticky-cart__total strong {
    font-weight: 700;
}

.itf-sticky-cart__checkout-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    border-radius: 50px;
    background: var(--itf-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--itf-transition);
}

.itf-sticky-cart__checkout-btn:hover {
    background: var(--itf-primary-dark);
    color: #fff;
}

/* Expandable Panel */
.itf-sticky-cart__panel {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
}

.itf-sticky-cart.open .itf-sticky-cart__panel {
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--itf-border);
}

.itf-sticky-cart__items {
    padding: 0 28px;
}

.itf-sticky-cart__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.itf-sticky-cart__item:last-child {
    border-bottom: none;
}

.itf-sticky-cart__item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.itf-sticky-cart__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itf-sticky-cart__item-info {
    flex: 1;
    min-width: 0;
}

.itf-sticky-cart__item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--itf-text);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itf-sticky-cart__item-meta {
    font-size: 12px;
    color: var(--itf-text-light);
}

.itf-sticky-cart__item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--itf-primary);
    flex-shrink: 0;
}

.itf-sticky-cart__item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.itf-sticky-cart__item-remove:hover {
    color: var(--itf-danger);
}

.itf-sticky-cart__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    border-top: 1px solid var(--itf-border);
    background: #fafafa;
}

.itf-sticky-cart__clear {
    background: none;
    border: none;
    color: var(--itf-text-light);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--itf-font);
    transition: color 0.2s;
}

.itf-sticky-cart__clear:hover {
    color: var(--itf-danger);
}

.itf-sticky-cart__footer-total {
    font-size: 14px;
    color: var(--itf-primary);
}

.itf-sticky-cart__footer-total strong {
    font-weight: 700;
}

/* ─── Waitlist Position (in modal) ────────────────────── */

.itf-waitlist-position {
    font-size: 15px;
    color: var(--itf-text);
    margin: 0;
    line-height: 1.5;
}
.itf-waitlist-hint {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 0 12px;
}

.itf-btn-outline {
    background: transparent;
    border: 1.5px solid var(--itf-primary);
    color: var(--itf-primary);
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--itf-transition);
}

.itf-btn-outline:hover {
    background: var(--itf-primary);
    color: #fff;
}

/* ─── Manage Waitlist Page ────────────────────────────── */

.itf-manage-waitlist {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.itf-manage-waitlist__loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--itf-text-light);
}

.itf-manage-waitlist__loading .itf-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9ecef;
    border-top-color: var(--itf-primary);
    border-radius: 50%;
    animation: itfSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes itfSpin {
    to { transform: rotate(360deg); }
}

.itf-manage-waitlist__error {
    text-align: center;
    padding: 60px 20px;
}

.itf-manage-waitlist__error i {
    font-size: 48px;
    color: #dc3545;
    display: block;
    margin-bottom: 16px;
}

.itf-manage-waitlist__error h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.itf-manage-waitlist__error p {
    color: var(--itf-text-light);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.itf-manage-waitlist__header {
    margin-bottom: 24px;
}

.itf-manage-waitlist__header h2 {
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--itf-text);
}

.itf-manage-waitlist__header h2 i {
    color: var(--itf-primary);
    margin-right: 8px;
}

.itf-manage-waitlist__header p {
    color: var(--itf-text-light);
    margin: 0;
    font-size: 15px;
}

.itf-manage-waitlist__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--itf-text-light);
}

.itf-manage-waitlist__empty i {
    font-size: 36px;
    color: var(--itf-primary);
    display: block;
    margin-bottom: 12px;
}

.itf-wl-card {
    background: var(--itf-card-bg, #fff);
    border-radius: var(--itf-radius);
    box-shadow: var(--itf-shadow);
    padding: 20px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--itf-transition);
}

.itf-wl-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.itf-wl-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.itf-wl-card__info h3 {
    margin: 0;
    font-size: 17px;
    color: var(--itf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itf-wl-card__variation {
    font-size: 13px;
    color: var(--itf-primary);
    font-weight: 500;
}

.itf-wl-card__date,
.itf-wl-card__position,
.itf-wl-card__joined {
    font-size: 13px;
    color: var(--itf-text-light);
}

.itf-wl-card__date i,
.itf-wl-card__position i,
.itf-wl-card__joined i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
}

.itf-wl-card__position {
    color: var(--itf-primary);
    font-weight: 600;
}

.itf-btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: var(--itf-transition);
}

.itf-btn-danger:hover {
    background: #c82333;
}

.itf-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .itf-wl-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .itf-wl-card .itf-btn-danger {
        align-self: flex-end;
    }
}

/* ─── Waitlist Modal ──────────────────────────────────── */

.itf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itf-modal {
    background: #fff;
    border-radius: var(--itf-radius);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    animation: itfModalIn 0.3s ease;
}

@keyframes itfModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.itf-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.itf-modal-close:hover {
    color: var(--itf-text);
}

.itf-modal h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.itf-modal p {
    color: var(--itf-text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ─── Event Card (kept for single-event pages) ────────── */

.itf-event-card {
    background: var(--itf-card-bg);
    border-radius: var(--itf-radius);
    overflow: hidden;
    box-shadow: var(--itf-shadow);
    transition: var(--itf-transition);
}

.itf-event-card:hover {
    box-shadow: var(--itf-shadow-hover);
    transform: translateY(-3px);
}

.itf-event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.itf-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.itf-event-card:hover .itf-event-image img {
    transform: scale(1.05);
}

.itf-event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: var(--itf-primary);
    color: #fff;
}

.itf-event-badge.sold-out {
    background: var(--itf-danger);
}

.itf-event-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.itf-event-category-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--itf-primary);
    margin-bottom: 6px;
}

.itf-event-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--itf-text);
    line-height: 1.3;
}

.itf-event-title a {
    color: inherit;
    text-decoration: none;
}

.itf-event-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--itf-text-light);
    margin-bottom: 10px;
}

.itf-event-meta i {
    color: var(--itf-primary);
    margin-right: 4px;
}

.itf-event-instructors {
    font-size: 13px;
    color: var(--itf-text-light);
    margin-bottom: 10px;
}

.itf-event-excerpt {
    font-size: 14px;
    color: var(--itf-text-light);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.itf-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.itf-event-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--itf-primary);
}

.itf-event-price .free {
    color: var(--itf-success);
}

/* Capacity Bar */
.itf-capacity-bar,
.itf-capacity-bar-lg {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    flex: 1;
    max-width: 120px;
}

.itf-capacity-bar-lg {
    max-width: 100%;
    height: 8px;
    margin: 12px 0 20px;
}

.itf-capacity-fill {
    height: 100%;
    background: var(--itf-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.itf-capacity-text {
    font-size: 12px;
    color: var(--itf-text-light);
    white-space: nowrap;
}

.itf-event-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.itf-event-actions .itf-variation-select {
    flex: 1;
}

.itf-event-actions .itf-add-to-cart {
    flex-shrink: 0;
}

/* ─── Shop / Products ─────────────────────────────────── */

/* Filter buttons (used by shop) */
.itf-filter-btn {
    padding: 8px 18px;
    border: 1.5px solid var(--itf-border);
    border-radius: 50px;
    background: #fff;
    color: var(--itf-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--itf-transition);
    font-family: var(--itf-font);
}

.itf-filter-btn:hover,
.itf-filter-btn.active {
    background: var(--itf-primary);
    color: #fff;
    border-color: var(--itf-primary);
}

.itf-shop-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.itf-shop-header {
    margin-bottom: 30px;
}

.itf-shop-header h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.itf-shop-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.itf-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.itf-product-card {
    background: var(--itf-card-bg);
    border-radius: var(--itf-radius);
    overflow: hidden;
    box-shadow: var(--itf-shadow);
    transition: var(--itf-transition);
}

.itf-product-card:hover {
    box-shadow: var(--itf-shadow-hover);
    transform: translateY(-3px);
}

.itf-product-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f5f5f5;
}

.itf-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.itf-product-card:hover .itf-product-image img {
    transform: scale(1.05);
}

.itf-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.itf-product-body {
    padding: 20px;
}

.itf-product-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.itf-product-excerpt {
    font-size: 14px;
    color: var(--itf-text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.itf-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.itf-product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--itf-primary);
}

.itf-product-stock {
    font-size: 12px;
}

.itf-stock-in { color: var(--itf-success); }
.itf-stock-low { color: var(--itf-warning); }
.itf-stock-out { color: var(--itf-danger); }

/* Quantity Selector */
.itf-product-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
}

.itf-qty-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--itf-border);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--itf-transition);
}

.itf-qty-btn:first-child { border-radius: var(--itf-radius-sm) 0 0 var(--itf-radius-sm); }
.itf-qty-btn:last-child  { border-radius: 0 var(--itf-radius-sm) var(--itf-radius-sm) 0; }

.itf-qty-btn:hover {
    background: var(--itf-primary-light);
    border-color: var(--itf-primary);
}

.itf-qty-input {
    width: 50px;
    height: 36px;
    border: 1.5px solid var(--itf-border);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.itf-qty-input::-webkit-outer-spin-button,
.itf-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ─── Event Detail Slideout ────────────────────────────── */

.itf-event-slideout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    pointer-events: none;
    visibility: hidden;
}

.itf-event-slideout.open {
    pointer-events: auto;
    visibility: visible;
}

.itf-event-slideout__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.itf-event-slideout.open .itf-event-slideout__overlay {
    opacity: 1;
}

.itf-event-slideout__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.itf-event-slideout.open .itf-event-slideout__panel {
    transform: translateX(0);
}

.itf-event-slideout__header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.itf-event-slideout__close,
.itf-event-slideout__share {
    width: 36px;
    height: 36px;
    padding-top: 5px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--itf-text);
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.itf-event-slideout__close {
    font-size: 26px;
}

.itf-event-slideout__close:hover,
.itf-event-slideout__share:hover {
    background: #fff;
    transform: scale(1.1);
}

.itf-event-slideout__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.itf-event-slideout__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 80px 20px;
    color: var(--itf-text-light);
    font-size: 16px;
}

.itf-event-slideout__content {
    padding-bottom: 24px;
}

/* Slideout Hero */
.itf-slideout-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--itf-bg);
}

.itf-slideout-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itf-slideout-hero__pills {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.itf-slideout-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 3px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.itf-slideout-pill--time {
    background: var(--itf-secondary);
    color: #fff;
}

.itf-slideout-pill--date {
    background: rgba(255, 255, 255, 0.92);
    color: var(--itf-text);
}

.itf-slideout-pill--price {
    background: var(--itf-secondary);
    color: #fff;
    margin-left: auto;
}

.itf-slideout-pill--price.free {
    background: rgba(39, 174, 96, 0.9);
}

/* Slideout body content */
.itf-slideout-cats {
    padding: 16px 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.itf-slideout-title {
    padding: 20px 20px 0;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--itf-text);
    line-height: 1.3;
}

/* Details grid */
.itf-slideout-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 16px 20px;
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius-sm);
    overflow: hidden;
}

.itf-slideout-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--itf-border);
    font-size: 14px;
}

.itf-slideout-detail:nth-child(odd) {
    border-right: 1px solid var(--itf-border);
}

.itf-slideout-detail:nth-last-child(-n+2) {
    border-bottom: none;
}

.itf-slideout-detail i {
    color: var(--itf-primary);
    font-size: 15px;
    margin-top: 2px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.itf-slideout-detail div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.itf-slideout-detail strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--itf-text-light);
}

.itf-slideout-detail span {
    font-size: 14px;
    color: var(--itf-text);
}

/* Venue / Location */
.itf-slideout-venue {
    padding: 0 20px;
    margin-top: 16px;
}

.itf-slideout-venue h3 {
    font-size: 16px;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--itf-text);
}

.itf-slideout-venue h3 i {
    color: var(--itf-primary);
}

.itf-slideout-venue__map {
    border-radius: var(--itf-radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 0;
}

.itf-slideout-venue__name {
    font-weight: 600;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.itf-slideout-venue__address {
    margin: 0;
    color: var(--itf-text-light);
    font-size: 14px;
}

/* Description */
.itf-slideout-description {
    padding: 0 20px;
    margin: 16px 0;
}

.itf-slideout-description h3 {
    font-size: 16px;
    margin: 0 0 10px;
    color: var(--itf-text);
}

.itf-slideout-description__body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--itf-text);
}

.itf-slideout-description__body p {
    margin: 0 0 12px;
}

.itf-slideout-description__body p:last-child {
    margin-bottom: 0;
}

/* Full details link */
.itf-slideout-fulllink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--itf-primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.itf-slideout-fulllink:hover {
    gap: 10px;
    text-decoration: none;
    color: var(--itf-primary-dark);
}

/* Error state */
.itf-slideout-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--itf-text-light);
}

/* Sold out label in slideout details */
.itf-slideout-detail .itf-sold-out {
    color: var(--itf-danger);
    font-weight: 600;
}

/* Sticky Footer */
.itf-event-slideout__footer {
    border-top: 1px solid var(--itf-border);
    padding: 16px 20px;
    background: #fff;
    flex-shrink: 0;
}

.itf-slideout-footer__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.itf-slideout-footer__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--itf-primary);
    white-space: nowrap;
}

.itf-slideout-footer__price.free {
    color: var(--itf-success);
}

.itf-slideout-footer__actions {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.itf-slideout-footer__actions .itf-btn {
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 6px;
}

.itf-slideout-footer__actions .itf-variation-select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--itf-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.itf-slideout-footer__note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--itf-text-light);
    text-align: center;
}

/* Capacity bar in slideout */
.itf-event-slideout .itf-capacity-bar-lg {
    margin: 0 20px 16px;
}

/* ─── Responsive Slideout ───── */
@media (max-width: 600px) {
    .itf-event-slideout__panel {
        width: 100vw;
    }

    .itf-slideout-details {
        grid-template-columns: 1fr;
    }

    .itf-slideout-detail:nth-child(odd) {
        border-right: none;
    }

    .itf-slideout-detail:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--itf-border);
    }

    .itf-slideout-detail:last-child {
        border-bottom: none;
    }

    .itf-slideout-title {
        font-size: 20px;
    }
}

/* ─── Cart Drawer ─────────────────────────────────────── */

.itf-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99998;
}

.itf-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.itf-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
}

.itf-cart-drawer.open {
    right: 0;
}

.itf-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--itf-border);
    flex-shrink: 0;
}

.itf-drawer-header h3 {
    margin: 0;
    font-size: 18px;
}

.itf-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--itf-text);
    padding: 4px;
    line-height: 1;
}

.itf-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.itf-drawer-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--itf-text-light);
}

.itf-drawer-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.itf-drawer-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--itf-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.itf-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itf-drawer-item-info {
    flex: 1;
    min-width: 0;
}

.itf-drawer-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itf-drawer-item-variation {
    font-size: 12px;
    color: var(--itf-text-light);
}

.itf-drawer-item-date {
    font-size: 12px;
    color: var(--itf-text-light);
}

.itf-drawer-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--itf-primary);
    margin-top: 4px;
}

.itf-drawer-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
    align-self: flex-start;
}

.itf-drawer-item-remove:hover {
    color: var(--itf-danger);
}

/* Drawer / Sticky Cart Qty Controls */
.itf-drawer-item-qty,
.itf-sticky-cart__item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
}

.itf-drawer-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    color: #374151;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}

.itf-drawer-qty-btn:first-child { border-radius: 5px 0 0 5px; }
.itf-drawer-qty-btn:last-child { border-radius: 0 5px 5px 0; }
.itf-drawer-qty-btn:hover:not(:disabled) { background: #f3f4f6; }
.itf-drawer-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.itf-drawer-qty-val {
    width: 28px;
    height: 26px;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    user-select: none;
}

/* Sticky cart qty — slightly smaller to fit inline */
.itf-sticky-cart__item-qty {
    flex-shrink: 0;
}

.itf-drawer-footer {
    border-top: 1px solid var(--itf-border);
    padding: 20px;
    flex-shrink: 0;
    background: var(--itf-bg);
}

.itf-drawer-totals .itf-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.itf-drawer-totals .itf-total-row {
    font-size: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--itf-border);
    margin-top: 4px;
}

.itf-summary-row.itf-discount-row span {
    color: var(--itf-primary);
}
.itf-discount-amount {
    color: var(--itf-primary);
}

/* Cart Icon */
.itf-cart-icon-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.itf-cart-icon-wrap i {
    font-size: 20px;
}

.itf-cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--itf-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Header Nav Cart Icon */
.itf-header-cart-item {
    position: relative;
}

.itf-header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none !important;
}

.itf-header-cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--itf-primary, #2271b1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px 0;
    line-height: 1;
    pointer-events: none;
}

/* ─── Cart Page ───────────────────────────────────────── */

.itf-cart-page-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.itf-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.itf-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.itf-cart-items .itf-drawer-item {
    padding: 16px 0;
}

.itf-cart-summary-card {
    background: var(--itf-card-bg);
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius);
    padding: 24px;
    box-shadow: var(--itf-shadow);
}

.itf-cart-summary-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.itf-cart-summary-rows {
    margin-bottom: 20px;
}

.itf-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}

.itf-total-row {
    font-size: 18px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--itf-primary);
}

.itf-coupon-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.itf-coupon-input-wrap {
    display: flex;
    gap: 8px;
}

.itf-coupon-input-wrap .itf-input {
    flex: 1;
}

.itf-coupon-msg {
    font-size: 13px;
    margin-top: 6px;
}

.itf-coupon-msg.success { color: var(--itf-success); }
.itf-coupon-msg.error   { color: var(--itf-danger); }

/* Coupon pill tags */
.itf-coupon-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.itf-coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: var(--itf-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}
.itf-coupon-pill__remove {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0.7;
}
.itf-coupon-pill__remove:hover {
    opacity: 1;
}

.itf-cart-note {
    text-align: center;
    font-size: 12px;
    color: var(--itf-text-light);
    margin-top: 12px;
}

.itf-cart-note i {
    color: var(--itf-success);
}

.itf-cart-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* ─── Checkout ────────────────────────────────────────── */

/* Layout shell */
.itf-co { max-width: 1100px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Top bar */
.itf-co__topbar {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}
.itf-co__topbar-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 16px;
}
.itf-co__topbar-logo {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}
.itf-co__topbar-logo img {
    height: 35px;
}
.itf-co__back { color: var(--itf-primary); font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.itf-co__back:hover { color: var(--itf-primary-dark); }
.itf-co__title {font-size: 16px;font-weight: 600;color: #374151;flex: 1;text-align: center;}
.itf-co__ssl {font-size: 13px;color: #6b7280;display: flex;align-items: center;gap: 6px;flex: 1;justify-content: flex-end;}
.itf-co__ssl i { color: var(--itf-primary); }

/* Empty state */
.itf-co__empty { 
    text-align: center;
    padding: 60px 20px;
    min-height: 95vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.itf-co__empty i { font-size: 48px; color: #ccc; display: block; margin-bottom: 16px; }
.itf-co__empty h3 { margin: 0 0 8px; }
.itf-co__empty p { color: #888; margin-bottom: 20px; }

/* ── Stepper ─────────────────────────────── */
.itf-co__stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.itf-co__step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.itf-co__step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}
.itf-co__step-label {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.3s ease;
}
/* Active */
.itf-co__step.active .itf-co__step-dot {
    background: var(--itf-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--itf-primary-rgb), 0.15);
}
.itf-co__step.active .itf-co__step-label { color: var(--itf-primary); }
/* Completed */
.itf-co__step.completed .itf-co__step-dot {
    background: var(--itf-primary);
    color: #fff;
}
.itf-co__step.completed .itf-co__step-label { color: #374151; }
/* Line */
.itf-co__step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 12px;
    position: relative;
    max-width: 160px;
}
.itf-co__step-line span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--itf-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}
.itf-co__step-line.filled span { width: 100%; }

/* ── Main layout ──────────────────────────── */
.itf-co__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* ── Panels ───────────────────────────────── */
.itf-co__panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
}
.itf-co__panel-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.itf-co__panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--itf-primary-rgb), 0.1);
    color: var(--itf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.itf-co__panel-header h2 { margin: 0 0 2px; padding: 0;font-size: 20px; color: #111827; }
.itf-co__panel-header p { margin: 0; font-size: 14px; color: #6b7280; }

/* Navigation row */
.itf-co__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Form basics */
.itf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.itf-full-width { grid-column: 1 / -1; }
.itf-form-group--full { grid-column: 1 / -1; }
.itf-form-group { margin-bottom: 20px; }

/* Billing address sub-header */
.itf-co__panel-header--sub {
    margin-top: 28px;
    margin-bottom: 4px;
    padding-top: 20px;
    padding-bottom: 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
}

.itf-co__panel-header--sub h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* SMS Opt-in checkbox */
.itf-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0 4px;
    cursor: pointer;
    grid-column: 1 / -1;
}

.itf-checkbox-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--itf-primary, #2271b1);
    cursor: pointer;
}

.itf-checkbox-row span {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.itf-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0px;
    color: #374151;
}
.itf-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.itf-input:focus {
    outline: none;
    border-color: var(--itf-primary);
    box-shadow: 0 0 0 3px rgba(var(--itf-primary-rgb), 0.1);
}
.itf-input.itf-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.itf-form-group label.itf-sms-optin {
    background: #64b1c938;
    padding: 7px;
    border-radius: 5px;
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.itf-form-group label.itf-sms-optin input {
    width: 12px;
    height: 12px;
}
.itf-form-group label.itf-sms-optin span {
    display: block;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.3;
    color: #094155;
}

/* Promo code (sidebar) */
.itf-co__promo { padding: 0 16px 16px; border-bottom: 1px solid #f0f0f0; }
.itf-co__promo > label { font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.itf-co__promo-row { display: flex; gap: 6px; }
.itf-co__promo-row .itf-input { flex: 1; font-size: 13px; padding: 8px 10px; }
.itf-co__promo-row .itf-btn { font-size: 12px; padding: 8px 12px; white-space: nowrap; }
.itf-coupon-msg { font-size: 12px; margin-top: 6px; }
.itf-coupon-msg.success { color: #059669; }
.itf-coupon-msg.error { color: #ef4444; }

/* Form error */
.itf-form-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* ── Step 2 — Attendees ───────────────────── */
.itf-att__group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}
.itf-att__group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.itf-att__group-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.itf-att__group-info { flex: 1; }
.itf-att__group-title { font-size: 15px; font-weight: 700; color: #111827; margin: 6px 0 0px; padding: 0; line-height: 100%; }
.itf-att__group-meta { font-size: 13px; color: #6b7280; margin: 0; }
.itf-att__group-qty {
    display: flex;
    align-items: center;
    gap: 0;
}
.itf-att__qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.15s;
}
.itf-att__qty-btn:first-child { border-radius: 6px 0 0 6px; }
.itf-att__qty-btn:last-child { border-radius: 0 6px 6px 0; }
.itf-att__qty-btn:hover { background: #f3f4f6; }
.itf-att__qty-btn:disabled, .itf-att__qty-btn.itf-qty-at-max { opacity: 0.35; cursor: not-allowed; }
.itf-att__qty-val {
    width: 32px;
    height: 32px;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.itf-att__body { padding: 20px; }
.itf-att__entry {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.itf-att__entry:last-child { border-bottom: none; padding-bottom: 0; }
.itf-att__entry:first-child { padding-top: 0; }
.itf-att__entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.itf-att__num {
    display: flex;
    align-items: center;
    gap: 10px;
}
.itf-att__num-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--itf-primary-rgb), 0.1);
    color: var(--itf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.itf-att__num span { font-size: 14px; font-weight: 600; color: #374151; }
.itf-att__same-billing {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}
.itf-att__same-billing input { margin: 0; }
.itf-att__fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* ── Step 3 — Merch Grid ──────────────────── */
.itf-co__merch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.itf-co__merch-loading { grid-column: 1 / -1; text-align: center; padding: 40px; color: #6b7280; }
.itf-co__optional-note { text-align: center; font-size: 13px; color: #9ca3af; margin-top: 16px; }

.itf-merch-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.itf-merch-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.itf-merch-card__img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f3f4f6;
}
.itf-merch-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.itf-merch-card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.itf-merch-card__tag i { font-size: 10px; }
.itf-merch-card__price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.itf-merch-card__body { padding: 16px; }
.itf-merch-card__title { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.itf-merch-card__desc { font-size: 13px; color: #6b7280; margin: 0 0 12px; line-height: 1.45; }
.itf-merch-card__sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.itf-merch-card__size {
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
}
.itf-merch-card__size:hover { border-color: var(--itf-primary); color: var(--itf-primary); }
.itf-merch-card__size.selected {
    background: var(--itf-primary);
    color: #fff;
    border-color: var(--itf-primary);
}
.itf-merch-card__add {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--itf-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.itf-merch-card__add:hover { background: var(--itf-primary-dark); }
.itf-merch-card__add.added { background: #059669; pointer-events: none; }
.itf-merch-card__add:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Recommended Events ───────────────────── */
.itf-co__rec {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}
.itf-co__rec-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.itf-co__rec-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(93, 173, 198, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--itf-primary);
    font-size: 18px;
    flex-shrink: 0;
}
.itf-co__rec-header h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.itf-co__rec-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}
.itf-co__rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Recommended card */
.itf-rec-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.itf-rec-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #d1d5db; }
.itf-rec-card--added { border-color: var(--itf-primary); }

.itf-rec-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}
.itf-rec-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.itf-rec-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}
.itf-rec-card__price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.93);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.itf-rec-card__body {
    padding: 14px;
}
.itf-rec-card__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}
.itf-rec-card__meta {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
}
.itf-rec-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.itf-rec-card__cat {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid currentColor;
    white-space: nowrap;
}
/* Category colour variants */
.itf-rec-card__cat--wellness { color: #059669; }
.itf-rec-card__cat--workshop { color: #2563eb; }
.itf-rec-card__cat--music { color: #7c3aed; }
.itf-rec-card__cat--yoga { color: #d97706; }
.itf-rec-card__cat--food-drink { color: #dc2626; }
.itf-rec-card__cat--community { color: #0891b2; }
.itf-rec-card__cat--run { color: #ea580c; }
.itf-rec-card__cat--kids { color: #e11d48; }

.itf-rec-card__add {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: var(--itf-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.itf-rec-card__add:hover { background: var(--itf-primary-dark); }
.itf-rec-card__add.added { background: #e5e7eb; color: #374151; pointer-events: none; }
.itf-rec-card__add:disabled { opacity: 0.5; cursor: not-allowed; }

/* Merch sub-header inside Step 3 */
.itf-co__merch-header {
    margin-bottom: 16px;
}
.itf-co__merch-header h3 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.itf-co__merch-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ── Step 4 — Payment ─────────────────────── */
.itf-co__card-fields { margin-bottom: 16px; }
.itf-card-container {
    min-height: 90px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
}
.itf-co__badges {
    display: flex;
    gap: 24px;
    margin: 16px 0;
    font-size: 13px;
    color: #6b7280;
}
.itf-co__badges i { color: var(--itf-primary); margin-right: 6px; }

/* Terms / Waivers */
.itf-co__terms {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 20px;
}
.itf-co__terms > p { font-size: 14px; color: #374151; margin: 0 0 12px; font-weight: 600; }
.itf-co__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
    cursor: pointer;
    line-height: 1.4;
}
.itf-co__checkbox:last-child { margin-bottom: 0; }
.itf-co__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    accent-color: var(--itf-primary);
}
.itf-co__checkbox a { color: var(--itf-primary); text-decoration: underline; }

/* ── Sidebar ──────────────────────────────── */
.itf-co__summary {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.itf-co__summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    font-size: 18px;
    border-bottom: 1px solid #e5e7eb;
}
.itf-co__summary-header i { color: var(--itf-primary); font-size: 16px; }
.itf-co__summary-header h3 { margin: 0; padding:0; font-size: 18px; color: #111827; }
.itf-sticky { position: sticky; top: 40px; }

/* Sidebar items */
.itf-co__items { padding: 16px 20px 0; }
.itf-co__item {
    display: flex;
    gap: 12px;
    padding: 8px 0 16px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}
.itf-co__item:last-child { border-bottom: none; }
.itf-co__item-remove {
    position: absolute;
    top: 6px;
    right: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
    border-radius: 50%;
    transition: all .15s ease;
}
.itf-co__item-remove:hover { color: #ef4444; background: #fef2f2; }
.itf-co__item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}
.itf-co__item-info { flex: 1; min-width: 0; }
.itf-co__item-name { font-size: 13px; font-weight: 600; color: #111827; margin: 0 0 2px; padding: 0; line-height: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width:90% }
.itf-co__item-meta { font-size: 12px; color: #6b7280; margin: 0 0 6px; line-height: 130%; }
.itf-co__item-bottom { display: flex; align-items: center; justify-content: space-between; }
.itf-co__item-price { font-size: 14px; font-weight: 600; color: #111827; }

/* Sidebar qty controls (reuse att style) */
.itf-co__item-qty { display: flex; align-items: center; gap: 0; }
.itf-co__item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
}
.itf-co__item-qty button:first-child { border-radius: 5px 0 0 5px; }
.itf-co__item-qty button:last-child { border-radius: 0 5px 5px 0; }
.itf-co__item-qty button:hover { background: #f3f4f6; }
.itf-co__item-qty button:disabled, .itf-co__item-qty button.itf-qty-at-max { opacity: 0.35; cursor: not-allowed; }
.itf-co__item-qty span {
    width: 28px;
    height: 28px;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* Sidebar totals */
.itf-co__totals { padding: 16px 20px; border-top: 1px solid #e5e7eb; }
.itf-co__totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    padding: 4px 0;
}
.itf-co__totals-row strong { color: #111827; }
.itf-co__total-row {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 18px;
}
.itf-co__discount-row span { color:var(--itf-accent); }
.itf-co__discount-note { display: block; font-size: 11px; color: #6b7280 !important; font-weight: 400; margin-top: 2px; }

/* ── Checkout Loading Skeleton ────────────── */
.itf-co__loader {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 600px;
}
.itf-co__loader-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.itf-co__loader-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
.itf-co__loader-main {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.itf-co__loader-side {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: fit-content;
}
.itf-co__loader-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Skeleton primitives */
.itf-skel {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: itf-shimmer 1.5s infinite ease-in-out;
    border-radius: 6px;
}
@keyframes itf-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.itf-skel--circle { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.itf-skel--bar-sm { width: 60px; height: 4px; border-radius: 2px; }
.itf-skel--bar-lg { height: 22px; width: 55%; }
.itf-skel--bar    { height: 14px; width: 80%; }
.itf-skel--field  { height: 44px; border-radius: 8px; }
.itf-skel--btn    { height: 44px; width: 180px; border-radius: 8px; margin-top: 8px; align-self: flex-end; }
.itf-skel--item   { height: 56px; border-radius: 8px; }
.itf-skel--divider { height: 1px; background: #e5e7eb; animation: none; }

@media (max-width: 768px) {
    .itf-co__loader-body { grid-template-columns: 1fr; }
    .itf-co__loader-fields { grid-template-columns: 1fr; }
}

/* Processing Overlay */
.itf-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.itf-processing-content { text-align: center; }
.itf-processing-content h3 { margin: 16px 0 8px; }

/* Free order */
.itf-free-order-notice {
    text-align: center;
    padding: 24px;
    background: rgba(var(--itf-primary-rgb), 0.06);
    border-radius: 10px;
    margin-bottom: 16px;
}
.itf-free-order-notice i { font-size: 36px; color: #059669; display: block; margin-bottom: 12px; }

/* Pay button */
#itf-pay-btn {
    font-size: 16px;
    padding: 14px 28px;
}
#itf-pay-btn i { margin-right: 6px; }

/* ─── Account ─────────────────────────────────────────── */

.itf-account-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.itf-auth-container {
    max-width: 440px;
    margin: 0 auto;
}

.itf-auth-tabs {
    display: flex;
    margin-bottom: 0;
}

.itf-auth-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: var(--itf-bg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--itf-transition);
}

.itf-auth-tab.active {
    background: #fff;
    border-bottom-color: var(--itf-primary);
    color: var(--itf-primary);
}

.itf-auth-card {
    background: #fff;
    border: 1px solid var(--itf-border);
    border-radius: 0 0 var(--itf-radius) var(--itf-radius);
    padding: 32px;
}

.itf-auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.itf-auth-link a {
    color: var(--itf-primary);
}

/* Account Dashboard */
.itf-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.itf-account-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.itf-account-tab {
    padding: 10px 20px;
    border: none;
    background: var(--itf-bg);
    border-radius: var(--itf-radius-sm) var(--itf-radius-sm) 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--itf-transition);
    color: var(--itf-text-light);
}

.itf-account-tab.active {
    background: #fff;
    color: var(--itf-primary);
    box-shadow: 0 -2px 0 var(--itf-primary) inset;
}

.itf-account-panel {
    background: #fff;
    border: 1px solid var(--itf-border);
    border-radius: 0 var(--itf-radius) var(--itf-radius) var(--itf-radius);
    padding: 24px;
}

/* Order Cards */
.itf-order-card {
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.itf-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--itf-bg);
    cursor: pointer;
}

.itf-order-card-body {
    padding: 16px;
    display: none;
}

.itf-order-card-body.open {
    display: block;
}

/* ─── Confirmation ────────────────────────────────────── */

.itf-confirmation-wrap {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.itf-confirmation-header {
    margin-bottom: 32px;
}

.itf-confirmation-icon {
    margin-bottom: 16px;
}

.itf-confirmation-icon i,
.itf-confirmation-icon .fas {
    font-size: 64px;
    color: var(--itf-success);
}

.itf-confirmation-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.itf-confirmation-card {
    background: var(--itf-card-bg);
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius);
    padding: 32px;
    text-align: left;
    margin-bottom: 32px;
    box-shadow: var(--itf-shadow);
}

.itf-confirmation-details {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.itf-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.itf-detail-label {
    color: var(--itf-text-light);
    font-size: 14px;
}

.itf-detail-value {
    font-weight: 600;
}

.itf-order-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.itf-variation-label {
    color: var(--itf-text-light);
    font-size: 13px;
}

.itf-event-date {
    color: var(--itf-text-light);
    font-size: 11px;
}

.itf-confirmation-footer {
    text-align: center;
}

.itf-confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* ─── Confirmation Tickets ────────────────────────────────── */

.itf-tickets-section {
    margin-top: 24px;
}

.itf-tickets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.itf-tickets-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--itf-primary);
}

.itf-tickets-intro {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.itf-tickets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.itf-ticket-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius);
    background: #fafafa;
}

.itf-ticket-qr {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.itf-ticket-qr svg {
    width: 100%;
    height: 100%;
}

.itf-ticket-event {
    font-weight: 700;
    font-size: 15px;
    color: var(--itf-primary);
    margin-bottom: 4px;
}

.itf-ticket-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 2px;
}

.itf-ticket-attendee {
    margin-top: 6px;
    font-size: 14px;
}

/* ─── Refund ──────────────────────────────────────────── */

.itf-refund-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.itf-refund-card {
    background: var(--itf-card-bg);
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius);
    padding: 32px;
    box-shadow: var(--itf-shadow);
}

.itf-refund-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.itf-refund-order-info {
    background: var(--itf-bg);
    border-radius: var(--itf-radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.itf-refund-note {
    font-size: 13px;
    color: var(--itf-text-light);
    margin: 12px 0;
}

/* Refund item selection */
.itf-refund-select-heading {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
}

.itf-refund-select-all {
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--itf-border);
    margin-bottom: 4px;
}

.itf-refund-select-all label {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itf-refund-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--itf-border);
    gap: 12px;
}

.itf-refund-item-row.itf-refund-item-disabled {
    opacity: .5;
}

.itf-refund-item-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.itf-refund-item-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--itf-primary);
    cursor: pointer;
}

.itf-refund-item-name {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.itf-refund-already {
    font-size: 12px;
    color: var(--itf-text-light);
    font-style: italic;
}

.itf-refund-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.itf-refund-qty-label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.itf-refund-qty {
    width: 56px !important;
    padding: 4px 6px !important;
    text-align: center;
    font-size: 14px !important;
    min-height: 0 !important;
}

.itf-refund-qty-static {
    font-size: 13px;
    color: var(--itf-text-light);
}

.itf-refund-item-price {
    font-size: 13px;
    color: var(--itf-text-light);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* Refund summary bar */
.itf-refund-summary {
    background: var(--itf-bg);
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius-sm);
    padding: 14px 16px;
    margin: 16px 0;
}

.itf-refund-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 2px 0;
}

.itf-refund-summary-total {
    font-weight: 700;
    font-size: 16px;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid var(--itf-border);
    color: var(--itf-primary);
}

/* ─── Single Event ────────────────────────────────────── */

.itf-single-event {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Hero Banner */
.itf-event-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: var(--itf-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.itf-event-hero--no-image {
    height: auto;
    min-height: 160px;
    background: linear-gradient(135deg, var(--itf-primary) 0%, #2d8fa5 100%);
}

/* Hero top bar — back + share */
.itf-hero-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
}

.itf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--itf-text);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
}

.itf-back-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--itf-text);
}

.itf-hero-actions {
    display: flex;
    gap: 8px;
}

.itf-hero-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--itf-text);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.itf-hero-action-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--itf-primary);
}

/* Hero bottom overlay */
.itf-event-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 34px 24px 24px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 100%);
    margin-top: auto;
}

.itf-event-hero--no-image .itf-event-hero-overlay {
    background: none;
}

.itf-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.itf-category-tag {
    display: inline-block;
    padding: 3px 10px 0px;
    background: #c4889bc7;
    backdrop-filter: blur(4px);
    border-radius: 25px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.itf-hero-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.25;
    color: #fff !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgb(0 0 0 / 96%);
    font-family: var(--itf-font);
}

.itf-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.itf-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 5px;
    background: rgba(255,255,255,0.92);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--itf-text);
}

.itf-hero-pill--accent {
    background: var(--itf-primary);
    color: #fff;
}

.itf-hero-pill i {
    font-size: 12px;
    margin-top: -2px;
}

/* Two-column layout */
.itf-single-event-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Left column — content cards */
.itf-content-card {
    background: var(--itf-card-bg);
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius);
    padding: 28px;
    margin-bottom: 24px;
}

.itf-content-card__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--itf-text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.itf-content-card__title i {
    color: var(--itf-primary);
    font-size: 18px;
}

/* Description */
.itf-event-description {
    line-height: 1.8;
    font-size: 15px;
    color: #555;
}

.itf-event-description img {
    border-radius: var(--itf-radius-sm);
    max-width: 100%;
    height: auto;
    margin: 12px 0;
}

.itf-event-description p {
    margin-bottom: 16px;
}

.itf-event-description p:last-child {
    margin-bottom: 0;
}

/* Things to Know */
.itf-things-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.itf-thing-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--itf-text);
    line-height: 1.4;
}

.itf-thing-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--itf-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--itf-primary);
    font-size: 13px;
}

.itf-thing-text {
    padding-top: 5px;
}

/* Instructor Cards */
.itf-instructor-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.itf-instructor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--itf-bg);
    border-radius: var(--itf-radius);
    border: 1px solid var(--itf-border);
}

.itf-instructor-card__photo {
    flex-shrink: 0;
}

.itf-instructor-card__photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.itf-instructor-card__placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--itf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #bbb;
}

.itf-instructor-card__info {
    flex: 1;
    min-width: 0;
}

.itf-instructor-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--itf-primary);
    margin: 0 0 4px;
    padding: 0;
}

.itf-instructor-card__specialties {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--itf-text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.itf-instructor-card__bio {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.itf-instructor-card__links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.itf-instructor-card__links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--itf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--itf-text-light);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.itf-instructor-card__links a:hover {
    color: var(--itf-primary);
    border-color: var(--itf-primary);
    background: var(--itf-primary-light);
}

/* Related Events */
.itf-related-events__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.itf-related-card {
    background: var(--itf-card-bg);
    border-radius: var(--itf-radius);
    overflow: hidden;
    border: 1px solid var(--itf-border);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.itf-related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.itf-related-card__image {
    position: relative;
    height: 140px;
    background: var(--itf-bg);
    overflow: hidden;
}

.itf-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itf-related-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.itf-related-card__badge--free {
    background: var(--itf-success);
}

.itf-related-card__badge--price {
    background: var(--itf-primary);
}

.itf-related-card__body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.itf-related-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--itf-text);
    margin: 0 0 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itf-related-card__meta {
    font-size: 12px;
    color: var(--itf-text-light);
    margin-bottom: 8px;
}

.itf-related-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.itf-related-card__category {
    font-size: 11px;
    font-weight: 600;
    color: var(--itf-primary);
}

.itf-related-card__add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--itf-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.itf-related-card__add:hover {
    background: var(--itf-primary-light);
}

/* Right column — sidebar */
.itf-event-sidebar {
    position: relative;
}

.itf-sidebar-sticky {
    position: sticky;
    top: 24px;
}

/* Google Map */
.itf-event-map {
    border-radius: var(--itf-radius) var(--itf-radius) 0 0;
    overflow: hidden;
    line-height: 0;
    border: 1px solid var(--itf-border);
    border-bottom: none;
}

/* Sidebar Card */
.itf-sidebar-card {
    background: var(--itf-card-bg);
    border: 1px solid var(--itf-border);
    border-radius: var(--itf-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.itf-sidebar-card--has-map {
    border-radius: 0 0 var(--itf-radius) var(--itf-radius);
    border-top: none;
}

/* Price header */
.itf-sidebar-price {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--itf-border);
}

.itf-sidebar-price__amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--itf-primary);
}

.itf-sidebar-price__free {
    color: var(--itf-success);
}

.itf-sidebar-price__label {
    font-size: 14px;
    color: var(--itf-text-light);
    margin-left: 4px;
}

/* Details list */
.itf-sidebar-details {
    padding: 16px 24px;
}

.itf-sidebar-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--itf-text);
    line-height: 1.4;
}

.itf-sidebar-detail i {
    width: 16px;
    text-align: center;
    color: var(--itf-primary);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 14px;
}

/* Booking area */
.itf-sidebar-booking {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--itf-border);
}

.itf-variations-select {
    margin-bottom: 12px;
}

.itf-variations-select label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--itf-text);
}

.itf-booking-note {
    text-align: center;
    color: var(--itf-text-light);
    margin-top: 10px;
}

.itf-booking-note i {
    margin-right: 4px;
}

.itf-sold-out {
    color: var(--itf-danger);
    font-weight: 600;
}

/* ─── Single Product ──────────────────────────────────── */

.itf-single-product {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0;
}

.itf-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.itf-product-main-image {
    border-radius: var(--itf-radius);
    overflow: hidden;
    background: #f5f5f5;
}

.itf-product-main-image img {
    width: 100%;
    display: block;
}

.itf-product-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
}

.itf-product-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.itf-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--itf-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.itf-thumb.active,
.itf-thumb:hover {
    border-color: var(--itf-primary);
}

.itf-product-breadcrumb {
    font-size: 13px;
    color: var(--itf-text-light);
    margin-bottom: 12px;
}

.itf-product-breadcrumb a {
    color: var(--itf-primary);
    text-decoration: none;
}

.itf-product-info h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.itf-product-price-lg {
    font-size: 28px;
    font-weight: 700;
    color: var(--itf-primary);
    margin-bottom: 8px;
}

.itf-product-sku {
    font-size: 13px;
    color: var(--itf-text-light);
    margin-bottom: 16px;
}

.itf-product-description {
    line-height: 1.7;
    margin-bottom: 20px;
}

.itf-product-stock-info {
    margin-bottom: 16px;
    font-size: 14px;
}

.itf-product-options {
    margin-bottom: 16px;
}

.itf-product-options label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.itf-product-purchase {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ─── Status Badges ───────────────────────────────────── */

.itf-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.itf-status-completed { background: #d5f5e3; color: #1e8449; }
.itf-status-pending   { background: #fdebd0; color: #b7950b; }
.itf-status-refunded  { background: #fadbd8; color: #922b21; }

/* ─── Toasts ──────────────────────────────────────────── */

.itf-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.itf-toast {
    padding: 14px 20px;
    border-radius: var(--itf-radius-sm);
    background: #333;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    animation: itfToastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
}

.itf-toast.success { background: var(--itf-success); }
.itf-toast.error   { background: var(--itf-danger); }
.itf-toast.info    { background: var(--itf-info); }

.itf-toast.hide {
    animation: itfToastOut 0.3s ease forwards;
}

@keyframes itfToastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes itfToastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
    .itf-card-image {
        width: 200px;
        min-height: 200px;
    }

    .itf-card-title {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* Sticky cart bar responsive */
    .itf-sticky-cart__bar {
        padding: 8px 16px;
    }

    .itf-sticky-cart__toggle {
        font-size: 14px;
    }

    .itf-sticky-cart__checkout-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .itf-sticky-cart__items {
        padding: 0 16px;
    }

    .itf-sticky-cart__footer {
        padding: 10px 16px;
    }

    .itf-events-grid {
        grid-template-columns: 1fr;
    }

    .itf-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .itf-cart-layout,
    .itf-checkout-layout,
    .itf-co__layout,
    .itf-single-event-content,
    .itf-product-layout {
        grid-template-columns: 1fr;
    }

    .itf-checkout-steps span,
    .itf-co__step-label {
        display: none;
    }

    .itf-co__merch-grid { grid-template-columns: 1fr; }
    .itf-co__rec-grid { grid-template-columns: 1fr; }
    .itf-co__rec { padding: 16px; }
    .itf-att__fields { grid-template-columns: 1fr; }
    .itf-co__topbar { flex-wrap: wrap; gap: 8px; }
    .itf-co__title { order: -1; width: 100%; text-align: center; }

    .itf-event-hero {
        height: 300px;
    }

    .itf-hero-title {
        font-size: 24px;
    }

    .itf-hero-pills {
        gap: 6px;
    }

    .itf-hero-pill {
        font-size: 12px;
        padding: 5px 10px;
    }

    .itf-event-sidebar {
        position: static;
    }

    .itf-sidebar-sticky {
        position: static;
    }

    .itf-things-grid {
        grid-template-columns: 1fr;
    }

    .itf-related-events__grid {
        grid-template-columns: 1fr 1fr;
    }

    .itf-instructor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .itf-instructor-card__links {
        justify-content: center;
    }

    .itf-form-grid {
        grid-template-columns: 1fr;
    }

    .itf-sticky {
        position: static;
    }

    .itf-product-purchase {
        flex-direction: column;
    }

    .itf-product-purchase .itf-btn {
        width: 100%;
    }

    /* Schedule responsive */
    .itf-schedule-header h2 {
        font-size: 28px;
    }

    .itf-schedule-header {
        padding: 32px 16px;
    }

    .itf-filter-bar {
        flex-direction: column;
    }

    .itf-filter-dropdowns {
        flex-direction: column;
        width: 100%;
    }

    .itf-filter-select {
        width: 100%;
    }

    .itf-filter-search-wrap {
        width: 100%;
        min-width: 0;
    }

    .itf-event-card {
        flex-direction: column;
    }

    .itf-card-image {
        width: 100%;
        height: 220px;
        min-height: 220px;
    }

    .itf-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .itf-card-actions-left .itf-variation-select {
        max-width: 100%;
    }

    .itf-card-actions-right {
        justify-content: flex-end;
    }

    .itf-date-header {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    /* Single event mobile */
    .itf-event-hero {
        height: 260px;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
    }

    .itf-hero-title {
        font-size: 20px;
    }

    .itf-content-card {
        padding: 20px;
    }

    .itf-related-events__grid {
        grid-template-columns: 1fr;
    }

    .itf-sidebar-price__amount {
        font-size: 24px;
    }

    /* Sticky cart bar mobile */
    .itf-sticky-cart__bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .itf-sticky-cart__label {
        display: none;
    }

    .itf-sticky-cart__summary {
        gap: 10px;
    }

    .itf-sticky-cart__total {
        font-size: 13px;
    }

    .itf-sticky-cart__checkout-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .itf-sticky-cart__item-img {
        width: 44px;
        height: 44px;
    }

    .itf-sticky-cart__item-name {
        font-size: 13px;
    }

    body.itf-has-sticky-cart {
        padding-top: 48px;
    }

    .itf-date-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .itf-date-pill {
        flex-shrink: 0;
    }

    .itf-schedule-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .itf-schedule-toolbar .itf-date-pills {
        width: 100%;
    }

    .itf-map-toggle {
        align-self: flex-end;
    }

    .itf-schedule-map__canvas {
        height: 260px;
    }

    .itf-filter-btn {
        flex-shrink: 0;
    }

    .itf-cart-drawer {
        width: 100%;
        right: -100%;
    }

    .itf-confirmation-actions {
        flex-direction: column;
    }

    .itf-card-image {
        height: 180px;
        min-height: 180px;
    }

    .itf-card-actions-right {
        flex-direction: column;
        width: 100%;
    }

    .itf-card-actions-right .itf-cart-btn {
        width: 100%;
        justify-content: center;
    }

    .itf-card-title {
        font-size: 16px;
    }
}

/* ─── Schedule Preview ─────────────────────────────────────── */

.itf-schedule-preview {
    max-width: 1200px;
    margin: 0 auto;
}

.itf-schedule-preview__footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* ─── Featured Events Grid ─────────────────────────────────── */

.itf-featured-events {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.itf-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.itf-featured-card {
    background: var(--itf-card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.itf-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.itf-featured-card__image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.itf-featured-card__date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--itf-primary, #2c6e49);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.itf-featured-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.itf-featured-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--itf-primary, #2c6e49);
    font-weight: 600;
    margin-bottom: 4px;
}

.itf-featured-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--itf-text, #333);
}

.itf-featured-card__venue {
    font-size: 0.85rem;
    color: var(--itf-text-light, #666);
    margin: 0 0 auto;
}

.itf-featured-card__venue i {
    color: var(--itf-primary, #2c6e49);
    margin-right: 4px;
}

.itf-featured-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--itf-border, #e0e0e0);
}

.itf-featured-card__price {
    font-weight: 700;
    color: var(--itf-primary, #2c6e49);
}

.itf-featured-card__link {
    color: var(--itf-primary, #2c6e49);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.itf-featured-card__link:hover {
    text-decoration: underline;
}

.itf-featured-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ── Instructor Grid ──────────────────────────────────────── */

.itf-instructors-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.itf-instructors-filters {
    margin-bottom: 20px;
}

.itf-instructors-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.itf-instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.itf-instructors-grid .itf-instructor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    align-items: stretch;
    gap: 0;
}

.itf-instructors-grid .itf-instructor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.itf-instructors-grid .itf-instructor-card__photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #f0f4f2;
    flex-shrink: initial;
}

.itf-instructors-grid .itf-instructor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.itf-instructors-grid .itf-instructor-card:hover .itf-instructor-card__photo img {
    transform: scale(1.04);
}

.itf-instructors-grid .itf-instructor-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    background: #f5f7f6;
    border-radius: 0;
}

.itf-instructor-card__body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.itf-instructors-grid .itf-instructor-card__name {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    padding: 0;
}

.itf-instructors-grid .itf-instructor-card__specialties {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--itf-secondary, #c4889b);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0;
}

.itf-instructor-card__excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.itf-instructor-card__event-count {
    font-size: 0.8rem;
    color: var(--itf-secondary);
    font-weight: 600;
}

.itf-instructor-card__event-count i {
    margin-right: 4px;
}

.itf-instructor-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.itf-instructor-card__socials {
    display: flex;
    gap: 0.6rem;
}

.itf-instructor-card__socials a {
    color: var(--itf-secondary);
    font-size: 1.1rem;
    transition: color 0.2s;
    text-decoration: none;
}

.itf-instructor-card__socials a:hover {
    color: var(--itf-primary, #2c6e49);
}

.itf-instructor-card__events {
    font-size: 0.78rem;
    color: #888;
}

.itf-instructor-card__events i {
    margin-right: 3px;
}

.itf-instructor-card__details-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* ── Instructor Modal ─────────────────────────────────────── */

.itf-instructor-modal {
    max-width: 640px;
    width: 94%;
    max-height: 85vh;
    overflow-y: auto;
}

.itf-instructor-modal__content {
    padding: 0.5rem 0;
}

.itf-instructor-modal__header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.itf-instructor-modal__photo {
    flex-shrink: 0;
}

.itf-instructor-modal__photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.itf-instructor-modal__info {
    min-width: 0;
}

.itf-instructor-modal__name {
    margin: 0 0 0.25rem;
    padding: 0;
    font-size: 1.4rem;
    color: var(--itf-primary, #2c6e49);
}

.itf-instructor-modal__specialties {
    margin: 0 0 0.5rem !important;
    font-size: 0.85rem;
    color: var(--itf-secondary, #c4889b);
    font-weight: 600;
}

.itf-instructor-modal__socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.itf-instructor-social {
    font-size: 0.82rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.itf-instructor-social:hover {
    color: var(--itf-primary, #2c6e49);
}

.itf-instructor-social i {
    margin-right: 4px;
}

.itf-instructor-modal__bio {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.25rem;
}

.itf-instructor-modal__bio p {
    padding: 0;
}

.itf-instructor-modal__bio p:first-child { margin-top: 0; }
.itf-instructor-modal__bio p:last-child { margin-bottom: 0; }

.itf-instructor-modal__events-section h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--itf-primary, #2c6e49);
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.itf-instructor-modal__events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.itf-instructor-modal__event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: #fafeff;
    border: 1px solid rgba(113, 193, 218, 0.25);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.itf-instructor-modal__event:hover {
    background: #f0f8fb;
}

.itf-instructor-modal__event-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--itf-primary, #2c6e49);
}

.itf-instructor-modal__event-meta {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    margin-left: 0.75rem;
}

@media (max-width: 600px) {
    .itf-instructors-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .itf-instructor-modal__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .itf-instructor-modal__socials {
        justify-content: center;
    }

    .itf-instructor-modal__event {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .itf-instructor-modal__event-meta {
        margin-left: 0;
    }
}
