/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* FACETS */
.facetwp-slider-reset {
    border: none !important;
    background: #489079 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    padding: 8px 20px 8px 20px !important;
    border-radius: 25px 25px 25px 25px !important;
    margin-top: 15px !important;
}
.facet-wrap h3 {
    font-size: 1.33rem !important;
}
.facet-wrap .noUi-connect {
    background: #489079 !important;
}
/* BUG map magasin */
#wcfmmp-store .wcfmmp-store-map {
    z-index: 1 !important;
}

/* logo list products "vendu par" */
.wcfmmp_sold_by_wrapper img{
    max-height: 24px !important;
    margin-top: 8px;
}

/* Tooltip Email/Téléphone */
.show-tooltip {
    cursor: pointer;
}

.custom-tooltip {
    position: absolute;
    z-index: 3;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.custom-tooltip-content {
    background: #111;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    padding: 8px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    border: none;
    text-align: center;
}
.custom-tooltip-content a {
    color: #fff;
}
.custom-tooltip-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #111;
    margin-top: -1px;
}


/* icon loupe product image */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 9 !important;
}
/* Custom search input with "destination" autocomplete */
.premium-search {
    margin: 0 auto;
    width:300px;
}
/* body[data-elementor-device-mode="mobile"] .premium-search {
    width:250px;
} */

.search-box {
    position: relative;
}

.premium-search-field {
    display: flex;
    align-items: stretch;
}


.premium-search .premium-search-input {
    width: 100% !important;
    padding: 5px 22px !important;
    border-radius: 30px 0 0 30px !important;
    border: 1px solid #e5e5e5 !important;
    border-right: 0 !important;
    font-size: 18px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    transition: 0.3s !important;
}

.premium-search .premium-search-input:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}

.premium-search .premium-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #489079;
    color: #fff;
    border: 1px solid #489079;
    border-radius: 0 20px 20px 0;
}

.premium-search-results {
    position: absolute;
    width: 100%;
    background: white;
    margin-top: 12px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    padding: 10px;
    display: none;
    z-index: 5;
}

.search-section-title {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    color: #CCC;
    margin-bottom: 10px;
    margin: 10px;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    color: #222;
    transition: 0.2s;
}

.search-item:hover {
    background: #f7f7f7;
}

.search-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.icon-region {
    background: #EEF6FF;
}

.icon-destination {
    background: #FFF3E8;
}
.search-item.active {
    background: #f2f2f2;
}


/*AVIS GOOGLE*/
.avis_google .elementor-testimonial__content
{
    box-shadow: 1px 4px 10px 0px rgba(0, 0, 0, 0.1), 0px 0px 2px 0px rgba(0, 0, 0, 0.05);
}
    
.avis_google .elementor-testimonial__content::before{
  content: "★★★★★";
  font-size: 19px;
  color: #F4B400; /* jaune Google */
}

