@font-face {
  font-family: 'nova-icons';
  src: url(../fonts/nova-icons.eot?j7twyn);
  src: url("../fonts/nova-icons.eot?j7twyn#iefix") format("embedded-opentype"),
       url(../fonts/nova-icons.ttf?j7twyn) format("truetype"),
       url(../fonts/nova-icons.woff?j7twyn) format("woff"),
       url("../fonts/nova-icons.svg?j7twyn#nova-icons") format("svg");
  font-weight: normal;
  font-style: normal;
}

#findex-search-trigger {
    display: none !important;
}

.findex-icon-search::before {
  content: "\e9c1"; /* same as nova-search */
  font-family: 'nova-icons' !important;
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* #search_widget {
    display: none !important
} */
:root {
    --findex-primary-color: #a73123;
    --findex-secondary-color: #e0e0e0;
    --findex-text-color: #000000;
    --findex-light-gray: #f5f5f5;
    --findex-border-color: #e0e0e0;
    --findex-hover-color: #f9f9f9;
}
/* #findex-search-trigger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--findex-text-color);
    transition: color 0.2s ease;
} */
#findex-search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    color: #232323;
    cursor: pointer;

    position: relative;
    z-index: 10;        /* ensures it stays clickable */
}

#findex-search-trigger:hover {
    color: #a73123;
}

#findex-search-trigger i {
    font-size: 18px;
    line-height: 1;
}

