/**
 * Sedrux Shop Styles
 *
 * Dense catalog, expandable filters, and responsive product cards.
 */

.sedrux-shop {
    background: #fff;
    color: #111;
    padding: 0 0 56px;
}

.sedrux-shop-hero {
    display: none;
}

.sedrux-shop__catalog-bar {
    border-bottom: 1px solid #dedede;
    background: #fff;
}

.sedrux-shop__catalog-bar-inner {
    align-items: stretch;
    display: flex;
    justify-content: space-between;
    min-height: 72px;
}

.sedrux-shop__category-nav {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.sedrux-shop__category-nav::-webkit-scrollbar {
    display: none;
}

.sedrux-shop__category-link,
.sedrux-shop__catalog-action,
.sedrux-shop__text-action,
.sedrux-shop__icon-action,
.sedrux-shop__size-option,
.sedrux-shop__color-option {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.sedrux-shop__category-link {
    align-items: center;
    border: 0;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    height: 72px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0 15px;
    scroll-snap-align: start;
    white-space: nowrap;
}

.sedrux-shop__category-link:hover,
.sedrux-shop__category-link.is-active {
    background: transparent;
    border-bottom-color: #111;
    color: #111;
    font-weight: 700;
}

.sedrux-shop__category-link--promo {
    color: #d51a12;
}

.sedrux-shop__category-link--promo:hover,
.sedrux-shop__category-link--promo.is-active {
    background: transparent;
    border-bottom-color: #d51a12;
    color: #d51a12;
}

.sedrux-shop__catalog-actions {
    align-items: stretch;
    border-left: 1px solid #e5e5e5;
    display: flex;
    flex: 0 0 auto;
    gap: 2px;
    margin-left: 0;
    padding: 0 12px;
}

.sedrux-shop__catalog-action {
    align-items: center;
    border: 0;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    justify-content: center;
    min-width: 104px;
    padding: 0 14px;
}

.sedrux-shop__catalog-action:hover {
    background: #f7f7f7;
}

.sedrux-shop__catalog-action--icon {
    min-width: 46px;
    padding: 0;
}

.sedrux-shop__catalog-sort {
    position: relative;
}

.sedrux-shop__catalog-sort select {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.sedrux-shop__filter-panel {
    background: #fff;
    border: 1px solid rgba(7, 136, 66, .24);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(24, 42, 34, .18);
    left: 50%;
    max-height: calc(100dvh - var(--sedrux-modal-top, 112px) - 24px);
    overflow: auto;
    padding: 26px 30px 22px;
    position: fixed;
    top: var(--sedrux-modal-top, 112px);
    transform: translateX(-50%);
    width: min(1120px, calc(100vw - 32px));
    z-index: 10050;
}

.sedrux-shop__filter-panel[hidden] {
    display: none;
}

.sedrux-shop__modal-backdrop {
    background: rgba(14, 27, 21, .17);
    backdrop-filter: blur(4px);
    inset: 0;
    position: fixed;
    z-index: 10040;
}

.sedrux-shop__modal-backdrop[hidden] {
    display: none;
}

body.sedrux-shop-modal-open {
    overflow: hidden;
}

.sedrux-shop__filter-panel-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9efeb;
}

.sedrux-shop__filter-panel-header h1 {
    font-family: var(--sedrux-font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.sedrux-shop__filter-panel-actions {
    align-items: center;
    display: flex;
    gap: 22px;
}

.sedrux-shop__applied-count {
    font-size: 13px;
    font-weight: 600;
}

.sedrux-shop__applied-count:empty {
    display: none;
}

.sedrux-shop__text-action {
    color: #f42918;
    font-size: 13px;
    font-weight: 600;
    padding: 4px;
}

.sedrux-shop__icon-action {
    align-items: center;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 4px;
    width: 28px;
}

.sedrux-shop__filter-groups {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.05fr 1.35fr .85fr 1fr 1fr 1fr;
}

.sedrux-shop__filter-group h2 {
    color: #697689;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.sedrux-shop__price-range {
    margin: 10px 0 17px;
}

.sedrux-shop__price-range input {
    accent-color: #f42918;
    appearance: none;
    background: #dedede;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    height: 4px;
    width: 100%;
}

.sedrux-shop__price-range input::-webkit-slider-runnable-track {
    background: #f42918;
    border-radius: 10px;
    height: 4px;
}

.sedrux-shop__price-range input::-webkit-slider-thumb {
    appearance: none;
    background: #f42918;
    border: 0;
    border-radius: 50%;
    height: 14px;
    margin-top: -5px;
    width: 14px;
}

.sedrux-shop__price-range input::-moz-range-track {
    background: #f42918;
    border-radius: 10px;
    height: 4px;
}

.sedrux-shop__price-range input::-moz-range-thumb {
    background: #f42918;
    border: 0;
    border-radius: 50%;
    height: 14px;
    width: 14px;
}

.sedrux-shop__price-fields {
    align-items: center;
    display: flex;
    gap: 10px;
}

.sedrux-shop__price-fields label {
    align-items: center;
    border: 0;
    border-radius: 0;
    display: flex;
    flex: 1 1 0;
    gap: 5px;
    min-width: 0;
    padding: 0;
}

.sedrux-shop__price-fields span,
.sedrux-shop__price-fields input {
    font-size: 13px;
}

.sedrux-shop__price-fields > span {
    color: #89919a;
}

.sedrux-shop__price-fields input {
    appearance: textfield;
    background: transparent;
    border: 0;
    color: #111;
    font-weight: 700;
    min-width: 0;
    outline: 0;
    padding: 0;
    width: 100%;
}

.sedrux-shop__price-fields input::-webkit-inner-spin-button,
.sedrux-shop__price-fields input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.sedrux-shop__check-list {
    display: grid;
    gap: 9px;
}

.sedrux-shop__category-check-list {
    max-height: 212px;
    overflow-y: auto;
    padding-right: 7px;
    scrollbar-color: #b8b8b8 transparent;
    scrollbar-width: thin;
}

.sedrux-shop__check-list label {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    gap: 9px;
    line-height: 1.25;
}

.sedrux-shop__check-list input {
    accent-color: #111;
    height: 15px;
    margin: 0;
    width: 15px;
}

.sedrux-shop__size-options,
.sedrux-shop__color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sedrux-shop__size-option {
    align-items: center;
    border: 1px solid #bfc2c5;
    border-radius: 4px;
    display: inline-flex;
    font-size: 13px;
    height: 33px;
    justify-content: center;
    min-width: 40px;
    padding: 0 9px;
}

.sedrux-shop__size-option:hover,
.sedrux-shop__size-option.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.sedrux-shop__color-option {
    background: var(--sedrux-swatch);
    border: 1px solid transparent;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
    height: 25px;
    outline-offset: 3px;
    width: 25px;
}

.sedrux-shop__color-option:hover,
.sedrux-shop__color-option.is-active {
    outline: 2px solid #111;
}

.sedrux-shop__color-option[style*="#ffffff"] {
    border-color: #d2d2d2;
}

.sedrux-shop__rating-list b {
    color: #e5a11c;
    font-size: 13px;
    letter-spacing: 1px;
}

.sedrux-shop__filter-panel-footer {
    background: #fff;
    border-top: 1px solid #e9efeb;
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    position: sticky;
    bottom: 0;
}

.sedrux-shop__filter-panel-footer .sedrux-btn {
    border-radius: 8px;
    font-size: 13px;
    min-height: 38px;
    padding: 8px 21px;
}

.sedrux-shop__filter-panel-footer .sedrux-btn--primary {
    background: #f42918;
    border-color: #f42918;
    color: #fff;
}

.sedrux-shop__filter-panel-footer .sedrux-btn--primary:hover:not(:disabled) {
    background: #cf2011;
    border-color: #cf2011;
    color: #fff;
}

.sedrux-shop__sort-modal {
    background: #fff;
    border: 1px solid rgba(7, 136, 66, .24);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(24, 42, 34, .18);
    left: 50%;
    padding: 23px 24px;
    position: fixed;
    top: var(--sedrux-modal-top, 112px);
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 32px));
    z-index: 10050;
}

.sedrux-shop__sort-modal[hidden] {
    display: none;
}

.sedrux-shop__sort-modal-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e9efeb;
}

.sedrux-shop__sort-modal-header h2 {
    font-family: var(--sedrux-font-heading);
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.sedrux-shop__sort-options {
    border-top: 0;
}

.sedrux-shop__sort-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e9e9e9;
    color: #222;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 14px;
    justify-content: space-between;
    padding: 15px 3px;
    text-align: left;
    width: 100%;
}

.sedrux-shop__sort-option svg {
    opacity: 0;
}

.sedrux-shop__sort-option:hover,
.sedrux-shop__sort-option.is-active {
    color: #f42918;
    font-weight: 700;
}

.sedrux-shop__sort-option.is-active svg {
    opacity: 1;
}

.sedrux-shop__toolbar {
    align-items: center;
    border-bottom: 1px solid #e3e3e3;
    display: flex;
    justify-content: flex-start;
    padding: 18px 5px 15px;
}

.sedrux-shop__product-count {
    color: #747474;
    font-size: 13px;
}

.sedrux-shop__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 20px;
}

