body {
    background: #f7f3ee;
    color: #1f1f1f;
}

.products-main {
    background: #f7f3ee;
}

.catalog-container {
    padding-top: 26px;
    padding-bottom: 36px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 22px;
}

.catalog-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-toolbar .sort-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d1d1d;
}

.catalog-toolbar .sort-select {
    width: 210px;
    border: 1px solid #cfc4bb;
    border-radius: 0;
    background: #f5f2ee;
    color: #1d1d1d;
    height: 48px;
    padding: 0 16px;
    font-size: 13px;
    box-shadow: none;
}

.catalog-filter {
    background: #fff;
    border: 1px solid #efe2d5;
    border-radius: 12px;
    padding: 18px 18px 12px;
}

.catalog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e8df;
    margin-bottom: 18px;
}

.catalog-filter-header h2 {
    margin: 0;
    color: #1d1d1d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-filter-header button:not(.btn-close) {
    border: none;
    background: transparent;
    color: #9b1e46;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0;
}

.filter-block + .filter-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0e8df;
}

.shared-breadcrumb {
    background: #fff;
    border-color: #e9e1d9 !important;
}

.shared-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: #999;
    --bs-breadcrumb-item-active-color: #777;
    align-items: center;
    font-size: 11px;
    padding: 10px;
}

.shared-breadcrumb .breadcrumb-item a {
    color: #9b1e46;
    text-decoration: none;
}

.shared-breadcrumb .breadcrumb-item a:hover {
    color: #7d1738;
}

.filter-block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #1d1d1d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.filter-block-title span:last-child {
    color: #8a7d73;
}

.filter-price-row {
    margin-top: 8px;
}

.filter-price-row input[type="range"] {
    width: 100%;
    accent-color: #1d1d1d;
}

.filter-price-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #cfc1b3;
    border-radius: 4px;
    accent-color: #9b1e46;
}

.filter-option label {
    color: #2e2e2e;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .catalog-filter {
        margin-bottom: 22px;
    }
}

