
/*
Theme Name: Jouffast Flex
Theme URI: https://jouffast.bakalass.com/
Author: Jouffast
Description: Customizable WooCommerce-first eCommerce theme with WordPress Customizer controls, Elementor widgets, responsive animated cards and extensible widget areas.
Version: 1.2.0
Text Domain: jouffast-flex
Requires at least: 6.2
Requires PHP: 7.4
*/
:root{
  --jf-primary:#006666;
  --jf-accent:#FFD700;
  --jf-text:#182027;
  --jf-muted:#68727c;
  --jf-bg:#f7f9fa;
  --jf-card:#fff;
  --jf-radius:18px;
  --jf-shadow:0 10px 30px rgba(0,0,0,.08);
  --jf-container:1240px;
  --jf-space:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--jf-text);background:var(--jf-bg);line-height:1.6}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.jf-container{width:min(calc(100% - 32px),var(--jf-container));margin-inline:auto}
.jf-site-header{background:#fff;position:sticky;top:0;z-index:1000;border-bottom:1px solid #edf0f2;transition:.25s}
.jf-header-inner{min-height:76px;display:flex;align-items:center;gap:20px}
.jf-logo img{max-height:52px;width:auto}
.jf-logo-text{font-weight:900;font-size:26px;color:var(--jf-primary)}
.jf-logo-text span{color:var(--jf-accent)}
.jf-search{flex:1;display:flex;max-width:680px;margin:auto}
.jf-search input{width:100%;border:1px solid #e2e7ea;border-radius:14px 0 0 14px;padding:13px 16px;outline:none}
.jf-search button{border:0;background:var(--jf-primary);color:#fff;padding:0 20px;border-radius:0 14px 14px 0;cursor:pointer}
.jf-header-actions{display:flex;gap:10px;align-items:center}
.jf-icon-btn{width:44px;height:44px;border-radius:14px;background:#f2f6f6;display:grid;place-items:center;border:0;cursor:pointer}
.jf-menu{display:flex;gap:20px;align-items:center;padding:10px 0}
.jf-menu a{font-weight:650}
.jf-main{min-height:60vh}
.jf-section{padding:42px 0}
.jf-section-title{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:20px}
.jf-section-title h2{margin:0;font-size:clamp(24px,3vw,36px);line-height:1.15}
.jf-section-title a{color:var(--jf-primary);font-weight:700}
.jf-grid{display:grid;gap:20px}
.jf-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.jf-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.jf-card{background:var(--jf-card);border-radius:var(--jf-radius);box-shadow:var(--jf-shadow);overflow:hidden}
.jf-hover{transition:transform .25s ease,box-shadow .25s ease}
.jf-hover:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,0,0,.12)}
.jf-product-card{position:relative}
.jf-product-img{aspect-ratio:1/1;display:grid;place-items:center;background:#fff;overflow:hidden}
.jf-product-img img{width:100%;height:100%;object-fit:contain;transition:transform .35s ease}
.jf-product-card:hover .jf-product-img img{transform:scale(1.06)}
.jf-product-body{padding:15px}
.jf-product-title{font-weight:750;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.jf-price{font-weight:850;font-size:18px;color:var(--jf-primary)}
.jf-old-price{color:#929aa0;text-decoration:line-through;font-size:14px;margin-left:7px}
.jf-badge{position:absolute;top:12px;left:12px;background:var(--jf-accent);padding:5px 9px;border-radius:999px;font-weight:800;font-size:12px;z-index:2}
.jf-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:0;border-radius:12px;background:var(--jf-primary);color:#fff;font-weight:800;cursor:pointer;transition:.2s}
.jf-btn:hover{filter:brightness(.94);transform:translateY(-1px)}
.jf-btn-alt{background:var(--jf-accent);color:#171717}
.jf-category-card{padding:18px;text-align:center}
.jf-category-card img{width:100%;aspect-ratio:1.2/1;object-fit:contain;border-radius:14px;background:#f5f7f7}
.jf-category-card h3{font-size:17px;margin:12px 0 0}
.jf-banner{border-radius:24px;overflow:hidden;position:relative;background:var(--jf-primary);color:#fff;min-height:320px;display:flex;align-items:center}
.jf-banner-content{padding:45px;max-width:58%;position:relative;z-index:2}
.jf-banner h1{font-size:clamp(34px,5vw,62px);line-height:1.02;margin:0 0 15px}
.jf-banner p{font-size:18px;opacity:.9}
.jf-banner img{position:absolute;right:0;top:0;width:52%;height:100%;object-fit:cover;opacity:.92}
.jf-feature-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.jf-feature{padding:20px;background:#fff;border-radius:16px;display:flex;gap:13px;align-items:center}
.jf-feature-icon{font-size:28px}
.jf-footer{background:#102326;color:#fff;margin-top:40px;padding:55px 0}
.jf-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px}
.jf-footer a{color:#dfe9ea}
.jf-mobile-nav{display:none}
.jf-wc-notice{padding:12px 16px;background:#fff;border-radius:12px;margin:20px 0}
@media(max-width:1024px){
 .jf-grid-5{grid-template-columns:repeat(4,1fr)}
 .jf-grid-4{grid-template-columns:repeat(3,1fr)}
 .jf-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
 .jf-header-inner{min-height:62px}
 .jf-search{order:3;flex-basis:100%;max-width:none}
 .jf-header-inner{flex-wrap:wrap;padding:10px 0}
 .jf-search input{padding:10px 12px}
 .jf-menu{display:none}
 .jf-grid-5,.jf-grid-4{grid-template-columns:repeat(2,1fr);gap:12px}
 .jf-banner{min-height:390px}
 .jf-banner-content{max-width:100%;padding:28px;align-self:flex-end;background:linear-gradient(transparent,rgba(0,0,0,.8));width:100%}
 .jf-banner img{width:100%;opacity:.7}
 .jf-feature-row{grid-template-columns:repeat(2,1fr)}
 .jf-footer-grid{grid-template-columns:1fr}
 .jf-mobile-nav{display:grid;position:fixed;bottom:0;left:0;right:0;z-index:2000;background:#fff;border-top:1px solid #e7ecee;grid-template-columns:repeat(4,1fr);padding:7px 6px calc(7px + env(safe-area-inset-bottom))}
 .jf-mobile-nav a{text-align:center;font-size:11px;font-weight:700}
 .jf-mobile-nav span{display:block;font-size:20px}
 body{padding-bottom:70px}
}
@media(max-width:480px){
 .jf-grid-5,.jf-grid-4{grid-template-columns:repeat(2,1fr)}
 .jf-section{padding:28px 0}
 .jf-product-body{padding:11px}
 .jf-product-title{font-size:14px}
 .jf-price{font-size:16px}
 .jf-banner h1{font-size:34px}
}

/* Single product */
.jf-single-product .woocommerce-notices-wrapper{margin-bottom:18px}
.jf-single-product div.product{background:var(--jf-card);border-radius:24px;padding:24px;box-shadow:var(--jf-shadow)}
.jf-single-product div.product div.images img{border-radius:18px}
.jf-single-product div.product .summary h1.product_title{font-size:clamp(28px,4vw,44px);line-height:1.1;margin-top:0}
.jf-single-product div.product .summary .price{color:var(--jf-primary);font-size:26px;font-weight:850}
.jf-single-product div.product .summary .cart .quantity .qty{border:1px solid #dfe5e7;border-radius:10px;padding:10px;width:75px}
.jf-single-product div.product .summary .single_add_to_cart_button{background:var(--jf-primary);color:#fff;border:0;border-radius:12px;padding:13px 20px;font-weight:800}
.jf-single-product div.product .summary .single_add_to_cart_button:hover{filter:brightness(.93)}
.jf-single-product .woocommerce-tabs{margin-top:30px}
.jf-single-product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 18px}
.jf-single-product .woocommerce-tabs ul.tabs li{border-radius:10px 10px 0 0}
.jf-single-product .related.products,.jf-single-product .up-sells{margin-top:42px}
.jf-single-product .related.products ul.products,.jf-single-product .up-sells ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.jf-single-product .related.products ul.products li.product,.jf-single-product .up-sells ul.products li.product{width:auto;margin:0}
@media(max-width:900px){.jf-single-product .related.products ul.products,.jf-single-product .up-sells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v1.2 single-product reliability/layout */
.jf-single-product { overflow:visible; }
.jf-single-product .woocommerce { width:100%; }
.jf-single-product .woocommerce-notices-wrapper:empty { display:none; }
.jf-single-product div.product { position:relative; }
.jf-single-product div.product::after { content:""; display:block; clear:both; }
.jf-single-product div.product div.images,
.jf-single-product div.product div.summary { box-sizing:border-box; }
.jf-single-product div.product div.images { width:48%; }
.jf-single-product div.product div.summary { width:48%; }
.jf-single-product div.product .woocommerce-product-gallery { opacity:1 !important; }
.jf-single-product div.product .woocommerce-product-gallery__image a { display:block; }
.jf-single-product div.product .woocommerce-product-gallery__image img { width:100%; }
.jf-single-product .woocommerce div.product form.cart { margin:20px 0; }
.jf-single-product .woocommerce div.product form.cart .variations { width:100%; margin-bottom:15px; }
.jf-single-product .woocommerce div.product form.cart .variations select { min-height:44px; border:1px solid #dfe5e7; border-radius:10px; padding:8px 12px; }
.jf-single-product .woocommerce div.product .woocommerce-variation-description { margin-bottom:12px; }
.jf-single-product .woocommerce .quantity .qty { min-height:46px; }
.jf-single-product .woocommerce div.product .stock { font-weight:700; }
.jf-single-product .woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color:#e7ecee; }
.jf-single-product .woocommerce div.product .woocommerce-tabs ul.tabs li { background:#f5f7f7; border:0; margin:0 5px 0 0; }
.jf-single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background:var(--jf-primary); color:#fff; }
.jf-single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color:#fff; }
.jf-single-product .woocommerce ul.products li.product { width:auto; margin:0; }
.jf-product-empty { padding:45px; text-align:center; }
.jf-product-empty h1 { margin-top:0; }
@media(max-width:768px){
 .jf-single-product div.product { padding:16px; }
 .jf-single-product div.product div.images,
 .jf-single-product div.product div.summary { width:100%; float:none; }
 .jf-single-product div.product div.summary { margin-top:25px; }
 .jf-single-product .woocommerce-tabs ul.tabs li { display:inline-block; margin-bottom:6px; }
}
