.fps-shop-wrap,
.fps-shop-wrap * {
    box-sizing: border-box;
}

/* Use the site's Montserrat face throughout all Sandle product layouts. */
.fps-shop-wrap,
.fps-shop-wrap *,
.fps-compact-list,
.fps-compact-list * {
    font-family: "Montserrat", Sans-serif !important;
}

.fps-shop-wrap {
    --fps-accent: #a6673d;
    --fps-accent-dark: #754022;
    --fps-green: #39271e;
    --fps-ink: #30231d;
    --fps-muted: #84736a;
    --fps-soft: #f7f0e7;
    --fps-line: #e6d6c5;
    align-items: start;
/*     background: #f7f2ee; */
    color: var(--fps-ink);
    display: grid;
    gap: 34px;
    grid-template-columns: 250px minmax(0, 1fr);
/*     margin: 0 auto; */
/*     padding: 28px 20px; */
    width: 100%;
}

.fps-shop-wrap a {
    box-shadow: none !important;
}

.fps-taxonomy-archive {
    margin: 0 auto;
    max-width: 1320px;
    padding: 28px 20px 56px;
    width: 100%;
}

.fps-shop-wrap.no-sidebar {
    display: block;
}

.fps-shop-wrap.no-sidebar .fps-main {
    width: 100%;
}

/* The Sandle shortcode is intentionally card-only so it drops cleanly into Elementor. */
.fps-shop-wrap.no-sidebar.fps-mobile-slider-enabled .fps-product-grid {
    gap: 24px;
}

.fps-shop-wrap.no-sidebar .fps-toolbar {
    grid-template-columns: minmax(160px, 1fr) auto auto;
}

.fps-sidebar {
    background: #fff;
    border: 1px solid var(--fps-line);
    border-radius: 0;
    overflow: hidden;
    position: sticky;
    top: 32px;
    width: 100%;
}

.fps-widget {
    border-bottom: 1px solid var(--fps-line);
    padding: 26px 24px;
}

.fps-widget:last-child {
    border-bottom: 0;
}

.fps-widget h3 {
    color: var(--fps-ink);
    
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 17px;
}

.fps-search-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 38px;
    width: 100%;
}

.fps-search-row input,
.fps-price-fields input,
.fps-sort-form select {
    -webkit-appearance: none;
    appearance: none;
    background: var(--fps-soft) !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: var(--fps-ink) !important;
    display: block !important;
    font-size: 12px !important;
    height: 38px !important;
    line-height: 18px !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-height: 38px !important;
    outline: 0 !important;
    padding: 9px 13px !important;
    text-indent: 0 !important;
    width: 100% !important;
}

.fps-search-row input::placeholder {
    color: #988d89;
    opacity: 1;
}

.fps-search-row button {
    align-items: center !important;
    background: var(--fps-green) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex !important;
    font-size: 13px !important;
    height: 38px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    text-align: center !important;
    width: 38px !important;
}

.fps-price-line {
    background: var(--fps-accent);
    height: 3px;
    margin: 0 0 18px;
    width: 100%;
}

.fps-price-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 13px;
}

.fps-price-fields label {
    color: var(--fps-muted);
    display: grid;
    font-size: 11px;
    font-weight: 400;
    gap: 7px;
    line-height: 1.2;
    margin: 0;
}