.avis_google .elementor-testimonial__text::before{
  content: "";
  background-image: url('https://cdn.trustindex.io/assets/platform/Google/icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 15px;
  right: 20px;
}

.avis_google .elementor-swiper .elementor-swiper-button{
    background-color: #FFF;
    border-radius: 50%;
    padding: 5px;
    border: 1px solid #DDD;
}

.avis_google.elementor-widget-testimonial-carousel .elementor-testimonial__text {
    overflow-y: scroll;
    max-height: 87px;
    height: 87px;
    padding-right: 10px;
}

/* new google avis widget */
.avis-content
{
    box-shadow: 1px 4px 10px 0px rgba(0, 0, 0, 0.1), 0px 0px 2px 0px rgba(0, 0, 0, 0.05);
}
    
.avis-content::before {
  content: "★★★★★";
  font-size: 19px;
  color: #F4B400; /* jaune Google */
  left:18px;
  top: 10px;
}

.avis-content .e-con-inner::before {
  content: "";
  background-image: url('https://cdn.trustindex.io/assets/platform/Google/icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 15px;
  right: 15px;
}

.avis-text {
    overflow-y: scroll;
    max-height: 87px;
    height: 87px;
    padding-right: 10px;
}


.avis-swiper .swiper-button-prev, .avis-swiper .swiper-button-next{
    border-radius: 50%;
    padding: 8px;
    border: 1px solid #DDD;
    width: 30px !important;
    height: 30px !important;
}


.avis-swiper .swiper-button-prev path, .avis-swiper .swiper-button-next path{
      fill: var(--e-global-color-secondary) !important;
}

/* RATINGS */
.e-rating .e-rating-wrapper[content="0"] {
    display: none;
}
/* Masquer le contrôle en bas à droite (comportement actuel conservé). */
.mapboxgl-ctrl-bottom-right {
    display: none;
}

/* Layout global du composant agences. */
.agences-component { position: relative; }
.agences-layout { display: grid; grid-template-columns: 66% 33%; height: 600px; gap: 10px; }
.agences-list { overflow-y: auto; padding: 0 20px 20px; height: 100%; position: relative; }
#map { width: 100%; height: 100%; }

/* Switch mobile Liste / Carte. */
.mobile-switch {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #f3f6fb;
    margin-bottom: 12px;
    margin-left: 20px;
    margin-top: 10px;
}

.mobile-switch button {
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-switch button.active {
    background: #489079;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Compteur d'agences. */
.agences-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 20px;
}

/* Card agence (liste). */
.agence-item {
    display: flex;
    align-items: stretch;
    padding: 0;
    margin-bottom: 15px;
    height: 180px;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: visible;
    position: relative;
}
.agence-item.active {
    transform: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.agence-item.active::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #9fd1e1;
    pointer-events: none;
    z-index: 4;
}

/* Vignette photo agence. */
.agence-thumb { flex: 0 0 33.333%; width: 33.333%; height: 100%; min-height: 180px; position: relative; overflow: hidden; }
.agence-thumb .agence-thumb-image { width: 100%; height: 100%; min-height: 100%; object-fit: cover; display: block; }

/* Badge logo agence en haut à droite. */
.agence-logo-badge-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.agence-logo-badge-wrap:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.agence-logo-badge {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

/* Bloc d'informations agence. */
.agence-info {
    flex: 1;
    min-width: 0;
    padding: 10px 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.agence-info h3 { margin: 0 0 5px; font-size: 18px; padding-right: 50px;}
.agence-info p, .agence-info ul { margin: 2px 0; font-size: 14px; color: #AAAAAA; }
.agence-info .adresse {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 42px;
}
.agence-info ul { padding-left: 15px; list-style-type: disc; }

/* Actions en bas de card (liens + bouton map). */
.action-buttons { display: flex; gap: 10px; margin-top: auto; margin-bottom: 0; align-items: center; }
.action-buttons .btn-info, .action-buttons .btn-reserve {
    flex: 0 0 auto; padding: 6px 10px; border-radius: 6px; font-size: 13px;
    text-align: center; text-decoration: none; cursor: pointer; transition: all 0.2s ease;
    color: #ffffff; white-space: nowrap;
}
.btn-info { background: #7CBED5; color: #fff; } .btn-info:hover { background: #69afc8; }
.btn-reserve { background: #489079; color: #fff; } .btn-reserve:hover { background: #3d7b67; }

/* Bouton map dans la liste. */
.see-on-map {
    position: relative;
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.see-on-map::before {
    content: "";
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

.see-on-map:hover {
    border-color: #7CBED5;
}

.see-on-map:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237CBED5'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

.see-on-map:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #000; color: #fff; font-size: 12px; padding: 2px 5px;
    border-radius: 3px; white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}

/* Marker map. */
.marker { border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.3); transition: transform 0.2s ease; }
.marker:hover { transform: scale(1.2); }

/* Popup map agence. */
.agence-map-popup .mapboxgl-popup-content {
    width: 260px;
    height: 125px;
    padding: 12px;
    border-radius: 8px;
}

.agence-map-popup .mapboxgl-popup-tip {
    border-top-color: #fff;
}

.agence-popup-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agence-popup-inner h4 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;      /* Empêche le retour à la ligne */
    overflow: hidden;         /* Cache ce qui dépasse du conteneur */
    text-overflow: ellipsis;  /* Ajoute les "..." à la fin */
    display: block;           /* S'assure que le titre se comporte comme un bloc */
    width: 100%;
}

.agence-popup-inner p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
}

.agence-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.agence-popup-actions .btn {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
}

/* Shortcode map (OSM/Mapbox) - placeholder et mode dark. */

.map-shortcode-placeholder {
    padding: 20px;
    background: #f1f1f1;
    text-align: center;
    border: 1px dashed #ccc;
}

.map-shortcode-ctx {
    width: 100%;
    max-width: 100%;
}

.single-mapbox-map--dark {
    width: 100%;
    height: 400px;
    background: #1a1a1a;
}

.map-shortcode-ctx--dark .agence-map-popup .mapboxgl-popup-content {
    background: #111;
    color: #f5f5f5;
    border: 1px solid #2a2a2a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    height: 85px !important;
}

.map-shortcode-ctx--dark .agence-map-popup .mapboxgl-popup-tip {
    border-top-color: #111;
    margin-top: -1px;
}

.map-shortcode-ctx--dark .agence-popup-inner h4 {
    color: #f5f5f5;
}

.map-shortcode-ctx--dark .agence-popup-inner p {
    color: #cfcfcf;
}

/* Home galerie photo (6 bandes). */
.home-gallery {
    position: relative;
    background-color: #111;
    min-height: 520px;
    overflow: hidden;
}

.home-gallery__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.home-gallery__bg.is-visible {
    opacity: 1;
}

.home-gallery--preview .home-gallery__bg {
    opacity: 0;
    transition: none;
}

.home-gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.home-gallery__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 520px;
}

.home-gallery__item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 14px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s ease, color 0.2s ease;
}

.home-gallery--preview .home-gallery__item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: none;
}

.home-gallery__item.is-active,
.home-gallery__item:hover {
    background: rgba(0, 0, 0, 0);
}
.home-gallery__title {
    font-size: 1.2rem;
    font-weight: 700;
    max-width: 150px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transform: translateY(6px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.home-gallery__cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff !important;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.home-gallery__cta::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #fff;
    transition: width 0.25s ease, transform 0.25s ease;
}

.home-gallery__cta::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.home-gallery__item.is-active .home-gallery__title,
.home-gallery__item:hover .home-gallery__title,
.home-gallery__item:focus .home-gallery__title {
    transform: translateY(-6px);
}

.home-gallery__item.is-active .home-gallery__cta,
.home-gallery__item:hover .home-gallery__cta,
.home-gallery__item:focus .home-gallery__cta {
    opacity: 1;
    transform: translateY(0);
}

.home-gallery__item.is-active .home-gallery__cta::before,
.home-gallery__item:hover .home-gallery__cta::before,
.home-gallery__item:focus .home-gallery__cta::before {
    width: 30px;
    transform: translateX(3px);
}

.home-gallery__item.is-active .home-gallery__cta::after,
.home-gallery__item:hover .home-gallery__cta::after,
.home-gallery__item:focus .home-gallery__cta::after {
    transform: translateX(3px) rotate(45deg);
}

.home-gallery__item:nth-child(6n) {
    border-right: none;
}

/* Ajustements responsive popup. */
@media (max-width: 850px) {
    .agence-map-popup .mapboxgl-popup-content {
        width: min(260px, calc(100vw - 40px));
        height: 125px;
    }
}

@media (max-width: 1024px) {
    .home-gallery {
        min-height: auto;
    }

    .home-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: auto;
    }

    .home-gallery.home-gallery--mobile::before,
    .home-gallery.home-gallery--mobile .home-gallery__bg {
        display: none;
    }

    .home-gallery.home-gallery--mobile .home-gallery__item {
        padding: 16px 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.25);
        min-height: 220px;
        background-color: #111;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .home-gallery.home-gallery--mobile .home-gallery__item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.5));
        z-index: 0;
    }

    .home-gallery.home-gallery--mobile .home-gallery__title {
        position: relative;
        z-index: 1;
        transform: none;
        max-width: none;
    }

    .home-gallery.home-gallery--mobile .home-gallery__cta {
        display: none;
    }

    .home-gallery.home-gallery--mobile .home-gallery__item:hover,
    .home-gallery.home-gallery--mobile .home-gallery__item.is-active,
    .home-gallery.home-gallery--mobile .home-gallery__item:focus {
        background-color: #111;
    }

    .home-gallery.home-gallery--mobile .home-gallery__item:hover .home-gallery__title,
    .home-gallery.home-gallery--mobile .home-gallery__item.is-active .home-gallery__title,
    .home-gallery.home-gallery--mobile .home-gallery__item:focus .home-gallery__title {
        transform: none;
    }

    .home-gallery__item {
        border-right: 1px solid rgba(255, 255, 255, 0.25);
    }

    .home-gallery__item:nth-child(3n) {
        border-right: none;
    }
    .home-gallery__title {
        font-size: 18px;
    }
}

@media (max-width: 680px) {
    .home-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-gallery__item:nth-child(2n) {
        border-right: none;
    }

    .home-gallery__title {
        font-size: 16px;
    }
}

/* Mode mobile du widget agences. */
@media (max-width: 850px) {
    .agences-layout { grid-template-columns: 1fr; height: 500px; }
    .agences-list { display: none; height: 100%; }
    #map { display: block; height: 100%; }
    .mobile-switch { display: inline-flex; margin-bottom: 10px; }
    .mobile-switch #show-map { order: 1; }
    .mobile-switch #show-list { order: 2; }
    .agence-item { height: 150px; }
    .agence-thumb { min-height: 150px; }
    .agence-info h3{max-height: 35px; margin: 0 0 3px;}
    .agence-info h3,
    .agence-info .adresse {
        padding-right: 40px;
        white-space: normal;
        overflow: hidden;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.05;
    }
    .agence-info .adresse { max-height: 30px; }
    .agence-logo-badge { width: 40px; height: 40px; }
    .agences-list .see-on-map { display: none; }
    .agences-list.active { display: block; }
    .agences-list.active + #map { display: none; }
}

/* --- Style spécifique pour le Shortcode Map --- */


/* Suppression du border-radius sur le conteneur de la map */
.single-mapbox-map {
    border-radius: 0 !important;
}

/* Styles pour les tags */
.wrapper-badges-loop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge-tag {
    background-color: #000; /* Couleur de fond */
    color: #FFF;               /* Couleur du texte */
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}



/* 1. On active le flex et le centrage pour tous les écrans */
.items-centered .elementor-loop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.items-centered .elementor-loop-container > div > div{
    max-width: 400px;
}

.carousel-services .swiper-button-disabled{
    display: none !important;
}

/* 2. RÉGLAGE DESKTOP (3 colonnes) */
@media (min-width: 1025px) {
    .items-centered .elementor-loop-container > div {
        flex: 0 0 calc(33.33% - 20px); 
        max-width: calc(33.33% - 20px);
    }
}

/* 3. RÉGLAGE TABLETTE (souvent 2 colonnes) */
@media (min-width: 768px) and (max-width: 1024px) {
    .items-centered .elementor-loop-container > div {
        flex: 0 0 calc(50% - 20px); 
        max-width: calc(50% - 20px);
    }
}

/* 4. RÉGLAGE MOBILE (1 colonne - On laisse la largeur naturelle) */
@media (max-width: 767px) {
    .items-centered .elementor-loop-container > div {
        flex: 0 0 100%; 
        max-width: 100%;
    }
}

/* Widget WooCommerce - categories produits */
.woocommerce.widget_product_categories {
    --jb-widget-accent: #489079;
    --jb-widget-accent-dark: #3d7b67;
    --jb-widget-secondary: #7CBED5;
    --jb-widget-surface: #ffffff;
    --jb-widget-surface-soft: #f8f8f8;
    --jb-widget-border: rgba(17, 24, 39, 0.08);
    --jb-widget-text: #1f2933;
    --jb-widget-muted: #6b7280;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.woocommerce.widget_product_categories h5 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border: 1px solid var(--jb-widget-border);
    border-width: 0 0 1px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--jb-widget-text);
}

.woocommerce.widget_product_categories ul.product-categories,
.woocommerce.widget_product_categories ul.product-categories ul.children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce.widget_product_categories ul.product-categories > li + li {
    margin-top: 6px;
}

.woocommerce.widget_product_categories ul.product-categories li {
    margin: 0;
}

.woocommerce.widget_product_categories ul.product-categories li::marker {
    content: "";
}

.woocommerce.widget_product_categories ul.product-categories > li > a,
.woocommerce.widget_product_categories ul.product-categories ul.children a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--jb-widget-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.woocommerce.widget_product_categories ul.product-categories > li > a::before,
.woocommerce.widget_product_categories ul.product-categories ul.children a::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: var(--jb-widget-accent);
    box-shadow: none;
}