@media (max-width: 767.98px) {
    .catalog-toolbar {
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    /* Filter sidebar */
    .catalog-filter.offcanvas-lg {
        --bs-offcanvas-zindex: 1060;
        width: min(88vw, 360px);
        max-width: 360px;
        height: 100vh;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        overflow: hidden;
        background: #fff !important;
    }

    /* Header */
    .catalog-filter .offcanvas-header {
        height: 64px;
        padding: 0 18px !important;
        margin: 0 !important;

        display: flex;
        align-items: center;
        gap: 12px;

        border-bottom: 1px solid #eee5dd;
        background: #fff;
    }

    .catalog-filter .offcanvas-header h2 {
        margin: 0;
        flex: 1;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    /* CLEAR button */
    .catalog-filter .offcanvas-header button:not(.btn-close) {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        width: auto;
        min-width: 55px;
        height: 32px;

        padding: 0 8px;
        border: 0;
        background: transparent;

        color: #9b1e46;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;

        cursor: pointer;
    }

    .catalog-filter .offcanvas-header button:not(.btn-close):hover {
        color: #7d1738;
    }

    /* Close X */
    .catalog-filter .offcanvas-header .btn-close {
        display: block !important;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 8px;
        opacity: 1;
    }

    /* Scrollable filter content */
    .catalog-filter .offcanvas-body {
        height: calc(100vh - 64px);
        max-height: calc(100vh - 64px);

        overflow-y: auto;
        overflow-x: hidden;

        padding: 22px 20px 40px !important;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Better scrollbar */
    .catalog-filter .offcanvas-body::-webkit-scrollbar {
        width: 5px;
    }

    .catalog-filter .offcanvas-body::-webkit-scrollbar-thumb {
        background: #d8cec5;
        border-radius: 10px;
    }

    .catalog-filter .offcanvas-body::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Filter title */
    .catalog-filter-label {
        margin-bottom: 24px !important;
    }

    /* Filter groups */
    .catalog-filter .filter-block {
        margin-bottom: 28px;
    }

    .catalog-filter .filter-block + .filter-block {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    /* Checkbox spacing */
    .catalog-filter .filter-option {
        margin-bottom: 12px;
    }

    /* Checkbox */
    .catalog-filter .filter-option input[type="checkbox"] {
        width: 17px;
        height: 17px;
        cursor: pointer;
    }

    /* Label */
    .catalog-filter .filter-option label {
        font-size: 13px;
        cursor: pointer;
    }

    /* Filter button on page */
    .products-main .filter-trigger {
        height: 44px;
        min-width: 105px;
    }
}

/* Product listing components */
.catalog-container {
    max-width: 1440px;
}

.collection-hero {
    min-height: 250px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(31, 20, 12, 0.8), rgba(31, 20, 12, 0.08)),
    url("https://www.siakari.com/assets/storage/collection/images/ZqkhVwWv3ucT2eWSlFMnH2l14Y3nHaeFYuceAZCB.webp") center 38% / cover;
}

.collection-hero-content {
    min-height: 250px;
    max-width: 440px;
    padding: 34px;
    color: #fff;
}

.collection-hero .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.collection-hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: 0.9;
}

.collection-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.collection-hero .btn {
    --bs-btn-bg: #9b1e46;
    --bs-btn-border-color: #9b1e46;
    --bs-btn-hover-bg: #7d1738;
    --bs-btn-hover-border-color: #7d1738;
    --bs-btn-color: #fff;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.catalog-filter.offcanvas-lg {
    --bs-offcanvas-width: min(88vw, 360px);
}

.catalog-filter .offcanvas-header {
    padding: 0 0 16px;
    border-bottom: 1px solid #f0e8df;
    margin-bottom: 18px;
}

.catalog-filter .offcanvas-body {
    padding: 0;
}

.catalog-filter .btn-close {
    box-shadow: none;
}

.catalog-toolbar .filter-trigger {
    border-radius: 0;
    border-color: #9b1e46;
    color: #9b1e46;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.catalog-heading {
    color: #1d1d1d;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.catalog-heading span {
    color: #9b1e46;
}

@media (min-width: 992px) {
    .catalog-filter.offcanvas-lg {
        position: sticky;
        top: 20px;
        visibility: visible;
        transform: none;
        width: 100%;
        height: auto;
        border: 1px solid #efe2d5;
    }
}

/* =========================================
MOBILE ONLY - FILTER + SORT
Desktop remains unchanged
========================================= */

@media (max-width: 991.98px) {
    /* Hide "Select Sort Type" on mobile */
    .products-main .d-flex.flex-column.flex-md-row > .small {
        display: none !important;
    }

    /* Toolbar row */
    .products-main .d-flex.flex-column.flex-md-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    /* Filter + select wrapper */
    .products-main .d-flex.flex-column.flex-md-row > .d-flex {
        width: 100%;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Filter button */
    .products-main .filter-trigger {
        height: 44px;
        min-width: 105px;
        padding: 0 16px;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 1px solid #9b1e46 !important;
        border-radius: 6px !important;

        background: #9b1e46 !important;
        color: #fff !important;

        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;

        box-shadow: none !important;
    }

    .products-main .filter-trigger:hover,
    .products-main .filter-trigger:focus {
        background: #7d1738 !important;
        border-color: #7d1738 !important;
        color: #fff !important;
    }

    .products-main .filter-trigger i {
        font-size: 14px;
    }

    /* Sort dropdown */
    .products-main .form-select {
        height: 44px;
        flex: 1;

        border: 1px solid #d8cec5;
        border-radius: 6px;

        background-color: #fff;
        color: #222;

        font-size: 11px;
        font-weight: 500;

        padding: 0 32px 0 12px;

        box-shadow: none;
    }

    .products-main .form-select:focus {
        border-color: #9b1e46;
        box-shadow: 0 0 0 0.15rem rgba(155, 30, 70, 0.12);
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .products-main .filter-trigger {
        min-width: 92px;
        padding: 0 10px;
        font-size: 10px;
    }

    .products-main .form-select {
        font-size: 10px;
        padding-left: 9px;
    }
}

@media (max-width: 991.98px) {
    .catalog-filter.offcanvas-lg {
        padding: 22px;
        border-radius: 0;
    }

    .collection-hero,
    .collection-hero-content {
        min-height: 210px;
    }

    .collection-hero-content {
        padding: 28px;
    }
}

/* Bootstrap handles the grid; these two rules only match the reference banner. */
.catalog-reference-banner {
    height: 220px;
    object-fit: cover;
    object-position: center 40%;
}

@media (max-width: 991.98px) {
    .catalog-reference-banner {
        height: 180px;
    }
}

@media (min-width: 992px) {
    .catalog-filter.offcanvas-lg {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
    }

    /* Bootstrap's responsive offcanvas displays this body as flex at lg. */
    .catalog-filter.offcanvas-lg .offcanvas-body {
        display: block;
    }

    .catalog-filter
    .filter-block:first-child
    .filter-block-title
    span:last-child {
        display: none;
    }
}

.catalog-filter .filter-block-title {
    font-size: 14px;
    letter-spacing: 0;
    margin-bottom: 0;
}

.catalog-filter
.filter-block:first-child
.filter-block-title
span:last-of-type:not(:first-child) {
    display: none;
}

.catalog-filter .filter-option {
    margin-bottom: 9px;
}

.catalog-filter .filter-option label,
.catalog-filter .filter-price-values {
    font-size: 14px;
}

.catalog-filter .filter-block + .filter-block {
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
}

.catalog-filter .filter-toggle {
    color: inherit;
    font: inherit;
}

.catalog-filter .filter-toggle .bi {
    transition: transform 0.2s ease;
}

.catalog-filter .filter-toggle.collapsed .bi {
    transform: rotate(180deg);
}

.catalog-heading {
    font-size: 18px;
}

/* Small visual refinements for the catalog without changing its Bootstrap layout. */
.catalog-reference-banner {
    box-shadow: 0 14px 34px rgba(70, 39, 24, 0.12);
    filter: saturate(1.04) contrast(1.02);
}

.catalog-heading {
    position: relative;
    padding-bottom: 10px;
}

.catalog-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background: #9b1e46;
}

.catalog-filter .filter-toggle:hover,
.catalog-filter .filter-toggle:focus-visible {
    color: #9b1e46 !important;
}

.catalog-filter .filter-toggle:focus-visible {
    outline: 2px solid rgba(155, 30, 70, 0.3);
    outline-offset: 4px;
}

.catalog-filter .form-range {
    accent-color: #9b1e46;
}

.products-main .product-card {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(48, 28, 17, 0.07);
}

.products-main .product-image-link,
.products-main .product-image-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.products-main .product-image-link img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.products-main .product-card:hover .product-image-link img {
    transform: scale(1.045);
}

.products-main .product-badge {
    border-radius: 2px;
    font-size: 10px;
}

.catalog-filter.offcanvas-lg {
    align-self: flex-start;
    height: auto;
    background: #fff !important;
    border: 1px solid #eee5dd;
    border-radius: 10px;
    padding: 20px;
}

@media (min-width: 992px) {
    .catalog-filter.offcanvas-lg {
        position: static;
        padding: 20px;
    }
}

.catalog-intro {
    max-width: 100%;
}

.catalog-intro h1,
.catalog-seo-content h2 {
    color: #171717;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 700;
    line-height: 1.3;
}

.catalog-intro h1 span {
    color: #1596b5;
}

.catalog-intro p,
.catalog-seo-content p {
    color: #242424;
    font-size: 14px;
    line-height: 1.55;
}

.catalog-caught-up {
    display: inline-block;
    background: #9b1e46;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 10px 16px !important;
}

.catalog-seo-content {
    max-width: 100%;
}

.catalog-seo-content h2 {
    font-size: 17px;
}

.catalog-seo-content p {
    font-size: 13px;
    line-height: 1.5;
}

.catalog-filter .filter-toggle {
    gap: 12px;
    text-align: left;
    line-height: 1.35;
}

.catalog-filter .filter-toggle span {
    flex: 1 1 auto;
    min-width: 0;
}

.catalog-filter .filter-toggle .bi {
    flex: 0 0 auto;
}

.catalog-filter .filter-option {
    align-items: flex-start;
}

.catalog-filter .filter-option input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.catalog-collection-image {
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.catalog-filter-label {
    color: #171717;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.catalog-filter .filter-block-title {
    font-size: 12px;
}

.catalog-filter .filter-option label,
.catalog-filter .filter-price-values {
    font-size: 12px;
}

.catalog-filter .filter-option {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
}

.catalog-filter .filter-option input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
}

.catalog-filter .filter-option label {
    line-height: 1.35;
}

.selected-filter-chips .filter-chip {
    border-color: rgba(155, 30, 70, 0.45) !important;
    color: #1d1d1d;
    font-size: 12px;
}

.selected-filter-chips .filter-clear-all {
    background: #9b1e46;
    border-color: #9b1e46;
    font-size: 12px;
}

.custom-product-discount > .text-muted {
    font-size: 12px !important;
}
