/*
Theme Name: Weby Free
Theme URI: https://weby.tn/
Author: Weby
Author URI: https://weby.tn/
Description: Boutique en ligne Weby gratuite : design simplifié, bannières, catégories et produits, personnalisation visuelle et mobile.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: weby-free
Tags: e-commerce, custom-logo, custom-menu, rtl-language-support, translation-ready
License: GPL-2.0-or-later
*/

:root{--wf-accent:#fb6b28;--wf-ink:#172334;--wf-muted:#667085;--wf-bg:#fbfaf7;--wf-line:#e8e9ee;--wf-soft:#fff4ed;--wf-radius:18px;--wf-shadow:0 12px 34px rgba(20,30,54,.055)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.weby-free{margin:0;background:var(--wf-bg);color:var(--wf-ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
body.weby-free img{max-width:100%;height:auto}
body.weby-free a{text-decoration:none;color:inherit}
body.weby-free button,body.weby-free input,body.weby-free select{font:inherit}
body.weby-free :focus-visible{outline:3px solid var(--wf-accent);outline-offset:3px}
body.weby-free h1,body.weby-free h2,body.weby-free h3,body.weby-free p{margin-top:0}
body.weby-free h1,body.weby-free h2,body.weby-free h3{letter-spacing:-.035em;line-height:1.15}
.wf-shell{width:min(1180px,calc(100% - 44px));margin-inline:auto}
.wf-skip{position:absolute;top:-120px;inset-inline-start:12px;background:white;padding:12px;z-index:1000}.wf-skip:focus{top:12px}
.wf-topbar{background:#1c2b3a;color:#f4f5f6;font-size:12px}.wf-topbar .wf-shell{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:8px}.wf-topbar span:first-child{color:#ffd8be}
.wf-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #f0f0f2;box-shadow:0 5px 22px rgba(30,35,45,.035)}
.admin-bar .wf-header{top:32px}
.wf-header__inner{display:flex;align-items:center;gap:34px;min-height:84px}
.wf-brand{display:inline-flex;align-items:center;gap:10px;min-width:190px;max-width:270px;font-size:23px;font-weight:850;line-height:1.2;letter-spacing:-.06em}.wf-brand strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-brand img{display:block;max-height:64px;max-width:235px;width:auto;height:auto;object-fit:contain}
.wf-brand__mark{display:grid;place-items:center;flex:none;width:41px;height:41px;background:var(--wf-accent);color:#fff;border-radius:13px;font-size:24px;letter-spacing:0}
.wf-search{flex:1;max-width:600px;min-width:0}
.wf-search form{display:flex;align-items:center;overflow:hidden;border:1px solid #e6e7ea;background:#f8f9fb;border-radius:13px;height:47px}
.wf-search .search-field,.wf-search input[type="search"]{flex:1;min-width:0;width:100%;border:0!important;background:transparent!important;outline:none!important;padding:0 16px!important;margin:0!important;height:100%;box-shadow:none!important;font-size:14px}
.wf-search button,.wf-search button[type="submit"],.wf-search input[type="submit"]{height:100%;min-width:49px;padding:0 13px;border:0!important;border-radius:0!important;background:var(--wf-accent)!important;color:#fff!important;cursor:pointer;font-size:14px}
.wf-header__actions{display:flex;align-items:center;gap:10px;margin-inline-start:auto}
.wf-iconlink{display:grid;place-items:center;position:relative;width:42px;height:42px;border:1px solid #edeef2;border-radius:13px;color:#1c2938!important;background:#fff;transition:background .18s}.wf-iconlink:hover{background:var(--wf-soft)}
.wf-cart__count{position:absolute;top:-5px;inset-inline-end:-5px;display:grid;place-items:center;min-width:17px;height:17px;padding-inline:3px;background:var(--wf-accent);border-radius:50%;color:#fff;font-size:10px;font-weight:800}
.wf-nav{border-top:1px solid #f5f5f6}.wf-menu{display:flex;align-items:center;gap:32px;padding:0;margin:0;list-style:none;min-height:42px}.wf-menu>li{position:relative}.wf-menu a{display:inline-block;padding:12px 0;color:#536074!important;font-size:13px;font-weight:680}.wf-menu a:hover,.wf-menu .current-menu-item>a{color:var(--wf-accent)!important}.wf-menu .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:10;min-width:185px;padding:8px 15px;background:white;box-shadow:var(--wf-shadow);border:1px solid var(--wf-line);border-radius:12px;list-style:none}.wf-menu li:hover>.sub-menu,.wf-menu li:focus-within>.sub-menu{display:block}.wf-menu .sub-menu a{white-space:nowrap;padding:8px 0}
.wf-menu-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:42px;height:42px;background:white;border:1px solid var(--wf-line);border-radius:12px;cursor:pointer}.wf-menu-toggle span{display:block;width:19px;height:2px;margin-inline:auto;background:var(--wf-ink);border-radius:2px}
.wf-kicker{display:inline-block;color:var(--wf-accent);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.14em}
.wf-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;border-radius:11px;padding:12px 20px;font-weight:800;font-size:14px;border:1px solid transparent;transition:transform .18s,background .18s}.wf-btn:hover{transform:translateY(-2px)}
.wf-btn--white{background:#fff;color:#172334!important;box-shadow:0 7px 20px rgba(0,0,0,.07)}.wf-btn--outline{border-color:#718096;color:#fff!important}
/* Hero: one fixed frame, per-slide zoom and focal positioning, no distortion. */
.wf-hero{padding:23px 0 0}.wf-hero__shell{position:relative;border-radius:24px;overflow:hidden;isolation:isolate;height:430px;background:linear-gradient(115deg,#ff7a3d,#f35053 65%,#c74781);box-shadow:0 18px 52px rgba(235,92,47,.14)}
.wf-hero__shell::before,.wf-hero__shell::after{content:"";position:absolute;pointer-events:none;border-radius:50%;z-index:0}.wf-hero__shell::before{height:440px;width:440px;right:-105px;top:-175px;background:rgba(255,255,255,.10)}.wf-hero__shell::after{width:280px;height:280px;right:160px;bottom:-170px;border:55px solid rgba(255,255,255,.07)}
.wf-hero__slide{position:absolute;inset:0;display:flex;align-items:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s ease,visibility .5s ease;z-index:0;color:#fff}
.wf-hero__slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.wf-hero__slide::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(20,32,44,.67) 0%,rgba(28,37,50,.38) 48%,rgba(31,35,48,.05) 100%);pointer-events:none}
.wf-hero__slide--image-only::before{display:none}
.wf-visually-hidden{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px!important;width:1px!important;overflow:hidden;position:absolute!important;white-space:nowrap}
.wf-hero__picture{position:absolute;inset:0;overflow:hidden;width:100%;height:100%;display:block;z-index:0}
.wf-hero__picture img{position:absolute;inset:0;display:block;width:100%;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:var(--wf-hero-x,50%) var(--wf-hero-y,50%)!important;transform:scale(var(--wf-hero-zoom,1));transform-origin:var(--wf-hero-x,50%) var(--wf-hero-y,50%)}
.wf-hero__content{position:relative;z-index:2;max-width:670px;padding:35px clamp(24px,6vw,76px);text-shadow:0 2px 14px rgba(0,0,0,.10)}
.wf-hero__content .wf-kicker{color:#ffe1c9;margin-bottom:12px}.wf-hero__content h1,.wf-hero__content h2{font-size:clamp(30px,4.6vw,57px);font-weight:850;max-width:610px;margin:0 0 19px;color:#fff}.wf-hero__content p{font-size:clamp(14px,1.5vw,18px);line-height:1.6;max-width:550px;margin-bottom:26px}
.wf-hero__navigation{display:flex;gap:9px;align-items:center;position:absolute;z-index:4;bottom:18px;left:50%;transform:translateX(-50%);border-radius:40px;padding:5px 9px;background:rgba(23,35,52,.25);backdrop-filter:blur(8px)}
.wf-hero__arrow,.wf-hero__dot{border:0;cursor:pointer}.wf-hero__arrow{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:25px;line-height:1}.wf-hero__arrow:hover{background:rgba(255,255,255,.36)}.wf-hero__dot{width:10px;height:10px;min-width:10px;padding:0;background:rgba(255,255,255,.5);border-radius:12px}.wf-hero__dot.is-active{width:24px;background:white}
.wf-trust{padding:26px 0}.wf-trust__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.wf-trust__grid>div{display:flex;align-items:center;gap:13px;min-width:0;background:#fff;border:1px solid #f0eef0;padding:15px 18px;border-radius:16px}.wf-trust__grid>div>span{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:13px;background:#fff1e8;color:var(--wf-accent);font-size:22px}.wf-trust strong,.wf-trust small{display:block}.wf-trust strong{font-weight:800;font-size:13px}.wf-trust small{color:var(--wf-muted);font-size:12px;margin-top:3px}
.wf-section{margin-top:48px}.wf-section__head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:21px}.wf-section__head h2{font-size:clamp(24px,2.5vw,33px);margin:7px 0 0}.wf-section__link{font-size:13px;font-weight:800;white-space:nowrap;color:var(--wf-accent)!important;margin-bottom:4px}
.wf-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.wf-category{display:flex;flex-direction:column;align-items:center;gap:11px;text-align:center;min-width:0;padding:14px 9px;background:white;border-radius:18px;border:1px solid #efedf0;box-shadow:var(--wf-shadow);transition:transform .18s,border-color .18s}.wf-category:hover{transform:translateY(-4px);border-color:#ffd0ba}
.wf-category__image{display:grid;place-items:center;width:100%;aspect-ratio:1/1;max-height:135px;overflow:hidden;background:#faf7f6;border-radius:13px}.wf-category__image img{display:block;width:100%;height:100%!important;object-fit:contain}.wf-category__placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,#f5f3f0,#ebe7e2)}.wf-category strong{font-size:13px;font-weight:780;line-height:1.35;overflow-wrap:anywhere}
.wf-products .woocommerce{width:100%}.wf-products .woocommerce ul.products,.wf-commerce .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px!important;margin:0!important;padding:0!important;list-style:none!important}.wf-products .woocommerce ul.products::before,.wf-products .woocommerce ul.products::after,.wf-commerce .woocommerce ul.products::before,.wf-commerce .woocommerce ul.products::after{display:none!important}
.wf-products .woocommerce ul.products li.product,.wf-commerce .woocommerce ul.products li.product{float:none!important;clear:none!important;margin:0!important;width:auto!important;min-width:0;max-width:100%;padding:12px 12px 15px!important;background:#fff;border:1px solid #efedf0;border-radius:17px;box-shadow:var(--wf-shadow);display:flex;flex-direction:column;position:relative;overflow:hidden}
.wf-products .woocommerce ul.products li.product a img,.wf-commerce .woocommerce ul.products li.product a img{height:auto!important;aspect-ratio:1/1;object-fit:var(--wf-product-fit,contain)!important;width:100%!important;margin:0 0 11px!important;background:#fff;border-radius:12px}.wf-products .woocommerce ul.products li.product .woocommerce-loop-product__title,.wf-commerce .woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--wf-ink);font-size:14px!important;line-height:1.5;min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0 7px!important;padding:0!important}
.wf-products .woocommerce ul.products li.product .price,.wf-commerce .woocommerce ul.products li.product .price{color:var(--wf-accent)!important;font-size:16px!important;font-weight:850!important;margin-top:auto;margin-bottom:12px!important}.wf-products .woocommerce ul.products li.product .price del,.wf-commerce .woocommerce ul.products li.product .price del{font-size:12px;color:#89909b}.wf-products .woocommerce ul.products li.product .button,.wf-commerce .woocommerce ul.products li.product .button{display:block!important;text-align:center;margin:0!important;min-width:0;background:var(--wf-ink)!important;color:white!important;font-size:12px!important;line-height:1.3!important;padding:11px 8px!important;border-radius:10px!important}.wf-products .woocommerce ul.products li.product .onsale,.wf-commerce .woocommerce ul.products li.product .onsale{position:absolute;top:13px;left:13px;right:auto;margin:0!important;min-width:0;min-height:0;line-height:1.2;background:var(--wf-accent);color:white;font-size:11px;padding:5px 7px;border-radius:7px;z-index:2}
.wf-empty{padding:26px;border:1px dashed var(--wf-line);background:white;border-radius:16px}
.wf-bottom-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:65px;margin-bottom:65px;padding:35px 40px;border-radius:20px;background:linear-gradient(115deg,#243449,#3c4757);color:white}.wf-bottom-cta h2{font-size:clamp(22px,2.6vw,33px);margin:8px 0 0}.wf-bottom-cta .wf-kicker{color:#fec7a6}.wf-bottom-cta .wf-btn{flex:none}
.wf-footer{background:#142337;color:#d6dce6}.wf-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:52px;padding-top:50px;padding-bottom:47px}.wf-footer__brand{font-size:21px;font-weight:850;color:white!important}.wf-footer h2{font-size:15px;color:white;font-weight:800;margin-bottom:19px}.wf-footer p{font-size:13px;color:#aeb8c8;max-width:310px;margin-top:12px}.wf-footer ul{list-style:none;padding:0;margin:0}.wf-footer li{margin:9px 0;color:#b2bdca;font-size:13px}.wf-footer li a:hover{color:#fff}.wf-footer__bottom{border-top:1px solid #314258}.wf-footer__bottom .wf-shell{display:flex;justify-content:space-between;gap:15px;padding-block:17px;color:#a9b6c4;font-size:12px}
.wf-page,.wf-commerce{padding-top:35px;padding-bottom:65px;min-height:52vh}.wf-page{max-width:1000px}.wf-page h1{font-size:clamp(26px,3vw,38px);margin:0 0 23px}.wf-page p{line-height:1.75}.wf-post{background:#fff;border:1px solid var(--wf-line);border-radius:15px;padding:25px;margin-bottom:22px}.wf-post h2{font-size:23px}.wf-post>a{color:var(--wf-accent)!important;font-weight:750}.wf-page article{overflow-wrap:anywhere}
/* Keep the native WooCommerce cart, variations, account and checkout behavior. */
.wf-commerce .woocommerce{width:100%}.wf-commerce .woocommerce .woocommerce-result-count,.wf-commerce .woocommerce .woocommerce-ordering{margin-bottom:22px}.wf-commerce .woocommerce .woocommerce-ordering select{padding:9px;border:1px solid #d6dce4;border-radius:9px;background:white}
.wf-commerce .woocommerce div.product{display:flow-root}.wf-commerce .woocommerce div.product .product_title{font-size:clamp(25px,3vw,36px)}.wf-commerce .woocommerce div.product p.price,.wf-commerce .woocommerce div.product span.price{color:var(--wf-accent);font-weight:800}.wf-commerce .woocommerce .button,.wf-page .woocommerce .button,.wf-commerce .woocommerce button.button,.wf-page .woocommerce button.button{background:var(--wf-accent);color:white;border-radius:10px;padding:12px 17px}.wf-commerce .woocommerce .button:hover,.wf-page .woocommerce .button:hover{background:#df541b;color:white}.wf-page .woocommerce input.input-text,.wf-commerce .woocommerce input.input-text,.wf-page .woocommerce textarea,.wf-commerce .woocommerce textarea{padding:11px;border-radius:9px;border:1px solid #d8dee7}.wf-page .woocommerce table.shop_table,.wf-commerce .woocommerce table.shop_table{background:white;border-color:#e3e7ef;border-radius:14px}.wf-page .woocommerce .woocommerce-MyAccount-navigation{max-width:250px}.wf-page .woocommerce .woocommerce-MyAccount-content{min-width:0}
.wf-home-content{padding:24px;border:1px solid var(--wf-line);background:#fff;border-radius:14px}
@media(max-width:1050px){.wf-categories{grid-template-columns:repeat(3,minmax(0,1fr))}.wf-header__inner{gap:18px}.wf-products .woocommerce ul.products,.wf-commerce .woocommerce ul.products{gap:13px!important}}
@media(max-width:782px){.admin-bar .wf-header{top:46px}}
@media(max-width:700px){.wf-shell{width:calc(100% - 26px)}.wf-topbar .wf-shell{justify-content:center;font-size:11px}.wf-topbar span:last-child{display:none}.wf-header__inner{min-height:70px;gap:10px;flex-wrap:wrap;padding-block:9px}.wf-brand{min-width:0;flex:1;font-size:19px;max-width:calc(100% - 145px)}.wf-brand img{max-height:50px;max-width:170px}.wf-brand__mark{width:34px;height:34px;border-radius:11px;font-size:20px}.wf-header__actions{gap:6px}.wf-iconlink{width:37px;height:37px}.wf-iconlink svg{width:20px;height:20px}.wf-menu-toggle{display:flex;width:37px;height:37px}.wf-search{order:5;flex:1 0 100%;max-width:none}.wf-search form{height:41px}.wf-nav{display:none}.wf-nav.is-open{display:block}.wf-menu{display:block;padding:10px 0;min-height:0}.wf-menu>li{border-bottom:1px solid #f3f4f6}.wf-menu a{display:block;padding:10px 5px}.wf-menu .sub-menu{position:static;box-shadow:none;border:none;display:block;padding:0 12px}.wf-hero{padding-top:11px}.wf-hero__shell{height:300px;border-radius:16px}.wf-hero__content{padding:24px 23px 43px;max-width:100%}.wf-hero__content h1,.wf-hero__content h2{font-size:clamp(26px,7vw,38px);margin-bottom:13px}.wf-hero__content p{font-size:13px;line-height:1.5;margin-bottom:14px}.wf-hero__content .wf-kicker{font-size:10px;margin-bottom:8px}.wf-hero__slide::before{background:linear-gradient(90deg,rgba(23,34,48,.77),rgba(23,34,48,.24))}.wf-hero__navigation{bottom:8px}.wf-trust{padding:16px 0 0}.wf-trust__grid{grid-template-columns:1fr;gap:8px}.wf-trust__grid>div{padding:9px 13px}.wf-trust__grid>div>span{width:33px;height:33px;font-size:18px}.wf-trust strong{font-size:12px}.wf-trust small{font-size:11px}.wf-section{margin-top:36px}.wf-section__head{align-items:flex-start}.wf-section__head h2{font-size:23px}.wf-section__link{font-size:11px;max-width:105px;white-space:normal;text-align:end}.wf-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wf-category{padding:8px 5px;border-radius:12px;gap:7px}.wf-category__image{border-radius:9px}.wf-category strong{font-size:11px}.wf-products .woocommerce ul.products,.wf-commerce .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.wf-products .woocommerce ul.products li.product,.wf-commerce .woocommerce ul.products li.product{padding:8px 8px 11px!important;border-radius:12px}.wf-products .woocommerce ul.products li.product .woocommerce-loop-product__title,.wf-commerce .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:12px!important;min-height:39px}.wf-products .woocommerce ul.products li.product .price,.wf-commerce .woocommerce ul.products li.product .price{font-size:14px!important}.wf-products .woocommerce ul.products li.product .button,.wf-commerce .woocommerce ul.products li.product .button{font-size:11px!important;padding:9px 5px!important}.wf-bottom-cta{padding:25px 20px;margin-top:40px;margin-bottom:38px;display:block}.wf-bottom-cta h2{margin-bottom:19px;font-size:23px}.wf-footer__grid{grid-template-columns:1fr 1fr;gap:22px;padding-block:33px}.wf-footer__grid>div:first-child{grid-column:1/-1}.wf-footer__bottom .wf-shell{display:block;text-align:center}.wf-footer__bottom span{display:block;padding:2px}.wf-page,.wf-commerce{padding-top:23px}.wf-page .woocommerce .woocommerce-MyAccount-navigation,.wf-page .woocommerce .woocommerce-MyAccount-content{float:none;width:100%;max-width:100%}}
@media(max-width:370px){.wf-shell{width:calc(100% - 20px)}.wf-hero__shell{height:290px}.wf-hero__content h1,.wf-hero__content h2{font-size:25px}.wf-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-iconlink{width:34px;height:34px}.wf-menu-toggle{width:34px;height:34px}.wf-brand{font-size:17px;max-width:calc(100% - 132px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.wf-hero__slide,.wf-category,.wf-btn{transition:none!important}}
html[dir="rtl"] .wf-hero__slide::before{background:linear-gradient(270deg,rgba(20,32,44,.67),rgba(28,37,50,.32) 55%,rgba(31,35,48,.03))}html[dir="rtl"] .wf-menu .sub-menu{left:auto;right:0}html[dir="rtl"] .wf-products .woocommerce ul.products li.product .onsale,html[dir="rtl"] .wf-commerce .woocommerce ul.products li.product .onsale{left:auto;right:13px}
