/* Variables de couleurs (light) */
:root {
  --axocat_colorborder: #ededed;
  --axocat_colortitle: #3f3f3f;
  --axocat_colortxt: #4f4f4f;
  --axocat_backcolor: #fff;
  --axocat_shadowcolor: rgba(17, 12, 46, 0.1);
  --axocat_whitegradient: linear-gradient(0deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 25%,
      rgba(255, 255, 255, 0.33) 100%);
}

/* Variables (dark) appliquées via .dark-module sur le container */
.axo-catalog_container.dark-module {
  --axocat_colorborder: rgba(255, 255, 255, 0.15);
  --axocat_colortitle: rgba(255, 255, 255, 0.95);
  --axocat_colortxt: rgba(255, 255, 255, 0.9);
  --axocat_backcolor: rgba(0, 0, 0, 0.3);
  --axocat_shadowcolor: rgba(255, 255, 255, 0.05);
  --axocat_whitegradient: linear-gradient(0deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.4) 25%,
      rgba(0, 0, 0, 0) 100%);
}

/* Layout */
.axo-catalog_container {
  width: 1440px;
  max-width: 100%;
}

.axo-catalog_sidebar {
  margin: 0px auto;
}

/* Top bar (tri + compteur + recherche) */
.axo-catalog_topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 15px;
  border: 1.5px solid var(--axocat_colorborder);
  background: var(--axocat_backcolor);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--axocat_shadowcolor) 0px 12px 25px 0px;
}

.axo-catalog_topbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.axo-catalog_topbar label {
  font-size: 13px;
  color: var(--axocat_colortxt);
  margin: 0;
  width: 80px;
  max-width: 100%;
}

.axo-catalog_topbar .count {
  font-size: 13px;
  color: var(--axocat_colortxt);
}

/* Style général des selects */
.axo-catalog_sidebar select,
.axo-catalog_topbar select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border: 1.5px solid var(--axocat_colorborder);
  border-radius: 7.5px;
  padding: 10px 40px 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--axocat_colortitle);
  background: var(--axocat_backcolor);
  cursor: pointer;
  transition: all .3s;
  position: relative;
}

/* Hover & focus */
.axo-catalog_sidebar select:hover,
.axo-catalog_topbar select:hover {
  border-color: var(--axo_module_maincolor);
}

.axo-catalog_sidebar select:focus,
.axo-catalog_topbar select:focus {
  outline: none;
  border-color: var(--axo_module_secondcolor);
  box-shadow: 0 0 0 2px rgba(61, 180, 255, 0.25);
}

/* Flèche personnalisée avec FontAwesome */
.axo-catalog_sidebar select,
.axo-catalog_topbar select {
  background-image: none;
  /* on supprime la flèche native */
}

.axo-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.axo-select-wrapper::after {
  content: "\f107";
  /* FontAwesome caret-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
  color: var(--axocat_colortxt);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color .3s;
}

.axo-select-wrapper:hover::after {
  color: var(--axo_module_maincolor);
}

/* Option dans la liste déroulante */
.axo-catalog_sidebar select option,
.axo-catalog_topbar select option {
  background: var(--axocat_backcolor);
  color: var(--axocat_colortitle);
  padding: 10px;
}

/* Barre de recherche */
.axo-catalog_search {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.axo-catalog_search input {
  width: 100%;
  border: 1px solid var(--axocat_colorborder);
  border-radius: 7.5px;
  padding: 10px 35px 10px 12px;
  font-size: 13px;
  color: var(--axocat_colortitle);
  background: var(--axocat_backcolor);
}

.axo-catalog_search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--axocat_colortxt);
  font-size: 14px;
  cursor: pointer;
}

.axo-catalog_search button:hover {
  color: var(--axo_module_maincolor);
}

/* Sidebar titres */
.axo-catalog_sidebar h4 {
  position: relative;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--axo_module_maincolor);
  text-align: left;
  padding: 15px 0;
  margin-bottom: 10px;
}

.axo-catalog_sidebar h4:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  border-radius: 5px;
  background-color: var(--axo_module_secondcolor);
  z-index: 3;
}

.axo-catalog_sidebar h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 100%;
  max-width: 100%;
  background-color: var(--axocat_colorborder);
  z-index: 2;
}

/* Bloc filtres */
/* Le h4 est cliquable seulement en mobile */
.axo-filter_toggle {
  display: block;
  cursor: default;
  user-select: none;
}

@media (max-width: 1200px) {
  .axo-filter_toggle {
    cursor: pointer;
  }
}

/* Flèche pivotante selon l'état aria-expanded */
.axo-filter_toggle .fa-chevron-down {
  transition: transform .25s ease;
}

.axo-filter_toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Panneau animé (slide) sans Bootstrap */
.axo-filter_panel {
  overflow: hidden;
  transition: max-height .3s ease;
}

/* Accessibilité: réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .axo-filter_panel {
    transition: none;
  }

  .axo-filter_toggle .fa-chevron-down {
    transition: none;
  }
}

/* État par défaut en mobile : fermé */
@media (max-width: 1200px) {
  #axoFilters.axo-filter_panel {
    max-height: 0;
  }
}

/* État desktop : toujours ouvert et non limité */
@media (min-width: 1199px) {
  #axoFilters.axo-filter_panel {
    max-height: none !important;
    overflow: visible;
  }

  .axo-filter_toggle {
    cursor: default;
  }

  /* visuel "non cliquable" */
  .axo-filter_toggle .fa-chevron-down {
    display: none;
  }

  /* on masque la flèche en desktop */
}


.axo-filter_block {
  padding: 20px 15px;
  border: 1.5px solid var(--axocat_colorborder);
  background: var(--axocat_backcolor);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: var(--axocat_shadowcolor) 0px 12px 25px 0px;
}