/* Correct icon font binding */
.findex-icon-search {
    font-family: 'nova-icons' !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
}
.findex-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999
}
.findex-modal.hidden {
    display: none
}
.findex-temp-hidden {
    z-index: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.hidden {
    display: none !important;
}
.findex-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.3s ease;
}
.findex-modal-content {
    background: #fff;
    position: relative;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    border-top: 4px solid #a73123;
    animation: madalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.findex-search-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px 24px;
    background: #fff;
    flex-shrink: 0
}
.findex-logo img {
    height: 40px;
}
.findex-search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--findex-border-color);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--findex-text-color);
    transition: all 0.3s ease;
    margin-left: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.findex-search-input:focus {
    border-color: #a73123;
    box-shadow: 0 0 0 3px rgba(243, 124, 57, 0.1);
    transform: translateY(-1px);
}
.findex-search-input::placeholder {
    color: #999
}
.findex-close-button {
    margin-left: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.findex-recent-tags {
    margin-left: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0px 24px 6px 0px;
    /* border-bottom: 1px solid var(--findex-border-color); */
    background: #fff;
    flex-shrink: 0
}
.findex-recent-tags::before {
    /* content: "Últimas búsquedas:"; */
    font-size: 14px;
    color: #666;
    margin-right: 8px;
    flex-shrink: 0
}
.recent-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0
}
.recent-search-item {
    background: var(--findex-light-gray);
    border: 1px solid var(--findex-border-color);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--findex-text-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.recent-search-item:hover {
    background: #e8e8e8;
    border-color: #a73123;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.delete-search {
    background: none;
    border: none;
    margin-left: 6px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 14px
}
.delete-search:hover {
    color: #f44
}
.recent-search-item.clear-tag {
    background: #fff5f5;
    color: #a73123;
    border-color: #a73123
}
.recent-search-item.clear-tag:hover {
    background: #ffe8e8
}
.clear-history-btn {
    background: #fff;
    color: #a73123;
    border: none;
    padding: 6px 2px;
    cursor: pointer;
    font-size: 16px;
}
.clear-history-btn :hover {
    text-decoration: underline;
}
.findex-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 24px;
    background: #fff;
    flex-shrink: 0
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #a73123;
    color: #fff;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500
}
.filter-tag .remove-filter {
    margin-left: 8px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 0;
    line-height: 1
}
.filter-tag .remove-filter:hover {
    opacity: .8
}
.findex-clear-filters {
    padding: 8px 12px;
    text-align: left;
    background: #fff;
    flex-shrink: 0
}
.clear-filters-btn {
    background: #ffffff;
    color: #a73123;
    border: none;
    padding: 6px 2px;
    cursor: pointer;
    font-size: 16px;
}
.clear-filters-btn:hover {
    text-decoration: underline;
}
.findex-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden
}
.findex-sidebar {
    width: 360px;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    position: relative;
    min-height: 100%;
    box-sizing: border-box;
}
.findex-filter-section {
    margin-bottom: 32px;
    padding: 16px;
    background: #ffffff;
}
.findex-filter-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--findex-text-color)
}
.findex-popular-searches h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--findex-text-color)
}
.findex-popular-searches ul {
    list-style: none;
    padding: 0;
    margin: 0
}
.findex-popular-searches li {
    padding: 8px 12px;
    color: var(--findex-text-color);
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.findex-popular-searches li:hover {
    background: var(--findex-hover-color);
    color: #a73123;
}
.findex-category-list {
    list-style: none;
    padding: 0;
    margin: 0
}
.findex-category-list li {
    display: flex;
    align-items: center
}
.findex-category-list input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #a73123
}
.findex-category-list label {
    margin-top: 6px;
    color: var(--findex-text-color);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
/* Custom nouislider styling */
/* === Container === */
.findex-price-slider {
    margin-top: 50px;
    padding-bottom: 30px;
    position: relative;
}
/* === Slider Track === */
.findex-price-slider .noUi-target {
    background: #e0e0e0;
    border-radius: 4px;
    height: 6px;
    border: none;
}
/* === Selected Range (Connect) === */
.findex-price-slider .noUi-connect {
    background: #a73123;
    height: 6px;
    border-radius: 4px;
}
/* === Handles === */
.findex-price-slider .noUi-handle {
    background: #fff;
    border: 2px solid #666;
    border-radius: 50%;
    box-shadow: none;
    height: 24px !important;
    width: 25px !important;
    right: -11px !important;
    top: -10px !important;
    cursor: pointer;
}
/* Remove handle bars */
.findex-price-slider .noUi-handle:before,
.findex-price-slider .noUi-handle:after {
    display: none;
}
/* === Tooltips === */
.findex-price-slider .noUi-tooltip {
    background: #a73123;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 6px;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    display: block;
    min-width: 32px;
    text-align: center;
    box-shadow: none;
}
/* Remove tooltip arrow for flat look */
.findex-price-slider .noUi-tooltip:after {
    display: none;
}
/* === Tick Marks === */
.findex-price-slider .noUi-pips {
    height: 24px;
    top: 100%;
    margin-top: -5px;
}
.findex-price-slider .noUi-marker {
    background: #ccc;
    width: 1px;
    height: 6px;
}
.findex-price-slider .noUi-marker-large {
    height: 10px;
    background: #aaa;
}
/* === Pip Labels === */
.findex-price-slider .noUi-value {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    position: absolute;
    margin-top: 20px;
    transform: translateX(-50%);
    white-space: nowrap;
}
/* === Focus Styles === */
.findex-price-slider .noUi-handle:focus {
    outline: none;
}
.no-categories {
    color: #666;
    font-style: italic;
    padding: 16px;
    text-align: center;
    background: var(--findex-light-gray);
    border-radius: 8px
}
.findex-sidebar::-webkit-scrollbar {
    width: 8px;
}
.findex-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
    /* or transparent */
    border-radius: 4px;
}
.findex-sidebar::-webkit-scrollbar-thumb {
    background-color: #a73123;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.findex-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #d96527;
}
.findex-results-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
#findex-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: none;
}
#findex-loading-spinner img {
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.findex-results-slider {
    flex: 1;
    padding: 20px 20px 80px 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    align-content: start;
    min-height: 0;
    height: 0;
}
.findex-modal-content>.findex-search-header,
.findex-modal-content>.findex-active-filters {
    flex-shrink: 0
}
.findex-results-slider::-webkit-scrollbar {
    width: 10px
}
.findex-results-slider::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 5px;
}
.findex-results-slider::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.findex-results-slider::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}
.findex-product {
    /* min-height: 360px; */
    position: relative !important;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--df-neutral-outline, hsl(204, 2%, 80%));
    border-radius: 4px;
    color: var(--df-neutral-high-contrast, hsl(204, 2%, 20%));
    background-color: var(--df-neutral-surface, hsl(204, 2%, 100%));
    font-size: 14px;
    text-align: left;
    overflow-wrap: break-word;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.findex-product:hover {
    border-color: #a73123;
    box-shadow: 0 0 0 2px rgba(243, 124, 57, 0.3);
}
.findex-product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 10px;
    background-color: #ffffff;
}
.findex-product h3 {
    font-size: 14px;
    margin: 12px 12px 0px 12px;
    color: #333;
    line-height: 1.4;
    min-height: 55px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
}
.findex-product .category {
    font-size: 11px;
    color: #666;
    margin: 0 12px 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.findex-product .price {
    margin: 8px 12px 12px 12px;
    font-weight: 700;
    color: #a73123;
    font-size: 15px;
    padding-top: 8px;
    /* border-top: 1px dashed var(--findex-border-color); */
}
.findex-product button.findex-add-to-cart {
    margin: 0 12px;
    /* padding: 12px 16px; */
    background: linear-gradient(135deg, #a73123 0%, #e06429 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(243, 124, 57, 0.3);
}
.findex-add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}
/* .findex-product button.findex-add-to-cart:hover {
    background: linear-gradient(135deg, #e06429 0%, #d96527 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 124, 57, 0.4);
} */
/* Initially hide full cart controls */
.findex-cart-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    position: relative;
}
.quantity-wrapper {
    display: none;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.findex-cart-controls.open .quantity-wrapper {
    display: flex;
}
.findex-add-to-cart.added {
    background: linear-gradient(135deg, #aaa, #ccc);
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}
.findex-product:hover .findex-cart-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.findex-add-to-cart.added {
    background: linear-gradient(135deg, #f9a16b 0%, #a73123 100%);
    opacity: 0.8;
    box-shadow: none;
}
.findex-card-footer .price-cart-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #fdfdfd;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.05); */
    /* margin-top: 10px; */
    gap: 12px;
}
/* Show only cart button initially */
.findex-cart-controls .findex-add-to-cart {
    background-color: #a73123;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    position: relative;
}
/* Quantity box and +/- buttons hidden by default */
.findex-cart-controls .quantity-wrapper {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}
/* Show quantity and +/- when hovering cart button */
.findex-cart-controls .findex-add-to-cart:hover .quantity-wrapper {
    display: flex;
}
.findex-cart-controls input.quantity {
    width: 32px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 28px;
    font-weight: bold;
    color: #333;
    background: #fff;
    pointer-events: none;
    cursor: not-allowed;
}
.findex-cart-controls button.increment,
.findex-cart-controls button.decrement {
    background-color: #d96527;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
}
.findex-cart-controls button.increment:hover,
.findex-cart-controls button.decrement:hover {
    background-color: #a73123;
}
#findex-pagination-controls button {
    background-color: var(--findex-primary-color, #444);
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 5px;
}
.findex-default-heading {
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
}
#findex-search-modal .findex-modal-content.initial {
    height: 86vh;
    transition: height 0.3s ease;
}
#findex-search-modal .findex-modal-content.expanded {
    height: 100vh;
}
#default-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
  user-select: none;
}
#default-slider-track.dragging {
  cursor: grabbing;
}
/* Outer wrapper for spacing and centering */
.default-slider-wrapper {
    padding: 0 15px;
    /* max-width: 1170px; */
    /* You can increase or decrease as needed */
}
/* Horizontal container to align arrows and slider */
.default-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}
/* Slider area only */
.default-slider {
    flex: 1;
    overflow: hidden;
}
/* Slider track inside the scrollable slider */
.default-slider-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 5px;
}
.default-slider-track::-webkit-scrollbar {
    display: none;
}
.default-slider-track .findex-product {
    flex: 0 0 auto;
    max-height: 390px;
    width: 248px;
    min-width: 200px;
}
/* .default-slider-track .price-cart-wrapper .findex-cart-controls {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.default-slider-track .price-cart-wrapper .price {
  opacity: 1 !important;
} */
/* Navigation arrows */
.slider-nav {
    font-size: 38px;
    color: #a73123;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.slider-nav:hover {
    color: #d96527;
}
/* Optional: spacing */
.slider-nav.left {
    margin-right: 8px;
}
.slider-nav.right {
    margin-left: 8px;
}
.findex-default-heading {
    margin-top: 20px;
    margin-bottom: 15px;
    margin-left: 55px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
}
.price-cart-wrapper {
    position: relative;
    height: 42px;
    /* Same height for both price and cart */
    margin: 8px 12px 12px 12px;
    border-top: 1px dashed var(--findex-border-color);
    padding-top: 8px;
}
.price-cart-wrapper .price,
.price-cart-wrapper .findex-cart-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease;
}
/* Initially: price visible, cart hidden */
.price-cart-wrapper .findex-cart-controls {
    opacity: 0;
    pointer-events: none;
    justify-content: center;
}
.findex-product:hover .price-cart-wrapper .price {
    opacity: 0;
}
.findex-product:hover .price-cart-wrapper .findex-cart-controls {
    opacity: 1;
    pointer-events: auto;
}
.findex-count {
    color: #999;
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 4px;
}
.findex-show-more-wrap {
    text-align: left;
}
.findex-show-more-btn {
    width: 100%;
    height: 20px;
    background: none;
    border: none;
    color: grey;
    cursor: pointer;
    font-weight: 400;
    font-size: 12px;
}
.findex-category-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.findex-category-label .category-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}
.findex-count {
    font-size: 13px;
    color: #999;
    margin-left: 10px;
    flex-shrink: 0;
}
/* .price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 12px 12px 12px;
    font-weight: 700;
    color: #a73123;
    font-size: 15px;
    padding-top: 8px;
} */
.price-left {
    flex-shrink: 1;
    color: black;
}
.stock-right {
    font-size: 13px;
    font-weight: 600;
    margin-right: 25px;
    text-align: right;
    white-space: nowrap;
    padding-left: 10px;
    line-height: 1.4;
    min-width: 85px;
}
.stock-zero {
    color: #d00;
}
.stock-low {
    color: #d4a300;
    /* warm yellow-orange */
}
.stock-normal {
    color: #a73123;
    /* same as price color */
}
.noUi-connect {
    background: #a73123;
}
.noUi-handle {
    border: 2px solid #a73123;
    background: #fff;
}
.noUi-tooltip {
    background: #a73123;
    color: white;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
}
.findex-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.findex-count-text {
    font-weight: bold;
    font-size: 16px;
}
.findex-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.findex-sort-wrapper label {
    margin-top: 5px;
    font-weight: 500;
    font-size: 14px;
}
#findex-sort-select {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    transition: border 0.2s ease;
    max-width: 180px;
}
#findex-sort-select:hover {
    border-color: #999;
}
#findex-sort-select:focus {
    outline: none;
    border-color: #333;
}
/* Show price + stock by default */
.findex-card-footer .price-cart-wrapper {
    display: block;
    transition: opacity 0.3s ease;
}
/* Cart controls hidden initially */
.findex-card-footer .findex-cart-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.findex-product:hover .findex-card-footer .findex-cart-controls {
    opacity: 1;
    pointer-events: auto;
}
.findex-clear-filters {
    display: none;
}
.product-qty-indicator {
    display: inline-block;
    padding: 2px 5px;
    margin: 0 3px;
    background: transparent;
    font-size: 11px;
    font-weight: 500;
    line-height: 15px;
    z-index: 2;
    text-transform: uppercase;
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-family: "Josefin Sans", sans-serif;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    position: absolute;
    top: 10px;
    right: 40px;
    text-align: left;
    margin: 0;
    color: #f67d34 !important;
    float: right;
}
.product-qty-indicator-stock {
    display: inline-block;
    padding: 2px 5px;
    margin: 0 3px;
    background: transparent;
    font-size: 11px;
    font-weight: 500;
    line-height: 15px;
    z-index: 2;
    text-transform: uppercase;
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-family: "Josefin Sans", sans-serif;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    position: absolute;
    top: 10px;
    right: 40px;
    text-align: left;
    margin: 0;
    color: #4cbb6c !important;
    float: right;
}
.default-slider .findex-product button.findex-add-to-cart {
    margin: 0 12px;
    padding: 6px 6px;
    background: linear-gradient(135deg, #a73123 0%, #e06429 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(243, 124, 57, .3)
}
.price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}
.price .discounted-price {
    color: #a73123;
    font-weight: bold;
    font-size: 16px;
}
.discount-badge {
    position: absolute;
    top: 6px;
    right: 0px;
    background-color: #222;
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px 0 0 4px;
    z-index: 2;
}
.price-cart-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 12px;
    gap: 10px;
}
.price-cart-bar .price {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
    color: #a73123;
}
.price-cart-bar .original-price {
    text-decoration: line-through;
    color: #999;
    margin-bottom: 1px;
    font-size: 14px;
    font-weight: 400;
}
.price-cart-bar .discounted-price {
    color: #a73123;
    font-weight: bold;
    font-size: 14px;
}
.price-cart-bar .findex-cart-controls {
    margin-top: 10px;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    position: static;
}
.price-cart-bar .findex-add-to-cart {
    padding: 6px 10px;
}
.price.hidden {
    display: none;
}
/* Make both increment and decrement buttons look the same */
.findex-cart-controls button.increment,
.findex-cart-controls button.decrement {
    background-color: #d96527;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.findex-cart-controls button.increment:hover,
.findex-cart-controls button.decrement:hover {
    background-color: #a73123;
}
/* Delete button overrides */
.findex-cart-controls button.delete {
    background-color: #000;
    /* black for delete */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.findex-cart-controls button.delete:hover {
    background-color: #222;
}
.findex-add-to-cart.added {
    background: #ccc;
    color: #666;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transition: background-color 0.3s ease;
}
/* Sidebar drawer on mobile (hidden by default) */
#findex-sidebar-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}
/* When open, slide in */
#findex-sidebar-drawer.open {
    left: 0;
}
/* Backdrop behind the sidebar */
#findex-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1500;
    display: none;
}
#findex-sidebar-backdrop.show {
    display: block;
}
.findex-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    z-index: 20;
    transition: transform 0.2s ease;
    align-items: center;
    justify-content: center;
}
.findex-filter-toggle:hover {
    transform: scale(1.1);
}
.findex-filter-toggle.active {
    background: #dc3545;
}
/* Sidebar Backdrop for Mobile */
.findex-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4;
}
/* Responsive Styles */
@media (max-width: 768px) {
    .findex-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100%;
        width: 280px;
        transform: translateX(-100%);
        z-index: 15;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    .findex-sidebar.active {
        transform: translateX(0);
    }
    .findex-sidebar-backdrop.active {
        display: block;
    }
    .findex-filter-toggle {
        display: flex;
    }
}
@media (max-width: 480px) {
    .findex-sidebar {
        width: 260px;
    }
}
/* @media (min-width: 1024px) {
    .default-slider-wrapper {
        max-width: 1170px;
    }
} */
/* ===== RESPONSIVE FIXES FOR PRESTASHOP SEARCH MODAL ===== */
/* 1. Fix recent tags positioning on mobile */
@media (max-width: 768px) {
    .findex-recent-tags {
        margin-left: 0;
        /* Remove the fixed 220px margin */
        padding: 8px 16px 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .findex-recent-tags::before {
        margin-right: 0;
        margin-bottom: 4px;
    }
}
/* 2. Improve modal sizing for better mobile experience */
@media (max-width: 768px) {
    .findex-modal-content {
        margin: 0;
        /* Remove margins on small screens */
        height: 100vh;
        /* Full height */
        border-radius: 0;
        /* Remove border radius for full screen feel */
        max-width: 100vw;
    }
}
/* 3. Better search header layout on mobile */
    .findex-search-header {
        padding: 12px;
        gap: 8px;
        /* Add gap between elements */
    }
    .findex-logo {
        flex-shrink: 0;
        /* Prevent logo from shrinking */
    }
    .findex-search-input {
        margin-left: 8px;
        /* Reduce excessive margin */
        min-width: 0;
        /* Allow input to shrink */
        flex: 1;
        /* Take available space */
    }
    .findex-close-button {
        margin-left: 8px;
        margin-bottom: 0;
        /* Remove bottom margin */
        flex-shrink: 0;
        /* Prevent button from shrinking */
    }
@media (max-width: 820px) {
    .findex-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }
}
/* 4. Improve sidebar behavior on mobile */
@media (max-width: 768px) {
    .findex-body {
        flex-direction: column;
        min-height: 0;
    }
    .findex-sidebar {
        width: 100%;
        max-height: 40vh;
        /* Limit sidebar height */
        border-right: none;
        border-bottom: 1px solid var(--findex-border-color);
        padding: 16px;
        overflow-y: auto;
        flex-shrink: 0;
    }
    .findex-results-container {
        flex-grow: 1;
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 16px;
        /* Optional spacing */
    }
}
/* 5. Better grid layout for products */
@media (max-width: 768px) {
    .findex-results-slider {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 16px;
        margin-bottom: 20px;
    }
}
@media (max-width: 576px) {
    .findex-results-slider {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        padding: 12px;
    }
}
@media (max-width: 400px) {
    .findex-results-slider {
        grid-template-columns: 1fr 1fr;
        /* Always 2 columns on very small screens */
        gap: 8px;
        padding: 8px;
    }
}
/* 6. Improve product card responsiveness */
@media (max-width: 768px) {
    .findex-product {
        min-height: auto;
        /* Remove fixed height */
        height: auto;
    }
    .findex-product img {
        height: 140px;
        /* Smaller images on mobile */
        object-fit: cover;
        /* Better image fitting */
    }
    .findex-product h3 {
        font-size: 13px;
        line-height: 1.1;
        min-height: 40px;
        margin: 8px;
    }
    .price-cart-wrapper {
        height: auto;
        margin: 8px;
    }
    .price-cart-bar .findex-cart-controls {
        margin: 10px 0px 10px -25px;
    }
}
@media (max-width: 400px) {
    .findex-product img {
        height: 120px;
    }
    .findex-product h3 {
        font-size: 12px;
        min-height: 36px;
        margin: 6px;
    }
}
/* 7. Fix header bar on mobile */
@media (max-width: 768px) {
    .findex-header-bar {
        flex-direction: column;
        align-items: stretch;
        margin: 12px;
        gap: 12px;
    }
    .findex-count-text {
        font-size: 15px;
    }
    .findex-sort-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    #findex-sort-select {
        flex: 1;
        padding: 6px 8px;
        font-size: 15px;
        max-width: 100%;
    }
}
/* 8. Improve touch targets */
@media (max-width: 768px) {
    .findex-add-to-cart,
    .findex-cart-controls button {
        min-height: 44px;
        /* Apple's recommended touch target size */
        padding: 8px 12px;
    }
    .recent-search-item {
        min-height: 36px;
        padding: 8px 12px;
    }
    .findex-close-button {
        min-height: 44px;
        min-width: 44px;
    }
    .findex-cart-controls input.quantity {
        width: 28px;
        height: 44px;
    }
}
/* 9. Fix default slider responsiveness */
@media (max-width: 768px) {
    .default-slider-wrapper {
        /* width: 320px; */
        /* margin: 20px 20px; */
        padding: 0 12px;
    }
    .default-slider-container {
        /* width: 320px; */
        gap: 8px;
    }
    .default-slider-track .findex-product {
        width: 180px;
        min-width: 160px;
    }
    .slider-nav {
        font-size: 32px;
        padding: 8px;
    }
    .findex-default-heading {
        margin-left: 12px;
        font-size: 1.2rem;
    }
}
@media (min-width: 1024px) {
  #findex-search-modal .findex-modal-content.initial .findex-sidebar {
    width: 220px; /* 👈 reduced width when modal is 83vh */
    transition: width 0.3s ease;
  }
  #findex-search-modal .findex-modal-content.expanded .findex-sidebar {
    width: 360px; /* 👈 original full height width */
    transition: width 0.3s ease;
  }
}
@media (max-width: 768px) {
    #findex-search-modal .findex-modal-content.initial {
    height: 65vh;
    transition: height 0.3s ease;
}
}
#findex-search-modal .findex-modal-content.initial #findex-header-bar,
#findex-search-modal .findex-modal-content.initial .findex-results-slider {
  display: none !important;
}
/* Desktop (default row layout) */
.findex-search-header {
  display: flex;
  align-items: center;
  padding: 24px;
}
/* Desktop stays as you had it */
@media (max-width: 768px) {
  .findex-search-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 12px;      /* controls top/right spacing */
    position: relative;      /* anchor for the close button */
  }
  .findex-logo { 
    align-self: flex-start;
  }
  .findex-close-button {
    position: absolute;
    top: 12px;               /* match header padding */
    right: 12px;
    margin: 0;
    padding: 8px;            /* bigger tap target */
    font-size: 22px;
    line-height: 1;          /* prevents vertical drift */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .findex-search-input {
    order: 3;
    width: 100%;
    margin-top: 10px;
    margin-left: 0;          /* override desktop margin */
  }
}
.recent-search-item.suggestion {
  border-color: #a73123;
  background: #fffaf5;
}
/* 🔹 Search wrapper for alignment */
.findex-search-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
/* 🔹 Voice button style */
.findex-voice-btn {
  background: none;
  outline: none !important;
  border: none;
  color: #666;
  cursor: pointer;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
}
.findex-voice-btn i {
  font-size: 22px;
}
/* 🔹 When listening: glowing pulse */
.findex-voice-btn.listening {
  color: #a73123;
  animation: mic-pulse 1.2s infinite ease-in-out;
  outline: none;
}
@keyframes mic-pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(243, 124, 57, 0.4);
  }
  50% {
    transform: scale(1.15);
    text-shadow: 0 0 8px rgba(243, 124, 57, 0.6);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(243, 124, 57, 0.4);
  }
}
/* 🔹 Input adjustments */
.findex-search-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--findex-border-color);
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.findex-search-input:focus {
  border-color: #a73123;
  box-shadow: 0 0 0 3px rgba(243, 124, 57, 0.1);
}
@media (max-width: 768px) {
  .findex-search-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .findex-search-wrapper {
    width: 100%;
    margin-top: 8px;
  }
 .findex-voice-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #888;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;   /* 🔒 fixed size */
    height: 36px;  /* 🔒 fixed size */
    line-height: 1; /* 🔒 no vertical drift */
    transition: color 0.3s ease, transform 0.2s ease;
  }
  .findex-voice-btn i {
    font-size: 22px;
    line-height: 1;
    pointer-events: none; /* avoid event interference */
  }
  .findex-search-input {
    padding-right: 48px; /* adjust for fixed mic width */
  }
  .findex-voice-btn.listening {
    color: #a73123;
    animation: mic-pulse 1.2s infinite ease-in-out;
    transform: translateY(-50%) scale(1.05); /* subtle emphasis without jump */
  }
  @keyframes mic-pulse {
    0%, 100% {
      opacity: 1;
      transform: translateY(-50%) scale(1);
    }
    50% {
      opacity: 0.7;
      transform: translateY(-50%) scale(1.15);
    }
  }
}
