/* Video Bundles — page (template-bundles.php) + bundle product page. */
:root {
    --tfb-navy: #16233f;
    --tfb-gold: #c2922f;
    --tfb-gold-hi: #d9a63c;
    --tfb-card: #fffaf0;
    --tfb-line: #e2d6bb;
    --tfb-muted: #6a6f7a;
    --tfb-glow: 0 0 0 1px rgba(194, 146, 47, .75), 0 0 26px 4px rgba(194, 146, 47, .45);
}

/* ---------- Hero ---------- */
.tfb-hero { padding: 40px 0 26px; }
.tfb-hero__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 40px; align-items: center; }
.tfb-hero__head { min-width: 0; }
.tfb-hero__title { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .86; font-size: clamp(56px, 7.4vw, 118px); margin-top: 14px; }
.tfb-hero__title span { display: block; color: var(--tfb-navy); }
.tfb-hero__title span + span { color: var(--tfb-gold); }
.tfb-hero__tagline { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .5px; color: var(--tfb-navy); font-size: clamp(17px, 1.6vw, 22px); margin-top: 16px; }
.tfb-hero__perks { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; }
.tfb-hero__perks li, .tfb-perks li { display: flex; align-items: center; gap: 10px; }
.tfb-hero__perks svg, .tfb-perks svg { width: 34px; height: 34px; color: var(--tfb-gold); flex-shrink: 0; }
.tfb-hero__perks span, .tfb-perks span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .4px; color: var(--tfb-muted); }
.tfb-hero__perks strong, .tfb-perks strong { font-family: "Saira Condensed", sans-serif; font-size: 17px; font-weight: 700; color: var(--tfb-navy); letter-spacing: .5px; }
.tfb-hero__media { aspect-ratio: 16 / 7; background-size: cover; background-position: center; border-radius: 4px; -webkit-clip-path: polygon(2% 6%, 100% 0, 98% 92%, 0 100%); clip-path: polygon(2% 6%, 100% 0, 98% 92%, 0 100%); }

