/* Pre-crafted collection: filter sidebar + product grid. */

.solid-pcc {
    display: grid;
    grid-template-columns: calc(30% - 36px) calc(70% - 5px);
    gap: 40px;
    align-items: start;
    margin-bottom: 200px;
}

body.solid-is-loading{
    overflow: hidden;
}

body.solid-is-loading:before{
    content: "";
    background: rgba(143, 143, 143, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
}

body.solid-is-loading:after{
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border: 8px solid #FFF;
    border-bottom-color: #810116;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotationcentered 1s linear infinite;
    z-index: 9999999;
}

/* --- Search ------------------------------------------------------------ */

.solid-pcc__search {
    position: relative;
    display: block;
    margin-bottom: 54px;
    max-width: 577px;
    left: 50%;
    transform: translateX(-50%);
}

.solid-pcc__search-input {
    width: 100%;
    height: 54px;
    padding: 8px 54px 8px 16px;
    border: 1px solid #93918D;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 18px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.solid-pcc__search-input::placeholder {
    color: #93918D;
}

/* Hide Chrome/Safari's built-in clear "x" so the icon below stands alone. */
.solid-pcc__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.solid-pcc__search-submit {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    background: none;
    color: #93918D;
    cursor: pointer;
}

/* Magnifier: a circle plus a rotated bar for the handle. */
.solid-pcc__search-icon {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    border-radius: 50%;
}

.solid-pcc__search-icon::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 11px;
    width: 7px;
    height: 1px;
    background: #000;
    transform: rotate(45deg);
    transform-origin: left center;
}

/* --- Toolbar (total + sort) ------------------------------------------- */

/* Spans both grid columns so it sits above the sidebar and the products. */
.solid-pcc__toolbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.solid-pcc__total {
    margin: 0!important;
    font-size: 18px;
    color: #000;
}

.solid-pcc__sort {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 419px;
    width: 100%;
}

.solid-pcc__sort-label {
    font-size: 18px;
    color: #000;
    white-space: nowrap;
    margin-right: 20px;
}

/* Positioning context for the chevron, which a <select> can't draw itself. */
.solid-pcc__select {
    position: relative;
    display: block;
    flex: 1 1 auto;
}

.solid-pcc__orderby {
    padding: 8px 44px 8px 12px;
    border: 1px solid #93918D;
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    width: 100%;
    height: 54px;
    letter-spacing: 10%;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.solid-pcc__orderby::-ms-expand {
    display: none;
}

/* Same geometry as .solid-pcc__chevron, vertically centred in the field. */
.solid-pcc__select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 9px;
    height: 9px;
    border-right: 1px solid #93918D;
    border-bottom: 1px solid #93918D;
    transform: translateY(-50%) rotate(45deg) translate(-2px, -2px);
    pointer-events: none;
}

/* --- Mobile filter drawer --------------------------------------------- */

/* Desktop: the sidebar is a plain column, so none of the drawer chrome shows. */
.solid-pcc__drawer-open,
.solid-pcc__drawer-close,
.solid-pcc__drawer-foot,
.solid-pcc__drawer-overlay {
    display: none;
}

/* Locked while the drawer is open so the page behind cannot scroll. */
body.solid-pcc-drawer-open {
    overflow: hidden;
}

/* The @media block itself lives at the end of this file — media queries add no
   specificity, so it has to come after the desktop rules it overrides. */

/* --- Filters ---------------------------------------------------------- */

.solid-pcc__filters {
    position: sticky;
    top: 30px;
}

.solid-pcc__filter-head {
    display: block;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 56px;
}

.solid-pcc__filter-head h3 {
    margin: 0;
    font-size: 32px!important;
    font-weight: 300 !important;
    line-height: 128%;
}

.solid-pcc__clear {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

/* Dropdown header. Closed by default; the panel below carries [hidden]. */
.solid-pcc__filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 0;
    border: 0;
    background: none;
    color: inherit!important;
    text-align: left;
    cursor: pointer;
    max-width: 234px;
}

.solid-pcc__filter-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.solid-pcc *{
    font-family: 'Manrope';
}

.solid-pcc__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #1d1d1d;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.solid-pcc__badge[hidden] {
    display: none;
}

