/*------add smooth scroll----*/
html {
  scroll-behavior: smooth;
}

/*------desactivation select----*/
*{
	user-select:none;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/*---style hero img-----*/
.ast-desktop .elementor .hero picture img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: right center;
}

.ast-header-breakpoint .elementor .hero picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: right center;
}

/* css shop page description--------*/
.shop-description{
	margin-top:30px;
	text-align:center;
	opacity:0;
	border-radius:10px;
}

.tip-h2{
	color:rgba(46, 87, 151);
	padding: 15px 10px 10px 0px;
	font-weight:bolder;
}

.tip-h3{
	font-size:20px;
	color:rgba(95, 101, 109);
	padding: 0px 10px 10px 10px;
	font-weight:bold;
}

/*add default class to back to top btn*/
.ast-desktop #ps_back_to_top_btn{
	position:fixed;
	top: 90%;
	right:2%;
	width:30px;
	height:30px;
	border-radius:50%;
	background-color:#66FFFF;
	border: 4px solid #0099FF;
	display:none;
	opacity:0;
}

/*---------------styling back to top btn mobile-------*/
.ast-header-break-point #ps_back_to_top_btn{
	position:fixed;
	top: 85%;
	right:10%;
	width:30px;
	height:30px;
	border-radius:50%;
	background-color:#66FFFF;
	border: 4px solid #0099FF;
	display:none;
	opacity:0;
	z-index:9999;
}

/*-------class added to back to top btn when scroll is >50px--------*/
#ps_back_to_top_btn.ps_back_to_top_btn{
	display:flex;
	opacity:1;
	z-index:999;
	transform:rotate(90deg);
	align-items:center;
	justify-content:center;
	cursor:pointer;
}

#ps_back_to_top_btn.ps_back_to_top_btn span{
	color: #0099FF;
}

/*add position sticky to header in mobile*/
body.ast-header-break-point header.site-header#masthead{
	position:sticky;
	top: 0;
	background-color: #fff;
}

/*----------add position sticky to desktop--------*/
.ast-desktop #masthead{
	position:sticky;
	top: 0;
	background-color: #fff;
}

/*------------remove padding from header div------*/
div.site-branding.ast-site-identity, div.ast-primary-header-bar.ast-primary-header.main-header-bar{
	padding-bottom:0;
	margin-bottom: 0;
}

/*--------arrange border radius for woolenter items-------*/
.product-item .actions a{
	border-radius: 50%;
}

.product-item .product-inner .image-wrap div.actions.style_two{
	opacity:1;
	visibility:visible;
	display: flex;
	align-items:center;
	max-width:4ch;
	border-radius: 50%;
	width:4ch;
	aspect-ratio:1/1;
}

/*----hide product on desktop and show them on hover--------*/
.ast-desktop .product-item .product-inner .image-wrap div.actions.style_two{
	opacity:0;
	visibility:hidden;
	display: flex;
	align-items:center;
	max-width:4ch;
	border-radius: 50%;
	width:4ch;
	aspect-ratio:1/1;
}

.ast-desktop .product-item:hover .product-inner .image-wrap div.actions.style_two{
	opacity:1;
	visibility:visible;
}

.product-item .product-inner .image-wrap div.actions.style_two:hover{
	background-color: #0099FF;
}

/*--------------align product to bottom--------*/
.woocommerce ul.products li.product.desktop-align-left, .woocommerce-page ul.products li.product.desktop-align-left {
	justify-content: flex-end;
}

/*-------------------arrange images in mobile-pop-up and desktop--------------------*/

#ast-mobile-popup .menu-image-wrapper img{
	width : 60px;
}

.menu-image-wrapper img{
	width : 60px;
}

/*------------------css styling du filtre category plugin--------------*/

select[name='ps_product_categories']{
	border: 2px dotted var(--ast-global-color-0);
	margin : 25px 0;
}

/*------------------remove default prices and default add to cart btn----------------*/
.archive span.price, .archive a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart{
	display:none !important;
}

/*------------remove default prices and default add to cart btn aso on home--------*/
span.price, a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart{
	display:none !important;
}

/*-------Woolentor add to cart --------*/
.product-item .actions a{
    border-radius:50% !important;
}

/*-----------------style the custom add to cart btn with custom price in archive-------------------*/

.archive .ps_custom_add_to_cart_btn, .ps_custom_add_to_cart_btn {
	display: flex;
	width:fit-content;
	justify-content: center;
	text-align:center;
	flex:1 0 1;
	align-items:center;
    padding: 10px 5px;
    font-size: 1rem !important;
	color:#ffff;
	background-color:#00adbd;
	border-radius:0 !important;
}

.archive .ps_custom_add_to_cart_btn:hover, .ps_custom_add_to_cart_btn:hover{
	background-color:#1fb6c4 ;
}

.archive .my_custom_price_html, .my_custom_price_html{
	display:flex;
	align-items:center;
	justify-content:center;
	flex-direction:column;
	color:#065368 !important;
	font-weight:bold;
}

.archive .my_custom_price_html del, .my_custom_price_html del{
	font-weight:normal !important;
}

.archive .new_add_to_cart_btn_and_price, .new_add_to_cart_btn_and_price{
	display:flex;
	flex-direction:row;
	justify-content: space-between;
	gap:5px;
}

