.madeco-category-page {
    padding-bottom: clamp(48px, 7vw, 100px);
}
.madeco-category-breadcrumb {
    padding-block: 20px;
}
.woocommerce .madeco-category-breadcrumb .woocommerce-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: #6e766a;
    font-size: 11px;
}
.madeco-category-hero {
    background: #f1eee7;
}
.madeco-category-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
    min-height: 230px;
}
.madeco-category-intro > div:first-child {
    padding-block: 34px;
}
.madeco-category-intro .eyebrow {
    color: #65715d;
    margin-bottom: 12px;
}
.madeco-category-intro h1 {
    margin: 0;
    font-size: clamp(36px, 4.3vw, 58px);
    overflow-wrap: anywhere;
}
.madeco-category-intro .term-description {
    max-width: 520px;
    margin-top: 17px;
    font-size: 14px;
}
.madeco-category-intro .term-description p {
    margin-bottom: 0;
    color: #62695d;
}
.madeco-category-cover {
    align-self: stretch;
    position: relative;
    min-height: 230px;
    overflow: hidden;
}
.madeco-category-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 24%;
}
.madeco-category-cover.is-studio img {
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 20px;
}
.madeco-child-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 26px;
}
.madeco-child-categories a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    font-size: 12px;
}
.madeco-child-categories a:hover {
    background: #f0f3e9;
}
.madeco-category-layout {
    display: grid;
    grid-template-columns: minmax(180px, 225px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    padding-top: 38px;
}
.madeco-category-sidebar,
.madeco-category-results {
    min-width: 0;
}
.madeco-category-layout.is-category-only {
    grid-template-columns: minmax(0, 1fr);
}
.madeco-category-filters summary {
    display: none;
}
.madeco-category-filter-form {
    padding: 22px 17px;
    background: #f6f7f3;
    border: 1px solid #e9ede4;
}
.madeco-category-filter-form h2 {
    margin: 0 0 21px;
    font-size: 24px;
}
.madeco-category-field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 12px;
}
.madeco-category-field select,
.madeco-category-price input {
    width: 100%;
    min-height: 41px;
    padding: 8px;
    border: 1px solid #d9dfd4;
    border-radius: 0;
    background: #fff;
}
.madeco-category-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    font-size: 12px;
}
.madeco-category-price legend {
    margin-bottom: 7px;
}
.madeco-category-price label {
    min-width: 0;
}
.madeco-category-price label span {
    display: block;
    margin-bottom: 4px;
    color: #646e5e;
    font-size: 11px;
}
.madeco-category-stock {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 19px;
    font-size: 12px;
}
.madeco-category-stock input {
    accent-color: #485344;
    margin: 3px 0 0;
}
.madeco-category-filter-form .button {
    width: 100%;
    min-height: 43px;
    padding: 10px;
}
.woocommerce .madeco-category-filter-form .button.dark:hover,
.woocommerce .madeco-category-filter-form .button.dark:focus-visible,
.woocommerce .madeco-category-results ul.products li.product > .button:hover,
.woocommerce .madeco-category-results ul.products li.product > .button:focus-visible {
    background: #485344;
    color: #fff;
}
.madeco-category-reset {
    display: block;
    width: fit-content;
    margin: 11px auto 0;
    color: #55634e;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.madeco-category-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    min-height: 49px;
    margin-bottom: 19px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.woocommerce .madeco-category-toolbar .woocommerce-result-count,
.woocommerce .madeco-category-toolbar .woocommerce-ordering {
    float: none;
    margin: 0;
    font-size: 12px;
}
.madeco-category-toolbar .woocommerce-ordering select {
    max-width: 100%;
    min-height: 38px;
    padding: 5px 8px;
    border: 1px solid #dfe4d9;
    background: #fff;
    font-size: 12px;
}
.madeco-category-toolbar .woocommerce-notices-wrapper {
    width: 100%;
}
.madeco-category-toolbar .woocommerce-notices-wrapper:empty {
    display: none;
}
.woocommerce .madeco-category-results ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 18px;
    margin: 0;
}
.woocommerce .madeco-category-results ul.products::before,
.woocommerce .madeco-category-results ul.products::after {
    display: none;
}
.woocommerce .madeco-category-results ul.products li.product {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid #e9ede5;
    background: #fff;
}
.woocommerce .madeco-category-results .woocommerce-loop-product__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}
.woocommerce .madeco-category-results ul.products li.product a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.16 / 1;
    margin: 0;
    padding: 12px;
    background: #f8f8f4;
    object-fit: contain;
}
.woocommerce .madeco-category-results ul.products li.product .woocommerce-loop-product__title,
.woocommerce .madeco-category-results ul.products li.product .woocommerce-loop-category__title {
    flex: 1;
    min-height: 63px;
    margin: 0;
    padding: 14px 12px 8px;
    color: var(--ink);
    font: 500 14px/1.45 var(--sans);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.woocommerce .madeco-category-results ul.products li.product .price {
    margin: 0;
    padding: 0 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}
.madeco-card-availability {
    margin: 6px 12px 0;
    color: #576a49;
    font-size: 11px;
}
.madeco-card-onbackorder {
    color: #856127;
}
.madeco-card-outofstock {
    color: #875044;
}
.woocommerce .madeco-category-results ul.products li.product > .button {
    min-height: 40px;
    max-width: calc(100% - 24px);
    margin: 12px 12px 14px;
    padding: 7px 12px;
    text-align: center;
    white-space: normal;
}
.woocommerce .madeco-category-results ul.products li.product .added_to_cart {
    margin: -7px 12px 12px;
}
.woocommerce .madeco-category-results ul.products li.product .onsale {
    top: 8px;
    right: 8px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 4px 7px;
    border-radius: 0;
    background: #e4edde;
    color: #3d4c33;
    font-size: 10px;
    line-height: 1.4;
}
.madeco-category-empty {
    padding: 22px;
    background: #f6f7f3;
}
.woocommerce .madeco-category-results .woocommerce-pagination {
    margin-top: 26px;
}
@media (max-width: 1050px) {
    .woocommerce .madeco-category-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    .madeco-category-breadcrumb {
        padding-block: 13px;
    }
    .madeco-category-intro {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 12px;
        min-height: 180px;
    }
    .madeco-category-intro > div:first-child {
        padding-block: 21px;
    }
    .madeco-category-intro h1 {
        font-size: clamp(26px, 6vw, 38px);
    }
    .madeco-category-intro .term-description {
        margin-top: 10px;
        font-size: 11px;
    }
    .madeco-category-cover {
        min-height: 180px;
    }
    .madeco-category-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-top: 21px;
    }
    .madeco-category-filters summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 44px;
        padding: 8px 13px;
        border: 1px solid #dfe4d9;
        background: #f6f7f3;
        cursor: pointer;
        font-size: 13px;
    }
    .madeco-category-filters[open] summary span {
        transform: rotate(45deg);
    }
    .madeco-category-filter-form {
        border-top: 0;
    }
    .madeco-category-filter-form h2 {
        display: none;
    }
    .woocommerce .madeco-category-results ul.products {
        gap: 14px 10px;
    }
    .woocommerce .madeco-category-results ul.products li.product .woocommerce-loop-product__title {
        padding: 10px 8px 7px;
        font-size: 12px;
    }
    .woocommerce .madeco-category-results ul.products li.product .price {
        padding-inline: 8px;
        font-size: 13px;
    }
    .madeco-card-availability {
        margin-inline: 8px;
        font-size: 10px;
    }
    .woocommerce .madeco-category-results ul.products li.product > .button {
        max-width: calc(100% - 16px);
        margin: 9px 8px 10px;
        padding: 7px 8px;
        font-size: 10px;
    }
}
