/* KitsFlow 1.2: homepage layout, product page, basket and checkout. Loads after the original theme. */

/* ---------- Homepage: smaller mobile banner, players in view ---------- */
@media (max-width:860px){
  .hero__card{min-height:0}
  .hero__copy{padding:22px 20px 10px}
  .hero__eyebrow{margin-bottom:8px}
  .hero__title{font-size:44px;line-height:.95;margin-bottom:8px}
  .hero__text{font-size:14px;line-height:1.45;margin-bottom:14px}
  .hero__ctas{gap:8px}
  .hero__ctas .btn{padding:10px 16px;font-size:14px}
  .hero__card--backdrop .hero__media{min-height:216px}
  .hero__card--backdrop .hero__bg{height:236px;object-position:50% 14%;-webkit-mask-image:linear-gradient(transparent 0,#000 14%);mask-image:linear-gradient(transparent 0,#000 14%)}
}

/* ---------- Homepage: Fan version, Kids, Retro. No Mystery box ---------- */
.collections .collection-tile--1{order:1}
.collections .collection-tile--0{order:2}
.collections .collection-tile--2{order:3}
.collections .collection-tile--3{display:none}
@media (min-width:861px){.collections{grid-template-columns:repeat(3,minmax(0,1fr))}}
.collection-tile__tag.kf-empty{visibility:hidden}

/* ---------- Homepage: "Infants and kids" tile with a black title on a light fade ---------- */
.collections a.collection-tile.collection-tile--0::after{background:linear-gradient(to top,rgba(244,242,238,.96) 0,rgba(244,242,238,.88) 26%,rgba(244,242,238,0) 62%)}
.collections .collection-tile--0 .collection-tile__name{color:#111}
.collections .collection-tile--0 .collection-tile__cta{background:#111;color:#fff}

/* ---------- Homepage: Kits of the moment shows 4 per tab ---------- */
main > section.section:not(.kids):not(.leagues) .tab-panel ul.products > li.product:nth-child(n+5){display:none}

/* ---------- Homepage: no Kids & baby block (Top 5 leagues moves up) ---------- */
main > section.kids{display:none}

/* ---------- Product cards ---------- */
.kit-card .kit-card__media img{transition:transform .35s ease}
.kit-card:hover .kit-card__media img{transform:scale(1.04)}
@media (prefers-reduced-motion:reduce){.kit-card .kit-card__media img{transition:none}.kit-card:hover .kit-card__media img{transform:none}}

/* ---------- Product page: size dropdown ---------- */
.variations select.kf-size-select,.variations select[name="attribute_pa_kids-size"]{width:100%;max-width:340px;min-height:50px;padding:0 14px;border:1.5px solid rgba(0,0,0,.3);border-radius:10px;background-color:#fff;color:#111;font-size:16px;font-weight:600;cursor:pointer}
.variations select.kf-size-select:focus-visible{outline:3px solid #d21f3c;outline-offset:2px}
.variations select.kf-size-select.kf-invalid{border-color:#b3122e}
.kf-size-error{margin:6px 0 0;color:#b3122e;font-size:14px;font-weight:600}
.kf-shake{animation:kf-shake .35s}
@keyframes kf-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* ---------- Product page: sticky add-to-basket bar ---------- */
.kf-sticky{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -8px 24px -10px rgba(0,0,0,.3);transform:translateY(110%);transition:transform .3s ease}
.kf-sticky.is-visible{transform:none}
.kf-sticky__info{min-width:0;display:flex;flex-direction:column;font-size:14px;line-height:1.3}
.kf-sticky__info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kf-sticky__btn{flex:none;min-height:48px;padding:0 22px;border:0;border-radius:999px;background:#d21f3c;color:#fff;font-weight:700;cursor:pointer}
@media (min-width:861px){.kf-sticky{left:auto;right:24px;bottom:24px;width:420px;border-radius:16px;box-shadow:0 12px 40px -12px rgba(0,0,0,.4)}}
@media (prefers-reduced-motion:reduce){.kf-sticky{transition:none}.kf-shake{animation:none}}

/* ---------- Basket and checkout ---------- */
.kf-checkout-trust{list-style:none;margin:16px 0;padding:14px 16px;border-radius:12px;background:#f4f2ee;display:grid;gap:8px;font-size:14px}
.kf-checkout-trust li::before{content:"\2713";margin-right:8px;font-weight:700;color:#1d7a46}
.woocommerce-checkout #place_order{width:100%;min-height:56px;font-size:17px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row select{min-height:48px;font-size:16px}

/* ---------- Product page: name and number printing ---------- */
.kf-print{margin:14px 0 16px;padding:14px 16px 6px;border:1.5px solid rgba(0,0,0,.14);border-radius:12px;display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:0 12px;min-width:0}
.kf-print legend{padding:0 6px;font-weight:700;font-size:14px}
.kf-print__row{margin:0 0 10px}
.kf-print__row label{display:block;margin-bottom:5px;font-size:14px;font-weight:600}
.kf-print__row input{box-sizing:border-box;width:100%;min-height:46px;padding:0 12px;border:1.5px solid rgba(0,0,0,.3);border-radius:10px;font-size:16px;text-transform:uppercase;background:#fff;color:#111}
.kf-print__row input::placeholder{text-transform:none;color:#8a8a8a}
.kf-print__row input:focus-visible{outline:3px solid #d21f3c;outline-offset:2px}
.kf-print__note{grid-column:1/-1;margin:0 0 8px;font-size:13px;color:#555}
.kf-print__note[data-kf-print-total]{font-weight:700;color:#111;font-size:14px}

/* ---------- Product page: other kits from the same team and season ---------- */
.kf-kit-set{clear:both;margin:36px 0 12px}
.kf-kit-set h2{margin:0 0 16px}

/* ---------- v1.3.1: size dropdown instead of buttons, roomier name and number box ---------- */
.kf-personalise{display:none!important}
.variations .kf-pills{display:none!important}
.variations select.kf-size-select,.variations select[name="attribute_pa_kids-size"]{position:static!important;clip:auto!important;clip-path:none!important;width:100%!important;max-width:340px;height:auto!important;min-height:50px;opacity:1!important;overflow:visible!important;margin:0!important;padding:0 14px!important;white-space:normal!important;border:1.5px solid rgba(0,0,0,.3)!important;border-radius:10px;background-color:#fff;color:#111;font-size:16px;font-weight:600;-webkit-appearance:auto!important;appearance:auto!important;visibility:visible!important}
.kf-print{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 12px;width:100%;box-sizing:border-box;flex:0 0 100%}
.kf-print__row label{white-space:nowrap}
@media (min-width:861px){.kf-sticky{transform:translateY(calc(100% + 60px))}.kf-sticky.is-visible{transform:none}}

/* ---------- v1.3.2: league links top bar ---------- */
.kf-league-bar{background:#111;color:#fff}
.kf-league-bar__inner{display:flex;justify-content:center;gap:34px;padding:9px 16px;font-size:14px;flex-wrap:wrap}
.kf-league-bar a{color:#fff;text-decoration:none;font-weight:600}
.kf-league-bar a:hover{color:#c6f531;text-decoration:underline}
@media (max-width:640px){.kf-league-bar__inner{gap:18px;font-size:13px}}
.promo-bar{display:none}

/* ---------- Join the squad sign-up (MailPoet form) ---------- */
.newsletter__form .mailpoet_form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0;padding:0!important}
.newsletter__form .mailpoet_paragraph{margin:0!important}
.newsletter__form .mailpoet_paragraph:has(input.mailpoet_text){flex:1 1 220px}
.newsletter__form input.mailpoet_text{box-sizing:border-box;width:100%!important;min-height:52px;padding:0 20px!important;border:1.5px solid rgba(0,0,0,.25)!important;border-radius:999px!important;background:#fff!important;color:#111;font-size:16px!important}
.newsletter__form input.mailpoet_text:focus{outline:3px solid #d21f3c;outline-offset:2px}
.newsletter__form input.mailpoet_submit{width:auto!important;min-height:52px;padding:0 26px!important;border:0!important;border-radius:999px!important;background:#111!important;color:#fff!important;font-size:16px!important;font-weight:700;cursor:pointer}
.newsletter__form input.mailpoet_submit:hover{background:#d21f3c!important}
.newsletter__form .mailpoet_message{flex-basis:100%;margin:0}
.newsletter__form .mailpoet_validate_success{color:#1d7a46;font-weight:600}
.newsletter__form .mailpoet_validate_error{color:#b3122e}