/*-----------------style sku_class------------------*/
.sku_class1, .sku_class2{
	font-size: clamp(12px, 0.9rem + 4px, 1.1vw);
}

/*-----------------decrease padding from widget filter price----------*/

.widget.woocommerce.widget_price_filter{
	padding:1em !important;
}

/*----------------add no repeat to background image-------------------*/

.home .swiper-wrapper .elementor-background-slideshow__slide__image{
	background-repeat: no-repeat;
}

/*------------------------- New badge in archive page----------------------- */
.ct-woo-card-extra.new-badge{
	position: absolute;
	color: red;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 50px;
	font-size: 15px;
	font-family: "Roboto", sans-serif;
	letter-spacing:2px;
	padding-left: 25px;
	padding-top: 25px;
	left: 0px;
	z-index: 2;
	display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
	top: -10px;
}

/*---------------add white background for product in home and other and add border------------*/
li.product{
	background-color: #fff;
	padding: 10px !important;
	border-radius: 10px;
	border: solid 2px #00adbd;
}

/*----------------------- New badge in single product page page---------- */
.itsnew {
   padding: 5px 8px;
   font-size: 15px;
   font-weight: 600;
   color: red;
   margin-top: 5px;
   align-items: center;
   width: 45px;
   height: 35px;
   display: flex;
   border-radius: 50%;
   top: 10px;
}

/*----------------style footer visa images to center------------------------*/
.visa-images-wrapper{
	text-align: center;
	background-color: #f3f6f6;
	padding-bottom: 5px;
}

/*------------------------sizing effect---------------------------------------*/

.mouvement2 {
/* animation properties */
  animation: move2 2s linear infinite;
}

/*-----------------onsale badge-------------*/

.woocommerce ul.products li.product  span.onsale {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 5px;
	width: 50px;
	height: 40px;
	font-size: 10px;
	padding:2px;
	font-weight: bolder;
	color: red;
	background-color:#fff;
	box-shadow: 3px 3px 5px rgb(247, 158, 158);
	left: 80%;
	top: -10px;
	z-index: 9999;
}

.woocommerce.single-product .product span.onsale, .swiper-wrapper .product span.onsale{
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 5px !important;
	width: 50px;
	height: 40px;
	font-size: 10px !important;
	padding:2px;
	font-weight: bolder;
	color: red !important;
	background-color:#fff !important;
	box-shadow: 3px 3px 5px rgb(247, 158, 158);
	top: 20px !important;
	z-index: 9999;
}

/*-------------css for preloading img--------------------*/
#site-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100%;
    height: 100dvh;
    background: #eafaff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

#site-loader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#site-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* style the 8 products slider*/

.p8-grid{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	gap:20px;
	list-style:none;
	margin:0;
	padding:0
}
.p8-grid li.product{
	width:auto!important;
	margin:0!important;
	float:none!important
}

/*-----style img in product card-----*/

ul.products li.product a img, .swiper .swiper-slide li a img{
	object-fit: contain;
	aspect-ratio: 16/9;
}

/*----coloring the different section with their id---*/

#ps-section-product-slider-1{
	background: linear-gradient(180deg, #eaf7f6 0, #fff 100%);
    background-image: linear-gradient(rgb(234, 247, 246) 0px, rgb(255, 255, 255) 100%);
}

/*----style the plugin compare-product custom btn and price wrapper and swiper slide btn-----*/
.archive .my_custom_price_html, .my_custom_price_html {
	display: flex;
	flex-direction: row !important;
}

.archive .ps_custom_add_to_cart_btn, .ps_custom_add_to_cart_btn {
	height: fit-content !important;
	padding: 1px !important;
}

.home .swiper-wrapper a.ps_custom_add_to_cart_btn, .home .elementor-shortcode a.ps_custom_add_to_cart_btn{
	padding: 5px !important;
	text-decoration: none !important;
}

/*-------correct the bottom border removed by woocommerce in produc archive-*/
.archive #content ul.products li.product{
	border-bottom:solid 2px #00adbd;
}


/*----------------------keyframes--------------------------*/

@keyframes move2 {
  0% {
    opacity:0;
  }
  50% {
    opacity:1;
  }
  100% {
    opacity:0;
  }
}



/*---------------------media screen-------------------------*/

@media screen and (min-width:768px){
  .woocommerce ul.products.p8-grid li.product{
    display:grid;
    grid-row:span 6;                 /* number of direct children inside one card */
    grid-template-rows:subgrid;
    row-gap:8px;
  }
  .woocommerce ul.products.p8-grid li.product .woocommerce-loop-product__title{
    font-size:14px;
    line-height:1.3;
  }
}

@media screen and (max-width:767px){
  .elementor-shortcode,
  .elementor-shortcode .woocommerce{
    max-width:100%;
    min-width:0;
  }
  .woocommerce ul.products.p8-grid,
  ul.p8-grid{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:12px;
    overflow-x:auto !important;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  ul.p8-grid::-webkit-scrollbar{display:none}
  .woocommerce ul.products.p8-grid > li.product,
  ul.p8-grid > li.product{
    flex:0 0 75% !important;
    width:75% !important;
    max-width:75% !important;
    margin:0 !important;
    float:none !important;
    scroll-snap-align:start;
  }
}

