/* $gray-lighter:        lighten($gray-base, 93.5%) !default; // #eee */
/**
 * Web Application Prefix Apply For Making Owner Styles
 */
/**
 *   Blocks Layout Selectors 
 */
/**
 * Product Item Selectors
 */
/***********************************************************************/
/* RIGHT TO LEFT */
/* BACKGROUND GRADIENT */
/* BACKGROUND RADIAL */
/* BACKGROUND SIZE */
/* BORDER RADIUS */
/* DOUBLE BORDERS */
/* TRIPLE BORDERS */
/* FONT FACE */
/* OPACITY */
/* TEXT SHADOW */
/**
* Transition-timing-function property@mixin 
*/
/*background RGBA
============================================*/
/****/
/**parallax**/
/**absolute**/
/*  
 * LAYOUT VARIABLES 
 */
/** CHECKOUT BY STEP */
/* --- SCSS For Accordion --- */
/* --- SCSS For Breadcrumb --- */
/* --- SCSS For Buttons --- */
/* --- SCSS For Call-to-action --- */
/* --- SCSS For Content-slider --- */
/*  */
/* carousel-controls-v1 */
/* carousel-controls-v2 */
/* carousel-controls-v3 */
/* Navigation Styles */
/* carousel-indicators-v1 */
/* carousel-indicators-v2 */
/* carousel-indicators-v3 */
/* carousel-indicators-v4 */
/* carousel-indicators-v5 */
/* carousel-indicators-v6 */
/* --- SCSS For Counters --- */
/* --- SCSS For Heading --- */
/* --- SCSS For Icon-box --- */
/* --- SCSS For Interactive-banner --- */
/* --- SCSS For Latest-posts --- */
/* latest posts */
/* --- SCSS For List --- */
/* variables for list */
/* variables for list light */
/* --- SCSS For Message --- */
/* --- SCSS For Newsletter --- */
/* --- SCSS For Piechart --- */
/* --- SCSS For Pricing --- */
/* --- SCSS For Process-steps --- */
/* process-steps */
/* --- SCSS For Service --- */
/* variables for tab style1 using as base of tab */
/* --- SCSS For Style-icon --- */
/* Variables icons default */
/* Variables icons bodered */
/* Variables icons darker */
/* Variables icons light */
/* Variables icons plain */
/* Variables icons outline */
/* Variables icons inverse */
/* Variables icons for light style */
/* --- SCSS For Table --- */
/* --- SCSS For Tabs --- */
/* variables for tab style1 using as base of tab */
/* tab style version 4 */
/* tab style version 5 */
/* tab style version 6 */
/* --- SCSS For Testimonials --- */
/* testimonials default */
/* testimonials-v1 */
/* testimonials light */
/* testimonials-v4 */
/* testimonials-v5 */
/* testimonials-v6 */
/* --- SCSS For Typography --- */
/************************************************************************************************ Categories Page Styles
************************************************************************************************ */
.categories {
  padding-bottom: 15px;
}
.category-header {
  background: var(--cat-color);
  border-radius: 4px;
  color: #fff;
  margin: 0 0 10px 0;
}
.category-header h1,
.category-header h1.page-heading {
  padding: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 33px !important;
  padding: 5px 20px;
}

h1.page-heading {
  color: #fff;
}

h1#cart_title {
  margin-top: 0;
  font-size: 24px;
}

.content_scene_cat {
  display: block;
  background-color: #fff;
  margin-bottom: 20px;
}

.content_scene_cat .cat_desc {
  padding: 10px 0;
}

.content_scene_cat span.category-name {
  font: 600 42px/51px "Rhodium Libre", serif;
  color: black;
  margin-bottom: 12px;
}

@media (max-width: 1199px) {
  .content_scene_cat span.category-name {
    font-size: 25px;
    line-height: 30px;
  }
}

.content_scene_cat p {
  margin-bottom: 0;
}

.content_scene_cat a {
  color: black;
}

.content_scene_cat a:hover {
  text-decoration: underline;
}

.content_scene_cat .content_scene {
  color: #555555;
}

.content_scene_cat .content_scene .cat_desc a {
  color: #292733;
}

.content_scene_cat .content_scene .cat_desc a:hover {
  color: #f44336;
}

.content_scene_cat .cat_desc h1 {
  font-family: "Afacad", serif;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 33px !important;
  color: #fff;
  background: var(--cat-color);
  padding: 5px 20px;
  margin: 0 0 10px 0;
  border-radius: 4px;
}

/************************************************************************************************ Subcategories Cards (modern layout)
************************************************************************************************ */
.subcategories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.subcategory-card {
  width: calc(25% - 20px); /* 4 cards par ligne */
  flex: 0 1 calc((100% - 3 * 20px) / 4); /* 4 cards avec 3 gaps */
  display: flex;
}

.subcategory-card-inner {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 5px;
  border-radius: 6px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.3s ease, max-height 0.4s ease;
  min-height: 380px;
  max-height: 380px;
}

/* Effet accordéon au hover de la card */
.subcategory-card-inner:hover {
  max-height: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Titre / image */
.subcategory-image {
  text-align: center;
}

.subcategory-title {
  font-size: 1.4em;
  margin: 12px 0 8px;
  font-weight: 600;
  text-align: center;
}

/* Sous-sous-catégories visibles */
.sub-subcategories {
  font-size: 1.1em;
  list-style: none;
  padding: 0 15px;
  margin: 0;
}

.sub-subcategories li {
  margin: 4px 0;
  white-space: nowrap;
}

/* Wrapper sous-sous-catégories cachées + icône */
.toggle-subcat-wrapper {
  position: relative;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
}

/* Icône déclencheur */
.toggle-subcat-trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 24px;
  margin-bottom: 8px;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.toggle-subcat-trigger ion-icon {
  font-size: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.subcategory-card-inner h2 a {
  color: var(--cat-color) !important;
}

.subcategory-card-inner h2 a:hover {
  text-decoration: underline;
}

/* Disparition fluide de l’icône au hover de la card */
.subcategory-card-inner:hover .toggle-subcat-trigger {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Liste déroulante (cachée par défaut) */
.more-subcats {
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Affichage progressif au hover de la card */
.subcategory-card-inner:hover .more-subcats {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 500px;
}

/* Écran < 1024px : 3 cards */
@media (max-width: 1023px) {
  .subcategory-card {
    width: calc(33.333% - 20px);
    flex: 0 1 calc((100% - 2 * 20px) / 3);
  }
}

/* Écran < 768px : 2 cards */
@media (max-width: 767px) {
  .content_scene_cat .cat_desc h1 {
    font-size: 20px;
  }

  .category-header h1,
  .category-header h1.page-heading {
    font-size: 20px;
  }
  .subcategory-card {
    width: calc(50% - 20px);
    flex: 0 1 calc((100% - 1 * 20px) / 2);
  }
}

/* Écran < 480px : 1 card */
@media (max-width: 479px) {
  .subcategory-card {
    width: 100%;
    flex: 0 1 100%;
  }
}

