.mrm-shopify-page {
    --mrm-text: #f8f3e7;
    --mrm-muted: rgba(248, 243, 231, .74);
    --mrm-gold: var(--accent-gold, #bf9d5d);
    --mrm-gold-dark: var(--accent-gold-dark, #a68b6a);
    --mrm-light: #18263d;
    --mrm-cream: var(--bg-cream, #f3f0e6);
    --mrm-heading: var(--font-heading, Georgia, serif);
    --mrm-heading-italic: var(--font-heading-md-it, Georgia, serif);
    --mrm-body: var(--font-body, Poppins, sans-serif);
    padding: 0 0 80px;
    background: #18263d;
    color: var(--mrm-text);
    font-family: var(--mrm-body);
}

body.post-type-archive-shopify_product,
body.tax-shopify_collection,
body.tax-shopify_product_tag,
body.single-shopify_product {
    background: #18263d;
}

.mrm-shopify-container {
    width: min(1160px, calc(100% - 44px));
    margin: 0 auto;
}

.mrm-shopify-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 0 0 38px;
    padding: 22px 0 18px;
    border-bottom: 1px solid rgba(248, 243, 231, .16);
    color: var(--mrm-muted);
    font-size: 12px;
    letter-spacing: .03em;
}

.mrm-shopify-breadcrumb a,
.mrm-shopify-single-meta a,
.mrm-shopify-single-tags a {
    color: #f8f3e7;
    text-decoration: none;
}

.mrm-shopify-breadcrumb a:hover,
.mrm-shopify-single-meta a:hover,
.mrm-shopify-single-tags a:hover {
    color: var(--mrm-gold-dark);
    text-decoration: none;
}

.mrm-shopify-breadcrumb-sep {
    color: var(--mrm-gold);
    opacity: .9;
}

.mrm-shopify-bookstore {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 58px);
    align-items: start;
}

.mrm-shopify-sidebar {
    position: sticky;
    top: 118px;
    padding: 26px 24px;
    border: 1px solid rgba(191, 157, 93, .36);
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
}

.mrm-shopify-shop-by h3,
.mrm-shopify-sidebar h3,
.mrm-shopify-sidebar-toggle {
    margin: 0 0 18px;
    color: var(--mrm-text);
    font-family: var(--mrm-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mrm-shopify-sidebar-toggle {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.mrm-shopify-sidebar-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}



.mrm-shopify-sidebar.is-open .mrm-shopify-sidebar-toggle span::after {
    transform: rotate(-135deg) translateY(-1px);
}

.mrm-shopify-sidebar-panel {
    display: block;
}

.mrm-shopify-shop-by-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mrm-shopify-shop-by-list li {
    margin: 0;
    border-top: 1px solid rgba(248, 243, 231, .13);
}

.mrm-shopify-shop-by-list li:first-child {
    border-top: 0;
}

.mrm-shopify-shop-by-list a {
    display: block;
    padding: 9px 0;
    color: #f8f3e7;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    text-transform: capitalize;
    transition: color .2s ease, transform .2s ease;
}

.mrm-shopify-shop-by-list a:hover,
.mrm-shopify-shop-by-list .is-active a {
    color: var(--mrm-gold);
    text-decoration: none;
    transform: translateX(3px);
}

.mrm-shopify-shop-by-list .is-active a {
    font-weight: 600;
}

.mrm-shopify-all-link {
    margin-bottom: 6px;
}

.mrm-shopify-all-link a {
    color: var(--mrm-gold-dark);
    font-weight: 600;
}

.mrm-shopify-main-header {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 28px;
}

.mrm-shopify-main-header h1 {
    margin: 0;
    color: var(--mrm-gold);
    font-family: var(--mrm-heading-italic);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 500;
    letter-spacing: .01em;
    line-height: .95;
    text-transform: none;
}

.mrm-shopify-view-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 8px;
    color: var(--mrm-muted);
    font-size: 12px;
    white-space: nowrap;
}

.mrm-shopify-view-tools select,
.mrm-shopify-view-icon {
    border: 1px solid rgba(191, 157, 93, .34);
    background: rgba(255, 255, 255, .08);
    color: var(--mrm-text);
}

.mrm-shopify-view-tools select {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 0;
    font: inherit;
    appearance: auto;
}

.mrm-shopify-view-tools select option {
    color: #1b1b1b;
}

.mrm-shopify-view-icon {
    position: relative;
    width: 40px;
    height: 40px;
    transition: background .2s ease, border-color .2s ease;
}

.mrm-shopify-view-icon:hover,
.mrm-shopify-view-icon.is-active {
    border-color: var(--mrm-gold);
    background: rgba(191, 157, 93, .18);
}

.mrm-shopify-view-icon::before {
    content: "";
    position: absolute;
    inset: 11px;
}

.mrm-shopify-view-grid::before {
    background:
        linear-gradient(var(--mrm-muted) 0 0) left top / 6px 6px no-repeat,
        linear-gradient(var(--mrm-muted) 0 0) center top / 6px 6px no-repeat,
        linear-gradient(var(--mrm-muted) 0 0) right top / 6px 6px no-repeat,
        linear-gradient(var(--mrm-muted) 0 0) left bottom / 6px 6px no-repeat,
        linear-gradient(var(--mrm-muted) 0 0) center bottom / 6px 6px no-repeat,
        linear-gradient(var(--mrm-muted) 0 0) right bottom / 6px 6px no-repeat;
}

.mrm-shopify-view-list::before {
    background:
        linear-gradient(var(--mrm-muted) 0 0) 0 2px / 17px 3px no-repeat,
        linear-gradient(var(--mrm-muted) 0 0) 0 8px / 17px 3px no-repeat,
        linear-gradient(var(--mrm-muted) 0 0) 0 14px / 17px 3px no-repeat;
}

.mrm-shopify-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--mrm-columns, 3), minmax(0, 1fr));
    gap: 36px 28px;
}

