/* S-FIX theme: header search panel (search.js) */
.sfx-header{position:relative}
.sfx-search{position:absolute;left:0;right:0;top:100%;z-index:60;background:#fff;border-bottom:1px solid #e5e5ea;box-shadow:0 18px 40px rgba(0,0,0,.12)}
.sfx-search[hidden]{display:none}
.sfx-search-in{max-width:760px;margin:0 auto;padding:18px 22px 20px}
.sfx-search-form{display:flex;align-items:center;gap:10px;border:1.5px solid #1C3F94;border-radius:999px;padding:0 8px 0 16px;color:#6e6e73;background:#fff}
.sfx-search-form input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:400 17px/1.2 "Inter",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;color:#1d1d1f;padding:13px 0}
.sfx-search-form input::-webkit-search-cancel-button{display:none}
.sfx-search-close{flex:none;border:0;background:#f5f5f7;color:#1d1d1f;border-radius:999px;font:600 13px/1 "Inter",sans-serif;padding:9px 14px;cursor:pointer}
.sfx-search-results{margin-top:10px;max-height:60vh;overflow:auto}
.sfx-search-item{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:10px 8px;border-radius:12px;text-decoration:none;color:#1d1d1f}
.sfx-search-item:hover,.sfx-search-item:focus{background:#f5f7fc;outline:0}
.sfx-search-item img,.sfx-search-noimg{width:52px;height:52px;object-fit:contain;background:#f5f5f7;border-radius:10px;display:block}
.sfx-search-item b{display:block;font:600 15px/1.3 "Inter",sans-serif}
.sfx-search-item small{display:block;color:#6e6e73;font-size:13px;margin-top:2px}
.sfx-search-item em{font-style:normal;font:600 15px/1 "Inter",sans-serif;white-space:nowrap}
.sfx-search-none{color:#6e6e73;font-size:15px;padding:12px 8px;margin:0}
.sfx-search-none a{color:#1C3F94}
.sfx-search-all{display:block;text-align:center;margin-top:6px;padding:12px;border-radius:12px;color:#1C3F94;font:600 15px/1 "Inter",sans-serif;text-decoration:none}
.sfx-search-all:hover{background:#f5f7fc}
@media (max-width:760px){.sfx-search-in{padding:14px 16px 16px}.sfx-search-item{grid-template-columns:44px 1fr auto}.sfx-search-item img,.sfx-search-noimg{width:44px;height:44px}}
/* contact form result messages (contact-send.js) */
#contact-form .form-note.form-error{background:#fdecec;color:#7f1d1d;border-radius:12px;padding:12px 14px}
#contact-form .form-sent{font-size:17px;line-height:1.55;color:#424245;margin:0}
#contact-form button.send[disabled]{opacity:.6;cursor:wait}

/* ---- "Added to your basket" box (basket.js) ---- */
.tile-toast{display:none!important}
.sfx-added{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:10000;width:360px;max-width:calc(100vw - 32px);background:#fff;color:#1d1d1f;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.22);padding:16px 18px 16px;font:400 14px/1.4 "Inter",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif}
.sfx-added[hidden]{display:none}
.sfx-added-msg{display:flex;gap:8px;align-items:flex-start;margin:0 26px 12px 0;font-weight:600}
.sfx-added-msg svg{flex:none;color:#1a8f3c;margin-top:1px}
.sfx-added-btns{display:flex;gap:10px}
.sfx-added-btns a{flex:1;text-align:center;border-radius:999px;padding:11px 14px;font-weight:600;text-decoration:none!important}
.sfx-added-go{background:#1C3F94;color:#fff!important}
.sfx-added-go:hover{background:#163278}
.sfx-added-stay{border:1px solid #d2d2d7;color:#1d1d1f!important}
.sfx-added-x{position:absolute;top:8px;right:10px;border:0;background:none;font-size:22px;line-height:1;color:#6e6e73;cursor:pointer;padding:4px}
@media (max-width:600px){.sfx-added{left:16px;right:16px;width:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px))}}

/* ---- Shop on phones and tablets: Filter button + bottom sheet (shop-filter.js), like RetroSport ---- */
.sfx-mbar,.sfx-sheet-head,.sfx-sheet-foot,.sfx-sheet-scrim{display:none}
@media (max-width:1023px){
  aside.filters{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;z-index:10001;max-height:86vh;overflow-y:auto;overscroll-behavior:contain;border-radius:20px 20px 0 0!important;padding:0 20px!important;margin:0!important;box-shadow:0 -10px 40px rgba(0,0,0,.18);transform:translateY(105%);visibility:hidden;transition:transform .28s ease,visibility 0s linear .28s}
  aside.filters.is-open{transform:none;visibility:visible;transition:transform .28s ease}
  aside.filters .fhead{display:none}
  .sfx-sheet-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;padding:18px 0 10px;font:700 19px/1.2 "Inter",-apple-system,sans-serif;z-index:1}
  .sfx-sheet-x{width:40px;height:40px;border:0;border-radius:50%;background:none;font-size:28px;line-height:1;color:#1d1d1f;cursor:pointer}
  .sfx-sheet-foot{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;position:sticky;bottom:0;background:#fff;padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e5e5ea;margin-top:10px}
  .sfx-sheet-foot button{border-radius:999px;padding:13px 14px;font:600 15px/1 "Inter",-apple-system,sans-serif;cursor:pointer}
  .sfx-sheet-clear{background:#fff;border:1px solid #d2d2d7;color:#1d1d1f}
  .sfx-sheet-done{background:#1C3F94;border:0;color:#fff}
  .sfx-sheet-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:10000;background:rgba(20,20,22,.5)}
  html.sfx-sheet-lock,html.sfx-sheet-lock body{overflow:hidden}
  .sfx-filter-n[hidden]{display:none}
  .main-col .bar{flex-wrap:wrap;gap:10px}
  /* phone bar as on RetroSport: Sort by | Filter, then the product count; categories live in the Filter sheet */
  .main-col .pills{display:none!important}
  .sfx-mbar{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 14px}
  .sfx-mbar-btn{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;height:50px;padding:0 18px;border:1.5px solid #1d1d1f;border-radius:999px;background:#fff;color:#1d1d1f;font:600 16px/1 "Inter",-apple-system,sans-serif;cursor:pointer;margin:0}
  .sfx-mbar-sort select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
  .main-col .bar #sort{display:none}
  .sfx-filter-n{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:10px;background:#1C3F94;color:#fff;font-size:12px;padding:0 5px;margin-left:4px;vertical-align:1px}
}

/* ---- Product page text a little smaller on phones ---- */
@media (max-width:760px){#short p,#short li{font-size:16.5px!important;line-height:1.55}}
/* the "Added to your basket" box replaces the old line under the button */
#addednote{display:none!important}

/* ---- Empty basket: "Return to shop" in the S-FIX navy ---- */
.wp-block-woocommerce-empty-cart-block .wp-block-button__link,.wc-block-cart__empty-cart__title + .wp-block-buttons .wp-block-button__link{background:#1C3F94!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:14px 28px!important;font-weight:600}
.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover{background:#163278!important}

/* ---- Shop on phones: two product tiles side by side ---- */
@media (max-width:600px){
  #grid.grid,.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .tile{position:relative;border-radius:14px!important;padding-bottom:12px!important}
  .tile .ph{padding:6px 8px!important}
  .tile .body{padding:0 10px!important;gap:3px!important}
  .tile .name,.tile .name[style]{font-size:14px!important;line-height:1.25!important;overflow-wrap:anywhere}
  .tile .price{font-size:14px!important}
  .tile .price .vat{font-size:10.5px!important}
  .tile .sku{font-size:11px!important}
  .tile .choices{flex-wrap:wrap!important;justify-content:center;gap:3px!important;margin:4px 0!important}
  .tile .choice{font-size:11px!important;padding:4px 7px!important;min-height:0!important}
  .tile .more{font-size:12.5px!important;padding-top:6px!important;padding-right:38px!important;white-space:nowrap}
  .tile .tile-add{top:auto!important;bottom:10px!important;right:8px!important;width:34px!important;height:34px!important}
}

/* ---- Phones: nothing spills out of a product tile ---- */
@media (max-width:600px){
  .tile{overflow:hidden;min-width:0}
  .tile .name,.tile .name[style]{white-space:normal!important;overflow-wrap:break-word;hyphens:auto}
  .tile .body,.tile .choices{min-width:0;max-width:100%}
  .variant-tile .choices,.variant-tile .choices.many{flex-wrap:wrap!important}
  .variant-tile .choice,.variant-tile .choices .choice,.variant-tile[data-name] .choices .choice{white-space:normal!important;height:auto!important;min-height:28px!important;line-height:1.2!important;padding:5px 6px!important;font-size:11.5px!important;max-width:100%;overflow-wrap:break-word}
  .tile .price{display:flex;flex-wrap:wrap;justify-content:center;column-gap:4px}
}

/* ---- Shop: a product widened to fill the end of a row (shop-gaps.js) sits side by side ---- */
.tile.sfx-fill{display:grid!important;grid-template-columns:minmax(0,40%) minmax(0,1fr);grid-template-rows:auto;align-items:center;column-gap:12px;padding-bottom:0!important}
.tile.sfx-fill > .ph{grid-column:1;grid-row:1 / span 3;max-width:260px;width:100%;justify-self:center}
.tile.sfx-fill > .body{grid-column:2;padding:16px 16px 16px 0!important}
@media (max-width:600px){.tile.sfx-fill > .body{padding:12px 48px 12px 0!important}.tile.sfx-fill .more{padding-right:0!important}}