.woocommerce.widget_product_categories ul.product-categories > li > a:hover,
.woocommerce.widget_product_categories ul.product-categories ul.children a:hover {
    color: var(--jb-widget-accent-dark);
    opacity: 1;
}

.woocommerce.widget_product_categories li.cat-parent > a {
    padding-right: 18px;
}

.woocommerce.widget_product_categories li.cat-parent > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    opacity: 0.45;
}

.woocommerce.widget_product_categories li.current-cat > a {
    color: var(--jb-widget-accent);
}

.woocommerce.widget_product_categories li.current-cat > a::before {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
    background: var(--jb-widget-accent);
}

.woocommerce.widget_product_categories li.current-cat.cat-parent > a::after {
    opacity: 1;
}

.woocommerce.widget_product_categories ul.children {
    margin-top: 0;
    margin-left: 3px;
    padding-left: 14px;
    border-left: 1px solid rgba(17, 24, 39, 0.08);
}

.woocommerce.widget_product_categories ul.children li + li {
    margin-top: 0;
}

.woocommerce.widget_product_categories ul.product-categories ul.children a {
    padding: 9px 0;
    color: var(--jb-widget-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.woocommerce.widget_product_categories ul.product-categories ul.children a::before {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
    background: var(--jb-widget-secondary);
    box-shadow: none;
}

.woocommerce.widget_product_categories li.current-cat ul.children a {
    color: var(--jb-widget-text);
}

.woocommerce.widget_product_categories li.current-cat ul.children a:hover {
    color: var(--jb-widget-accent-dark);
}

.woocommerce.widget_product_categories .count {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: inherit;
    font-size: 12px;
    line-height: 1;
}

.woocommerce.widget_product_categories li.current-cat > a .count {
    background: rgba(72, 144, 121, 0.12);
}

@media (max-width: 767px) {
    .woocommerce.widget_product_categories {
        padding: 0;
    }

    .woocommerce.widget_product_categories ul.product-categories > li > a,
    .woocommerce.widget_product_categories ul.product-categories ul.children a {
        padding-left: 0;
        padding-right: 0;
    }
}