.mrm-shopify-products-list {
    grid-template-columns: 1fr !important;
}

.mrm-shopify-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    padding: 18px;
    border: 1px solid rgba(191, 157, 93, .28);
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    color: #1b1b1b;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
    flex-direction: column;
    gap: 13px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mrm-shopify-card:hover {
    border-color: rgba(191, 157, 93, .48);
    box-shadow: 0 24px 62px rgba(24, 38, 61, .1);
    transform: translateY(-3px);
}

.mrm-shopify-products-list .mrm-shopify-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.mrm-shopify-products-list .mrm-shopify-card-image {
    width: 180px;
    aspect-ratio: 1 / 1.18;
}

.mrm-shopify-products-list .mrm-shopify-card h3,
.mrm-shopify-products-list .mrm-shopify-price,
.mrm-shopify-products-list .mrm-shopify-buy {
    margin: 0;
}

.mrm-shopify-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.28;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(243, 240, 230, .72), rgba(255, 255, 255, .92));
    text-decoration: none;
}

.mrm-shopify-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.mrm-shopify-card:hover .mrm-shopify-card-image img {
    transform: scale(1.025);
}

.mrm-shopify-no-image {
    color: var(--mrm-muted);
    font-size: 13px;
}

.mrm-shopify-card h3 {
    margin: 0;
    font-family: var(--mrm-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.42;
    min-height: 64px;
}

.mrm-shopify-card h3 a {
    color: #1b1b1b;
    text-decoration: none;
}

.mrm-shopify-card h3 a:hover {
    color: var(--mrm-gold-dark);
    text-decoration: none;
}

.mrm-shopify-price,
.mrm-shopify-single-price {
    color: #1b1b1b;
    font-family: var(--mrm-body);
    font-weight: 700;
    letter-spacing: .01em;
}

.mrm-shopify-price {
    font-size: 22px;
    line-height: 1.1;
}

.mrm-shopify-buy,
.mrm-shopify-single-buy {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid var(--mrm-gold);
    border-radius: 999px;
    background: var(--mrm-gold);
    color: #fff;
    font-family: var(--mrm-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.mrm-shopify-card .mrm-shopify-buy {
    margin-top: auto;
}

.mrm-shopify-buy:hover,
.mrm-shopify-single-buy:hover {
    border-color: var(--mrm-gold-dark);
    background: var(--mrm-gold-dark);
    color: #fff;
    text-decoration: none;
}

.mrm-shopify-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 42px;
}

.mrm-shopify-pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27, 27, 27, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #f8f3e7;
    text-decoration: none;
}

.mrm-shopify-pagination .current {
    border-color: var(--mrm-gold);
    background: var(--mrm-gold);
    color: #fff;
    font-weight: 600;
}

.mrm-shopify-single-product {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 62px);
    align-items: start;
    padding: 34px;
    border: 1px solid rgba(191, 157, 93, .22);
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    color: #1b1b1b;
    box-shadow: 0 22px 62px rgba(0, 0, 0, .18);
}