.axo-filter_block fieldset {
  border: 0;
  padding: 0;
  margin: 15px 0px;
}

.axo-filter_block legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--axocat_colortitle);
  margin-bottom: 5px;
}

.axo-filter_group {
  margin-bottom: 15px;
}

.axo-filter_group:last-child {
  margin-bottom: 0;
}

.axo-filter_block label {
  display: block;
  font-size: 13px;
  color: var(--axocat_colortxt);
  margin-bottom: 6px;
}

.axo-filter_block input[type="text"],
.axo-filter_block input[type="number"],
.axo-filter_block select {
  width: 100%;
  border: 1px solid var(--axocat_colorborder);
  background: var(--axocat_backcolor);
  border-radius: 7.5px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--axocat_colortitle);
  font-size: 13px;
}

.axo-filter_inline {
  display: flex;
  gap: 10px;
}

.axo-filter_list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.axo-filter_list ul {
  padding-left: 20px;
}

.axo-filter_list ul li {
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1.5px solid var(--axocat_colorborder);
  margin-bottom: 5px;
}

.axo-filter_list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.axo-filter_list input[type="checkbox"],
.axo-filter_list input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--axocat_colorborder);
  background: var(--axocat_backcolor);
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  transition: all .3s;
}

.axo-filter_list input[type="checkbox"] {
  border-radius: 4px;
}

.axo-filter_list input[type="radio"] {
  border-radius: 50%;
}

.axo-filter_list input[type="checkbox"]:checked {
  background: var(--axo_module_maincolor);
  border-color: var(--axo_module_maincolor);
}

.axo-filter_list input[type="checkbox"]:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.axo-filter_list input[type="radio"]:checked {
  background: var(--axo_module_maincolor);
  border-color: var(--axo_module_maincolor);
}

.axo-filter_list input[type="radio"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.axo-filter_list label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--axocat_colortxt);
  cursor: pointer;
}

.axo-filter_list label.parent {
  font-weight: 500;
}

.axo-filter_list label:hover input[type="checkbox"],
.axo-filter_list label:hover input[type="radio"] {
  border-color: var(--axo_module_maincolor);
}

.axo-filter_reset {
  display: flex;
  gap: 10px;
}

.axo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 7.5px;
  border: 1.5px solid var(--axocat_colorborder);
  background: var(--axocat_backcolor);
  color: var(--axocat_colortitle);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--axocat_colortxt);
  transition: all 0.4s;
}

.axo-btn.primary {
  background: var(--axo_module_maincolor);
  color: #fff;
  border-color: transparent;
}

a.axo-btn.reset {
  color: var(--axocat_colortxt);
  text-decoration: none;
}

.axo-btn:hover {
  opacity: .65;
}

/* Grille produits */
#axo-products_list .axo-product_box {
  padding: 15px;
}

#axo-products_list .axo-product_card {
  position: relative;
  display: block;
  color: var(--axocat_colortitle);
  text-decoration: none;
  border: 1.5px solid rgba(0, 0, 0, 0);
  background: var(--axocat_backcolor);
  border-radius: 10px;
  overflow: hidden;
  transition: all .4s;
  box-shadow: var(--axocat_shadowcolor) 0px 48px 100px 0px;
}

.axo-catalog_container.dark-module .axo-product_card {
  border-color: var(--axocat_colorborder);
}

#axo-products_list .axo-product_card:hover {
  border-color: var(--axocat_colorborder);
  box-shadow: 0 0 40px 3px rgba(0, 0, 0, 0);
}

.axo-product_media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 260px;
  border-bottom: 1px solid var(--axocat_colorborder);
}

.axo-product_media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 2;
}

.axo-product_media.has-blur::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.2);
  z-index: 0;
}

.axo-product_media.has-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  z-index: 1;
}


.axo-product_content {
  padding: 18px 18px 54px;
  min-height: 260px;
  position: relative;
}

.axo-product_title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--axocat_colortitle);
}

.axo-product_meta {
  font-size: 12px;
  color: var(--axocat_colortxt);
  margin-bottom: 10px;
}

.axo-product_desc {
  font-size: 13px;
  color: var(--axocat_colortxt);
  margin: 0;
}

.axo-product_badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 7.5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.axo-product_price {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1.5px solid var(--axocat_colorborder);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--axocat_backcolor);
}

.axo-product_price .val {
  font-size: 16px;
  font-weight: 700;
  color: var(--axo_module_maincolor);
}

.axo-product_price .brand {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--axocat_colortxt);
}

/* Liste latérale */
.axo-catalog_sidebar .list-links {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.axo-catalog_sidebar .list-links li {
  padding: 10px 0;
  border-bottom: 1.5px solid var(--axocat_colorborder);
}

.axo-catalog_sidebar .list-links li:last-child {
  border-bottom: 0;
}

.axo-catalog_sidebar .list-links a {
  text-decoration: none;
  color: var(--axocat_colortxt);
  font-weight: 500;
  font-size: 13px;
  transition: all .3s;
}

.axo-catalog_sidebar .list-links a.active {
  font-weight: 700;
  color: var(--axo_module_maincolor);
}

.axo-catalog_sidebar .list-links a:hover {
  padding-left: 10px;
  color: var(--axo_module_maincolor);
}

/* Responsive */
@media (max-width: 1200px) {
  .axo-product_media {
    height: 220px;
  }

  .axo-product_content {
    min-height: 240px;
    padding: 16px 16px 52px;
  }

  .axo-product_title {
    font-size: 16px;
  }

  .axo-product_desc {
    font-size: 13px;
  }

  .axo-catalog_topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .axo-catalog_search {
    max-width: 100%;
    width: 100%;
  }
}