/**
 * Blog Filter — neutral default styles.
 * Override these in your theme's stylesheet or Elementor custom CSS as needed.
 */

/* ---------- Filter row ---------- */
.product-filters-wrap {
    /* background removed — inherits whatever the page/section behind it uses */
}

.product-filters {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 0px 55px;
    box-sizing: border-box;
}

.product-filters__content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
}

/* Accordion toggle — hidden on desktop, shown on mobile.
   !important throughout to override theme button styles which often win the cascade. */
.product-filters__toggle {
    display: none !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-height: 56px;
    height: 56px;
    padding: 0 1.5rem !important;
    border: 1px solid #6b7280 !important;
    border-radius: 999px !important;
    background: #fff !important;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6E2336 !important;
    box-sizing: border-box;
    box-shadow: none !important;
    text-decoration: none;
    line-height: 1;
    transition: border-radius 0.2s ease;
}

.product-filters__toggle:hover,
.product-filters__toggle:focus {
    background: #fff !important;
    box-shadow: none !important;
    outline: none;
}

.product-filters__toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236E2336' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.product-filters__toggle[aria-expanded="true"] .product-filters__toggle-icon {
    transform: rotate(180deg);
}

.product-filters__search {
    flex: 2 1 240px;
    min-width: 200px;
    position: relative;
}

.product-filters__search::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.product-filters__search input[type="search"] {
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}

.product-filters__search input[type="search"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 35, 54, 0.18);
}

.filter-group {
    flex: 1 1 160px;
    min-width: 140px;
    display: flex;
}

.filter-group select {
    width: 100%;
    min-height: 56px;
    padding: 0.75rem 2.75rem 0.75rem 1.25rem;
    border: 1px solid #6b7280;
    border-radius: 999px;
    font-size: 1.125rem;
    color: #374151;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.filter-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 35, 54, 0.18);
}

.product-filters__clear {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #6E2336 !important;
    border: none !important;
    padding: 0 1.75rem !important;
    min-height: 56px;
    height: 56px;
    border-radius: 999px !important;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
    box-shadow: none;
    text-decoration: none;
}

.product-filters__clear:hover {
    background: #5a1c2c !important;
}

.product-filters__clear:active {
    transform: translateY(1px);
}

/* Mobile — accordion mode: toggle shows, content collapses */
@media (max-width: 600px) {
    .product-filters {
        padding: 0px 0px 30px;
    }
    .product-filters__toggle {
        display: flex !important;
    }
    .product-filters__content {
        display: none;
        flex-direction: column;
    }
    /* When expanded: toggle and content visually merge into one rounded card */
    .product-filters__toggle[aria-expanded="true"] {
        border-bottom: none !important;
        border-radius: 28px 28px 0 0 !important;
    }
    .product-filters__toggle[aria-expanded="true"] + .product-filters__content {
        display: flex;
        background: #fff;
        padding: 1rem;
        border: 1px solid #6b7280;
        border-top: none;
        border-radius: 0 0 28px 28px;
        gap: 0.75rem;
    }
    .product-filters__search,
    .filter-group {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* ---------- Results ---------- */
.product-results {
    position: relative;
    max-width: none;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.product-results.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.product-results__meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 35px;
    row-gap: 65px;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 16px;
    }
}

/* ---------- Fallback card (only used when no Loop Item template is set) ---------- */
.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-card__body {
    padding: 1.25rem;
}

.product-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.product-card__excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- No results ---------- */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

/* ---------- Pagination ---------- */
.product-pagination {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #1f2937;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.product-pagination .page-numbers {
    text-decoration: none;
    color: #374151;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.product-pagination .page-numbers.prev,
.product-pagination .page-numbers.next {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.product-pagination a.page-numbers:hover {
    color: #6E2336;
}

.product-pagination .page-numbers.current {
    color: #6E2336;
    font-weight: 700;
}
