/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* ===== 4NextSport footer: side gutters + newsletter field fits its column ===== */
.wd-footer [data-elementor-id="1381"] > .elementor-element{padding-left:clamp(16px,3vw,40px)!important;padding-right:clamp(16px,3vw,40px)!important;box-sizing:border-box}
.wd-footer .tnp form{display:flex;gap:8px;max-width:100%}
.wd-footer .tnp form .tnp-field-email{flex:1 1 auto;min-width:0}
.wd-footer .tnp form .tnp-field-button{flex:0 0 auto}

/* ===== 4NS fixes 2026-10-05 ===== */
/* footer newsletter: button stays inside the field whatever its label length */
.wd-footer .tnp form .tnp-field-button{width:auto!important}
.wd-footer .tnp form .tnp-field-button .tnp-submit{position:static!important;white-space:nowrap}
.wd-footer .tnp form .tnp-field-email input{padding-right:124px!important}

/* sentence case on buy buttons everywhere (design: "Ajouter au panier") */
.wd-product .button,.wd-product .add_to_cart_button,a.add_to_cart_button,.single_add_to_cart_button,.fnxfp .button,.fnxdyn .button,.checkout-button,#place_order,.whb-top-bar a{text-transform:none!important}

/* contact form button: full label, centred, sentence case ("Envoyer le message") */
.wpcf7 .wpcf7-submit,.wpcf7 input[type=submit]{text-transform:none!important;width:auto!important;min-width:220px;max-width:100%;white-space:nowrap;overflow:visible!important;text-align:center;padding:15px 32px!important;box-sizing:border-box}


/* 4NS fixes 2026-10-13: product card images never overflow the image area (portrait photos) */
.fnxcard .fnxcard-ph{overflow:hidden}
.fnxcard .fnxcard-ph img{max-height:150px!important;max-width:80%!important}
.single-product table.variations th.label{vertical-align:middle}


/* 4NS 2026-10-13 (feedback 02): no free-shipping progress bar anywhere (mini-cart, cart, checkout) */
.wd-free-progress-bar,.wd-shipping-progress-bar,.wd-progress-bar.wd-free-progress-bar{display:none!important}


/* 4NS 2026-10-19 — product gallery zoom / lightbox */
.fnxgal-main.fnxgal-zoomable{position:relative;overflow:hidden;cursor:zoom-in}
.fnxgal-main.fnxgal-zoomable img.zoomImg{cursor:zoom-in}
.fnxgal-fs{position:absolute;right:12px;bottom:12px;z-index:3;width:40px;height:40px;min-height:0;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.92);color:#12302B;box-shadow:0 2px 10px rgba(11,31,28,.15);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.fnxgal-fs:hover{background:#fff}
.pswp{z-index:100001}
.pswp__img{background:#fff}
@media(pointer:coarse){.fnxgal-main.fnxgal-zoomable{cursor:default}}


/* 4NS 2026-10-19 — desktop product gallery: full image visible, never cropped (mobile rules unchanged) */
@media(min-width:1081px){.fnxgal-main img{max-height:378px!important;max-width:88%!important}}


/* 4NS 2026-10-22 — product gallery thumbnails: whole image visible, original ratio, centred, never cropped (all products) */
.fnxgal-thumbs button{overflow:hidden;padding:6px;box-sizing:border-box}
.fnxgal-thumbs button img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:70px!important;object-fit:contain!important;margin:0 auto}
@media(max-width:640px){.fnxgal-thumbs button img{max-height:50px!important}}


/* 4NS 2026-10-25 — mobile menu: sub-categories one per line, full labels, no truncation (all mega menus) */
@media(max-width:1024px){
.fnxmm{padding:8px 16px!important;gap:16px!important}
.fnxmm-grid{grid-template-columns:1fr!important;gap:2px!important}
.fnxmm-grid a{padding:8px 6px!important;gap:12px!important}
.fnxmm-grid a>span:not(.ic),.fnxmm-grid a>div:not(.ic){min-width:0;flex:1 1 auto}
.fnxmm-grid a>.ic{flex:0 0 38px!important;width:38px!important}
.fnxmm-grid b,.fnxmm-grid small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal;overflow-wrap:anywhere;max-width:none!important}
.fnxmm-grid small{display:block}
}
