/* =========================================================
   ROASTiME SHOP V1 — PRODUCT GRID
   ========================================================= */

.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering {
    display: none;
}

.woocommerce-shop ul.products {
    width: min(calc(100% - 32px), var(--rt-content-width));
    margin: 34px auto clamp(76px, 7vw, 112px);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2.4vw, 34px);
}

.woocommerce-shop ul.products::before,
.woocommerce-shop ul.products::after {
    display: none;
}

.woocommerce-shop ul.products li.product.rt-shop-card {
    position: relative;
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--rt-paper, #f6eddf);
    border: 2px solid var(--rt-ink);
    border-radius: 22px;
    box-shadow: 6px 6px 0 var(--rt-ink);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.woocommerce-shop ul.products li.product.rt-shop-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--rt-ink);
}

.rt-shop-card__hitarea {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.rt-shop-card__hitarea:focus-visible {
    outline: 3px solid var(--rt-berry);
    outline-offset: -5px;
}

.rt-shop-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-bottom: 2px solid var(--rt-ink);
    background: var(--rt-paper, #f6eddf);
}

.rt-shop-card__image,
.woocommerce-shop ul.products li.product.rt-shop-card .rt-shop-card__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.rt-shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(18px, 2vw, 25px);
}

.rt-shop-card__origin {
    min-height: 1.5em;
    margin: 0 0 9px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: var(--rt-berry);
}