/* ---------- Editable text under the banner ---------- */
.tfb-notice { padding: 6px 0 34px; }
.tfb-notice__inner { background: var(--tfb-navy); color: #e9e2d0; border-left: 4px solid var(--tfb-gold); padding: 22px 28px; border-radius: 4px; font-size: 16px; line-height: 1.6; }
.tfb-notice__inner p + p { margin-top: 10px; }
.tfb-notice__inner a { color: var(--tfb-gold-hi); text-decoration: underline; }
.tfb-notice__inner strong { color: #fff; }

/* ---------- Layout + filters ---------- */
.tfb-shop { padding-bottom: 80px; }
.tfb-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.tfb-side { position: sticky; top: 104px; }
.tfb-side__toggle { display: none; }
.tfb-filter { background: var(--tfb-card); border: 1px solid var(--tfb-line); border-radius: 8px; padding: 20px 18px 14px; margin-bottom: 16px; }
.tfb-filter__title { font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 18px; color: var(--tfb-navy); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--tfb-gold); display: inline-block; }
.tfb-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; color: var(--tfb-navy); }
.tfb-check input { position: absolute; opacity: 0; pointer-events: none; }
.tfb-check__box { width: 18px; height: 18px; border: 2px solid #c9bb98; border-radius: 4px; flex-shrink: 0; background: #fff; transition: .2s; position: relative; }
.tfb-check input:checked + .tfb-check__box { background: var(--tfb-gold); border-color: var(--tfb-gold); }
.tfb-check input:checked + .tfb-check__box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tfb-check input:focus-visible + .tfb-check__box { box-shadow: 0 0 0 3px rgba(194, 146, 47, .35); }
.tfb-check__name { flex: 1; min-width: 0; }
.tfb-check input:checked ~ .tfb-check__name { font-weight: 600; }
.tfb-check__count { color: #8a8170; font-size: 13px; }
.tfb-check__count::before { content: "("; }
.tfb-check__count::after { content: ")"; }
.tfb-check:hover .tfb-check__name { color: var(--tfb-gold); }

/* ---------- Grid head + sort ---------- */
.tfb-main { min-width: 0; }
.tfb-main__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.tfb-main__title { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 38px); color: var(--tfb-navy); }
.tfb-main__title span { font-family: Inter, sans-serif; font-style: normal; font-weight: 400; text-transform: none; font-size: 16px; color: var(--tfb-muted); }
.tfb-sort { width: 250px; max-width: 100%; }
.tfb-sort .ts-wrapper.single .ts-control { background: var(--tfb-card); border: 1px solid var(--tfb-line); border-radius: 6px; padding: 11px 38px 11px 14px; font-family: Inter, sans-serif; font-size: 15px; color: var(--tfb-navy); box-shadow: none; cursor: pointer; }
.tfb-sort .ts-wrapper.single .ts-control::after { border-color: var(--tfb-navy) transparent transparent; right: 15px; }
.tfb-sort .ts-wrapper.single.dropdown-active .ts-control::after { border-color: transparent transparent var(--tfb-navy); }
.tfb-sort .ts-wrapper.focus .ts-control { border-color: var(--tfb-gold); box-shadow: 0 0 0 3px rgba(194, 146, 47, .2); }
.tfb-sort .ts-dropdown { border: 1px solid var(--tfb-line); border-radius: 6px; margin-top: 4px; box-shadow: 0 10px 30px rgba(22, 35, 63, .15); font-size: 15px; overflow: hidden; }
.tfb-sort .ts-dropdown .option { padding: 10px 14px; color: var(--tfb-navy); }
.tfb-sort .ts-dropdown .active { background: #f4ecdb; color: var(--tfb-navy); }
.tfb-sort .ts-dropdown .selected { background: var(--tfb-gold); color: #fff; }
.tfb-sort__select { width: 100%; padding: 11px 14px; border: 1px solid var(--tfb-line); border-radius: 6px; background: var(--tfb-card); }
.tfb-sort .ts-wrapper.tfb-sort__select { padding: 0; border: 0; background: none; border-radius: 0; }

/* ---------- Cards ---------- */
.tfb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.tfb-card { position: relative; display: flex; flex-direction: column; background: var(--tfb-card); border: 1px solid var(--tfb-line); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 22px rgba(49, 35, 11, .10); transition: transform .6s cubic-bezier(.17, .85, .44, .99), box-shadow .6s cubic-bezier(.17, .85, .44, .99), border-color .3s; }
.tfb-card:hover { transform: scale(1.035); box-shadow: var(--tfb-glow), 0 18px 40px rgba(22, 35, 63, .18); border-color: var(--tfb-gold); z-index: 2; }
.tfb-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.tfb-card__media img, .tfb-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tfb-card__media img { transition: transform .8s cubic-bezier(.17, .85, .44, .99); }
.tfb-card:hover .tfb-card__media img { transform: scale(1.05); }
.tfb-card__media video { opacity: 0; transition: opacity .35s; }
.tfb-card__media.is-playing video { opacity: 1; }
.tfb-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .25) 100%); pointer-events: none; }
.tfb-card__badge { position: absolute; z-index: 2; top: 14px; left: 14px; background: var(--tfb-gold); color: #fff; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: 18px; line-height: 1; padding: 8px 12px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.tfb-card__lock { position: absolute; z-index: 2; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--tfb-navy); display: flex; align-items: center; justify-content: center; }
.tfb-card__lock svg { width: 18px; height: 18px; }
.tfb-card__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(10, 18, 32, .72); color: #fff; display: flex; align-items: center; justify-content: center; transition: .35s; }
.tfb-card__play svg { width: 30px; height: 30px; margin-left: 3px; }
.tfb-card:hover .tfb-card__play { background: var(--tfb-gold); transform: scale(1.08); }
.tfb-card__media.is-playing .tfb-card__play { opacity: 0; }
.tfb-card__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px 16px 18px; }
.tfb-card__brand { display: block; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: var(--tfb-gold); margin-bottom: 2px; }
.tfb-card__title { font-family: "Saira Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: 1; color: var(--tfb-navy); }
.tfb-card__title a:hover { color: var(--tfb-gold); }
.tfb-card__cats { margin-top: 8px; font-size: 14px; color: var(--tfb-muted); }
.tfb-card__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.tfb-card__thumb { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; background: #222; }
.tfb-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tfb-card__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(22, 35, 63, .72); color: #fff; font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 20px; }
.tfb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tfb-card__price { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 32px; line-height: 1; color: var(--tfb-navy); white-space: nowrap; }
.tfb-card__price del { font-size: 18px; color: var(--tfb-muted); font-weight: 600; margin-right: 6px; }
.tfb-card__price ins { text-decoration: none; }
.tfb-card__btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--tfb-gold); color: #fff; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; font-size: 18px; padding: 12px 18px; border-radius: 6px; white-space: nowrap; transition: .3s; }
.tfb-card__btn svg { width: 20px; height: 20px; }
.tfb-card__btn:hover { background: var(--tfb-navy); color: #fff; }

.tfb-stars { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tfb-stars__bar { position: relative; display: inline-flex; gap: 2px; color: #d8cdb3; }
.tfb-stars__bar svg { width: 17px; height: 17px; }
.tfb-stars__bar::after { content: ""; position: absolute; inset: 0; width: var(--tfb-rate); background: var(--tfb-gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 17'%3E%3Cpath d='m9.5 1.8 2.2 4.7 5.1.6-3.8 3.4 1.1 5-4.6-2.6-4.6 2.6 1.1-5L2.2 7.1l5.1-.6z'/%3E%3C/svg%3E") left/19px 17px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 17'%3E%3Cpath d='m9.5 1.8 2.2 4.7 5.1.6-3.8 3.4 1.1 5-4.6-2.6-4.6 2.6 1.1-5L2.2 7.1l5.1-.6z'/%3E%3C/svg%3E") left/19px 17px repeat-x; }
.tfb-stars__count { font-size: 13px; color: var(--tfb-muted); }

.tfb-empty { background: var(--tfb-card); border: 1px dashed #cdbd97; border-radius: 10px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 17px; color: var(--tfb-navy); }

/* ---------- Single bundle product ---------- */
.tfb-single-badge { display: inline-block; background: var(--tfb-gold); color: #fff; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: 18px; line-height: 1; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
.tfb-perks { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--tfb-line); border-bottom: 1px solid var(--tfb-line); }
.tfb-vids { grid-column: 1 / -1; margin: 46px 0 10px; }
.tfb-vids__title { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); color: var(--tfb-navy); margin-bottom: 20px; }
.tfb-vids__title span { font-family: Inter, sans-serif; font-style: normal; font-weight: 400; font-size: 18px; color: var(--tfb-muted); }
.tfb-vids__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; align-items: stretch; }
.tfb-vid { display: flex; flex-direction: column; background: var(--tfb-card); border: 1px solid var(--tfb-line); border-radius: 10px; overflow: hidden; transition: transform .5s cubic-bezier(.17, .85, .44, .99), box-shadow .5s; }
.tfb-vid:hover { transform: translateY(-4px); box-shadow: var(--tfb-glow); }
.tfb-vid__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #111; cursor: pointer; overflow: hidden; }
div.tfb-vid__media { cursor: default; }
.tfb-vid__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tfb-vid__play { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(10, 18, 32, .72); color: #fff; display: flex; align-items: center; justify-content: center; transition: .3s; }
.tfb-vid__play svg { width: 24px; height: 24px; margin-left: 3px; }
.tfb-vid__media:hover .tfb-vid__play, .tfb-vid__media:focus-visible .tfb-vid__play { background: var(--tfb-gold); }
.tfb-vid__dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 7px; border-radius: 4px; }
.tfb-vid__body { padding: 14px 14px 16px; }
.tfb-vid__name { font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 20px; color: var(--tfb-navy); }
.tfb-vid__desc { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--tfb-muted); }

.tfb-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 12, 22, .88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.tfb-modal[hidden] { display: none; }
.tfb-modal__box { position: relative; width: min(1100px, 100%); }
.tfb-modal__video { display: block; width: 100%; max-height: 82vh; background: #000; border-radius: 6px; }
.tfb-modal__close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tfb-modal__close svg { width: 22px; height: 22px; }
.tfb-modal__close:hover { background: var(--tfb-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .tfb-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
    .tfb-grid { gap: 22px; }
    .tfb-card__btn { font-size: 16px; padding: 11px 14px; }
    .tfb-card__price { font-size: 28px; }
}
@media (max-width: 1100px) {
    .tfb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .tfb-hero__wrap { grid-template-columns: 1fr; gap: 22px; }
    .tfb-hero__media { order: -1; aspect-ratio: 16 / 7; }
    .tfb-layout { grid-template-columns: 1fr; gap: 18px; }
    .tfb-side { position: static; }
    .tfb-side__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--tfb-navy); color: #fff; border: 0; border-radius: 6px; padding: 13px 16px; font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 17px; cursor: pointer; }
    .tfb-side__toggle svg { width: 20px; height: 20px; transition: transform .25s; }
    .tfb-side.is-open .tfb-side__toggle svg { transform: rotate(180deg); }
    .tfb-side__panels { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
    .tfb-side.is-open .tfb-side__panels { display: grid; }
    .tfb-filter { margin-bottom: 0; }
}
@media (max-width: 700px) {
    .tfb-grid { grid-template-columns: 1fr; gap: 20px; }
    .tfb-side__panels { grid-template-columns: 1fr; }
    .tfb-main__head { flex-direction: column; align-items: stretch; }
    .tfb-sort { width: 100%; }
    .tfb-notice__inner { padding: 18px 18px; font-size: 15px; }
    .tfb-card:hover { transform: none; }
}
@media (max-width: 420px) {
    .tfb-hero { padding-top: 24px; }
    .tfb-hero__perks { gap: 12px 18px; }
    .tfb-card__price { font-size: 26px; }
    .tfb-card__btn { font-size: 15px; padding: 10px 12px; gap: 7px; }
    .tfb-vids__grid { grid-template-columns: 1fr; }
}
