/* FT Sales Boost: front end polish for fitnesstrip.gr. Accent follows the theme green. */
:root{--ftsb-green:#6adf9e;--ftsb-ink:#111;--ftsb-line:#e8e8e8}

/* 1. Product page: compact title band so image, price and buy button are on the first screen */
body.single-product header.subheader{min-height:0!important;height:auto!important;padding-top:110px!important;padding-bottom:22px!important}
body.single-product header.subheader h1,body.single-product header.subheader h2,body.single-product header.subheader .subheader-heading{font-size:clamp(26px,3.4vw,44px)!important;line-height:1.1!important;margin:0!important}
body.single-product header.subheader .container{min-height:0!important}
@media(max-width:768px){body.single-product header.subheader{padding-top:84px!important;padding-bottom:14px!important}}

body.single-product main > .container{padding-top:26px!important}
body.single-product .summary.entry-summary form.cart{margin-top:6px!important;padding-top:10px!important;padding-bottom:12px!important}
body.single-product .summary .price{margin-top:6px!important}
@media(max-width:768px){body.single-product main > .container{padding-top:16px!important}}

/* 2. Trust strip under the buy button */
.ftsb-trust{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px 18px;margin:16px 0 6px;padding:14px 16px;border:1px solid var(--ftsb-line);border-radius:10px;background:#fafafa;list-style:none}
.ftsb-trust{padding:14px 16px!important;list-style:none!important}
.ftsb-trust li{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.35;color:#222;margin:0!important;padding:0!important}
.ftsb-trust svg{flex:0 0 20px;width:20px;height:20px;stroke:#1f9d62;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 3. Sticky buy bar (phones and tablets) */
.ftsb-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:none;align-items:center;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--ftsb-line);box-shadow:0 -6px 20px rgba(0,0,0,.08);transform:translateY(110%);transition:transform .28s ease}
.ftsb-bar.ftsb-show{transform:none}
.ftsb-bar__info{flex:1;min-width:0;line-height:1.2}
.ftsb-bar__title{display:block;font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftsb-bar__price{display:block;font-size:15px;color:#111}
.ftsb-bar__price del{opacity:.5;margin-right:6px}
.ftsb-bar__btn{flex:0 0 auto;border:0;border-radius:8px;padding:13px 18px;background:var(--ftsb-green);color:#0b2a1a;font-weight:800;font-size:14px;cursor:pointer}
.ftsb-bar__btn.ftsb-nudge{animation:ftsbNudge .5s ease}
@media(max-width:900px){body.single-product .ftsb-bar{display:flex}body.single-product{padding-bottom:70px}}

/* 4. Free shipping progress */
.ftsb-ship{margin:0 0 14px;padding:12px 14px;border:1px solid var(--ftsb-line);border-radius:10px;background:#fafafa;font-size:14px;line-height:1.35}
.ftsb-ship strong{color:#0b6b3f}
.ftsb-ship__track{height:8px;border-radius:99px;background:#e6e6e6;margin-top:8px;overflow:hidden}
.ftsb-ship__fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#3fcf86,var(--ftsb-green));border-radius:99px;transition:width .7s cubic-bezier(.2,.8,.2,1)}
.ftsb-ship.ftsb-done{background:#effbf4;border-color:#bfeacf}
.widget_shopping_cart .ftsb-ship{margin:10px 0}

/* 5. Motion: reveal on scroll, card hover, cart pulse, toast. All of it is off for reduced motion. */
.ftsb-reveal{opacity:0;transform:translateY(26px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1);transition-delay:var(--ftsb-d,0s)}
.ftsb-reveal.ftsb-in{opacity:1;transform:none}
ul.products li.product .product-inner{transition:transform .25s ease,box-shadow .25s ease}
ul.products li.product:hover .product-inner{transform:translateY(-5px);box-shadow:0 14px 30px rgba(0,0,0,.12)}
ul.products li.product img{transition:transform .5s ease}
ul.products li.product:hover img{transform:scale(1.04)}
.ftsb-pulse{animation:ftsbPulse .6s ease}
.ftsb-toast{position:fixed;top:92px;right:16px;z-index:99999;display:flex;align-items:center;gap:12px;max-width:min(92vw,360px);padding:12px 14px;border-radius:10px;background:#111;color:#fff;font-size:14px;box-shadow:0 12px 30px rgba(0,0,0,.3);opacity:0;transform:translateY(-10px);transition:opacity .25s ease,transform .25s ease;pointer-events:none}
.ftsb-toast.ftsb-in{opacity:1;transform:none;pointer-events:auto}
.ftsb-toast a{color:var(--ftsb-green);font-weight:700;white-space:nowrap}
@keyframes ftsbPulse{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes ftsbNudge{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* 6. Home: goal chips under the hero */
.ftsb-goals{background:#0e0e0e;padding:20px 16px;text-align:center}
.ftsb-goals__title{margin:0 0 12px;color:#fff;font-weight:700;font-size:clamp(15px,2vw,19px);letter-spacing:.02em}
.ftsb-goals__row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ftsb-goals a{display:inline-block;padding:11px 20px;border:1px solid rgba(106,223,158,.6);border-radius:99px;color:#fff;font-weight:600;font-size:15px;text-decoration:none;transition:background .2s ease,color .2s ease,transform .2s ease}
.ftsb-goals a:hover{background:var(--ftsb-green);color:#0b2a1a;transform:translateY(-2px)}
.ftsb-goals a.ftsb-chip-hot{background:var(--ftsb-green);color:#0b2a1a}

/* 7. Social rail (desktop) */
.ftsb-rail{position:fixed;left:0;top:66%;z-index:9980;display:none;flex-direction:column;gap:6px;transform:translateY(-50%)}
.ftsb-rail a{display:flex;align-items:center;justify-content:center;width:42px;height:42px;background:#111;color:#fff;border-radius:0 8px 8px 0;transition:width .2s ease,background .2s ease}
.ftsb-rail a:hover{width:52px;background:#1f9d62}
.ftsb-rail svg{width:20px;height:20px;fill:currentColor}
@media(min-width:901px){.ftsb-rail{display:flex}}

@media(prefers-reduced-motion:reduce){
 .ftsb-reveal{opacity:1!important;transform:none!important;transition:none!important}
 ul.products li.product .product-inner,ul.products li.product img,.ftsb-ship__fill,.ftsb-toast,.ftsb-bar{transition:none!important}
 .ftsb-pulse,.ftsb-bar__btn.ftsb-nudge{animation:none!important}
 ul.products li.product:hover .product-inner{transform:none}
 ul.products li.product:hover img{transform:none}
}