.fps-filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.fps-filter-button,
.fps-reset-button,
.fps-button {
    align-items: center !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    letter-spacing: .04em;
    line-height: 1 !important;
    min-height: 34px !important;
    padding: 11px 16px !important;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.fps-filter-button {
    background: var(--fps-accent) !important;
    border: 0 !important;
    color: #fff !important;
    min-width: 78px;
}

.fps-reset-button {
    background: #fff !important;
    border: 1px solid var(--fps-line) !important;
    color: var(--fps-ink) !important;
    min-width: 74px;
}

.fps-filter-button:hover,
.fps-button-primary:hover {
    background: var(--fps-accent-dark) !important;
    color: #fff !important;
}

.fps-reset-button:hover {
    border-color: var(--fps-accent) !important;
    color: var(--fps-accent) !important;
}

.fps-category-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fps-category-list li {
    font-size: 13px;
    line-height: 1.35;
    list-style: none !important;
    margin: 0 0 9px !important;
    padding: 0 0 0 14px !important;
    position: relative;
}

.fps-category-list li::before {
    color: var(--fps-accent);
    content: "+";
    left: 0;
    position: absolute;
    top: 0;
}

.fps-category-list a {
    color: var(--fps-ink) !important;
    text-decoration: none !important;
}

.fps-category-list .is-active a,
.fps-category-list a:hover {
    color: var(--fps-accent) !important;
}

.fps-category-note {
    color: var(--fps-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 14px 0 0;
}

.fps-recent-list {
    display: grid;
    gap: 14px;
}

.fps-recent-item {
    align-items: center;
    color: var(--fps-ink) !important;
    display: grid;
    gap: 10px;
    grid-template-columns: 50px minmax(0, 1fr);
    text-decoration: none !important;
}

.fps-recent-thumb {
    background: var(--fps-soft);
    display: block;
    height: 50px;
    overflow: hidden;
    width: 50px;
}

.fps-recent-thumb img {
    display: block;
    height: 100% !important;
    object-fit: cover;
    width: 100% !important;
}

.fps-recent-meta strong {
    color: var(--fps-ink);
    display: block;
    
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.fps-recent-meta small {
    color: var(--fps-green);
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.fps-main {
    min-width: 0;
}

.fps-toolbar {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    margin: 0 0 28px;
}

.fps-current-title {
    color: var(--fps-ink);
    
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
}

.fps-result-count {
    color: var(--fps-muted);
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}

.fps-sort-form select {
    background-color: #fff !important;
    min-width: 152px;
}

.fps-product-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(var(--fps-columns), minmax(180px, 1fr));
}

.fps-product-card {
    background: #fffdf9;
    border: 1px solid rgba(197, 159, 123, .32);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(67, 40, 23, .07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
    text-align: center;
    transform: translateZ(0);
    transition: box-shadow .32s cubic-bezier(.2, .7, .2, 1), transform .32s cubic-bezier(.2, .7, .2, 1), border-color .32s ease;
}

.fps-product-card:hover {
    border-color: rgba(166, 103, 61, .58);
    box-shadow: 0 20px 42px rgba(67, 40, 23, .16);
    transform: translateY(-8px);
}

.fps-product-image {
    aspect-ratio: 1 / 1;
    background: #f1e4d4;
    display: block;
    margin: 0;
    max-height: 320px;
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
    width: 100%;
}

.fps-product-image::before {
    background: linear-gradient(180deg, transparent 55%, rgba(48, 35, 29, .14));
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity .32s ease;
    z-index: 1;
}

.fps-product-image img,
.fps-product-image span {
    display: block;
    height: 100% !important;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
    width: 100% !important;
}

.fps-product-card:hover .fps-product-image img {
    transform: scale(1.08);
}

.fps-product-card:hover .fps-product-image::before {
    opacity: 1;
}

.fps-product-image span {
    align-items: center;
    color: var(--fps-muted);
    display: flex;
    font-size: 13px;
    justify-content: center;
}

.fps-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 21px;
}

.fps-product-badge {
    align-self: center;
    background: #f5e8d8;
    border: 1px solid rgb(166 103 61 / 20%);
    border-radius: 999px;
    color: var(--fps-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    margin: 0 0 12px;
    max-width: 100%;
    overflow: hidden;
    padding: 7px 10px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fps-product-title {
    color: var(--fps-ink);
    
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.28;
    margin: 0 auto 5px;
    max-width: 260px;
}

.fps-product-card:hover .fps-product-title {
    color: var(--fps-accent);
}

.fps-product-subtitle {
    color: var(--fps-accent);
    
    font-size: 12px;
    font-style: italic;
    line-height: 1.3;
    margin: 0 0 10px;
    min-height: 16px;
}

.fps-product-price {
    color: var(--fps-green);
    
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    margin: auto 0 14px;
}

.fps-product-actions {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr;
    justify-content: center;
}

.fps-product-actions .fps-button {
    transition: background .24s ease, border-color .24s ease, color .24s ease, transform .24s ease, box-shadow .24s ease;
    width: 100%;
}

.fps-product-actions .fps-button:hover {
    transform: translateY(-2px);
}

.fps-product-actions .fps-button-primary:hover {
    box-shadow: 0 7px 14px rgba(117, 64, 34, .22) !important;
}

.fps-product-card:focus-within {
    border-color: rgba(166, 103, 61, .7);
    box-shadow: 0 16px 34px rgba(67, 40, 23, .14);
}

.fps-product-card a:focus-visible {
    outline: 2px solid var(--fps-accent) !important;
    outline-offset: -3px;
}

.fps-button-primary {
    background: var(--fps-accent) !important;
    border: 1px solid var(--fps-accent) !important;
    color: #fff !important;
}

.fps-button-secondary {
    background: #fbf8f6 !important;
    border: 1px solid var(--fps-line) !important;
    color: var(--fps-ink) !important;
}

.fps-button-secondary:hover {
    border-color: var(--fps-accent) !important;
    color: var(--fps-accent) !important;
}

.fps-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 34px;
}

.fps-pagination a {
    align-items: center;
    background: #fff !important;
    border-radius: 50%;
    color: var(--fps-ink) !important;
    display: inline-flex;
    font-size: 12px;
    height: 34px;
    justify-content: center;
    text-decoration: none !important;
    width: 34px;
}

.fps-pagination a.is-active {
    background: var(--fps-accent) !important;
    color: #fff !important;
}

.fps-empty {
    background: #fff;
    border: 1px solid var(--fps-line);
    padding: 28px;
}

/* Compact list shortcode: [sandle_product_list limit="4"] */
.fps-compact-list {
    display: grid;
    gap: 20px;
    max-width: 420px;
    width: 100%;
}

.fps-compact-item {
    align-items: center;
    color: var(--fps-ink) !important;
    display: grid;
    gap: 16px;
    grid-template-columns: 84px minmax(0, 1fr);
    text-decoration: none !important;
}

.fps-compact-image {
    background: #f1e4d4;
    display: block;
    height: 84px;
    overflow: hidden;
    position: relative;
    width: 84px;
}

.fps-compact-image img,
.fps-compact-image > span {
    display: block;
    height: 100% !important;
    object-fit: cover;
    width: 100% !important;
}

.fps-compact-image > span {
    align-items: center;
    color: var(--fps-muted);
    display: flex;
    font-size: 10px;
    justify-content: center;
}

.fps-compact-details {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.fps-compact-title {
    color: var(--fps-ink);
    
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fps-compact-price {
    color: #8a817c;
    
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.fps-compact-item:hover .fps-compact-title,
.fps-compact-item:hover .fps-compact-price {
    color: var(--fps-accent);
}

.fps-slider-wrap {
    display: block;
    overflow: hidden;
}

.fps-slider-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 24px;
}

.fps-slider-nav {
    display: inline-flex;
    gap: 8px;
}

.fps-slider-button {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid var(--fps-line) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: var(--fps-ink) !important;
    cursor: pointer;
    display: inline-flex !important;
    font-size: 24px !important;
    height: 40px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 0 0 3px !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
    width: 40px !important;
}

.fps-slider-button:hover {
    background: var(--fps-accent) !important;
    border-color: var(--fps-accent) !important;
    color: #fff !important;
}

.fps-slider-button:disabled {
    cursor: default;
    opacity: .42;
}

.fps-slider-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.fps-slider-viewport::-webkit-scrollbar {
    display: none;
}

.fps-slider-track {
    display: flex;
    gap: 30px;
}

.fps-slider-slide {
    flex: 0 0 calc((100% - var(--fps-slider-gap-width)) / var(--fps-slider-columns));
    min-width: 0;
    scroll-snap-align: start;
}

.fps-slider-slide .fps-product-card {
    height: 100%;
}

.fps-slider-dots {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.fps-slider-dots button {
    background: #d8bda4 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    cursor: pointer;
    height: 9px !important;
    margin: 0 !important;
    min-height: 9px !important;
    padding: 0 !important;
    transition: background .2s ease, transform .2s ease;
    width: 9px !important;
}

.fps-slider-dots button.is-active {
    background: var(--fps-accent) !important;
    transform: scale(1.28);
}

@media (prefers-reduced-motion: reduce) {
    .fps-product-card,
    .fps-product-image img,
    .fps-product-image::before,
    .fps-product-actions .fps-button {
        transition-duration: .01ms !important;
    }

    .fps-product-card:hover,
    .fps-product-actions .fps-button:hover {
        transform: none;
    }
}

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

    .fps-slider-slide {
        flex-basis: calc((100% - 30px) / 2);
    }
}

@media (min-width: 1180px) {
    .fps-product-actions {
        grid-template-columns: 1fr 1fr;
    }

    .fps-product-actions .fps-button {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 900px) {
    .fps-shop-wrap {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .fps-sidebar {
        position: static;
    }

    .fps-toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .fps-result-count {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .fps-tabs-has-shop > .e-n-tabs-heading,
    .fps-tabs-has-shop .e-n-tabs-heading {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0 12px !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fps-tabs-has-shop > .e-n-tabs-heading::-webkit-scrollbar,
    .fps-tabs-has-shop .e-n-tabs-heading::-webkit-scrollbar {
        display: none;
    }

    .fps-tabs-has-shop .e-n-tab-title {
        flex: 0 0 auto !important;
        max-width: 82vw !important;
        min-width: max-content !important;
        scroll-snap-align: start;
        white-space: nowrap !important;
        width: auto !important;
    }

    .fps-mobile-slider-enabled .fps-product-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        grid-template-columns: none !important;
        margin-right: -18px !important;
        max-width: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        padding: 2px 18px 14px 0 !important;
        scroll-padding-left: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fps-mobile-slider-enabled .fps-product-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        margin-right: -18px !important;
        max-width: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        padding: 2px 18px 14px 0 !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fps-mobile-slider-enabled .fps-product-grid::-webkit-scrollbar {
        display: none;
    }

    .fps-mobile-slider-enabled .fps-product-grid .fps-product-card {
        flex: 0 0 min(84vw, 360px) !important;
        max-width: 360px !important;
        min-width: min(84vw, 360px) !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        width: min(84vw, 360px) !important;
    }

    .fps-mobile-carousel-controls {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin: -8px 0 12px;
    }

    .fps-mobile-carousel-controls[hidden],
    .fps-mobile-carousel-dots[hidden] {
        display: none !important;
    }

    .fps-mobile-carousel-dots {
        margin-bottom: 16px;
        margin-top: 12px;
    }

    .fps-category-list {
        display: flex;
        gap: 10px;
        margin-right: -24px !important;
        overflow-x: auto;
        padding: 0 24px 8px 0 !important;
        scrollbar-width: none;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .fps-category-list::-webkit-scrollbar {
        display: none;
    }

    .fps-category-list li {
        border: 1px solid var(--fps-line);
        border-radius: 999px;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 9px 14px !important;
    }

    .fps-category-list li.is-active {
        border-color: var(--fps-accent);
    }

    .fps-category-list li::before {
        display: none;
    }

    .fps-category-note {
        display: none;
    }

    .fps-price-fields {
        grid-template-columns: 1fr;
    }

    .fps-slider-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .fps-slider-slide {
        flex-basis: 100%;
    }
}
