/* home-new.css - preview of the new home page (home-new.asp). Created 2026-11-20. */
body{margin:0}
a{color:#293650;text-decoration:none}a:hover{color:#1B2538}
.zoom{overflow:hidden}
.zoom img{transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.zoom:hover img{transform:scale(1.06)}
.lift{transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s cubic-bezier(.2,.7,.2,1)}
.lift:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(27,37,56,.14)}
.btn{transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(27,37,56,.22)}
.navlink{position:relative;padding:8px 0}
.navlink::after{content:"";position:absolute;right:0;bottom:0;height:2px;width:0;background:#F6891F;transition:width .3s ease}
.navlink:hover::after{width:100%}
.arrow{transition:transform .35s ease}
.zoom:hover .arrow{transform:translateX(-6px)}
@keyframes rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.rise{animation:rise 1s cubic-bezier(.2,.7,.2,1) both}
@keyframes ken{from{transform:scale(1.1)}to{transform:scale(1)}}
.ken{animation:ken 16s ease-out both}
@media (prefers-reduced-motion:reduce){.rise,.ken{animation:none}.zoom img,.lift,.btn,.arrow{transition:none}}

html{scroll-behavior:smooth}
.reveal{opacity:0;transform:translateY(26px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}}

/* product cards: hidden checkbox inside the sketch button, driven by the existing quote cart in design/js/common.js */
.ts-quote-btn{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.ts-quote-btn input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.ts-quote-btn:focus-within{outline:3px solid #F6891F;outline-offset:2px}
.selected-for-quote .ts-quote-btn{background:#293650 !important;color:#FFFFFF !important}
.selected-for-quote{border-color:#293650 !important}
.ts-form-ok{background:#FFFFFF;border-radius:6px;padding:18px 20px;font-size:18px;font-weight:700;max-width:520px;box-sizing:border-box}

/* ---- quote cart bar + modal: copied from design/css/style.css (site CSS is not loaded on this page) ---- */
.teamsport-quote-bar{
    position:fixed;
    right:0;
    left:0;
    bottom:0;
    z-index:99990;
    background:#fff;
    border-top:1px solid #ddd;
    box-shadow:0 -2px 12px rgba(0,0,0,.12);
    padding:12px 14px;
    direction:rtl;
    font-family:Arial;
}

.teamsport-quote-bar-inner{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.teamsport-quote-count{
    font-size:15px;
    font-weight:bold;
    color:#111;
}

.teamsport-quote-open{
    border:0;
    background:#111;
    color:#fff;
    border-radius:8px;
    padding:12px 22px;
    min-width:230px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.teamsport-quote-open.disabled{
    opacity:.45;
    pointer-events:none;
}

.teamsport-quote-modal{
    position:fixed;
    inset:0;
    z-index:100001;
    display:none;
    direction:rtl;
    font-family:Arial;
}

.teamsport-quote-modal.active{
    display:block;
}

.teamsport-quote-modal-bg{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}

.teamsport-quote-modal-dialog{
    position:relative;
    width:min(760px, calc(100vw - 24px));
    margin:35px auto;
    background:#fff;
    border-radius:18px;
    box-shadow:0 18px 60px rgba(0,0,0,.28);
    overflow:hidden;
}

.teamsport-quote-modal-head{
    position:relative;
    background:#111;
    color:#fff;
    padding:18px 70px 18px 24px;
    text-align:right;
}

.teamsport-quote-modal-head h3{
    margin:0;
    font-size:28px;
    color:#fff;
}

.teamsport-quote-modal-head p{
    margin:7px 0 0;
    font-size:14px;
    color:#eee;
}

.teamsport-quote-close{
    position:absolute;
    left:14px;
    top:12px;
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

.teamsport-quote-modal-body{
    padding:16px;
    max-height:calc(100vh - 160px);
    overflow:auto;
    background:#f7f7f7;
}

.teamsport-quote-products-box{
    background:#fff;
    border:1px solid #ddd;
    border-radius:14px;
    padding:14px;
    margin-bottom:16px;
}

.teamsport-quote-products-box h4{
    margin:0 0 12px;
    font-size:18px;
    color:#111;
}

#teamsportSelectedProducts{
    display:flex;
    flex-direction:column;
    gap:10px;
    max-height:300px;
    overflow:auto;
}

.teamsport-quote-empty{
    color:#900;
    font-weight:bold;
}

.teamsport-quote-product{
    display:grid;
    grid-template-columns:70px 1fr auto;
    gap:12px;
    align-items:center;
    background:#fafafa;
    border:1px solid #eee;
    border-radius:10px;
    padding:10px;
}

.teamsport-quote-product img{
    width:70px;
    height:70px;
    object-fit:contain;
    background:#fff;
    border:1px solid #eee;
}

.teamsport-quote-product-name{
    font-size:15px;
    font-weight:bold;
    color:#111;
}

.teamsport-quote-remove{
    border:1px solid #ccc;
    background:#eee;
    color:#900;
    padding:8px 12px;
    cursor:pointer;
    border-radius:6px;
    font-weight:bold;
}

.teamsport-quote-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.teamsport-quote-form-row.full{
    grid-column:1 / -1;
}

.teamsport-quote-form-row label{
    display:block;
    margin-bottom:4px;
    font-weight:bold;
    color:#111;
}

.teamsport-quote-form-row input,
.teamsport-quote-form-row textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid #ccc;
    border-radius:8px;
    padding:10px;
    font-family:Arial;
    font-size:14px;
}

.teamsport-quote-form-row textarea{
    min-height:85px;
}

.teamsport-quote-submit{
    width:100%;
    border:0;
    background:#111;
    color:#fff;
    border-radius:8px;
    padding:13px;
    font-size:17px;
    font-weight:bold;
    cursor:pointer;
    margin-top:10px;
}

@media(max-width:767px){
    .teamsport-quote-bar-inner{
        flex-direction:column;
        align-items:stretch;
    }

    .teamsport-quote-open{
        width:100%;
    }

    .teamsport-quote-form-grid{
        grid-template-columns:1fr;
    }

    .teamsport-quote-product{
        grid-template-columns:60px 1fr;
    }

    .teamsport-quote-remove{
        grid-column:1 / -1;
    }
}
/* accessibility panel is a dialog: it sits above the fixed quote bar, otherwise the bar hides its bottom buttons on phones */
.edit_menu.acs_widget{z-index:100000 !important;}

/* bar shows only after the first product is picked (home-new.js sets body.ts-has-picks) */
.teamsport-quote-bar{display:none}
body.ts-has-picks .teamsport-quote-bar{display:block}
body.teamsport-has-quote-bar{padding-bottom:0}
body.ts-has-picks{padding-bottom:92px}

/* ---- catalog dropdown in the header: full category tree from the DB ---- */
header{position:relative;z-index:60}
html.ts-lock{overflow:hidden}
.ts-dd{display:flex;align-items:center}
.ts-dd-btn{display:inline-flex;align-items:center;gap:6px}
.ts-dd-btn svg{transition:transform .25s ease}
.ts-dd.open .ts-dd-btn svg{transform:rotate(180deg)}
.ts-mega{position:absolute;top:100%;right:0;left:0;background:#FFFFFF;color:#293650;border-top:3px solid #F6891F;box-shadow:0 24px 48px rgba(27,37,56,.18);max-height:calc(100vh - 110px);overflow:auto;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease,visibility .22s}
.ts-dd.open .ts-mega{opacity:1;visibility:visible;transform:none}
.ts-mega-in{max-width:1240px;margin:0 auto;padding:24px 32px 30px;box-sizing:border-box}
.ts-mega-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:20px;border-bottom:1px solid #E6E9EF}
.ts-mega-all{font-weight:800;font-size:17px;color:#293650;border-bottom:3px solid #F6891F;padding-bottom:3px}
.ts-mega-close{display:none;width:44px;height:44px;align-items:center;justify-content:center;font:inherit;font-size:30px;line-height:1;background:none;border:0;color:#293650;cursor:pointer}
.ts-mega-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.ts-mega-col+.ts-mega-col{border-right:1px solid #D5DAE3;padding-right:28px}
.ts-mega-h{display:block;font-weight:900;font-size:19px;color:#1B2538;margin-bottom:6px}
.ts-mega-t{display:block;font-weight:800;font-size:14px;color:#F6891F;margin:12px 0 4px}
.ts-mega-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.ts-mega-flat{margin-top:10px}
.ts-mega-list a{display:block;padding:5px 0;font-size:14.5px;color:#293650}
.ts-mega-list a:hover,.ts-mega-h:hover,.ts-mega-t:hover{color:#F6891F}
@media (hover:hover) and (min-width:901px){
  .ts-dd{align-self:stretch;margin:-14px 0}
  .ts-dd:hover .ts-mega,.ts-dd:focus-within .ts-mega{opacity:1;visibility:visible;transform:none}
  .ts-dd:hover .ts-dd-btn svg{transform:rotate(180deg)}
}
@media (max-width:900px){
  .ts-mega{position:fixed;inset:0;max-height:none;border-top:0;z-index:1000}
  .ts-mega-close{display:flex}
  .ts-mega-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ts-mega-col:nth-child(odd){border-right:0;padding-right:0}
  .ts-mega-col:nth-child(n+3){border-top:1px solid #D5DAE3;padding-top:18px}
}
@media (max-width:560px){
  .ts-mega-in{padding:12px 16px 28px}
  .ts-mega-cols{grid-template-columns:1fr;gap:22px}
  .ts-mega-col+.ts-mega-col{border-right:0;padding-right:0;border-top:1px solid #D5DAE3;padding-top:18px}
}

/* ---- category tiles: sub categories on hover / first tap (like the existing home page) ---- */
.cat-main{position:absolute;inset:0;display:block;color:inherit}
.cat-panel{position:absolute;top:0;right:0;left:0;max-height:calc(100% - 78px);overflow:auto;box-sizing:border-box;padding:14px;background:rgba(255,255,255,.95);color:#293650;z-index:2;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .25s ease,transform .25s ease,visibility .25s}
.cat-tile.open .cat-panel,.cat-tile:focus-within .cat-panel{opacity:1;visibility:visible;transform:none}
@media (hover:hover){.cat-tile:hover .cat-panel{opacity:1;visibility:visible;transform:none}}
.cat-tabs{display:flex;gap:6px;margin-bottom:8px}
.cat-tab{flex:1;font:inherit;font-weight:800;font-size:15px;padding:8px 6px;border:1px solid #293650;border-radius:4px;background:transparent;color:#293650;cursor:pointer}
.cat-tab.is-on{background:#293650;color:#FFFFFF}
.cat-pane{display:none}
.cat-pane.is-on{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.cat-pane a{display:block;padding:5px 2px;font-size:14px;font-weight:500;color:#293650;border-bottom:1px solid rgba(41,54,80,.1)}
.cat-pane a:hover,.cat-top:hover{color:#F6891F}
.cat-pane .cat-all{grid-column:1 / -1;font-weight:800}
.cat-top{display:block;margin-top:10px;font-weight:800;font-size:14px;color:#293650}
@media (max-width:560px){.cat-panel{padding:10px 12px;max-height:calc(100% - 70px)}.cat-tab{padding:6px}.cat-pane a{padding:4px 2px;font-size:13.5px}.cat-top{margin-top:6px}}
@media (prefers-reduced-motion:reduce){.ts-mega,.cat-panel,.ts-dd-btn svg{transition:none}}