.rt-shop-card__title {
    margin: 0;
    font-size: clamp(24px, 2.15vw, 32px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.rt-shop-card__taste {
    margin: 15px 0 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
}

.rt-shop-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 2px solid var(--rt-ink);
}

.rt-shop-card__sizes {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .025em;
}

.rt-shop-card__price {
    white-space: nowrap;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.rt-shop-card__price small {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 800;
}

.rt-shop-card__note {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    margin: 0;
    padding: 7px 10px;
    background: var(--rt-paper, #f6eddf);
    border: 1.5px solid var(--rt-ink);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.rt-shop-card__note:hover {
    background: var(--rt-ink);
    color: var(--rt-paper, #f6eddf);
}

@media (max-width: 900px) {
    .woocommerce-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .woocommerce-shop ul.products {
        width: min(calc(100% - 24px), var(--rt-content-width));
        margin-top: 22px;
        gap: 12px;
    }

    .woocommerce-shop ul.products li.product.rt-shop-card {
        border-radius: 16px;
        box-shadow: 4px 4px 0 var(--rt-ink);
    }

    .woocommerce-shop ul.products li.product.rt-shop-card:hover {
        transform: none;
        box-shadow: 4px 4px 0 var(--rt-ink);
    }

    .rt-shop-card__body {
        padding: 12px;
    }

    .rt-shop-card__origin {
        margin-bottom: 6px;
        font-size: 9px;
        letter-spacing: .035em;
    }

    .rt-shop-card__title {
        font-size: clamp(17px, 5vw, 21px);
    }

    .rt-shop-card__taste {
        margin: 9px 0 15px;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .rt-shop-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding-top: 11px;
    }

    .rt-shop-card__sizes {
        font-size: 10px;
    }

    .rt-shop-card__price {
        font-size: 17px;
    }

    .rt-shop-card__note {
        top: 9px;
        right: 9px;
        padding: 6px 8px;
        font-size: 9px;
    }
}

/* =========================================================
   ROASTiME SHOP V1 — FILTER SIDEBAR
   ========================================================= */

.rt-shop-catalog {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 2.5vw, 36px);
    padding-top: 34px;
    padding-bottom: clamp(58px, 5vw, 80px);
}

.rt-shop-results {
    min-width: 0;
}

.woocommerce-shop .rt-shop-results ul.products {
    width: 100%;
    margin: 0;
}

.rt-shop-filters {
    position: sticky;
    top: 104px;
    min-width: 0;
}

.rt-shop-filters__heading {
    padding-bottom: 20px;
}

.rt-shop-filters__heading p {
    margin: 0 0 7px;
    color: var(--rt-berry);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .13em;
}

.rt-shop-filters__heading h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.045em;
}

.rt-shop-filter-group {
    padding: 18px 0;
    border-top: 2px solid var(--rt-ink);
}

.rt-shop-filter-group h4 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
}

.rt-shop-filter-group__options {
    display: grid;
    gap: 7px;
}

.rt-shop-filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 27px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.rt-shop-filter-option__box {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1.5px solid var(--rt-ink);
    background: transparent;
}

.rt-shop-filter-option.is-active {
    font-weight: 900;
}

.rt-shop-filter-option.is-active .rt-shop-filter-option__box {
    background: var(--rt-ink);
    box-shadow: inset 0 0 0 3px var(--rt-paper, #f6eddf);
}

.rt-shop-filter-option:hover {
    color: var(--rt-berry);
}

.rt-shop-filters__clear {
    display: inline-block;
    margin-top: 4px;
    padding-bottom: 2px;
    border-bottom: 1.5px solid currentColor;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.rt-shop-empty {
    padding: clamp(40px, 5vw, 68px);
    border: 2px solid var(--rt-ink);
    border-radius: 20px;
}

.rt-shop-empty__eyebrow {
    margin: 0 0 10px;
    color: var(--rt-berry);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .13em;
}

.rt-shop-empty h3 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -.045em;
}

.rt-shop-empty h3 + p {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .rt-shop-catalog {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rt-shop-filters {
        position: static;
    }
}

/* =========================================================
   ROASTiME SHOP V1 — MOBILE FILTER DRAWER
   ========================================================= */

.rt-shop-mobile-filter-bar {
    display: none;
}

.rt-shop-filter-dialog {
    padding: 0;
    border: 0;
    background: var(--rt-paper, #f6eddf);
    color: var(--rt-ink);
}

.rt-shop-filter-dialog::backdrop {
    background: rgba(0, 0, 0, .38);
}

.rt-shop-filter-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .rt-shop-catalog {
        gap: 18px;
    }

    .rt-shop-mobile-filter-bar {
        display: block;
    }

    .rt-shop-mobile-filter-button {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        border: 2px solid var(--rt-ink);
        border-radius: 14px;
        background: var(--rt-paper, #f6eddf);
        color: var(--rt-ink);
        box-shadow: 4px 4px 0 var(--rt-ink);
        font-size: 14px;
        font-weight: 900;
        text-align: left;
    }

    .rt-shop-mobile-filter-button__meta {
        color: var(--rt-berry);
        font-size: 12px;
        font-weight: 900;
    }

    .rt-shop-filter-dialog[open] {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
    }

    .rt-shop-filter-dialog__panel {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .rt-shop-filter-dialog__header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px 16px;
        border-bottom: 2px solid var(--rt-ink);
        background: var(--rt-paper, #f6eddf);
    }

    .rt-shop-filter-dialog__header p {
        margin: 0 0 4px;
        color: var(--rt-berry);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: .13em;
    }

    .rt-shop-filter-dialog__header h2 {
        margin: 0;
        font-size: 28px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -.045em;
    }

    .rt-shop-filter-dialog__close {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 2px solid var(--rt-ink);
        border-radius: 50%;
        background: transparent;
        color: var(--rt-ink);
        font-size: 30px;
        line-height: 1;
    }

    .rt-shop-filter-dialog__body {
        flex: 1;
        overflow-y: auto;
        padding: 0 16px 32px;
    }

    .rt-shop-filter-dialog .rt-shop-filters {
        position: static;
        width: 100%;
    }

    .rt-shop-filter-dialog .rt-shop-filters__heading {
        display: none;
    }

    .rt-shop-filter-dialog .rt-shop-filter-group:first-of-type {
        border-top: 0;
    }

    .rt-shop-filter-dialog .rt-shop-filter-option {
        min-height: 36px;
        font-size: 14px;
    }

    .rt-shop-filter-dialog .rt-shop-filter-option__box {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }
}
