/* Fix Site*/
nav.site-navigation .main-header-menu > li > a > span.menu-text {
    font-weight: 500;
    font-size: 18px;
}

#content.site-content {
    background-color: #e6ecf2;
}

/**
 * IDALO Catalog Frontend Styles
 */

:root {
    --neuero-color-1: #064684;
    --neuero-color-2: #fee557;
    --neuero-color-3: rgba(255, 229, 77, .75);
    --neuero-container-width: 1300px;
}

/* Catalog Page Styles */
.idalo-cat-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.idalo-cat-widget {
    width: 20%;
    min-width: 300px;
    height: fit-content;
}

.idalo-cat-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.idalo-filter-widget h3 {
  border-bottom: 2px solid #184785;
  font-weight: 600;
}

.idalo-cat-products {
    width: 80%;
}
.idalo-cat-products, .idalo-cat-products[data-display-mode="2"] .idalo-subgroup-products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
    align-content: start;
}
.idalo-cat-products[data-display-mode="2"] {
    display: block !important;
}

.idalo-cat-products[data-display-mode="2"] .idalo-subgroup-title {
    font-size: 21px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1e1e1;
    font-weight: 100;
    margin-bottom: 15px;
}

.idalo-cat-products[data-display-mode="2"] .idalo-subgroup-section:not(:last-child) {
    margin-bottom: 45px;
}

.idalo-cat-product {
    padding: 0 0 15px 0;
    border: 0;
    background: #fff;
    transition: box-shadow 0.1s ease;
    overflow: hidden;

    max-width: none !important;
    min-width: 0 !important;
    width: auto !important;
    flex: initial !important;
}

.idalo-cat-product.hidden {
    display: none;
}

.idalo-cat-product-img {
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    height: 150px;
    overflow: hidden;
}
.idalo-cat-product-img a {
    width: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.idalo-cat-product-img img {
    /*width: 100%;
    height: 100%;*/
    object-fit: cover;
    max-width: inherit;
}

.idalo-cat-product-title {
    font-size: 0.9rem;
    color: var(--neuero-color-1);
    padding: 0 15px;
}

.idalo-cat-product-title a {
    color: var(--neuero-color-1);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.idalo-cat-product-short {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    padding: 0 15px;
    margin: 0 0 15px 0;

}

.idalo-cat-product-btn {
    background-color: var(--neuero-color-2);
    color: var(--neuero-color-1);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 15px;
    margin: auto 0 0 15px;
    width: fit-content;

}


/* Widget*/
.idalo-filter-widget h3 {
  /*border-bottom: 2px solid #184785;
  font-weight: 600;
  text-transform: i;*/
}

.idalo-filter-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.idalo-filter-group {
    margin-bottom: 15px;
}

.idalo-filter-group-container {
    background-color: #fff;
    padding: 10px 0 10px 5px;
    margin: 0 0 10px 0;
    border-radius: 10px;
}
.idalo-filter-subgroup-container {

}

.filter-info {
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.filter-info small {
    font-size: 12px;
    font-style: italic;
}

/* Top-level groups styling */
.idalo-toggle-switch.idalo-top-group {
    font-weight: 600;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

/* Subgroups styling with indentation */
.idalo-toggle-switch.idalo-subgroup {
    margin-left: 0;
    margin-bottom: 3px;
    font-size: 14px;
}

.idalo-toggle-switch.idalo-subgroup .label-text {
    color: #666;
}


/* Custom Radio Switch Styles */
.idalo-filter-group {
    margin-bottom: 20px;
}

/* iOS-style Toggle Switches */
.idalo-toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #333;
}

.idalo-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.idalo-toggle-switch .slider {
    position: relative;
    width: 46px;
    height: 26px;
    background-color: #e9e9ea;
    border-radius: 50px;
    transition: background-color 0.3s;
    margin-right: 12px;
    flex-shrink: 0;
}

.idalo-toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 2px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 0;
}

.idalo-toggle-switch input:checked + .slider {
    background-color: #fed636; /* iOS green */
}

.idalo-toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
    left: 3px;
}

.idalo-toggle-switch:hover .slider {
    background-color: #d1d1d1;
}

.idalo-toggle-switch input:checked:hover + .slider {
    /*background-color: #3db454;*/
}

/* Label text styling */
.idalo-toggle-switch .label-text {
    flex: 1;
    line-height: 1.5;
}

/* Product count styling */
.idalo-toggle-switch .product-count {
    color: #8e8e93;
    font-size: 0.9em;
    margin-left: 5px;
    font-weight: normal;
}

/* All products toggle specific styling */
.idalo-toggle-switch.idalo-all-products {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.idalo-toggle-switch.idalo-all-products .label-text {
    font-weight: 600;
}

/* ============================= */
/* Neuero Filter Widget v2       */
/* Collapsible sections + toggles*/
/* ============================= */

.idalo-filter-widget-2 h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 21px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;

}

/* Container spacing */
.idalo-filter-widget-2 .idalo-fw2-all {
    margin-bottom: 15px;
}

.idalo-filter-widget-2 .idalo-fw2-sections {
    display: block;
}

.idalo-filter-widget-2 .idalo-fw2-section {
    margin-bottom: 10px;
}

/* Section header: top-level group line */
.idalo-filter-widget-2 .fw2-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #034784; /* Neuero blue */
    color: #fff;
    border: 0;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.idalo-filter-widget-2 .fw2-section-header:focus {
    outline: 2px solid #fed636; /* yellow focus ring to match brand accent */
    outline-offset: 2px;
}

.idalo-filter-widget-2 .fw2-title {
    flex: 1;
    font-size: 14px;
    text-transform: capitalize;
}

/* Caret indicator */
.idalo-filter-widget-2 .fw2-caret {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ffffff'><path stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /></svg>");
    transition: transform .2s ease;
}

.idalo-filter-widget-2 .fw2-section-header[aria-expanded="true"] .fw2-caret {
    transform: rotate(180deg); /* up arrow when expanded */
}

/* Section body (subgroups) */
.idalo-filter-widget-2 .fw2-section-body {
    padding: 10px 8px;
    background: #fff;
}

.idalo-filter-widget-2 .fw2-section-body[hidden] {
    display: none !important;
}

/* Subgroup toggles layout */
.idalo-filter-widget-2 .fw2-section-body .idalo-toggle-switch {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0; /* override default margins */
}

.idalo-filter-widget-2 .fw2-section-body .idalo-toggle-switch:last-child {
    border-bottom: 0;
}

.idalo-filter-widget-2 .fw2-section-body .label-text {
    color: #333;
}

/* Keep existing iOS toggle look reused from .idalo-toggle-switch */


/* Responsive Design */
@media (max-width: 1024px) {
    .idalo-cat-container {
        flex-direction: column;
    }
    
    .idalo-cat-widget {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .idalo-cat-products {
        width: 100%;
    }
    
    .idalo-cat-product {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .idalo-cat-product {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .idalo-cat-product {
        padding: 10px;
    }
    
    .idalo-cat-widget {
        padding: 15px;
    }
}