.sedrux-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sedrux-product-card__image-wrap {
    aspect-ratio: 4 / 5;
    background: #f6f6f6;
    overflow: hidden;
    position: relative;
}

.sedrux-product-card__image-link,
.sedrux-product-card__image {
    display: block;
    width: 100%;
}

.sedrux-product-card__image-link {
    inset: 0;
    line-height: 0;
    position: absolute;
}

.sedrux-product-card__image {
    height: 100% !important;
    inset: 0;
    max-width: none;
    object-fit: cover !important;
    position: absolute;
    transition: opacity .22s ease;
}

.sedrux-product-card__image--hover {
    opacity: 0;
}

@media (hover: hover) {
    .sedrux-product-card:focus-within .sedrux-product-card__image--primary,
    .sedrux-product-card:hover .sedrux-product-card__image--primary {
        opacity: 0;
    }

    .sedrux-product-card:focus-within .sedrux-product-card__image--hover,
    .sedrux-product-card:hover .sedrux-product-card__image--hover {
        opacity: 1;
    }
}

.sedrux-product-card__sale {
    background: #d51a12;
    bottom: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    left: 0;
    letter-spacing: .35px;
    padding: 6px 8px;
    position: absolute;
    text-transform: uppercase;
}

.sedrux-product-card__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 132px;
    padding: 13px 0 3px;
}

