:root {
	--cp--rouge: #DB0C0C;    
	--cp--bleufonce: #030d1a;
	--cp--bleuclair: #A8D9DC;
    --cp--bg-nav: #0F0F0F;
    --cp--bg-footer: #fff;
    --cp--text-color: #383838;
    accent-color: #D70000;
}

body {
	font: 0.9rem PoppinsLight, Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva, sans-serif; 
	color: var(--cp--text-color);
	padding: 0;
	margin: 0;
	background-color: #fff;
	line-height: 1.6em;
}

@font-face {
    font-family: 'PoppinsLight';
    src: url('/wp-content/themes/crewlinesports/scripts/css/fonts/Poppins-Light.woff2') format('woff2'),
        url('/wp-content/themes/crewlinesports/scripts/css/fonts/Poppins-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppinsregular';
    src: url('/wp-content/themes/crewlinesports/scripts/css/fonts/scripts/css/fonts/Poppins-Regular.woff2') format('woff2'),
        url('/wp-content/themes/crewlinesports/scripts/css/fonts/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppinsbold';
    src: url('/wp-content/themes/crewlinesports/scripts/css/fonts/scripts/css/fonts/Poppins-Bold') format('woff2'),
        url('/wp-content/themes/crewlinesports/scripts/css/fonts/Poppins-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Import de la font Roboto depuis Google Fonts et on l'applique sur tous les éléments de la page */
body * {
   font-family: 'Poppinsregular';color:#000}
}

*{-moz-box-sizing: border-box; box-sizing: border-box;}
h1{text-align:center;margin-top:2rem;}
h2{font-weight:normal}
.cwhite,.cwhite *{color:white !important;}

/* On applique un gris plus clair sur les paragraphes */
p {
   color: #313332;
}

/** Slide **/
div#div_slide{background-size:cover;background-position: center center;position:relative;}
.n2-ss-widget div span{font-family: 'PoppinsLight';font-size:2rem !important;}
.n2-ss-widget div span span{color:white;font-family: 'Poppinsbold';}

img{max-width:100%;border-radius:15px;}
/** Slide **/

a.abtblanc:link, a.abtblanc:visited, a.abtblanc:active{
	display:inline-block;
	background-color:white;
	color:black !important;
	padding: 0.6rem;
    padding-left: 2rem;
    padding-right: 2rem;
	text-align:center;
	font-size:1rem;
	text-decoration:none;
	border-radius: 10px;
}
a.abtblanc:hover{background-color:var(--cp--jaune);color: !important;}

form input[type="text"],form input[type="email"],form input[type="number"],form input[type=password], form input[type="date"], form input[type="file"],form select{
	height:40px;
	font: 0.8rem Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva, sans-serif; 
	padding-left: 5px;
	margin-top:5px;
	margin-bottom:5px;
	font-size:1rem;
	width:100%;
}

.center{text-align:center;}

form textarea{
	background-color:white;
	font: 0.8rem Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva, sans-serif; 
	color: var(--cp--text-color);	
	border: 1px solid #313131;
	padding-left: 5px;
	margin-top:5px;
	margin-bottom:5px;
	font-size:1rem;
	background-color:#E9E9E9;
	padding: 1rem;
}

input[type="submit"]:hover,input[type="button"]:hover{
	box-shadow: 1px 4px 3px #0f0f0f;
}

input[type=file]::file-selector-button {
  margin-right: 8px;
  border: none;
  background: #193148;
  padding: 15px 20px;
  color: #fff;
  cursor: pointer;
}
form input[type="text"]:focus, form textarea:focus, form select:focus, form input[type="email"]:focus{outline: none;}
input[type="button"], input[type="reset"], input[type="submit"]{
    background-color: #193148 !important;
}

#ast-scroll-top {
    background-color: #ffffff;
    font-size: 15px;
    position: absolute:;
    z-index: 1000;
}

.site-content .ast-container {display: block;}

.header-shortcuts {
    display: block;
    font-size: 1rem;
    position: absolute;
    z-index: 500;
    color: white;
    width: auto;
    top: 40px;
    right: 5%;
}

#div_slide_int{background-color: var(--cp--bleufonce);}

#crew-lang-static{float:left;}
#crew-lang-static a{color:white;}
#crew-lang-static a:first-child{margin-right:1rem;}

.header-search,.header-wishlist,.header-account,.header-cart,.header-lang{float:left;}
.header-lang a{
	color:white !important;
    color: black;
    border-left: 3px solid #fff;
    padding-left: 7px;
    padding-top:0;
    padding-bottom:0;
    display: inline-block;  /* se cale sur le texte */
	line-height: 1;    
}
.header-lang a:last-child{margin-left:1rem;}
.header-lang a.flagselected {border-left: 3px solid #EE2A22;}

.header-search{background-image: url(/wp-content/themes/crewlinesports/images/recherche.png);background-repeat:no-repeat;width:27px;height:27px;margin-right:2rem;}
.header-wishlist{background-image: url(/wp-content/themes/crewlinesports/images/favories.png);background-repeat:no-repeat;width:29px;height:27px;margin-right:2rem;position:relative;}
.header-account{background-image: url(/wp-content/themes/crewlinesports/images/compte.png);background-repeat:no-repeat;width:24px;height:27px;margin-right:2rem;}
.header-cart{background-image: url(/wp-content/themes/crewlinesports/images/panier.png);background-repeat:no-repeat;width:27px;height:27px;margin-right:4rem;position:relative;}

.wishlist_products_counter_number,.cart-count{
    background: #fff;
    color: #454545;
    font-size: 12px;
    height: 18px;
    right: -22px;
    line-height: 18px;
    position: absolute;
    text-align: center;
    top: 5px;
    left:30px;
    width: 18px;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 100%;
}

.search-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-content {
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-form {
    display: flex;
}

.search-form .search-field {
   border: 1px dashed #ebebeb;
    line-height: 50px;
    font-size:1.5rem;
    -webkit-border-radius: 30px !important;
    -moz-border-radius: 30px !important;
    -ms-border-radius: 30px !important;
    border-radius: 30px !important;
    padding: 0px 15px;
    background-color:transparent !important;
    height:50px;
    text-align:center;
    color: white !important;
}

.search-submit {display:none;}

.search-close {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    align-self: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.entry-content[data-ast-blocks-layout] > *{max-width:none !important;}

body.fullwidth-page .ast-container{max-width: 100%;padding:0;}
#div_best_seller_glob{padding-bottom:3rem;background-color:var(--cp--bg-fond-gris);}
#div_best_seller_glob div h2{margin-top:0;padding-top: 3rem}

.bgvert{background-color:green;color:white;padding:1rem;}
.bgrouge{background-color:red;color:white;padding:1rem;}

.woocommerce-js div.product .product_title {
    margin: 0 0 .5em 0;
    margin-top:2rem;
    font-size: 2.5rem !important;
}

archive .add_to_cart_button,
.archive .product_type_simple,
.archive .product_type_variable {
    display: none !important;
}

.archive #content,.search #content,.post-type-archive-product #content,.tax-product_cat #content { background-color: #f9f9f9; }
.tinv-header{display:none;}

.ast-header-break-point .site-below-footer-wrap[data-section="section-below-footer-builder"],.site-footer{display: none}
div.div_new_item_intb{background-color:white;padding:1rem;}

body.fullwidth-page .ast-narrow-container .site-content > .ast-container{max-width:none !important;}

.div_best_seller_item img{width:100%;}
div#div_rsb{margin-top:0.5rem;}
div#div_rsb a{display:inline;margin-left:1rem;margin-right:1rem;}

div.divcontenance{	
    font-size: .85em;
    display: block;
    line-height: 1.3;
    opacity: .6;
}

.woocommerce #content div.product div.summary h1{text-align:left;}

/*** Onglets de la fiche produit ***/
.crewline-tabs { clear: both; width: 100%; margin-top: 24px; }
.crewline-tab-headers { display: flex; gap: 8px; border-bottom: 1px solid #ccc; background-color:#eee;}
.crewline-tab-headers .crew-tab-btn { padding: 8px 12px; background: none; border: 0; cursor: pointer; color:black;}
.crewline-tab-headers .crew-tab-btn.active { border-bottom: 2px solid currentColor; border-radius:0;}
.crewline-tab-panels { padding-top: 12px; }
.crewline-tabs .fabric-image { max-width: 100%; height: auto; display: block; }
/*** Onglets de la fiche produit ***/

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.woocommerce-js ul.products li.product a img, .woocommerce-page ul.products li.product a img {
    margin-bottom: .8em;
    max-height: 300px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.astra-shop-thumbnail-wrap {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    position: relative;
    min-height: 300px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

#wps-slider-section .wps-product-section.sp-wps-custom-template .sp-wps-product-image-area, #wps-slider-section .wps-product-section:not(.sp-wps-custom-template) .sp-wps-product-image-area .wps-product-image {
    line-height: 0;
    background-color: white;
    padding: 0.5rem;
    border-radius: 0.5em;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wps-slider-section #sp-woo-product-slider-12252.sp-wps-custom-template .wpsf-product .wps-product-data {
    border: none;
}
#sp-woo-product-slider-12252.sp-wps-custom-template .wps-product-image .wpsf-product-img, #sp-woo-product-slider-12252.sp-wps-theme_one .wps-product-image {
    border: none !important;
}

#swipebox-overlay {
    background: #0d0d0df0;
}

#wps-slider-section #sp-woo-product-slider-12252.wps-product-section .wpsp-nav {
    border-radius: 50%;
}
.product_meta{display:none;}
.astra-shop-summary-wrap a.button{display:none;}

.woocommerce .woocommerce-pagination ul.page-numbers li, .woocommerce-page .woocommerce-pagination ul.page-numbers li {
    border-radius: 0.5rem;
}
#wps-slider-section .wpsf-cart-button p {display: none;}
#wps-slider-section #sp-woo-product-slider-12252.sp-wps-custom-template .wpsf-product .sp-wps-product-details {text-align: left;}

#crew-floating-cart {display: none !important;}

/* Liste des nouveautés */
.crew-mega-new-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Chaque item = bloc aligné, même hauteur */
.crew-mega-new-item {
    display: inline-block;
	height: 150px;           /* Hauteur fixe demandée */
	width:50%;
    margin-bottom: 8px;
    text-align:center;
}

/* Image du produit à gauche */
.crew-mega-new-thumb {
    flex: 0 0 35%;
    overflow: hidden;
    margin: 1rem;
}
.crew-mega-new-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* L’image remplit bien le bloc */
}

/* Texte à droite (nom + prix) */
.crew-mega-new-name,
.crew-mega-new-price {
    font-size: 14px;
    line-height: 1.3;
}

.crew-mega-new-name {
    margin-bottom: 4px;
    max-height: 2.6em;       /* Limite sur 2 lignes */
    overflow: hidden;
}

.crew-mega-new-price {
    font-weight: 600;
}

/* Pour que le texte prenne tout l’espace restant */
.crew-mega-new-item a {
    width: 100%;
}
.crew-mega-new-item a > div:not(.crew-mega-new-thumb) {
    flex: 1;
}
#mega-menu-wrap-primary #mega-menu-primary input, #mega-menu-wrap-primary #mega-menu-primary img {
    max-width: 250px;
    max-height: 100%;
}
.tinv-wraper.tinv-wishlist.tinvwl-above_thumb-add-to-cart {z-index: 2;}

.tinv-wraper.tinv-wishlist.tinvwl-above_thumb-add-to-cart a.tinvwl_add_to_wishlist_button{color: red;}

/* Familles en gras */
.crew-mega-cat-parent a {
    font-weight: bold;
    padding-bottom:2rem !important;
    color:red !important;
    font-size:1rem !important;
    line-height:2.5rem !important;
}

/* Sous-familles sans puce + reset marges/paddings */
.crew-mega-subcats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crew-mega-subcats .crew-mega-subcat-item a {
    display: block;
    line-height: 1.5rem;
}

.product-section-title{margin-bottom:1rem;}
.single-product-category{display:none !important;}
div.bloc_imp_bas{max-width:1400px !important; margin-bottom:0; padding-bottom:0;}

/** Banbde défilant du haut **/
.crew-marquee {
  width: 100%;
  overflow: hidden;
  background: #fff;
  color: #fff !important;
  padding: 1rem;
  height: 40px;
  display: flex;
  align-items: center;
}

.crew-marquee-inner {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  padding-right: 50px; /* marge interne droite */
  animation: crew-scroll 15s linear infinite;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
}
@keyframes crew-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
/** Banbde défilant du haut **/
.ast-plain-container.ast-no-sidebar #primary{margin-top:0 !important;margin-bottom:0 !important;}
.divnosprod{max-width:none !important;}

div.col_form_crew{
	max-width: 1200px !important;
    margin-left: auto;
    margin-right: auto;
}

footer{background-color:var(--cp--bleufonce);color:white;padding-bottom:2rem;}
footer aside a{display:block;color:white;text-decoration:none;margin-bottom:0.5rem;}
footer aside a:hover{color:var(--cp--rouge);}
footer aside div,footer aside div span{color:white;}
footer aside h3{padding-left: 0 !important;margin-left:0 !important;}
footer aside ul {list-style-type: none;padding-left: 0;margin-left: 0;}