.mrm-shopify-single-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 26px;
    background: linear-gradient(135deg, rgba(243, 240, 230, .72), rgba(255, 255, 255, .92));
}

.mrm-shopify-single-media img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}

.mrm-shopify-single-no-image {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    color: var(--mrm-muted);
}

.mrm-shopify-single-summary h1 {
    margin: 0 0 20px;
    color: var(--mrm-gold);
    font-family: var(--mrm-heading-italic);
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 500;
    line-height: .98;
}

.mrm-shopify-single-price {
    margin: 0 0 24px;
    font-size: 30px;
}

.mrm-shopify-single-link,
.mrm-shopify-single-meta {
    margin: 16px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.mrm-shopify-single-meta strong {
    color: var(--mrm-text);
    font-weight: 600;
}

.mrm-shopify-single-product .mrm-shopify-single-meta strong {
    color: #1b1b1b;
}

.mrm-shopify-single-product .mrm-shopify-single-meta a,
.mrm-shopify-single-product .mrm-shopify-single-tags a {
    color: #0b3558;
}

.mrm-shopify-single-content {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 30px;
    border-top: 1px solid rgba(27, 27, 27, .12);
    color: #1b1b1b;
    font-family: var(--mrm-body);
    font-size: 16px;
    line-height: 1.78;
}

.mrm-shopify-single-content h2,
.mrm-shopify-single-content h3,
.mrm-shopify-single-content h4 {
    color: var(--mrm-gold);
    font-family: var(--mrm-heading);
    line-height: 1.12;
}

.mrm-shopify-single-content h3:has(em) {
    max-width: 900px;
    margin: 44px auto 16px;
    color: var(--mrm-gold);
    font-family: var(--mrm-heading-italic);
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    text-align: center;
}

.mrm-shopify-single-content h3:has(em) em,
.mrm-shopify-single-content h3:has(em) b {
    color: inherit;
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: italic;
    font-weight: inherit;
    line-height: inherit;
}

.mrm-shopify-single-content h3:has(em) b {
    display: block;
    margin-top: 18px;
    color: #1b1b1b;
    font-family: var(--mrm-body) !important;
    font-size: clamp(17px, 1.5vw, 22px) !important;
    font-style: italic;
    font-weight: 700;
}

.mrm-shopify-single-content img {
    max-width: 100%;
    height: auto;
}

.mrm-shopify-page .home-tagline,
.mrm-shopify-page .home-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.mrm-shopify-page+.home-tagline,
.mrm-shopify-page .home-tagline {
    background: #131f31;
}

@media (max-width: 980px) {

    .mrm-shopify-bookstore,
    .mrm-shopify-single-product {
        grid-template-columns: 1fr;
    }

    .mrm-shopify-sidebar {
        position: static;
    }

    .mrm-shopify-sidebar-toggle {
        margin-bottom: 0;
        cursor: pointer;
    }

    .mrm-shopify-sidebar-panel {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .28s ease, opacity .2s ease, padding-top .2s ease;
    }

    .mrm-shopify-sidebar.is-open .mrm-shopify-sidebar-panel {
        max-height: 480px;
        overflow-y: auto;
        opacity: 1;
        padding-top: 18px;
    }

    .mrm-shopify-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .mrm-shopify-products-list {
        grid-template-columns: 1fr !important;
    }

    .mrm-shopify-products-list .mrm-shopify-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .mrm-shopify-products-list .mrm-shopify-buy {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    .mrm-shopify-container {
        width: min(100% - 28px, 1160px);
    }

    .mrm-shopify-main-header {
        flex-direction: column;
    }

    .mrm-shopify-view-tools {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .mrm-shopify-products-grid {
        grid-template-columns: 1fr !important;
    }

    .mrm-shopify-products-list .mrm-shopify-card {
        display: flex;
    }

    .mrm-shopify-products-list .mrm-shopify-card-image {
        width: 100%;
    }

    .mrm-shopify-single-product {
        padding: 20px;
    }

    .mrm-shopify-single-media {
        min-height: 320px;
    }
}


@media (min-width: 360px) {

    .mrm-shopify-sidebar-toggle span::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform .2s ease;
        display: block;
    }

}

@media (min-width: 1200px) {

    .mrm-shopify-sidebar-toggle span::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform .2s ease;
        display: none;
    }

}