.sedrux-product-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.28;
    margin: 11px 0 3px;
}

.sedrux-product-card__name a {
    color: #111;
    text-decoration: none;
}

.sedrux-product-card__category {
    color: #5d6670;
    font-size: 12px;
    line-height: 1.2;
}

.sedrux-product-card__rating {
    align-items: center;
    color: #d78a10;
    display: flex;
    font-size: 12px;
    gap: 3px;
    line-height: 1;
    margin-top: 8px;
}

.sedrux-product-card__rating b {
    font-weight: 700;
}

.sedrux-product-card__rating small {
    color: #555;
    font-size: 11px;
}

.sedrux-product-card__price-stack {
    min-width: 0;
}

.sedrux-product-card__prices .price {
    color: #111;
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
}

.sedrux-product-card__prices del {
    color: #7a7a7a;
    font-size: 11px;
    font-weight: 400;
}

.sedrux-product-card__prices ins {
    text-decoration: none;
}

.sedrux-product-card__pix {
    align-items: center;
    color: #078842;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    line-height: 1.25;
    margin-top: 3px;
    white-space: nowrap;
}

.sedrux-product-card__pix-discount {
    background: #e5f5ea;
    border-radius: 2px;
    color: #06763a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1;
    padding: 4px 5px;
}

.sedrux-shop__no-results {
    border: 1px solid #e3e3e3;
    color: #606060;
    margin-top: 20px;
    padding: 42px 24px;
    text-align: center;
}

.sedrux-pagination {
    margin-top: 34px;
}

.sedrux-pagination .page-numbers {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sedrux-pagination a,
.sedrux-pagination span {
    align-items: center;
    color: #111;
    display: inline-flex;
    font-size: 13px;
    height: 30px;
    justify-content: center;
    min-width: 30px;
    text-decoration: none;
}

.sedrux-pagination .current {
    background: #111;
    border-radius: 4px;
    color: #fff;
}

.woocommerce-shop .sedrux-header__nav-list .menu-item:nth-child(2) > a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

@media (min-width: 720px) {
    .sedrux-shop__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .sedrux-shop__filter-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sedrux-shop__category-link {
        padding: 0 13px;
    }
}

@media (max-width: 760px) {
    .sedrux-shop__catalog-bar-inner {
        min-height: 56px;
    }

    .sedrux-shop__category-nav {
        display: none;
    }

    .sedrux-shop__catalog-actions {
        border-bottom: 0;
        border-left: 0;
        flex: 1 1 auto;
        justify-content: stretch;
        margin-left: 0;
        min-height: 56px;
        padding: 0 6px;
    }

    .sedrux-shop__catalog-action {
        flex: 1;
        font-size: 13px;
        min-width: 0;
        padding: 0 10px;
    }

    .sedrux-shop__catalog-action--icon {
        flex: 0 0 53px;
    }

    .sedrux-shop__filter-panel {
        max-height: calc(100dvh - var(--sedrux-modal-top, 104px) - 16px);
        padding: 22px 20px 20px;
        width: calc(100vw - 24px);
    }

    .sedrux-shop__filter-panel-header h1 {
        font-size: 20px;
    }

    .sedrux-shop__filter-panel-actions {
        gap: 10px;
    }

    .sedrux-shop__filter-groups {
        gap: 25px 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sedrux-shop__category-check-list {
        max-height: 154px;
    }

    .sedrux-shop__toolbar {
        padding-left: 0;
        padding-right: 0;
    }

    .sedrux-product-card__info {
        min-height: 122px;
        padding: 11px 0 3px;
    }

    .sedrux-product-card__name {
        font-size: 12px;
    }

    .sedrux-product-card__pix {
        flex-wrap: wrap;
        gap: 3px 5px;
        white-space: normal;
    }

    .sedrux-product-card__pix > span:first-child {
        white-space: nowrap;
    }

}

@media (max-width: 430px) {
    .sedrux-shop__filter-panel-header {
        align-items: flex-start;
    }

    .sedrux-shop__text-action {
        font-size: 12px;
    }

    .sedrux-shop__filter-groups {
        grid-template-columns: 1fr;
    }

    .sedrux-shop__price-fields {
        max-width: 265px;
    }

}