.solid-pcc__chevron {
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 1px solid #93918D;
    border-bottom: 1px solid #93918D;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}

.solid-pcc__filter-group.is-open .solid-pcc__chevron {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.solid-pcc__filter-panel {
    padding-bottom: 18px;
    padding-top: 12px;
}

.solid-pcc__filter-panel[hidden] {
    display: none;
}

.solid-pcc__filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solid-pcc__filter-list label {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 24px;
    cursor: pointer;
}

.solid-pcc__filter-list input {
    margin: 0;
    flex: 0 0 auto;
    display: none;
}

.solid-pcc__filter-list li label{
    display: flex;
    padding-left: 40px;
    position: relative;
}

.solid-pcc__filter-list li label input + span:before{
    content: "";
    border: 1px solid #DBDBDB;
    display: block;
    width: 24px;
    height: 24px;
    background: #F9F9F9;
    position: absolute;
    left: 0;
    top: 0;
}

.solid-pcc__filter-list li label input + span:after{
    content: "";
    width: 6px;
    height: 12px;
    border: solid #F9F9F9;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    display: block;
    position: absolute;
    left: 9px;
    top: 4px;
}

.solid-pcc__filter-list li label input:checked + span:after{
    border-color: #000;
}

.solid-pcc__count {
    font-size: 24px;
    color: #68655F;
    margin-left: 5px;
}

/* Nothing left under this option for the current search. Dimmed rather than
   hidden, so a ticked filter never vanishes out from under the visitor. */
.solid-pcc__filter-list li.is-empty {
    opacity: .4;
}

/* --- Image swatch filters (e.g. Exterior Colour) ----------------------- */

.solid-pcc__filter-list--swatch {
    align-items: baseline;
}

/* Opt out of the square-checkbox treatment used by the text filter lists. */
.solid-pcc__filter-list--swatch li label {
    padding-left: 0;
    flex-direction: row;
    align-items: center;
    gap: 0;
    text-align: center;
}

.solid-pcc__filter-list--swatch li label input + span:before,
.solid-pcc__filter-list--swatch li label input + span:after {
    content: none;
}

/* Visually hidden rather than display:none, so the checkbox stays focusable. */
.solid-pcc__filter-list--swatch input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.solid-pcc__swatch-media {
    display: block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow .15s ease, border-color .15s ease;
    margin-right: 15px;
}

.solid-pcc__swatch input:checked + .solid-pcc__swatch-media {
    border-color: #68655F;
}

.solid-pcc__swatch:hover .solid-pcc__swatch-media {
    border-color: #93918D;
}

/* Keyboard focus, since the real checkbox is visually hidden. */
.solid-pcc__swatch input:focus-visible + .solid-pcc__swatch-media {
    box-shadow: 0 0 0 2px #1d1d1d;
}

.solid-pcc__swatch-name {
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
}

/* --- Active filter chips ---------------------------------------------- */

.solid-pcc__active {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.solid-pcc__active[hidden] {
    display: none;
}

.solid-pcc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.solid-pcc__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #F6F6F6;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: .3s;
    min-height: 37px;
    max-width: 330px;
    width: 100%;
    padding: 0 12px;
    color: #000000!important;
    text-transform: uppercase;
    letter-spacing: 10%;
    background: transparent;
    justify-content: space-between;
}

.solid-pcc__chips li{
    max-width: 330px;
    width: 100%;
}

.solid-pcc__chip:hover {
    border-color: #68655F;
    background: #F9F9F9;
}

/* The "x" — two rotated bars, so no icon font or SVG is needed. */
.solid-pcc__chip-x {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.solid-pcc__chip-x::before,
.solid-pcc__chip-x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

.solid-pcc__chip-x::before {
    transform: rotate(45deg);
}

.solid-pcc__chip-x::after {
    transform: rotate(-45deg);
}

/* Pushed to the far end of the bar, opposite the chips. */
.solid-pcc__active .solid-pcc__clear{
    font-size: 18px;
    color: #000;
    font-weight: 300;
    height: 100%;
    text-align: left;
    transition: .3s;
}

.solid-pcc__active .solid-pcc__clear:hover{
    color: #800116;
}

/* --- Product grid ----------------------------------------------------- */

.solid-pcc__grid.products {
    display: grid;
    grid-template-columns: repeat(var(--solid-pcc-columns, 3), minmax(0, 1fr));
    gap: 36px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 64px!important;
}

/* Neutralise the theme/Woo float-and-percentage-width loop layout. */
.solid-pcc__grid.products > li {
    width: 100% !important;
    max-width: none;
    margin: 0!important;
    float: none!important;
    clear: none;
}

.solid-pcc__grid.products > li::before,
.solid-pcc__grid.products > li::after {
    content: none;
}

/* Positioning context for the badge overlay. */
.solid-pcc__grid.products > li.product {
    position: relative;
}

.solid-pcc__product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-block;
    padding: 4px 30px;
    background: #DBC9B9CC;
    color: #68655F;
    line-height: 18px;
    text-transform: uppercase;
    pointer-events: none;
    letter-spacing: 8%;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 500;
}

.solid-pcc__sub-title {
    margin: 8px 0 5px!important;
    font-size: 12px;
    line-height: 1.2;
    color: #68655F;
}

.solid-pcc__empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
    opacity: .7;
}

/* --- Load more -------------------------------------------------------- */

.solid-pcc__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.solid-pcc__divider {
    width: 100%;
    height: 1px;
    background: #DBC9B9;
}

.solid-pcc__result-count {
    font-size: 12px;
    line-height: 29px;
    color: #000000;
    margin-top: 26px;
    margin-bottom: 12px !important;
}

.solid-pcc__result-count[hidden] {
    display: none;
}

/* Only space the button off whatever precedes it, so a hidden count collapses. */
.solid-pcc__load-more {
    margin-top: 0;
}

.solid-pcc__load-more {
    cursor: pointer;
    transition: .3s;
    font-size: 18px;
    padding: 0;
    min-height: 54px;
    max-width: 330px;
    width: 100%;
    color: #000 !important;
    border: none;
    background: #DBC9B9;
    font-weight: 600;
    font-family: 'Manrope';
}

.solid-pcc__load-more:hover {
    background: #800116;
    color: #fff !important;
}

.solid-pcc__load-more[hidden] {
    display: none;
}

.solid-pcc__load-more:disabled {
    opacity: .5;
    cursor: default;
}

.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before{
    content: none!important;
}

.woocommerce .products ul::after,
.woocommerce ul.products::after{
    content: none!important;
}

.woocommerce.archive.tax-product_cat ul.products.columns-3 li.product,
.woocommerce-page ul.products.columns-3 li.product{
    width: 100%;
    margin: 0;
}

body.archive.tax-product_cat.term-pre-crafted-collection header{
    margin-bottom: 77px;
}

.woocommerce.tax-product_cat ul.products li.product .woocommerce-loop-category__title,
.woocommerce.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.woocommerce.tax-product_cat ul.products li.product h3{
    padding: 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 23px;
    margin-top: 8px;
}

.woocommerce.tax-product_cat ul.products li.product a img{
    margin-bottom: 0;
}

.woocommerce ul.products li.product a img{
    aspect-ratio: 330 / 226;
    object-fit: cover;
}

/* --- Price ------------------------------------------------------------ */

/*
 * WooCommerce renders a sale price as <del> (regular) followed by <ins> (sale),
 * so the default visual order is regular-then-discount. Flip it with flex
 * ordering rather than a template override: discounted price left, regular
 * price struck through on its right. The .screen-reader-text siblings are
 * absolutely positioned, so they are not flex items and stay unaffected.
 */
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price {
    display: flex !important;
    align-items: baseline;
    gap: 0 10px;
    flex-wrap: wrap;
}

body.woocommerce ul.products li.product .price ins,
body.woocommerce-page ul.products li.product .price ins {
    order: 1 !important;
    background: none;
    text-decoration: none;
    font-weight: 600;
}

body.woocommerce ul.products li.product .price del,
body.woocommerce-page ul.products li.product .price del {
    order: 2 !important;
    text-decoration: line-through;
    opacity: .55;
    font-weight: 400;
}

/* Woo marks up del/ins with aria-hidden and mirrors them for screen readers. */
body.woocommerce ul.products li.product .price .screen-reader-text,
body.woocommerce-page ul.products li.product .price .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.woocommerce ul.products li.product .price, body.woocommerce-page ul.products li.product .price{
    color: #000000;
    font-weight: 300;
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 0;
}

body.woocommerce ul.products li.product .price del, body.woocommerce-page ul.products li.product .price del{
    opacity: 1;
    color: #68655F;
    font-weight: 300;
}

body.woocommerce ul.products li.product .product_type_simple.add_to_cart_button.ajax_add_to_cart{
    display: none;
}

body.woocommerce ul.products li.product .price ins, body.woocommerce-page ul.products li.product .price ins{
    font-weight: 300;
}

body.woocommerce ul.products li.product .price del bdi{
    position: relative;
}

body.woocommerce ul.products li.product .price del bdi:after{
    content: "";
    width: 100%;
    display: block;
    position: absolute;
    background: #800116;
    height: 1px;
    top: 50%;
    transform: translateY(-50%);
}

.horizontal-divider{
    width: 80px;
    border-top: 1px solid #000;
    margin-top: 23px;
}

.solid-pcc__search-submit{
    position: absolute;
}

.related_products_shortcode{
    width: 100%;
}

/* --- Responsive ------------------------------------------------------- */

@media (max-width: 1024px) {
    .solid-pcc {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .solid-pcc__grid.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .solid-pcc {
        grid-template-columns: 1fr;
    }

    .solid-pcc__filters {
        position: static;
    }

    .solid-pcc__grid.products {
        grid-template-columns: 1fr 1fr;
    }

    .solid-pcc__search {
        left: 50%;
    }

    .solid-pcc__filter-head{
        margin-bottom: 20px;
    }

    .solid-pcc{
        margin-bottom: 50px;
    }
}

@media (max-width: 450px){
    .solid-pcc__grid.products {
        grid-template-columns: 1fr;
    }
}

@keyframes rotationcentered{
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
/* --- Mobile filter drawer (must stay last: see note above) -------------- */

@media (max-width: 767px) {
    .solid-pcc {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .solid-pcc__drawer-open {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 54px;
        padding: 0 24px;
        color: #000!important;
        font-size: 16px;
        text-transform: uppercase;
        cursor: pointer;
        background: #DBC9B9;
        font-weight: 600;
        border: none;
    }

    /* Off-canvas panel. Slid out rather than hidden, so it can animate. */
    .solid-pcc__filters {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 10000;
        width: 88vw;
        max-width: 400px;
        padding: 24px 20px 0;
        background: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .solid-pcc.drawer-open .solid-pcc__filters {
        transform: translateX(0);
    }

    .solid-pcc__drawer-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        background: rgba(0, 0, 0, .45);
    }

    .solid-pcc__drawer-overlay[hidden] {
        display: none;
    }

    .solid-pcc__filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .solid-pcc__drawer-close {
        display: flex;
        align-items: center;
        justify-content: end;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        cursor: pointer;
    }

    /* Sticks to the bottom of the panel as its options scroll past. */
    .solid-pcc__drawer-foot {
        display: block;
        position: sticky;
        bottom: 0;
        margin-top: 24px;
        padding: 16px 0;
        background: #fff;
    }

    .solid-pcc__drawer-apply {
        width: 100%;
        height: 54px;
        border: 0;
        background: #1d1d1d;
        color: #fff!important;
        font-size: 16px;
        text-transform: uppercase;
        cursor: pointer;
    }

    /* The grid is the only column now. */
    .solid-pcc__grid.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solid-pcc__search {
        left: auto;
        transform: none;
    }

    .solid-pcc__filter-head .horizontal-divider{
        display: none;
    }
}

@media (max-width: 450px){
    .solid-pcc__product-badge{
        padding: 4px 15px;
    }
}
/* --- Related products (single product page) ---------------------------- */

.solid-pcc-related {
    margin: 150px 0;
    margin-bottom: 200px;
}

.solid-pcc-related__title {
    margin: 0 0 62px;
    font-size: 40px!important;
    font-weight: 300!important;
    line-height: 128%;
    text-align: center;
}

.solid-pcc-related__title div.divider{
    width: 80px;
    border-top: 1px solid #000;
    margin-top: 23px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.solid-pcc-related__grid.products {
    margin-bottom: 0 !important;
}

body.single-product .woocommerce-loop-product__title{
    font-size: 18px!important;
    font-weight: 600;
    line-height: 100%;
    padding-top: 0!important;
}

@media (max-width: 767px) {
    .solid-pcc-related {
        margin: 48px 0;
    }

    .solid-pcc-related__grid.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
