:root {
    --graham-blue: #075b9d;
    --graham-blue-dark: #063f70;
    --graham-green: #1eaa52;
    --graham-green-dark: #12833c;
    --graham-ink: #17324a;
    --graham-muted: #63778a;
    --graham-line: #dce6ee;
    --graham-surface: #ffffff;
    --graham-soft: #f3f7fa;
    --graham-radius: 16px;
    --graham-shadow: 0 14px 38px rgba(18, 55, 82, 0.09);
}

/* Keep the volume-price qualifier subordinate to the card price. */
body.graham-catalog-view .graham-volume-price-prefix {
    font-size: 0.72em;
    font-weight: 600;
    white-space: nowrap;
}

.graham-catalog-view {
    background: #f6f9fb;
}

.graham-catalog-view .woocommerce-products-header,
.graham-catalog-view .wp-block-query-title {
    display: none;
}

.graham-catalog-shell {
    align-items: start;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    left: auto;
    margin: 28px 0 64px;
    max-width: none;
    position: relative;
    transform: translateX(var(--graham-catalog-center-shift, 0px));
    width: min(1440px, calc(100vw - 48px));
}

.graham-catalog-shell,
.graham-catalog-shell * {
    box-sizing: border-box;
}

.graham-catalog-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    width: auto !important;
}

.graham-sidebar-card {
    background: var(--graham-surface);
    border: 1px solid var(--graham-line);
    border-radius: var(--graham-radius);
    box-shadow: 0 8px 24px rgba(21, 59, 86, 0.06);
    padding: 22px 18px;
    position: sticky;
    top: 24px;
}

.graham-sidebar-eyebrow,
.graham-catalog-kicker,
.graham-section-heading p {
    color: var(--graham-green-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.2;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.graham-sidebar-card h2 {
    color: var(--graham-ink);
    font-size: 1.28rem;
    line-height: 1.2;
    margin: 0 0 18px;
}

.graham-product-search {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd9e3;
    border-radius: 10px;
    display: flex;
    margin: 0;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.graham-product-search:focus-within {
    border-color: var(--graham-blue);
    box-shadow: 0 0 0 3px rgba(7, 91, 157, 0.13);
}

.graham-product-search input[type="search"] {
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--graham-ink);
    flex: 1;
    font-size: 0.88rem;
    min-width: 0;
    outline: 0;
    padding: 10px 8px 10px 12px;
}

.graham-product-search input[type="search"]::placeholder {
    color: #8293a2;
}

.graham-product-search button {
    align-items: center;
    align-self: stretch;
    background: var(--graham-blue);
    border: 0;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin: 0;
    min-width: 42px;
    padding: 0 12px;
}

.graham-product-search button:hover,
.graham-product-search button:focus-visible {
    background: var(--graham-blue-dark);
}

.graham-product-search svg {
    fill: currentColor;
    height: 19px;
    width: 19px;
}

.graham-category-navigation {
    margin-top: 18px;
}

.graham-category-tree,
.graham-category-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.graham-category-tree li {
    margin: 2px 0;
}

.graham-category-tree a {
    align-items: center;
    border-radius: 8px;
    color: #355166;
    display: flex;
    font-size: 0.9rem;
    font-weight: 650;
    gap: 8px;
    justify-content: space-between;
    line-height: 1.25;
    padding: 8px 9px;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.graham-category-tree a:hover,
.graham-category-tree a:focus-visible {
    background: #eef6fb;
    color: var(--graham-blue-dark);
    transform: translateX(2px);
}

.graham-category-tree .is-current > a {
    background: var(--graham-blue);
    color: #fff;
}

.graham-category-tree .is-in-path:not(.is-current) > a {
    color: var(--graham-blue-dark);
}

.graham-category-tree small {
    background: #edf3f7;
    border-radius: 999px;
    color: #698093;
    font-size: 0.68rem;
    font-weight: 750;
    min-width: 24px;
    padding: 3px 6px;
    text-align: center;
}

.graham-category-tree .is-current > a small {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.graham-category-tree ul {
    border-left: 1px solid #dbe6ed;
    margin: 3px 0 6px 12px;
    padding-left: 8px;
}

.graham-category-tree ul a {
    font-size: 0.83rem;
    padding-bottom: 7px;
    padding-top: 7px;
}

.graham-catalog-main {
    grid-column: 2 !important;
    grid-row: 1 !important;
    max-width: none !important;
    min-width: 0;
    width: auto !important;
}

.graham-catalog-intro {
    align-items: center;
    background: linear-gradient(120deg, #f4fbff 0%, #effaf3 100%);
    border: 1px solid #d9e9ee;
    border-radius: var(--graham-radius);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    margin-bottom: 24px;
    overflow: hidden;
    padding: 28px 30px;
    position: relative;
}

.graham-catalog-intro::after {
    background: rgba(30, 170, 82, 0.09);
    border-radius: 999px;
    content: "";
    height: 170px;
    position: absolute;
    right: -58px;
    top: -78px;
    width: 170px;
}

.graham-catalog-intro > * {
    position: relative;
    z-index: 1;
}

.graham-catalog-intro h1 {
    color: var(--graham-ink);
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 9px;
}

.graham-catalog-intro p:not(.graham-catalog-kicker) {
    color: var(--graham-muted);
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0;
    max-width: 660px;
}

.graham-catalog-search .graham-catalog-intro {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    margin-bottom: 18px;
    padding: 20px 24px;
}

.graham-catalog-search .graham-catalog-intro h1 {
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
}

.graham-catalog-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.graham-category-directory-actions {
    margin: -10px 0 22px;
    width: 100%;
}

.graham-category-directory-filters {
    margin: -10px 0 22px;
    width: 100%;
}

.graham-category-directory-filter {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd9e3;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--graham-blue-dark);
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
    width: 100%;
}

.graham-category-directory-filter span:last-child {
    font-size: 1.15rem;
    line-height: 1;
    margin-left: 8px;
}

.graham-category-directory-filter:hover,
.graham-category-directory-filter:focus-visible {
    background: #f1f7fa;
    border-color: var(--graham-blue);
    color: var(--graham-blue-dark);
    text-decoration: none;
}

.graham-catalog-view-switch {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.graham-view-switch-label {
    color: var(--graham-muted);
    font-size: 0.76rem;
    font-weight: 750;
    margin-right: 2px;
    text-transform: uppercase;
}

.graham-catalog-view-switch button {
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #cbdde7;
    border-radius: 8px;
    color: #526b7d;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 750;
    gap: 6px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 34px;
    padding: 7px 10px;
}

.graham-catalog-view-switch button:hover,
.graham-catalog-view-switch button:focus-visible {
    border-color: var(--graham-blue);
    color: var(--graham-blue-dark);
}

.graham-catalog-view-switch button.is-active {
    background: var(--graham-blue);
    border-color: var(--graham-blue);
    color: #fff;
}

.graham-catalog-view-switch svg {
    fill: currentColor;
    height: 15px;
    width: 15px;
}

.graham-catalog-panel-switches {
    align-items: center;
    display: flex;
    gap: 4px;
}

.graham-catalog-panel-switches button {
    align-items: center;
    background: #fff;
    border: 1px solid #cbdde7;
    border-radius: 6px;
    color: #526b7d;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 750;
    gap: 5px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 32px;
    padding: 6px 8px;
}

.graham-catalog-panel-switches button:hover,
.graham-catalog-panel-switches button:focus-visible,
.graham-catalog-panel-switches button[aria-pressed="false"] {
    border-color: var(--graham-blue);
    color: var(--graham-blue-dark);
}

.graham-catalog-panel-switches button[aria-pressed="false"] {
    background: #eef6fb;
}

.graham-catalog-panel-switches svg {
    fill: currentColor;
    height: 14px;
    width: 14px;
}

@media (min-width: 961px) {
    .graham-catalog-shell.graham-catalog-tree-hidden {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-catalog-shell.graham-catalog-tree-hidden .graham-catalog-sidebar {
        display: none !important;
    }

    .graham-catalog-shell.graham-catalog-tree-hidden .graham-catalog-main {
        grid-column: 1 !important;
    }

    .graham-catalog-shell.graham-catalog-tree-hidden.graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-shell.graham-catalog-tree-hidden.graham-catalog-grid-view .graham-catalog-main ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .graham-catalog-shell.graham-catalog-filters-hidden .graham-catalog-filter-panel {
        display: none !important;
    }
}

/* 0.13.401: retain empty tracks so short rows keep the normal tile width. */
@media (min-width: 961px) {
    body.graham-catalog-view .graham-catalog-shell {
        width: min(1880px, calc(100vw - 48px), calc(80vw + 288px));
    }

    body.graham-catalog-view .graham-catalog-shell.graham-catalog-tree-hidden,
    body.graham-shop-landing.graham-catalog-view .graham-catalog-shell {
        width: min(1592px, 80vw);
    }

    body.graham-catalog-view .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main ul.products,
    body.graham-catalog-view .graham-category-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(275px, 290px)) !important;
        justify-content: start !important;
    }
}

@media (max-width: 960px) {
    .graham-catalog-panel-switches {
        display: none;
    }
}

.graham-catalog-filters {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #cbdde7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px 16px;
}

.graham-catalog-intro .graham-filter-heading {
    color: var(--graham-ink) !important;
    font-size: 0.82rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

.graham-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.graham-filter-option {
    align-items: center;
    color: var(--graham-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 7px;
    line-height: 1.3;
}

.graham-filter-option input {
    accent-color: var(--graham-blue);
    height: 17px;
    margin: 0;
    width: 17px;
}

.graham-filter-option.is-disabled {
    color: #8a99a5;
    cursor: not-allowed;
}

.graham-catalog-intro .graham-filter-note {
    color: #728594 !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.graham-catalog-filters button {
    background: var(--graham-blue);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 750;
    margin: 0;
    padding: 8px 13px;
}

.graham-catalog-filters button:hover,
.graham-catalog-filters button:focus-visible {
    background: var(--graham-blue-dark);
}

.graham-category-card-section {
    margin: 0 0 30px;
}

.graham-section-heading {
    margin-bottom: 14px;
}

.graham-section-heading h2 {
    color: var(--graham-ink);
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0;
}

.graham-category-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.graham-category-card {
    background: var(--graham-surface);
    border: 1px solid var(--graham-line);
    border-radius: 14px;
    color: var(--graham-ink);
    display: grid;
    grid-template-rows: 168px auto;
    min-height: 232px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.graham-category-card:hover,
.graham-category-card:focus-visible {
    border-color: #a8cfe3;
    box-shadow: var(--graham-shadow);
    transform: translateY(-4px);
}

.graham-category-card-media {
    align-items: center;
    aspect-ratio: 3 / 2;
    background: #edf3f6;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

@media (min-width: 701px) {
    body.graham-catalog-view .graham-category-card,
    body.graham-shop-landing .graham-catalog-home .graham-category-card {
        grid-template-rows: auto auto !important;
    }
}

.graham-category-card-media img {
    height: 100%;
    max-height: 100%;
    max-width: none;
    object-fit: cover !important;
    object-position: center;
    padding: 0;
    transition: transform 180ms ease;
    width: 100%;
}

.graham-category-card:hover .graham-category-card-media img,
.graham-category-card:focus-visible .graham-category-card-media img {
    transform: scale(1.035);
}

.graham-category-card-placeholder {
    align-items: center;
    background: linear-gradient(145deg, var(--graham-blue), #1f82bf);
    border-radius: 22px;
    color: #fff;
    display: flex;
    font-size: 3rem;
    font-weight: 800;
    height: 86px;
    justify-content: center;
    line-height: 1;
    width: 86px;
}

.graham-category-card-copy {
    background: var(--graham-blue);
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    min-height: 64px;
    padding: 11px 42px 12px 16px;
}

.graham-category-card-copy strong {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.25;
}

.graham-category-card-copy small {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.72rem;
    font-weight: 750;
}

.graham-category-card-arrow {
    bottom: 17px;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    right: 16px;
}

.graham-catalog-main .wc-block-product-template,
.graham-catalog-main ul.products {
    align-items: start;
    clear: both;
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    list-style: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

/* Prevent legacy WooCommerce clearfix elements from occupying product-grid cells. */
.graham-catalog-main ul.products::before,
.graham-catalog-main ul.products::after {
    content: none !important;
    display: none !important;
}

.graham-catalog-main .wc-block-product,
.graham-catalog-main ul.products li.product {
    background: var(--graham-surface);
    border: 1px solid var(--graham-line);
    border-radius: 14px;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    min-width: 0;
    overflow: hidden;
    padding: 14px !important;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: auto !important;
}

.graham-catalog-main .wc-block-product:hover,
.graham-catalog-main ul.products li.product:hover {
    border-color: #b3d2e2;
    box-shadow: var(--graham-shadow);
    transform: translateY(-4px);
}

.graham-catalog-main .wc-block-components-product-image {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    margin: 0 0 14px !important;
    overflow: hidden;
    width: 100% !important;
}

.graham-catalog-main .wc-block-components-product-image > a,
.graham-catalog-main .wc-block-components-product-image > figure,
.graham-catalog-main .wc-block-components-product-image figure > a {
    align-items: center;
    background: #fff;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.graham-catalog-main .wc-block-components-product-image img {
    background: #fff;
    height: 100% !important;
    margin: 0 !important;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain !important;
    object-position: center;
    padding: 12px;
    width: 100% !important;
}

.graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 10px;
    height: auto !important;
    margin: 0 0 14px !important;
    max-height: none;
    max-width: 100%;
    object-fit: contain !important;
    object-position: center;
    padding: 12px;
    width: 100% !important;
}

.graham-catalog-main .wc-block-components-product-title,
.graham-catalog-main .woocommerce-loop-product__title {
    color: var(--graham-blue-dark);
    font-size: 0.93rem !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
    min-width: 0;
    overflow-wrap: anywhere;
    text-transform: none;
}

.graham-product-sku {
    color: var(--graham-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.graham-loop-product-sku {
    margin: -2px 0 9px;
}

.graham-product-sku-label {
    font-weight: 600;
}

.graham-product-sku-value {
    color: var(--graham-ink);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.graham-catalog-main .graham-card-identity {
    align-items: center;
    display: flex;
    min-width: 0;
    width: 100%;
}

.graham-catalog-main .graham-card-identity .graham-loop-product-sku {
    flex: 1 1 auto;
    margin: 0 !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graham-catalog-main .graham-card-manufacturer {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dce6eb;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    height: 36px;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 90px;
    z-index: 3;
}

.graham-catalog-main .graham-card-manufacturer-logo {
    display: block;
    height: 100% !important;
    margin: 0 !important;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0 !important;
    width: 100% !important;
}

/* Center the product in the clear area beside the overlaid brand mark. */
@media (min-width: 560px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product:has(.graham-card-manufacturer) > .wc-block-components-product-image img,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product:has(.graham-card-manufacturer) .woocommerce-LoopProduct-link img {
        box-sizing: border-box;
        object-position: center !important;
        padding: 8px 102px 8px 8px !important;
    }
}

.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-title,
.graham-catalog-list-view .graham-catalog-main .woocommerce-loop-product__title {
    padding-right: 96px;
}

.graham-catalog-main .wc-block-components-product-price,
.graham-catalog-main .price {
    color: var(--graham-ink) !important;
    font-size: 0.95rem !important;
    font-weight: 750;
    margin: 0 0 8px !important;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.graham-catalog-main .stock,
.graham-catalog-main mark[class*="graham-availability"] {
    background: transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1.1;
    margin: 2px 0 10px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 5px 9px;
    white-space: normal;
    width: fit-content;
}

.graham-catalog-main .graham-availability-in-stock {
    background: #e9f8ee;
    color: #15783a;
}

.graham-catalog-main .graham-availability-restocking {
    background: #eaf4fb;
    color: #155f91;
}

.graham-catalog-main .graham-availability-recent-sale {
    background: #eef7f4;
    color: #17634d;
}

.graham-catalog-main .graham-availability-discontinued {
    background: #b42318;
    color: #fff;
}

.graham-catalog-main .graham-availability-regular-stock {
    background: #eaf4fb;
    color: #155f91;
}

.graham-catalog-main .graham-availability-special-order {
    background: #fff5dd;
    color: #8a5a00;
}

.graham-availability-with-help {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    margin: 2px 0 10px;
    max-width: 100%;
    min-width: 0;
    position: relative;
    width: fit-content;
}

.graham-availability-with-help > .stock {
    margin: 0 !important;
}

.graham-availability-help {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
}

.graham-availability-help-button {
    align-items: center;
    background: #fff;
    border: 1px solid #0b66ad;
    border-radius: 50%;
    color: #0b66ad;
    cursor: help;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    height: 20px;
    justify-content: center;
    line-height: 1;
    min-height: 20px;
    padding: 0;
    width: 20px;
}

.graham-availability-help-button:hover,
.graham-availability-help-button:focus-visible {
    background: #0b66ad;
    color: #fff;
    outline: 2px solid rgba(11, 102, 173, 0.22);
    outline-offset: 2px;
}

.graham-availability-help-text {
    background: #15344c;
    border-radius: 4px;
    bottom: calc(100% + 7px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 650;
    left: 0;
    line-height: 1.35;
    opacity: 0;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    visibility: hidden;
    white-space: normal;
    width: min(220px, calc(100vw - 32px));
    z-index: 30;
}

.graham-availability-help:hover .graham-availability-help-text,
.graham-availability-help:focus-within .graham-availability-help-text {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (max-width: 700px) {
    body.graham-catalog-view .graham-availability-help-text {
        left: auto;
        right: 0;
    }
}

.graham-catalog-main .wp-block-button,
.graham-catalog-main .wp-block-woocommerce-product-button,
.graham-catalog-main ul.products li.product .button {
    margin-top: auto !important;
}

.graham-catalog-main .wp-block-button__link,
.graham-catalog-main .wc-block-components-product-button__button,
.graham-catalog-main ul.products li.product .button {
    background: var(--graham-green) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    justify-content: center;
    line-height: 1.2 !important;
    padding: 10px 14px !important;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 150ms ease, transform 150ms ease;
    width: 100%;
}

.graham-catalog-main .wp-block-button__link:hover,
.graham-catalog-main .wc-block-components-product-button__button:hover,
.graham-catalog-main ul.products li.product .button:hover {
    background: var(--graham-green-dark) !important;
}

body.single-product div.product .woocommerce-product-gallery {
    box-sizing: border-box;
    display: block !important;
    max-width: 600px !important;
    opacity: 1 !important;
    overflow: hidden;
    visibility: visible !important;
    width: 100%;
}

body.single-product div.product .woocommerce-product-gallery__image,
body.single-product div.product .woocommerce-product-gallery__image > a {
    background: #fff;
    max-width: 600px;
    width: 100%;
}

body.single-product div.product .woocommerce-product-gallery .flex-viewport,
body.single-product div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    height: auto !important;
    max-height: 600px;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

body.single-product div.product .woocommerce-product-gallery .flex-viewport > .woocommerce-product-gallery__wrapper {
    height: 100% !important;
}

body.single-product div.product .woocommerce-product-gallery__image {
    height: 100% !important;
}

body.single-product div.product .woocommerce-product-gallery__image > a {
    align-items: center;
    background: #fff;
    display: flex;
    height: 100% !important;
    justify-content: center;
    min-height: 0;
}

body.single-product div.product .woocommerce-product-gallery__image img:not(.zoomImg),
body.single-product div.product .woocommerce-product-gallery img.wp-post-image:not(.zoomImg) {
    background: #fff;
    display: block !important;
    height: 100% !important;
    margin: 0 auto;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    clear: both;
    display: grid !important;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    list-style: none;
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
    aspect-ratio: 1;
    background: #fff;
    border: 2px solid #d8e1e6;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: auto;
    object-fit: contain;
    opacity: 0.72;
    padding: 4px;
    transition: border-color 150ms ease, opacity 150ms ease;
    width: 100%;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img:hover,
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    border-color: var(--graham-green);
    opacity: 1;
}

body.single-product div.product form.cart,
body.single-product div.product form.cart .variations_button {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.single-product div.product form.cart .quantity,
body.single-product div.product form.cart .variations_button .quantity {
    flex: 0 0 88px;
    float: none !important;
    margin: 0 !important;
    max-width: 88px;
    min-width: 88px;
    width: 88px !important;
}

body.single-product div.product form.cart .quantity .qty {
    appearance: auto;
    -webkit-appearance: auto;
    background: #fff;
    border: 1px solid #9eb8c8;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--graham-ink);
    font-size: 1rem;
    font-weight: 700;
    height: 48px;
    line-height: 48px;
    margin: 0;
    max-width: none;
    min-width: 88px;
    padding: 0 8px;
    text-align: center;
    width: 88px !important;
}

body.single-product div.product form.cart .quantity .qty::-webkit-inner-spin-button,
body.single-product div.product form.cart .quantity .qty::-webkit-outer-spin-button {
    min-height: 36px;
    min-width: 20px;
    opacity: 1;
}

body.single-product div.product form.cart .single_add_to_cart_button {
    min-height: 48px;
}

@media (max-width: 560px) {
    body.single-product div.product .woocommerce-product-gallery {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery .flex-viewport {
        min-height: 0;
        width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery__image {
        box-sizing: border-box;
        height: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    body.single-product div.product .woocommerce-product-gallery__image > a {
        box-sizing: border-box;
        height: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery__image img:not(.zoomImg),
    body.single-product div.product .woocommerce-product-gallery img.wp-post-image:not(.zoomImg) {
        height: 100% !important;
        max-height: none !important;
        max-width: 100% !important;
        object-fit: contain !important;
        width: 100% !important;
    }

    .graham-catalog-main .wc-block-components-product-image {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .graham-catalog-main .wc-block-components-product-image img,
    .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.single-product div.product form.cart .quantity,
    body.single-product div.product form.cart .variations_button .quantity,
    body.single-product div.product form.cart .quantity .qty {
        flex-basis: 80px;
        max-width: 80px;
        min-width: 80px;
        width: 80px !important;
    }

    body.single-product div.product form.cart .single_add_to_cart_button {
        flex: 1 1 150px;
    }
}

.graham-catalog-list-view .graham-catalog-main .wc-block-product-template,
.graham-catalog-list-view .graham-catalog-main ul.products {
    gap: 10px !important;
    grid-template-columns: 1fr !important;
}

.graham-catalog-list-view .graham-catalog-main .wc-block-product,
.graham-catalog-list-view .graham-catalog-main ul.products li.product {
    min-height: 116px;
    padding: 12px !important;
    transform: none;
}

.graham-catalog-list-view .graham-catalog-main .wc-block-product {
    align-items: start;
    column-gap: 14px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto;
}

.graham-catalog-list-view .graham-catalog-main .wc-block-product > * {
    grid-column: 2;
    min-width: 0;
}

.graham-catalog-list-view .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
    align-self: start;
    grid-column: 1;
    grid-row: 1 / span 8;
}

.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image {
    height: 92px;
    margin: 0 !important;
    width: 92px !important;
}

.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image img {
    padding: 5px;
}

.graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link {
    color: inherit;
    column-gap: 14px;
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    text-decoration: none;
    width: 100%;
}

.graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link > * {
    grid-column: 2;
    min-width: 0;
}

.graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link > img {
    grid-column: 1;
    grid-row: 1 / span 8;
}

.graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
    height: 92px !important;
    margin: 0 !important;
    padding: 5px;
    width: 92px !important;
}

.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-title,
.graham-catalog-list-view .graham-catalog-main .woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
}

.graham-catalog-list-view .graham-catalog-main .graham-loop-product-sku,
.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-price,
.graham-catalog-list-view .graham-catalog-main .price {
    margin-bottom: 4px !important;
}

.graham-catalog-list-view .graham-catalog-main .stock,
.graham-catalog-list-view .graham-catalog-main mark[class*="graham-availability"] {
    margin: 1px 0 7px;
    padding: 4px 8px;
}

.graham-catalog-list-view .graham-catalog-main .wp-block-button,
.graham-catalog-list-view .graham-catalog-main .wp-block-woocommerce-product-button {
    justify-self: start;
}

.graham-catalog-list-view .graham-catalog-main .wp-block-button__link,
.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-button__button,
.graham-catalog-list-view .graham-catalog-main ul.products li.product .button {
    display: inline-flex !important;
    margin-left: 106px !important;
    margin-top: 6px !important;
    padding: 8px 12px !important;
    width: auto !important;
}

.graham-catalog-list-view .graham-catalog-main .wp-block-button__link,
.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-button__button {
    margin-left: 0 !important;
}

.graham-catalog-main .woocommerce-result-count {
    color: var(--graham-muted);
    float: none;
    font-size: 0.88rem;
    margin: 0 0 14px;
}

.graham-catalog-main .woocommerce-ordering {
    float: none;
    margin: 0 0 18px auto;
    width: fit-content;
}

.graham-catalog-main .woocommerce-ordering select {
    background: #fff;
    border: 1px solid #cbd9e3;
    border-radius: 8px;
    color: var(--graham-ink);
    font-size: 0.86rem;
    padding: 9px 34px 9px 11px;
}

.graham-catalog-main .woocommerce-pagination {
    margin-top: 28px;
}

.graham-catalog-main .woocommerce-pagination ul.page-numbers {
    border: 0;
    display: flex;
    gap: 7px;
    justify-content: center;
}

.graham-catalog-main .woocommerce-pagination ul.page-numbers li {
    border: 0;
}

.graham-catalog-main .woocommerce-pagination .page-numbers a,
.graham-catalog-main .woocommerce-pagination .page-numbers span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--graham-line);
    border-radius: 8px;
    color: var(--graham-blue-dark);
    display: flex;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 10px;
}

.graham-catalog-main .woocommerce-pagination .page-numbers .current {
    background: var(--graham-blue);
    border-color: var(--graham-blue);
    color: #fff;
}

.graham-mobile-category-nav {
    display: none !important;
}

/* Search results show products only. The category tree and filter remain. */
body.graham-catalog-search .graham-category-card-section,
body.graham-catalog-search .woocommerce-loop-category,
body.graham-catalog-search li.product-category,
body.graham-catalog-search .wc-block-product-category,
body.graham-catalog-search .wc-block-product-categories,
body.graham-catalog-search .wc-block-product-categories-list,
body.graham-catalog-search .wp-block-woocommerce-product-categories {
    display: none !important;
}

@media (max-width: 1240px) {
    .graham-category-card-grid,
    .graham-catalog-main .wc-block-product-template,
    .graham-catalog-main ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .graham-catalog-intro {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    }
}

@media (max-width: 960px) {
    .graham-catalog-shell {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 18px;
        transform: none;
        width: min(100% - 24px, 900px);
    }

    .graham-catalog-sidebar {
        display: none;
    }

    .graham-mobile-category-nav {
        box-sizing: border-box;
        display: block !important;
        margin-bottom: 16px;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    .graham-mobile-category-nav details {
        background: #fff;
        border: 1px solid var(--graham-line);
        border-radius: 12px;
        box-shadow: 0 7px 20px rgba(21, 59, 86, 0.06);
        max-width: 100%;
        overflow: hidden;
        width: 100%;
    }

    .graham-mobile-category-picker {
        background: #fff;
        border: 1px solid var(--graham-line);
        border-radius: 12px;
        box-shadow: 0 7px 20px rgba(21, 59, 86, 0.06);
        display: grid !important;
        gap: 10px;
        padding: 12px 14px;
    }

    .graham-mobile-category-picker label,
    .graham-mobile-category-picker label > span {
        display: block;
    }

    .graham-mobile-category-picker label > span {
        color: var(--graham-blue-dark);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
        text-transform: uppercase;
    }

    .graham-mobile-category-picker select {
        background-color: var(--graham-blue);
        border: 1px solid var(--graham-blue);
        border-radius: 8px;
        box-sizing: border-box;
        color: #fff;
        font-size: 1rem;
        font-weight: 750;
        min-height: 48px;
        width: 100%;
    }

    .graham-mobile-category-picker select option {
        background: var(--graham-blue);
        color: #fff;
    }

    .graham-mobile-category-active {
        background: var(--graham-green-dark);
        border-radius: 8px;
        color: #fff;
        display: grid;
        gap: 2px;
        padding: 10px 12px;
    }

    .graham-mobile-category-active span {
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .graham-mobile-category-active strong {
        color: #fff;
        font-size: 1rem;
        line-height: 1.25;
    }

    .graham-mobile-category-back {
        align-items: center;
        border: 1px solid #b9cad5;
        border-radius: 8px;
        color: var(--graham-blue-dark);
        display: flex;
        font-size: 0.82rem;
        font-weight: 750;
        justify-content: center;
        min-height: 42px;
        padding: 8px 11px;
        text-decoration: none;
    }

    .graham-mobile-category-nav summary {
        color: var(--graham-blue-dark);
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 750;
        line-height: 1.25;
        list-style: none;
        overflow-wrap: anywhere;
        padding: 15px 52px 15px 18px;
        position: relative;
        width: 100%;
    }

    .graham-mobile-category-nav summary::-webkit-details-marker {
        display: none;
    }

    .graham-mobile-category-nav summary::after {
        content: "+";
        font-size: 1.25rem;
        position: absolute;
        right: 18px;
        top: 12px;
    }

    .graham-mobile-category-nav details[open] summary::after {
        content: "-";
    }

    .graham-category-navigation-mobile {
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--graham-line);
        margin: 0;
        max-height: 62vh;
        max-height: min(62dvh, 520px);
        max-width: 100%;
        overscroll-behavior: contain;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 12px;
        scrollbar-gutter: stable;
        width: 100%;
    }

    .graham-category-navigation-mobile .graham-category-tree,
    .graham-category-navigation-mobile .graham-category-tree li,
    .graham-category-navigation-mobile .graham-category-tree a {
        max-width: 100%;
        min-width: 0;
    }

    .graham-category-navigation-mobile .graham-category-tree a > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .graham-category-navigation-mobile .graham-category-tree a > small {
        flex: 0 0 auto;
    }

    .graham-catalog-intro,
    .graham-catalog-search .graham-catalog-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-catalog-intro > div,
    .graham-catalog-tools {
        min-width: 0;
    }

    .graham-catalog-filters {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .graham-catalog-view .woocommerce-breadcrumb,
    .graham-catalog-view .wc-block-breadcrumbs,
    .graham-catalog-view .wp-block-woocommerce-breadcrumbs {
        display: none !important;
    }

    .graham-catalog-shell {
        margin: 8px auto 24px;
        max-width: calc(100% - 14px);
        transform: none;
        width: calc(100% - 14px);
    }

    .graham-catalog-main,
    .graham-catalog-main .wc-block-product-template,
    .graham-catalog-main ul.products,
    .graham-catalog-main .wc-block-product,
    .graham-catalog-main ul.products li.product,
    .graham-catalog-main .wc-block-product > *,
    .graham-catalog-main ul.products li.product > * {
        max-width: 100%;
        min-width: 0;
    }

    .graham-mobile-category-nav {
        margin-bottom: 10px;
    }

    .graham-mobile-category-nav summary {
        font-size: 0.86rem;
        padding: 11px 46px 11px 14px;
    }

    .graham-mobile-category-nav summary::after {
        right: 14px;
        top: 8px;
    }

    .graham-catalog-intro,
    .graham-catalog-search .graham-catalog-intro {
        display: block;
        gap: 10px;
        margin-bottom: 12px;
        padding: 14px;
    }

    .graham-catalog-intro::after {
        height: 100px;
        right: -46px;
        top: -54px;
        width: 100px;
    }

    .graham-catalog-intro h1,
    .graham-catalog-search .graham-catalog-intro h1 {
        font-size: clamp(1.25rem, 6.2vw, 1.55rem);
        line-height: 1.08;
        margin-bottom: 0;
        overflow-wrap: anywhere;
    }

    .graham-catalog-intro > div:first-child > p:not(.graham-catalog-kicker) {
        display: none;
    }

    .graham-catalog-kicker {
        font-size: 0.63rem;
        margin-bottom: 4px;
    }

    .graham-catalog-tools {
        gap: 8px;
        margin-top: 12px;
        width: 100%;
    }

    .graham-catalog-view-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
    }

    .graham-view-switch-label {
        display: none;
    }

    .graham-catalog-view-switch button {
        min-height: 32px;
        padding: 6px 9px;
        width: 100%;
    }

    .graham-catalog-filters {
        align-items: center;
        display: grid;
        flex-direction: row;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 9px 10px;
    }

    .graham-catalog-intro .graham-filter-heading,
    .graham-catalog-intro .graham-filter-note,
    .graham-filter-option.is-disabled {
        display: none;
    }

    .graham-filter-options {
        min-width: 0;
    }

    .graham-filter-option {
        font-size: 0.78rem;
    }

    .graham-catalog-filters button {
        flex: 0 0 auto;
        font-size: 0.75rem;
        padding: 7px 10px;
        white-space: nowrap;
    }

    .graham-category-card-section {
        margin-bottom: 16px;
    }

    .graham-section-heading {
        margin-bottom: 9px;
    }

    .graham-section-heading h2 {
        font-size: 1.12rem;
    }

    .graham-category-card-grid,
    .graham-catalog-main .wc-block-product-template,
    .graham-catalog-main ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .graham-category-card {
        grid-template-rows: 138px auto;
        min-height: 202px;
    }

    .graham-catalog-main .wc-block-product-template,
    .graham-catalog-main ul.products {
        gap: 6px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-list-view .graham-catalog-main ul.products {
        gap: 6px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product,
    .graham-catalog-grid-view .graham-catalog-main ul.products li.product {
        align-self: start;
        border-radius: 11px;
        height: auto;
        padding: 7px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image,
    .graham-catalog-grid-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        aspect-ratio: auto;
        height: clamp(120px, 36vw, 150px) !important;
        margin-bottom: 6px !important;
        max-height: 150px;
        min-height: 120px;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image img,
    .graham-catalog-grid-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        padding: 6px;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-title,
    .graham-catalog-grid-view .graham-catalog-main .woocommerce-loop-product__title {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        font-size: 0.78rem !important;
        height: 2.94rem;
        line-height: 1.25 !important;
        margin-bottom: 5px !important;
        min-height: 2.94rem;
        overflow: hidden;
    }

    .graham-catalog-grid-view .graham-product-sku {
        font-size: 0.66rem;
    }

    .graham-catalog-grid-view .graham-loop-product-sku {
        margin-bottom: 5px;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-price,
    .graham-catalog-grid-view .graham-catalog-main .price {
        font-size: 0.82rem !important;
        margin-bottom: 5px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .stock,
    .graham-catalog-grid-view .graham-catalog-main mark[class*="graham-availability"] {
        font-size: 0.64rem;
        margin-bottom: 7px;
        padding: 4px 7px;
    }

    .graham-catalog-grid-view .graham-catalog-main .wp-block-button__link,
    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-button__button,
    .graham-catalog-grid-view .graham-catalog-main ul.products li.product .button {
        font-size: 0.73rem !important;
        padding: 8px 7px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product {
        border-radius: 10px;
        min-height: 100px;
        padding: 7px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link {
        column-gap: 10px;
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        height: 86px !important;
        max-height: 86px;
        min-height: 86px;
        width: 86px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-title,
    .graham-catalog-list-view .graham-catalog-main .woocommerce-loop-product__title {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        overflow: hidden;
    }

    .graham-catalog-list-view .graham-product-sku {
        font-size: 0.68rem;
    }

    .graham-catalog-list-view .graham-catalog-main .wp-block-button__link,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-button__button,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .button {
        font-size: 0.72rem !important;
        margin-left: 96px !important;
        margin-top: 4px !important;
        max-width: calc(100% - 96px);
        padding: 7px 10px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wp-block-button__link,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-button__button {
        margin-left: 0 !important;
        max-width: 100%;
    }

    .graham-catalog-main .woocommerce-result-count {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .graham-catalog-main .woocommerce-ordering {
        margin-bottom: 10px;
    }

    .graham-catalog-main .woocommerce-ordering select {
        font-size: 0.76rem;
        padding-bottom: 7px;
        padding-top: 7px;
    }
}

@media (max-width: 470px) {
    .graham-catalog-intro,
    .graham-catalog-search .graham-catalog-intro {
        border-radius: 12px;
        padding: 12px;
    }

    .graham-catalog-intro h1,
    .graham-catalog-search .graham-catalog-intro h1 {
        font-size: clamp(1.2rem, 6.4vw, 1.42rem);
    }

    .graham-catalog-tools {
        margin-top: 10px;
    }

    .graham-catalog-filters {
        padding: 8px;
    }

    .graham-filter-option {
        gap: 6px;
        white-space: normal;
    }

    .graham-catalog-filters button {
        padding-left: 9px;
        padding-right: 9px;
    }

    .graham-category-card-grid {
        grid-template-columns: 1fr !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-grid-view .graham-catalog-main ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .graham-category-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 156px auto;
        min-height: 220px;
    }

    .graham-category-card-copy {
        justify-content: center;
        min-height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .graham-category-card,
    .graham-category-card-media img,
    .graham-catalog-main .wc-block-product,
    .graham-catalog-main ul.products li.product,
    .graham-category-tree a {
        transition: none;
    }
}

/* 0.10.120: full-width mobile catalogue controls and accordion navigation. */
@media (max-width: 700px) {
    body.graham-catalog-view {
        --graham-mobile-blue: #075da8;
        --graham-mobile-blue-dark: #064677;
        --graham-mobile-green: #12833c;
        --graham-mobile-divider: rgba(255, 255, 255, 0.88);
    }

    body.graham-catalog-view .graham-mobile-category-nav,
    body.graham-catalog-view .graham-mobile-category-menu,
    body.graham-catalog-view .graham-mobile-category-menu-body,
    body.graham-catalog-view .graham-catalog-main,
    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-tools,
    body.graham-catalog-view .graham-catalog-toolbar,
    body.graham-catalog-view .graham-product-search,
    body.graham-catalog-view .graham-catalog-filter-panel,
    body.graham-catalog-view .graham-catalog-filters,
    body.graham-catalog-view .graham-filter-selects,
    body.graham-catalog-view .graham-filter-options,
    body.graham-catalog-view .graham-filter-actions,
    body.graham-catalog-view .woocommerce-notices-wrapper,
    body.graham-catalog-view .woocommerce-info,
    body.graham-catalog-view .woocommerce-message,
    body.graham-catalog-view .woocommerce-error,
    body.graham-catalog-view .wc-block-product-template,
    body.graham-catalog-view ul.products,
    body.graham-catalog-view .wc-block-product,
    body.graham-catalog-view ul.products li.product {
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-mobile-category-nav {
        border-radius: 10px !important;
        margin-bottom: 10px;
        overflow: hidden;
    }

    body.graham-catalog-view .graham-mobile-category-menu,
    body.graham-catalog-view .graham-mobile-category-item > details {
        border: 0;
        border-radius: 0;
        margin: 0;
        overflow: hidden;
        padding: 0;
    }

    body.graham-catalog-view .graham-mobile-category-menu > summary,
    body.graham-catalog-view .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-leaf,
    body.graham-catalog-view .graham-mobile-category-all,
    body.graham-catalog-view .graham-mobile-category-view {
        align-items: center;
        background: var(--graham-mobile-blue);
        border: 0;
        border-bottom: 1px solid var(--graham-mobile-divider);
        border-radius: 0;
        box-sizing: border-box;
        color: #fff !important;
        cursor: pointer;
        display: flex;
        font-size: 1rem;
        font-weight: 800;
        gap: 10px;
        justify-content: space-between;
        line-height: 1.25;
        list-style: none;
        margin: 0;
        min-height: 50px;
        padding: 12px 15px;
        text-align: left;
        text-decoration: none !important;
        width: 100%;
    }

    body.graham-catalog-view .graham-mobile-category-menu > summary {
        background: var(--graham-mobile-blue-dark);
        font-size: 1.05rem;
        min-height: 54px;
    }

    body.graham-catalog-view .graham-mobile-category-menu > summary::-webkit-details-marker,
    body.graham-catalog-view .graham-mobile-category-item > details > summary::-webkit-details-marker {
        display: none;
    }

    body.graham-catalog-view .graham-mobile-category-menu > summary::after,
    body.graham-catalog-view .graham-mobile-category-item > details > summary::after {
        content: "+";
        flex: 0 0 auto;
        font-size: 1.35rem;
        line-height: 1;
        margin-left: auto;
    }

    body.graham-catalog-view .graham-mobile-category-menu[open] > summary::after,
    body.graham-catalog-view .graham-mobile-category-item > details[open] > summary::after {
        content: "-";
    }

    body.graham-catalog-view .graham-mobile-category-item > details[open] > summary {
        background: var(--graham-mobile-blue-dark);
    }

    body.graham-catalog-view .graham-mobile-category-item.is-current > details > summary,
    body.graham-catalog-view .graham-mobile-category-leaf.is-current,
    body.graham-catalog-view .graham-mobile-category-all.is-current,
    body.graham-catalog-view .graham-mobile-category-view.is-current {
        background: var(--graham-mobile-green);
    }

    body.graham-catalog-view .graham-mobile-category-menu-body,
    body.graham-catalog-view .graham-mobile-category-children {
        background: #eef5f9;
        margin: 0;
        padding: 0;
    }

    body.graham-catalog-view .graham-mobile-category-accordion,
    body.graham-catalog-view .graham-mobile-category-accordion ul {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body.graham-catalog-view .graham-mobile-category-item {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body.graham-catalog-view .graham-mobile-category-level-1 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-1 > .graham-mobile-category-item > .graham-mobile-category-leaf {
        background: #126eb5;
        padding-left: 26px;
    }

    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > .graham-mobile-category-leaf {
        background: #1b79ba;
        padding-left: 38px;
    }

    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > .graham-mobile-category-leaf {
        background: #2784bf;
        padding-left: 50px;
    }

    body.graham-catalog-view .graham-mobile-category-item.is-current > details > summary,
    body.graham-catalog-view .graham-mobile-category-leaf.is-current {
        background: var(--graham-mobile-green) !important;
    }

    body.graham-catalog-view .graham-mobile-category-item small {
        background: rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        color: #fff;
        flex: 0 0 auto;
        font-size: 0.72rem;
        padding: 3px 7px;
    }

    body.graham-catalog-view .graham-mobile-category-view {
        background: #e7f1f7;
        border-bottom-color: #b8cfdd;
        color: var(--graham-mobile-blue-dark) !important;
        font-size: 0.86rem;
        min-height: 44px;
        padding-left: 27px;
    }

    body.graham-catalog-view .graham-mobile-category-view.is-current {
        color: #fff !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel > summary {
        background: var(--graham-mobile-blue) !important;
        border-color: var(--graham-mobile-blue) !important;
        color: #fff !important;
        min-height: 48px;
        padding: 11px 14px;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] > summary {
        background: var(--graham-mobile-green) !important;
        border-color: var(--graham-mobile-green) !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel > summary small {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] > .graham-catalog-filters {
        border-color: #b8cfdd;
        padding: 10px !important;
    }

    body.graham-catalog-view .graham-filter-option {
        background: #eef5f9;
        border: 1px solid #c6d8e4;
        border-radius: 7px;
        box-sizing: border-box;
        min-height: 44px;
        padding: 10px;
        width: 100%;
    }

    body.graham-catalog-view .graham-filter-option:has(input:checked) {
        background: #e6f5eb;
        border-color: var(--graham-mobile-green);
        color: #0d6930;
    }

    body.graham-catalog-view .graham-product-search {
        min-height: 50px;
    }

    body.graham-catalog-view .graham-product-search button,
    body.graham-catalog-view .graham-filter-actions button,
    body.graham-catalog-view .graham-filter-actions a,
    body.graham-catalog-view .graham-catalog-view-switch button {
        min-height: 46px;
    }

    body.graham-catalog-view .graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view .graham-catalog-grid-view .graham-catalog-main ul.products,
    body.graham-catalog-view.graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    body.graham-catalog-view.graham-catalog-grid-view .graham-catalog-main ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Catalogue cards show the price itself without a redundant price-source tag. */
body.graham-catalog-view .graham-catalog-main .wc-block-product .graham-customer-price-label,
body.graham-catalog-view .graham-catalog-main ul.products li.product .graham-customer-price-label {
    display: none !important;
}

.graham-customer-price-label {
    background: #e8f8ee;
    border: 1px solid #c7ead4;
    border-radius: 999px;
    color: #087a36;
    display: inline-block;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-right: 0.35em;
    padding: 0.42em 0.62em;
    text-transform: uppercase;
    vertical-align: middle;
}

.graham-price-review {
    color: #087b36;
    font-weight: 800;
}

.graham-price-review-message {
    box-sizing: border-box;
    max-width: 620px;
    margin: 8px 0 16px;
    padding: 10px 12px;
    border-left: 4px solid var(--graham-green);
    border-radius: 4px;
    background: #effaf2;
    color: #17324d;
}

/* 0.10.14: keep catalogue navigation steady and style the login-to-price state. */
#graham-category-navigation {
    scroll-margin-top: 18px;
}

.graham-price-gated-block,
.graham-price-gated-order {
    margin: 7px 0;
}

.graham-login-to-view-price,
.graham-price-access-required {
    color: #064677;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.graham-login-to-view-price:hover,
.graham-login-to-view-price:focus-visible {
    color: #075da8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.graham-login-to-order {
    background: #075da8 !important;
    border-color: #075da8 !important;
    color: #fff !important;
}

/* 0.10.19: compact catalogue controls while preserving Add to Cart emphasis. */
.graham-product-search button,
.graham-catalog-filters button,
.graham-catalog-view-switch button,
.graham-login-to-order {
    border-radius: 6px !important;
    font-size: 0.76rem !important;
    min-height: 34px;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
}

.graham-catalog-filters,
.graham-catalog-tools,
.graham-catalog-view-switch,
.graham-price-gated-order {
    gap: 5px;
}

/* Add to Cart remains the primary catalogue action. */
.graham-catalog-main .wp-block-button__link,
.graham-catalog-main .wc-block-components-product-button__button,
.graham-catalog-main ul.products li.product .button.add_to_cart_button,
.graham-catalog-main ul.products li.product .button.ajax_add_to_cart {
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    min-height: 42px;
    padding: 9px 14px !important;
}

.graham-large-order-price-note {
    color: #667b8b;
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 4px;
}


/* 0.10.21: mobile catalogue density and image-fit pass. */
@media (max-width: 700px) {
    .graham-catalog-shell {
        margin: 6px auto 18px !important;
        max-width: 100% !important;
        padding-left: 5px;
        padding-right: 5px;
        width: 100% !important;
    }

    .graham-mobile-category-nav {
        margin-bottom: 6px;
    }

    .graham-mobile-category-nav details {
        border-radius: 9px;
    }

    .graham-mobile-category-nav summary {
        padding: 9px 40px 9px 11px;
    }

    .graham-catalog-intro,
    .graham-catalog-search .graham-catalog-intro {
        border-radius: 10px;
        margin-bottom: 7px;
        padding: 9px 10px;
    }

    .graham-catalog-tools {
        gap: 5px;
        margin-top: 7px;
    }

    .graham-catalog-filters {
        gap: 5px;
        padding: 6px 7px;
    }

    .graham-category-card-section {
        margin-bottom: 10px;
    }

    .graham-section-heading {
        margin-bottom: 6px;
    }

    .graham-catalog-main .wc-block-product-template,
    .graham-catalog-main ul.products,
    .graham-catalog-list-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-list-view .graham-catalog-main ul.products {
        gap: 4px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-product,
    .graham-catalog-grid-view .graham-catalog-main ul.products li.product {
        border-radius: 9px;
        padding: 5px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        margin-bottom: 4px !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: hidden;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image > a,
    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image > figure,
    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image figure > a {
        height: 100% !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-image img {
        box-sizing: border-box;
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        padding: 3px !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link {
        display: block !important;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .graham-catalog-grid-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        aspect-ratio: 1 / 1 !important;
        box-sizing: border-box;
        display: block !important;
        height: auto !important;
        margin-bottom: 4px !important;
        max-height: none !important;
        max-width: 100% !important;
        object-fit: contain !important;
        padding: 3px !important;
        width: 100% !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-title,
    .graham-catalog-grid-view .graham-catalog-main .woocommerce-loop-product__title {
        -webkit-line-clamp: 3;
        font-size: 0.76rem !important;
        height: auto !important;
        line-height: 1.2 !important;
        margin-bottom: 3px !important;
        min-height: 0 !important;
    }

    .graham-catalog-grid-view .graham-loop-product-sku {
        margin: 0 0 3px;
    }

    .graham-catalog-grid-view .graham-product-sku {
        font-size: 0.63rem;
        line-height: 1.2;
    }

    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-price,
    .graham-catalog-grid-view .graham-catalog-main .price {
        font-size: 0.8rem !important;
        line-height: 1.18;
        margin-bottom: 3px !important;
    }

    .graham-catalog-grid-view .graham-catalog-main .stock,
    .graham-catalog-grid-view .graham-catalog-main mark[class*="graham-availability"] {
        font-size: 0.61rem;
        margin: 1px 0 4px;
        padding: 3px 5px;
    }

    .graham-catalog-grid-view .graham-large-order-price-note {
        font-size: 0.6rem;
        line-height: 1.2;
        margin-top: 2px;
    }

    .graham-catalog-grid-view .graham-catalog-main .wp-block-button__link,
    .graham-catalog-grid-view .graham-catalog-main .wc-block-components-product-button__button,
    .graham-catalog-grid-view .graham-catalog-main ul.products li.product .button {
        min-height: 36px !important;
        padding: 7px 6px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product {
        min-height: 0;
        padding: 5px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link {
        column-gap: 7px;
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link img {
        box-sizing: border-box;
        height: 78px !important;
        max-height: 78px !important;
        min-height: 78px !important;
        object-fit: contain !important;
        padding: 2px !important;
        width: 78px !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wp-block-button__link,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-button__button,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .button {
        margin-left: 85px !important;
        max-width: calc(100% - 85px);
    }

    .graham-catalog-list-view .graham-catalog-main .wp-block-button__link,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-button__button {
        margin-left: 0 !important;
        max-width: 100%;
    }

    body.single-product div.product {
        max-width: 100% !important;
        min-width: 0;
    }

    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary {
        box-sizing: border-box;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery .flex-viewport {
        box-sizing: border-box;
        height: auto !important;
        min-height: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery__image {
        box-sizing: border-box;
        height: 100% !important;
        min-height: 0 !important;
        max-width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery__image > a {
        box-sizing: border-box;
        height: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery__image img:not(.zoomImg),
    body.single-product div.product .woocommerce-product-gallery img.wp-post-image:not(.zoomImg) {
        box-sizing: border-box;
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        padding: 4px;
        width: 100% !important;
    }
}

@media (max-width: 470px) {
    .graham-category-card-grid {
        gap: 5px;
        grid-template-columns: 1fr !important;
    }

    .graham-category-card {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-rows: 84px;
        min-height: 84px;
    }

    .graham-category-card-media {
        height: 84px;
        padding: 2px;
    }

    .graham-category-card-copy {
        min-height: 84px;
        padding: 8px 34px 8px 10px;
    }

    .graham-category-card-copy strong {
        font-size: 0.84rem;
    }

    .graham-category-card-copy small {
        font-size: 0.66rem;
    }

    .graham-category-card-arrow {
        bottom: auto;
        right: 10px;
        top: 32px;
    }
}

@media (max-width: 340px) {
    .graham-catalog-grid-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-grid-view .graham-catalog-main ul.products {
        grid-template-columns: 1fr !important;
    }
}


/* 0.10.26: compact catalogue heading, integrated results/sorting, tight breadcrumb. */
body.graham-catalog-view .wp-site-blocks main {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

.graham-catalog-view .woocommerce-breadcrumb,
.graham-catalog-view .wc-block-breadcrumbs,
.graham-catalog-view .wp-block-woocommerce-breadcrumbs {
    margin-bottom: 7px !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.graham-catalog-shell {
    margin-top: 8px;
}

/* Hide WooCommerce's standalone result controls; the same controls are rendered inside the intro card. */
.graham-catalog-view .woocommerce-result-count,
.graham-catalog-view .woocommerce-ordering {
    display: none !important;
}

.graham-catalog-intro .woocommerce-result-count,
.graham-catalog-intro .woocommerce-ordering {
    display: block !important;
}

.graham-catalog-intro {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(470px, 570px);
    margin-bottom: 12px;
    padding: 12px 16px;
}

.graham-catalog-intro::after {
    height: 110px;
    right: -42px;
    top: -54px;
    width: 110px;
}

.graham-catalog-intro h1 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 3px;
}

.graham-catalog-intro p:not(.graham-catalog-kicker) {
    font-size: 0.8rem;
    line-height: 1.3;
}

.graham-catalog-kicker {
    font-size: 0.66rem;
    margin-bottom: 4px;
}

.graham-catalog-tools {
    gap: 5px;
}

.graham-catalog-toolbar {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: space-between;
    min-width: 0;
}

.graham-catalog-toolbar-count {
    flex: 1 1 auto;
    min-width: 0;
}

.graham-catalog-toolbar-count .woocommerce-result-count {
    color: var(--graham-muted);
    float: none !important;
    font-size: 0.74rem;
    font-weight: 650;
    margin: 0 !important;
    white-space: nowrap;
}

.graham-catalog-toolbar-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.graham-catalog-toolbar-ordering .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

.graham-catalog-toolbar-ordering .woocommerce-ordering select {
    background: #fff;
    border: 1px solid #cbd9e3;
    border-radius: 7px;
    color: var(--graham-ink);
    font-size: 0.76rem;
    min-height: 30px;
    padding: 4px 27px 4px 8px;
}

.graham-catalog-view-switch {
    gap: 4px;
}

.graham-view-switch-label {
    font-size: 0.67rem;
    margin-right: 0;
}

.graham-catalog-view-switch button {
    border-radius: 7px;
    font-size: 0.7rem;
    gap: 4px;
    min-height: 30px;
    padding: 5px 7px;
}

.graham-catalog-view-switch svg {
    height: 13px;
    width: 13px;
}

.graham-catalog-filters {
    align-items: center;
    display: grid;
    gap: 5px 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 6px 8px;
}

.graham-catalog-intro .graham-filter-heading {
    font-size: 0.7rem !important;
    white-space: nowrap;
}

.graham-filter-options {
    gap: 5px 13px;
}

.graham-filter-option {
    font-size: 0.76rem;
    gap: 5px;
}

.graham-filter-option input {
    height: 15px;
    width: 15px;
}

.graham-catalog-intro .graham-filter-note {
    font-size: 0.67rem !important;
    grid-column: 1 / -1;
    line-height: 1.25 !important;
}

.graham-catalog-filters button {
    border-radius: 7px;
    font-size: 0.72rem;
    padding: 6px 9px;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .graham-catalog-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-catalog-toolbar {
        justify-content: flex-start;
    }

    .graham-catalog-toolbar-actions {
        margin-left: auto;
    }
}

@media (max-width: 700px) {
    body.graham-catalog-view .wp-site-blocks main {
        padding-top: 2px !important;
    }

    .graham-catalog-shell {
        margin-top: 4px;
    }

    .graham-catalog-intro,
    .graham-catalog-search .graham-catalog-intro {
        padding: 10px 11px;
    }

    .graham-catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .graham-catalog-toolbar-count .woocommerce-result-count {
        font-size: 0.72rem;
        white-space: normal;
    }

    .graham-catalog-toolbar-actions {
        display: grid;
        gap: 6px;
        grid-template-columns: minmax(0, 1fr) auto;
        margin-left: 0;
        width: 100%;
    }

    .graham-catalog-toolbar-ordering,
    .graham-catalog-toolbar-ordering .woocommerce-ordering,
    .graham-catalog-toolbar-ordering .woocommerce-ordering select {
        width: 100% !important;
    }

    .graham-catalog-view-switch {
        display: flex;
        width: auto;
    }

    .graham-catalog-view-switch button {
        min-width: 58px;
        width: auto;
    }

    .graham-catalog-filters {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .graham-catalog-intro .graham-filter-heading {
        display: none !important;
    }

    .graham-catalog-intro .graham-filter-note {
        display: none !important;
    }
}


/* 0.10.28: persistent stock-filter empty state. */
.graham-stock-empty-state {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin: 10px 0 18px !important;
    padding: 12px 14px !important;
}

.graham-stock-empty-state .button {
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .graham-stock-empty-state {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* 0.10.35: compact private customer history/status on single products. */
.single-product .graham-customer-product-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 8px 0 10px;
    padding: 0;
}

.single-product .graham-customer-product-status-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
}

.single-product .graham-customer-product-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #c9ced3;
    border-radius: 999px;
    background: #f5f6f7;
    color: #30363b;
    font-weight: 700;
    white-space: nowrap;
}

.single-product .graham-customer-product-status-detail {
    color: #626a70;
}

@media (max-width: 700px) {
    .single-product .graham-customer-product-status {
        display: grid;
        gap: 5px;
        margin: 6px 0 8px;
    }

    .single-product .graham-customer-product-status-item {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 6px;
    }
}

/* Main single-product description label. */
body.single-product div.product .summary .graham-product-description-heading {
    margin: 18px 0 8px;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
}

/* 0.10.44: organized single-product presentation. */
body.single-product div.product .woocommerce-product-gallery {
    background: #fff;
    border: 1px solid var(--graham-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(18, 55, 82, 0.07);
    padding: 18px;
}

body.single-product div.product .summary {
    background: #fff;
    border: 1px solid var(--graham-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(18, 55, 82, 0.07);
    box-sizing: border-box;
    padding: clamp(20px, 2.4vw, 30px);
}

body.single-product div.product .summary .product_title {
    color: var(--graham-blue-dark);
    font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    line-height: 1.12 !important;
    margin: 0 0 10px !important;
}

body.single-product div.product .summary .graham-product-sku,
body.single-product div.product .summary .sku_wrapper,
body.single-product div.product .summary .posted_in {
    color: var(--graham-muted);
    font-size: 0.82rem;
}

body.single-product div.product .summary p.price,
body.single-product div.product .summary > .price,
body.single-product div.product .summary .price {
    color: var(--graham-blue) !important;
    font-size: clamp(1.7rem, 3.4vw, 2.35rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em;
    line-height: 1.08 !important;
    margin: 12px 0 14px !important;
}

body.single-product div.product .summary .price .woocommerce-Price-amount {
    color: var(--graham-blue) !important;
    font-size: 1em !important;
    font-weight: 850 !important;
}

body.single-product div.product .summary .price .graham-customer-price-label {
    background: #e8f8ee;
    border-color: #c7ead4;
    color: var(--graham-green-dark);
    font-size: 0.62rem !important;
    letter-spacing: 0.07em;
    margin-right: 8px;
    padding: 6px 8px;
    vertical-align: 0.28em;
}

body.single-product div.product .summary .woocommerce-product-details__short-description {
    color: #314b60;
    font-size: 0.96rem;
    line-height: 1.62;
    margin: 0 0 16px;
}

body.single-product div.product .summary .graham-product-description-heading {
    border-top: 1px solid #e6edf2;
    color: var(--graham-ink);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    margin: 18px 0 7px;
    padding-top: 16px;
    text-transform: uppercase;
}

body.single-product div.product .summary .graham-customer-product-status {
    background: #f7fafc;
    border: 1px solid #e2eaf0;
    border-radius: 10px;
    box-sizing: border-box;
    gap: 6px;
    margin: 10px 0 14px;
    padding: 9px 10px;
}

body.single-product div.product .summary .graham-customer-product-status-item {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

body.single-product div.product .summary .graham-customer-product-status-detail {
    font-size: 0.78rem;
}

body.single-product div.product .woocommerce-tabs {
    background: #fff;
    border: 1px solid var(--graham-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(18, 55, 82, 0.05);
    box-sizing: border-box;
    margin-top: 28px;
    overflow: hidden;
    padding: 0 20px 20px;
}

body.single-product div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--graham-line);
    margin: 0 -20px 18px !important;
    padding: 0 20px !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: 0 !important;
    margin: 0 18px 0 0 !important;
    padding: 0 !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li a {
    border-bottom: 3px solid transparent;
    color: var(--graham-muted) !important;
    display: block;
    font-size: 0.86rem;
    font-weight: 800 !important;
    padding: 14px 2px 11px !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    border-bottom-color: var(--graham-blue);
    color: var(--graham-blue-dark) !important;
}

@media (max-width: 700px) {
    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary {
        border-radius: 12px;
        padding: 14px;
    }

    body.single-product div.product .summary .product_title {
        font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
    }

    body.single-product div.product .summary p.price,
    body.single-product div.product .summary > .price,
    body.single-product div.product .summary .price {
        font-size: clamp(1.55rem, 8vw, 2rem) !important;
    }
}


/* 0.10.45: final single-product price hierarchy and tax presentation. */
body.single-product.woocommerce div.product div.summary p.price,
body.single-product.woocommerce div.product div.summary > .price,
body.single-product.woocommerce div.product div.summary .price,
body.single-product.woocommerce-page div.product div.summary p.price,
body.single-product.woocommerce-page div.product div.summary .price {
    color: #075b9d !important;
    font-size: clamp(1.85rem, 3.6vw, 2.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    margin-bottom: 3px !important;
}

body.single-product.woocommerce div.product div.summary .price .woocommerce-Price-amount,
body.single-product.woocommerce div.product div.summary .price .woocommerce-Price-amount bdi,
body.single-product.woocommerce div.product div.summary .price .woocommerce-Price-currencySymbol,
body.single-product.woocommerce-page div.product div.summary .price .woocommerce-Price-amount,
body.single-product.woocommerce-page div.product div.summary .price .woocommerce-Price-amount bdi,
body.single-product.woocommerce-page div.product div.summary .price .woocommerce-Price-currencySymbol {
    color: #075b9d !important;
    font-size: 1em !important;
    font-weight: 800 !important;
}

/* Inventory special pricing stays distinct on search cards and product pages. */
.graham-special-price,
body.single-product.graham-product-detail .summary .price .graham-special-price {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    line-height: 1.15;
    max-width: 100%;
}

.graham-special-price-label,
body.single-product.graham-product-detail .summary .price .graham-special-price-label {
    color: #b42318 !important;
    flex-basis: 100%;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0;
    text-transform: uppercase;
}

.graham-special-price del,
body.single-product.graham-product-detail .summary .price .graham-special-price del {
    color: #60778a !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}
.graham-special-price del :is(.woocommerce-Price-amount, bdi, .woocommerce-Price-currencySymbol),
body.single-product.graham-product-detail .summary .price .graham-special-price del :is(.woocommerce-Price-amount, bdi, .woocommerce-Price-currencySymbol) { font-size: inherit !important; }

.graham-special-price ins,
.graham-special-price ins :is(.woocommerce-Price-amount, bdi, .woocommerce-Price-currencySymbol),
body.single-product.graham-product-detail .summary .price .graham-special-price ins,
body.single-product.graham-product-detail .summary .price .graham-special-price ins :is(.woocommerce-Price-amount, bdi, .woocommerce-Price-currencySymbol) {
    background: transparent !important;
    color: #b42318 !important;
    font-size: 1.12em !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.graham-special-price-suffix {
    color: #60778a;
    font-size: 0.68em;
    font-weight: 600;
}

body.single-product div.product .summary .graham-price-tax-note {
    color: #718393;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 14px;
}

/* 0.13.561: sale products keep the standard catalogue/search card, with a clear sale treatment. */
body.graham-catalog-view .graham-catalog-main .wc-block-product.graham-product-is-sale,
body.graham-catalog-view .graham-catalog-main .wc-block-product:has(.graham-special-price),
body.graham-catalog-view .graham-catalog-main ul.products li.product.graham-product-is-sale,
body.graham-catalog-view .graham-catalog-main ul.products li.product:has(.graham-special-price) {
    border: 2px solid #c9253a;
    box-shadow: 0 0 0 1px rgba(201, 37, 58, .18), 0 0 16px rgba(201, 37, 58, .28);
}

body.graham-catalog-view .graham-catalog-main .wc-block-product.graham-product-is-sale::before,
body.graham-catalog-view .graham-catalog-main .wc-block-product:has(.graham-special-price)::before,
body.graham-catalog-view .graham-catalog-main ul.products li.product.graham-product-is-sale::before,
body.graham-catalog-view .graham-catalog-main ul.products li.product:has(.graham-special-price)::before {
    background: #c9253a;
    border-radius: 4px;
    color: #fff;
    content: 'SPECIAL';
    font-size: .62rem;
    font-weight: 900;
    left: 10px;
    letter-spacing: .04em;
    line-height: 1;
    padding: 6px 8px;
    position: absolute;
    text-transform: uppercase;
    top: 10px;
    z-index: 3;
}

body.graham-catalog-view .graham-catalog-main .wc-block-product.graham-product-is-sale:hover,
body.graham-catalog-view .graham-catalog-main .wc-block-product:has(.graham-special-price):hover,
body.graham-catalog-view .graham-catalog-main ul.products li.product.graham-product-is-sale:hover,
body.graham-catalog-view .graham-catalog-main ul.products li.product:has(.graham-special-price):hover {
    border-color: #a9152c;
    box-shadow: 0 0 0 1px rgba(169, 21, 44, .22), 0 0 22px rgba(201, 37, 58, .38), var(--graham-shadow);
}

/* 0.13.587: on narrow catalogue cards the manufacturer mark can occupy the
 * same top row as the sale badge. Keep the red sale treatment, but let the
 * glowing card border carry the sale signal instead of stacking the badge. */
@media (max-width: 700px) {
    body.graham-catalog-view .graham-catalog-main .wc-block-product.graham-product-is-sale::before,
    body.graham-catalog-view .graham-catalog-main .wc-block-product:has(.graham-special-price)::before,
    body.graham-catalog-view .graham-catalog-main ul.products li.product.graham-product-is-sale::before,
    body.graham-catalog-view .graham-catalog-main ul.products li.product:has(.graham-special-price)::before {
        display: none;
    }
}

body.single-product div.product .summary .graham-admin-price-source {
    background: #f5f8fa;
    border: 1px dashed #b9c8d3;
    box-shadow: none;
    margin: 8px 0 12px;
    padding: 7px 9px;
}

/* 0.10.46: compact faceted search controls and explicit result totals. */
.graham-catalog-toolbar-count .graham-explicit-result-count {
    color: var(--graham-ink);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.graham-catalog-filters {
    align-items: end;
    display: grid;
    gap: 8px 10px;
    grid-template-columns: auto minmax(250px, 1fr) minmax(220px, auto) auto;
}

.graham-filter-selects {
    align-items: end;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.graham-filter-selects label {
    display: grid;
    flex: 1 1 150px;
    gap: 3px;
    min-width: 120px;
}

.graham-filter-selects label > span {
    color: var(--graham-muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.graham-filter-selects select {
    background: #fff;
    border: 1px solid #cbd9e3;
    border-radius: 7px;
    box-sizing: border-box;
    color: var(--graham-ink);
    font-size: 0.76rem;
    height: 34px;
    max-width: 100%;
    padding: 5px 28px 5px 8px;
    width: 100%;
}

.graham-filter-options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

.graham-filter-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.graham-filter-actions a {
    color: var(--graham-blue);
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.graham-filter-actions a:hover {
    text-decoration: underline;
}

@media (max-width: 1180px) {
    .graham-catalog-filters {
        grid-template-columns: auto minmax(300px, 1fr) auto;
    }

    .graham-filter-options {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .graham-filter-actions {
        grid-column: 3;
        grid-row: 2;
    }
}

@media (max-width: 700px) {
    .graham-catalog-filters {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .graham-filter-selects {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .graham-filter-options,
    .graham-filter-actions {
        grid-column: 1;
        grid-row: auto;
    }

    .graham-filter-actions {
        justify-content: flex-start;
    }

    .graham-filter-actions button {
        flex: 1 1 auto;
    }
}

@media (max-width: 430px) {
    .graham-filter-selects {
        grid-template-columns: 1fr;
    }
}

/* 0.10.50: contextual filters, compact mobile controls and safe wrapping. */
.graham-catalog-filter-panel {
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    min-width: 0;
}

.graham-catalog-filter-panel > summary {
    display: none;
}

.graham-catalog-filter-panel:not([open]) > .graham-catalog-filters {
    display: grid;
}

.single-product .graham-product-upcs {
    align-items: flex-start;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 6px;
    max-width: 100%;
    min-width: 0;
}

.single-product .graham-product-upc-label {
    flex: 0 0 auto;
    font-weight: 700;
}

.single-product .graham-product-upc-values {
    display: flex;
    flex: 1 1 180px;
    flex-wrap: wrap;
    gap: 5px 8px;
    min-width: 0;
}

.single-product .graham-product-upc-value {
    align-items: center;
    background: #f3f8fb;
    border: 1px solid #d5e3ec;
    border-radius: 6px;
    display: inline-flex;
    gap: 5px;
    max-width: 100%;
    padding: 3px 7px;
}

.single-product .graham-product-upc-value code {
    background: transparent;
    color: #17324a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    padding: 0;
}

.single-product .graham-product-upc-value small {
    color: #667b8b;
    font-size: 0.65rem;
    font-weight: 800;
}

@media (max-width: 700px) {
    .graham-catalog-shell,
    .graham-catalog-main,
    .graham-catalog-intro,
    .graham-catalog-tools,
    .graham-catalog-toolbar,
    .graham-catalog-toolbar-actions,
    .graham-catalog-filter-panel,
    .graham-catalog-filters,
    .graham-filter-selects,
    .graham-filter-selects label,
    .graham-filter-options,
    .graham-filter-actions,
    .graham-mobile-category-nav,
    .graham-category-navigation-mobile,
    body.single-product div.product,
    body.single-product div.product > *,
    body.single-product div.product .summary,
    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .woocommerce-tabs {
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .graham-catalog-main :where(h1, h2, h3, h4, p, a, span, strong, small, label),
    body.single-product div.product :where(h1, h2, h3, h4, p, a, span, strong, small, label, td, th, dd) {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .graham-category-directory-actions {
        box-sizing: border-box;
        margin: 0 0 18px;
        padding: 0 14px;
    }

    .graham-category-directory-filters {
        box-sizing: border-box;
        margin: 0 0 18px;
        padding: 0 14px;
    }

    .graham-category-card-section {
        display: none !important;
    }

    .graham-mobile-category-nav {
        display: block !important;
    }

    .graham-mobile-category-nav > details {
        border-radius: 10px;
        max-width: 100%;
        overflow: hidden;
    }

    .graham-catalog-filter-panel > summary {
        align-items: center;
        background: #fff;
        border: 1px solid #cbd9e3;
        border-radius: 8px;
        color: var(--graham-blue-dark);
        cursor: pointer;
        display: flex;
        font-size: 0.8rem;
        font-weight: 800;
        justify-content: space-between;
        list-style: none;
        min-height: 38px;
        padding: 8px 11px;
        width: 100%;
    }

    .graham-catalog-filter-panel > summary::-webkit-details-marker {
        display: none;
    }

    .graham-catalog-filter-panel > summary::after {
        content: "+";
        font-size: 1.15rem;
        line-height: 1;
        margin-left: 8px;
    }

    .graham-catalog-filter-panel[open] > summary {
        border-radius: 8px 8px 0 0;
    }

    .graham-catalog-filter-panel[open] > summary::after {
        content: "-";
    }

    .graham-catalog-filter-panel > summary small {
        background: #e9f3f9;
        border-radius: 999px;
        color: #075da8;
        font-size: 0.66rem;
        margin-left: auto;
        padding: 2px 7px;
    }

    .graham-catalog-filter-panel:not([open]) > .graham-catalog-filters {
        display: none !important;
    }

    .graham-catalog-filter-panel[open] > .graham-catalog-filters {
        border-radius: 0 0 8px 8px;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 10px !important;
    }

    .graham-filter-selects {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
    }

    .graham-filter-selects label {
        display: grid;
        width: 100%;
    }

    .graham-filter-selects select {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .graham-filter-options {
        align-items: stretch;
        display: grid;
        gap: 7px;
        width: 100%;
    }

    .graham-filter-option {
        align-items: flex-start;
        max-width: 100%;
        white-space: normal;
    }

    .graham-filter-option input {
        flex: 0 0 auto;
        margin-top: 1px;
    }

    .graham-filter-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        width: 100%;
    }

    .graham-filter-actions button,
    .graham-filter-actions a {
        box-sizing: border-box;
        max-width: 100%;
        text-align: center;
        width: 100%;
    }

    .single-product .graham-product-upcs,
    .single-product .graham-product-upc-values {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .single-product .graham-product-upc-value {
        justify-content: space-between;
        width: 100%;
    }
}

/* 0.10.53: reliable desktop filters and denser phone catalogue/product layouts. */
.graham-catalog-toolbar {
    align-items: stretch;
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr);
}

.graham-catalog-toolbar-count,
.graham-catalog-toolbar-actions {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    position: relative;
}

.graham-catalog-toolbar-count {
    z-index: 2;
}

.graham-catalog-toolbar-actions {
    justify-content: flex-end;
    width: 100%;
}

.graham-product-description-toggle {
    border-top: 1px solid #e6edf2;
    box-sizing: border-box;
    margin: 18px 0 16px;
    max-width: 100%;
    min-width: 0;
    padding-top: 16px;
}

.graham-product-description-toggle > summary {
    color: var(--graham-ink);
    cursor: default;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    list-style: none;
    text-transform: uppercase;
}

.graham-product-description-toggle > summary::-webkit-details-marker {
    display: none;
}

.graham-product-description-toggle .woocommerce-product-details__short-description {
    margin: 7px 0 0 !important;
}

@media (min-width: 701px) {
    .graham-product-description-toggle > summary {
        pointer-events: none;
    }
}

/* 0.10.115: Products home is a focused, image-led department directory. */
body.graham-shop-landing .graham-catalog-shell.graham-catalog-home {
    display: block !important;
    margin-bottom: 72px;
    margin-top: 32px;
    max-width: 1320px;
    width: min(1320px, calc(100vw - 48px));
}

body.graham-shop-landing .graham-catalog-home .graham-catalog-main {
    display: block !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
}

body.graham-shop-landing .graham-catalog-home .graham-catalog-intro {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 30px;
    padding: 34px 38px;
}

body.graham-shop-landing .graham-catalog-home .graham-catalog-intro p:not(.graham-catalog-kicker) {
    font-size: 1.02rem;
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-section {
    margin-bottom: 0;
}

body.graham-shop-landing .graham-catalog-home .graham-section-heading {
    margin-bottom: 18px;
}

body.graham-shop-landing .graham-catalog-home .graham-section-heading h2 {
    font-size: clamp(1.55rem, 2vw, 2rem);
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-grid {
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.graham-shop-landing .graham-catalog-home .graham-category-card {
    border-radius: 18px;
    grid-template-rows: 260px auto;
    min-height: 346px;
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-media {
    background: linear-gradient(145deg, #ffffff 0%, #f3f8fb 100%);
    padding: 0;
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-media img {
    padding: 0;
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-copy {
    min-height: 86px;
    padding: 16px 54px 17px 20px;
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-copy strong {
    font-size: 1.16rem;
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-copy small {
    font-size: 0.8rem;
}

body.graham-shop-landing .graham-catalog-home .graham-category-card-arrow {
    bottom: 27px;
    font-size: 1.8rem;
    right: 20px;
}

/* The Products landing page shows departments only. Product lists and their
   controls return after the customer opens a department. */
body.graham-shop-landing .graham-catalog-home .woocommerce-result-count,
body.graham-shop-landing .graham-catalog-home .woocommerce-ordering,
body.graham-shop-landing .graham-catalog-home .woocommerce-pagination,
body.graham-shop-landing .graham-catalog-home .wc-block-product-template,
body.graham-shop-landing .graham-catalog-home .wp-block-query-pagination,
body.graham-shop-landing .graham-catalog-home ul.products {
    display: none !important;
}

/* Parent categories are lightweight directories. Their product collection is
   intentionally empty until View all is selected or a product filter is used. */
body.graham-category-directory .graham-catalog-main > .wp-block-woocommerce-product-collection,
body.graham-category-directory .graham-catalog-main .wc-block-product-template,
body.graham-category-directory .graham-catalog-main .wp-block-query-pagination,
body.graham-category-directory .graham-catalog-main ul.products,
body.graham-category-directory .graham-catalog-main .woocommerce-pagination,
body.graham-category-directory .graham-catalog-main .woocommerce-result-count,
body.graham-category-directory .graham-catalog-main .woocommerce-ordering {
    display: none !important;
}

.graham-category-view-all {
    align-items: center;
    border: 1px solid var(--graham-blue);
    border-radius: 8px;
    color: var(--graham-blue);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 750;
    justify-content: center;
    margin-top: 20px;
    min-height: 40px;
    padding: 8px 15px;
    text-decoration: none;
}

.graham-category-view-all:hover,
.graham-category-view-all:focus-visible {
    background: #e9f3f9;
    color: var(--graham-blue-dark);
    text-decoration: none;
}

/* Let modern browsers skip painting product cards until they approach view. */
@supports (content-visibility: auto) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.products li.product {
        contain-intrinsic-size: auto 430px;
        content-visibility: auto;
    }
}

@media (max-width: 1040px) {
    body.graham-shop-landing .graham-catalog-home .graham-category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body.graham-shop-landing .graham-catalog-home > .graham-mobile-category-nav {
        display: none !important;
    }

    body.graham-shop-landing .graham-catalog-home .graham-category-card-section {
        display: block !important;
    }

    body.graham-shop-landing .graham-catalog-shell.graham-catalog-home {
        margin-bottom: 38px;
        margin-top: 12px;
        max-width: 100%;
        width: 100% !important;
    }

    body.graham-shop-landing .graham-catalog-home .graham-catalog-intro {
        border-radius: 0;
        margin-bottom: 10px;
        padding: 11px 12px 12px;
    }

    body.graham-shop-landing .graham-catalog-home .graham-catalog-intro .graham-catalog-kicker,
    body.graham-shop-landing .graham-catalog-home .graham-catalog-intro p:not(.graham-catalog-kicker),
    body.graham-shop-landing .graham-catalog-home .graham-section-heading {
        display: none;
    }

    body.graham-shop-landing .graham-catalog-home .graham-catalog-intro h1 {
        font-size: 1.45rem;
        line-height: 1.15;
        margin: 0;
    }

    body.graham-shop-landing .graham-catalog-home .graham-category-card-grid {
        gap: 9px;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 0 8px;
    }

    body.graham-shop-landing .graham-catalog-home .graham-category-card {
        border-radius: 8px;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(118px, 34vw) auto !important;
        min-height: 180px;
    }

    body.graham-shop-landing .graham-catalog-home .graham-category-card-media {
        padding: 7px;
    }

    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy {
        min-height: 54px;
        padding: 10px 28px 10px 10px;
    }

    body.graham-shop-landing .graham-catalog-home .graham-category-card-copy strong {
        font-size: 1rem;
        line-height: 1.15;
        text-transform: uppercase;
    }

    body.graham-shop-landing .graham-catalog-home .graham-category-card-arrow {
        bottom: 18px;
        font-size: 1.35rem;
        right: 10px;
    }
}

@media (max-width: 700px) {
    body.graham-catalog-view .wp-site-blocks main,
    body.graham-catalog-view main,
    body.graham-catalog-view .entry-content,
    body.graham-catalog-view .wp-block-post-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .graham-catalog-shell {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .graham-catalog-intro,
    .graham-catalog-search .graham-catalog-intro,
    .graham-catalog-filter-panel,
    .graham-catalog-main .wc-block-product-template,
    .graham-catalog-main ul.products,
    .graham-catalog-main .wc-block-product,
    .graham-catalog-main ul.products li.product {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .graham-catalog-toolbar-actions {
        justify-content: stretch;
    }

    .graham-product-description-toggle {
        background: #f7fafc;
        border: 1px solid #dce7ee;
        border-radius: 8px;
        margin: 8px 0 10px;
        overflow: hidden;
        padding: 0;
    }

    .graham-product-description-toggle > summary {
        align-items: center;
        cursor: pointer;
        display: flex;
        font-size: 0.78rem;
        justify-content: space-between;
        letter-spacing: 0.04em;
        min-height: 36px;
        padding: 7px 10px;
    }

    .graham-product-description-toggle > summary::after {
        content: "+";
        font-size: 1.05rem;
        line-height: 1;
        margin-left: 8px;
    }

    .graham-product-description-toggle[open] > summary::after {
        content: "-";
    }

    .graham-product-description-toggle .woocommerce-product-details__short-description {
        border-top: 1px solid #dce7ee;
        font-size: 0.86rem !important;
        line-height: 1.45 !important;
        margin: 0 !important;
        padding: 9px 10px 10px;
    }

    .graham-catalog-main .wp-block-button__link,
    .graham-catalog-main .wc-block-components-product-button__button,
    .graham-catalog-main ul.products li.product .button,
    body.single-product div.product form.cart .single_add_to_cart_button {
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
        padding-left: 2px !important;
        padding-right: 2px !important;
        white-space: normal !important;
    }
}

/* 0.10.54: give desktop catalogue filters enough room and contain every control. */
@media (min-width: 1181px) {
    .graham-catalog-search .graham-catalog-intro {
        grid-template-columns: minmax(0, 1fr) minmax(480px, 520px);
    }
}

@media (min-width: 701px) {
    .graham-catalog-filter-panel {
        overflow: hidden;
        width: 100%;
    }

    .graham-catalog-filter-panel > .graham-catalog-filters {
        align-items: stretch !important;
        display: grid !important;
        gap: 10px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 100%;
        min-width: 0;
        padding: 12px !important;
        width: 100%;
    }

    .graham-catalog-filter-panel .graham-filter-heading,
    .graham-catalog-filter-panel .graham-filter-selects,
    .graham-catalog-filter-panel .graham-filter-options,
    .graham-catalog-filter-panel .graham-filter-actions {
        grid-column: 1 !important;
        grid-row: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .graham-catalog-filter-panel .graham-filter-heading {
        white-space: normal;
    }

    .graham-catalog-filter-panel .graham-filter-selects {
        align-items: end;
        display: grid !important;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-catalog-filter-panel .graham-filter-selects label {
        display: grid;
        gap: 3px;
        max-width: 100%;
        min-width: 0 !important;
        width: 100%;
    }

    .graham-catalog-filter-panel .graham-filter-selects select {
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .graham-catalog-filter-panel .graham-filter-options {
        align-items: start;
        display: grid !important;
        gap: 8px 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graham-catalog-filter-panel .graham-filter-option {
        align-items: flex-start;
        display: flex !important;
        gap: 6px;
        line-height: 1.3;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
        width: 100%;
    }

    .graham-catalog-filter-panel .graham-filter-option input[type="checkbox"],
    .graham-catalog-filter-panel .graham-filter-option input[type="radio"] {
        box-sizing: border-box;
        display: block;
        flex: 0 0 16px;
        float: none !important;
        height: 16px;
        left: auto !important;
        margin: 1px 0 0 !important;
        max-width: 16px;
        min-width: 16px;
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 16px;
    }

    .graham-catalog-filter-panel .graham-filter-option span {
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 0;
    }

    .graham-catalog-filter-panel .graham-filter-actions {
        align-items: center;
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start !important;
    }
}

/* 0.10.55: filters stay closed until the customer opens them. */
.graham-catalog-filter-panel > summary {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd9e3;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--graham-blue-dark);
    cursor: pointer;
    display: flex !important;
    font-size: 0.8rem;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    min-height: 34px;
    padding: 6px 9px;
    width: 100%;
}

.graham-catalog-filter-panel > summary::-webkit-details-marker {
    display: none;
}

.graham-catalog-filter-panel > summary::after {
    content: "+";
    font-size: 1.15rem;
    line-height: 1;
    margin-left: 8px;
}

.graham-catalog-filter-panel[open] > summary {
    border-radius: 8px 8px 0 0;
}

.graham-catalog-filter-panel[open] > summary::after {
    content: "-";
}

.graham-catalog-filter-panel > summary small {
    background: #e9f3f9;
    border-radius: 999px;
    color: #075da8;
    font-size: 0.66rem;
    margin-left: auto;
    padding: 2px 7px;
}

.graham-catalog-filter-panel:not([open]) > .graham-catalog-filters {
    display: none !important;
}

.graham-catalog-filter-panel[open] > .graham-catalog-filters {
    border-radius: 0 0 8px 8px;
    display: grid !important;
}

/* Active restrictions stay visible even while the filter form is closed. */
.graham-active-filters {
    align-items: center;
    background: #f3f8fb;
    border: 1px solid #c8dce8;
    border-radius: 6px;
    color: #173f5d;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    gap: 5px 7px;
    margin-top: 5px;
    padding: 5px 8px;
}

.graham-active-filter-list {
    display: flex;
    flex: 1 1 220px;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.graham-active-filter {
    align-items: center;
    background: #fff;
    border: 1px solid #b8cfdd;
    border-radius: 5px;
    color: #173f5d;
    display: inline-flex;
    gap: 6px;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 3px 6px;
    text-decoration: none;
}

.graham-active-filter:hover,
.graham-active-filter:focus-visible {
    background: #eaf4f9;
    border-color: #075da8;
    color: #075da8;
    text-decoration: none;
}

.graham-active-filter:focus-visible {
    outline: 2px solid #16863f;
    outline-offset: 2px;
}

.graham-active-filter-label {
    min-width: 0;
}

.graham-active-filter-remove {
    align-items: center;
    background: #e2edf3;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 17px;
    font-size: 15px;
    height: 17px;
    justify-content: center;
    line-height: 1;
    width: 17px;
}

.graham-active-filter:hover .graham-active-filter-remove,
.graham-active-filter:focus-visible .graham-active-filter-remove {
    background: #075da8;
    color: #fff;
}

.graham-active-filters > a {
    color: #075da8;
    flex: 0 0 auto;
    font-weight: 800;
}

.graham-active-filters.is-landing {
    margin-top: 16px;
    max-width: 760px;
}

.graham-catalog-list-actions {
    align-items: center;
    background: #f1fbf4;
    border: 1px solid #b9ddc4;
    border-left: 4px solid #138f3d;
    border-radius: 7px;
    color: #163d59;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 12px 0 16px;
    padding: 10px 12px;
}

.graham-catalog-list-actions[hidden] {
    display: none !important;
}

.graham-catalog-list-actions > div {
    display: grid;
    gap: 2px;
    margin-right: auto;
}

.graham-catalog-list-actions > div span,
.graham-catalog-list-actions > small {
    color: #587286;
    font-size: 0.76rem;
}

.graham-catalog-list-actions .button {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    margin: 0;
}

.graham-catalog-list-actions__status {
    color: #138f3d;
    font-size: 0.78rem;
    font-weight: 700;
}

.graham-catalog-list-actions > small {
    flex-basis: 100%;
}

.graham-catalog-list-actions__details {
    align-items: center;
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.graham-catalog-list-actions__details[hidden],
.graham-preferences-panel[hidden] {
    display: none !important;
}

.graham-catalog-list-actions__details > small {
    flex-basis: 100%;
}

.graham-catalog-list-actions [data-graham-add-list-to-cart] {
    align-items: center !important;
    background: #fff !important;
    border-color: #b8cfdd !important;
    border-radius: 5px !important;
    color: #163d59 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    gap: 6px !important;
    height: 36px !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 8px 14px !important;
    width: auto !important;
}

.graham-catalog-list-actions .graham-create-price-list {
    margin-left: 8px;
}

html body.graham-catalog-view .graham-create-price-list-inline:not([hidden]),
html body.graham-catalog-view [data-graham-create-price-list]:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #075b9d;
    border-radius: 4px;
    background: #075b9d;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

html body.graham-catalog-view .graham-create-price-list-inline:not([hidden]):hover,
html body.graham-catalog-view .graham-create-price-list-inline:not([hidden]):focus-visible,
html body.graham-catalog-view [data-graham-create-price-list]:not([hidden]):hover,
html body.graham-catalog-view [data-graham-create-price-list]:not([hidden]):focus-visible {
    border-color: #064b80;
    background: #064b80;
    color: #fff;
}

html body.graham-catalog-view .graham-create-price-list-inline:disabled,
html body.graham-catalog-view [data-graham-create-price-list]:disabled,
html body.graham-catalog-view .graham-create-price-list-inline[aria-disabled="true"],
html body.graham-catalog-view [data-graham-create-price-list][aria-disabled="true"] {
    border-color: #c8d5dc;
    background: #e5edf1;
    color: #91a5b1;
    cursor: not-allowed;
    opacity: 1;
}

.graham-price-list-settings {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
}

.graham-price-list-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 50, 74, .36);
}

.graham-price-list-settings__dialog {
    position: relative;
    box-sizing: border-box;
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: #fff;
    border: 1px solid #cbdbe5;
    border-top: 4px solid #075b9d;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 50, 74, .22);
    color: #17324a;
}

.graham-price-list-settings__eyebrow {
    color: #07823b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.graham-price-list-settings__dialog h2 {
    margin: 4px 0 8px;
    color: #075b9d;
    font-size: 22px;
}

.graham-price-list-settings__dialog p {
    margin: 0 0 18px;
}

.graham-price-list-settings__addresses {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.graham-price-list-settings__addresses > div,
.graham-price-list-settings__addresses > label {
    display: grid;
    gap: 6px;
    color: #17324a;
    font-size: 12px;
    font-weight: 600;
}

.graham-price-list-settings__addresses strong {
    color: #075b9d;
    font-size: 11px;
    text-transform: uppercase;
}

.graham-price-list-settings__addresses span {
    padding: 9px 10px;
    border: 1px solid #cbdbe5;
    border-radius: 5px;
    background: #f7fafc;
    font-weight: 500;
    line-height: 1.45;
}

.graham-price-list-settings__addresses select {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #9fb9c9;
    border-radius: 5px;
    background: #fff;
    color: #17324a;
    font: inherit;
}

.graham-price-list-settings__email {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    color: #075b9d;
    font-size: 11px;
    text-transform: uppercase;
}

.graham-price-list-settings__email input {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #9fb9c9;
    border-radius: 5px;
    color: #17324a;
    font-size: 13px;
    text-transform: none;
}

.graham-price-list-settings__email select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #9fb9c9;
    border-radius: 5px;
    background: #fff;
    color: #17324a;
    font-size: 13px;
    text-transform: none;
}

.graham-price-list-email-preview {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
}

.graham-price-list-email-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 50, 74, .36);
}

.graham-price-list-email-preview__dialog {
    position: relative;
    box-sizing: border-box;
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px;
    border: 1px solid #cbdbe5;
    border-top: 4px solid #075b9d;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 50, 74, .22);
    color: #17324a;
}

.graham-price-list-email-preview__dialog h3 {
    margin: 0 0 14px;
    color: #075b9d;
    font-size: 20px;
}

.graham-price-list-email-preview__message {
    padding: 14px;
    border: 1px solid #cbdbe5;
    border-radius: 5px;
    background: #f7fafc;
    line-height: 1.5;
}

.graham-price-list-settings__options {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #d6e2e9;
    border-bottom: 1px solid #d6e2e9;
}

.graham-price-list-settings__options label {
    display: flex;
    gap: 9px;
    align-items: center;
    font-weight: 600;
}

.graham-price-list-settings__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.graham-price-list-settings__actions .button {
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid #b8cfdd;
    border-radius: 5px;
    background: #fff;
    color: #163d59;
    font-weight: 700;
}

.graham-price-list-settings__actions .button-primary {
    border-color: #138f3d;
    background: #138f3d;
    color: #fff;
}

.graham-price-list-settings__actions .button-primary:hover,
.graham-price-list-settings__actions .button-primary:focus-visible {
    border-color: #0d7130;
    background: #0d7130;
    color: #fff;
}

.graham-price-list-settings__help {
    color: #587086;
    font-size: 12px;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
}

.graham-price-list-settings__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #587086;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.graham-catalog-list-actions [data-graham-add-list-to-cart] .dashicons {
    font-size: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    width: 16px !important;
}

.graham-catalog-list-actions [data-graham-add-list-to-cart].is-selection-ready:not(:disabled) {
    background: #138f3d !important;
    border-color: #138f3d !important;
    color: #fff !important;
}

.graham-catalog-list-actions [data-graham-add-list-to-cart]:disabled {
    background: #e9f0f4 !important;
    border-color: #b8cfdd !important;
    color: #7890a0 !important;
    cursor: not-allowed !important;
}

.graham-catalog-list-actions > [data-graham-list-actions-toggle] {
    margin-left: auto;
}

.graham-card-bulk-select.is-selected {
    background: #e8f6ed;
    border-color: #16863f;
    color: #087a37;
    font-weight: 700;
}

.graham-select-items-toggle {
    background: #fff;
    border: 1px solid #b8cfdd;
    border-radius: 16px;
    color: #163d59;
    font-size: 12px;
    font-weight: 700;
    height: 30px;
    padding: 4px 12px;
}

.graham-select-items-toggle.is-active {
    background: #e8f6ed;
    border-color: #72b98d;
    color: #087a37;
}

/* Multi Select is a deliberate mode; keep its card controls out of normal browsing. */
html body.graham-catalog-view .graham-card-bulk-select {
    display: none !important;
}

html body.graham-catalog-view.graham-multi-select-active .graham-card-bulk-select {
    display: inline-flex !important;
}

/* Company-only assisted orders have no website user to save favorites for.
 * Removing that one footer action gives History and Stock their own space. */
html body.graham-previewing-staged-customer .graham-catalog-main .graham-favorite-form {
    display: none !important;
}

/* Keep the cart badge and the temporary Multi Select tag on separate rows. */
html body.graham-catalog-view.graham-multi-select-active
    .graham-catalog-main
    :is(li.graham-lightweight-product, li.wc-block-product, ul.products li.product)
    > .graham-card-in-cart-badge {
    top: 36px !important;
}

/* Final bulk-order button sizing: match the compact card Add button. */
html body.graham-catalog-view .graham-catalog-list-actions [data-graham-add-list-to-cart] {
    align-self: flex-start !important;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    max-width: max-content !important;
    width: max-content !important;
    white-space: nowrap !important;
}

html body.graham-catalog-view .graham-catalog-list-actions [data-graham-add-list-to-cart].is-selection-ready:not(:disabled) .dashicons {
    color: #fff !important;
}

.graham-catalog-main :is(li.product, .wc-block-product).graham-card-bulk-selected {
    border-color: #16863f !important;
}

.graham-card-bulk-select {
    align-items: center;
    background: #fff;
    border: 1px solid #b8cfdd;
    border-radius: 5px;
    color: #587286;
    display: inline-flex;
    font-size: 0.72rem;
    gap: 4px;
    left: 9px;
    padding: 3px 6px;
    position: absolute;
    top: 9px;
    z-index: 4;
}

.graham-card-bulk-select input {
    accent-color: #138f3d;
    margin: 0;
}

@media (max-width: 700px) {
    .graham-active-filters {
        align-items: flex-start;
    }

    .graham-active-filters > a {
        flex-basis: 100%;
    }

    .graham-catalog-list-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .graham-catalog-list-actions > div {
        margin-right: 0;
    }

    .graham-catalog-list-actions .button {
        justify-content: center;
        width: 100%;
    }

    .graham-catalog-list-actions > [data-graham-list-actions-toggle] {
        margin-left: 0;
    }
}

/* 0.10.83: equal three-line titles and combinable Spire purchase-date filters. */
.graham-catalog-main .wc-block-product-template,
.graham-catalog-main ul.products {
    align-items: stretch;
}

.graham-catalog-main .wc-block-product,
.graham-catalog-main ul.products li.product {
    height: 100%;
}

.graham-catalog-main .wc-block-components-product-title,
.graham-catalog-main .woocommerce-loop-product__title,
.graham-catalog-list-view .graham-catalog-main .wc-block-components-product-title,
.graham-catalog-list-view .graham-catalog-main .woocommerce-loop-product__title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    height: 3.75em !important;
    line-height: 1.25 !important;
    max-height: 3.75em;
    min-height: 3.75em !important;
    overflow: hidden;
}

.graham-purchase-date-control.is-disabled {
    opacity: 0.62;
}

@media (min-width: 701px) {
    .graham-catalog-filter-panel .graham-filter-selects {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    }
}

/* 0.10.112: spacious, fully left-aligned desktop List view. */
@media (min-width: 701px) {
    .graham-catalog-list-view .graham-catalog-main {
        --graham-list-image-size: clamp(170px, 16vw, 220px);
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product-template,
    .graham-catalog-list-view .graham-catalog-main ul.products {
        align-items: stretch;
        gap: 12px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product {
        align-content: start;
        align-items: start;
        column-gap: 24px;
        display: grid !important;
        grid-auto-flow: row;
        grid-auto-rows: min-content;
        grid-template-columns: var(--graham-list-image-size) minmax(0, 1fr) !important;
        height: auto;
        justify-items: start;
        min-height: calc(var(--graham-list-image-size) + 40px);
        overflow: visible;
        padding: 20px !important;
        row-gap: 5px;
        text-align: left !important;
        transform: none;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product > * {
        grid-column: 2;
        justify-self: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        min-width: 0;
        text-align: left !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        align-self: start;
        grid-column: 1;
        grid-row: 1 / span 20;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image > a,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image > figure,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image figure > a {
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        height: var(--graham-list-image-size) !important;
        margin: 0 !important;
        max-height: var(--graham-list-image-size) !important;
        min-height: var(--graham-list-image-size) !important;
        width: var(--graham-list-image-size) !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-image img {
        box-sizing: border-box;
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center;
        padding: 10px !important;
        width: 100% !important;
    }

    .graham-catalog-list-view .graham-catalog-main ul.products li.product > * {
        grid-column: 2;
        justify-self: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        min-width: 0;
        text-align: left !important;
    }

    .graham-catalog-list-view .graham-catalog-main ul.products li.product > .woocommerce-LoopProduct-link {
        display: contents !important;
    }

    .graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link > * {
        grid-column: 2;
        justify-self: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        min-width: 0;
        text-align: left !important;
    }

    .graham-catalog-list-view .graham-catalog-main ul.products li.product .woocommerce-LoopProduct-link > img {
        align-self: start;
        grid-column: 1 !important;
        grid-row: 1 / span 20;
        height: var(--graham-list-image-size) !important;
        margin: 0 !important;
        max-height: var(--graham-list-image-size) !important;
        min-height: var(--graham-list-image-size) !important;
        object-fit: contain !important;
        object-position: center;
        padding: 10px !important;
        width: var(--graham-list-image-size) !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-title,
    .graham-catalog-list-view .graham-catalog-main .woocommerce-loop-product__title {
        -webkit-line-clamp: unset;
        display: block;
        font-size: 1rem !important;
        height: auto !important;
        line-height: 1.3 !important;
        margin: 0 0 3px !important;
        max-height: none;
        min-height: 0 !important;
        overflow: visible;
        text-align: left !important;
        width: 100%;
    }

    .graham-catalog-list-view .graham-catalog-main .graham-loop-product-sku,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-price,
    .graham-catalog-list-view .graham-catalog-main .price,
    .graham-catalog-list-view .graham-catalog-main .stock,
    .graham-catalog-list-view .graham-catalog-main mark[class*="graham-availability"],
    .graham-catalog-list-view .graham-catalog-main .graham-large-order-price-note {
        justify-self: start;
        text-align: left !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wp-block-button,
    .graham-catalog-list-view .graham-catalog-main .wp-block-woocommerce-product-button,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .button {
        align-self: start;
        justify-self: start;
        margin: 8px 0 0 !important;
        width: auto !important;
    }

    .graham-catalog-list-view .graham-catalog-main .wp-block-button__link,
    .graham-catalog-list-view .graham-catalog-main .wc-block-components-product-button__button,
    .graham-catalog-list-view .graham-catalog-main ul.products li.product .button {
        justify-content: flex-start;
        margin: 0 !important;
        max-width: 100%;
        text-align: left !important;
        width: auto !important;
    }

    .graham-catalog-list-view .graham-catalog-main .yith-wcwl-add-to-wishlist,
    .graham-catalog-list-view .graham-catalog-main .yith-wcwl-add-button,
    .graham-catalog-list-view .graham-catalog-main .graham-product-save-actions,
    .graham-catalog-list-view .graham-catalog-main [class*="wishlist"],
    .graham-catalog-list-view .graham-catalog-main [class*="saved-list"],
    .graham-catalog-list-view .graham-catalog-main [class*="add-to-list"] {
        justify-content: flex-start;
        justify-self: start;
        text-align: left !important;
    }
}

/* 0.10.121: visually separate sub-subcategories from the blue parent levels. */
@media (max-width: 700px) {
    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > .graham-mobile-category-leaf,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > .graham-mobile-category-leaf,
    body.graham-catalog-view .graham-mobile-category-level-4 > .graham-mobile-category-item > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-4 > .graham-mobile-category-item > .graham-mobile-category-leaf {
        background: #eef2f5 !important;
        border-bottom-color: #c8d5df;
        color: #075da8 !important;
    }

    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > details[open] > summary,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > details[open] > summary,
    body.graham-catalog-view .graham-mobile-category-level-4 > .graham-mobile-category-item > details[open] > summary {
        background: #e2e9ee !important;
        color: #064677 !important;
    }

    body.graham-catalog-view .graham-mobile-category-level-2 .graham-mobile-category-item small,
    body.graham-catalog-view .graham-mobile-category-level-3 .graham-mobile-category-item small,
    body.graham-catalog-view .graham-mobile-category-level-4 .graham-mobile-category-item small {
        background: #d8e5ed;
        color: #075da8;
    }

    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item.is-current > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item > .graham-mobile-category-leaf.is-current,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item.is-current > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item > .graham-mobile-category-leaf.is-current,
    body.graham-catalog-view .graham-mobile-category-level-4 > .graham-mobile-category-item.is-current > details > summary,
    body.graham-catalog-view .graham-mobile-category-level-4 > .graham-mobile-category-item > .graham-mobile-category-leaf.is-current {
        background: #12833c !important;
        color: #fff !important;
    }

    body.graham-catalog-view .graham-mobile-category-level-2 > .graham-mobile-category-item.is-current small,
    body.graham-catalog-view .graham-mobile-category-level-3 > .graham-mobile-category-item.is-current small,
    body.graham-catalog-view .graham-mobile-category-level-4 > .graham-mobile-category-item.is-current small {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
}

/* Item code below the single-product title on desktop only. */
body.single-product div.product .summary .graham-single-item-code {
    display: none;
}
@media (min-width: 769px) {
    body.single-product div.product .summary .graham-single-item-code {
        display: block;
        margin: 0 0 12px;
        font-size: 0.95rem;
        color: var(--graham-muted);
    }
    body.single-product div.product .summary:has(.graham-single-item-code) .product_meta .sku_wrapper {
        display: none;
    }
}

/* 0.13.51: make the public sign-in action read as the primary card action. */
.graham-catalog-main ul.products li.product a.button.graham-login-to-order,
.graham-catalog-main .graham-price-gated-order a.button.graham-login-to-order {
    align-items: center !important;
    background: #075da8 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    margin: 8px 0 5px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    text-align: center !important;
    text-decoration: none !important;
    width: 100% !important;
}

.graham-catalog-main ul.products li.product a.button.graham-login-to-order:hover,
.graham-catalog-main ul.products li.product a.button.graham-login-to-order:focus-visible,
.graham-catalog-main .graham-price-gated-order a.button.graham-login-to-order:hover,
.graham-catalog-main .graham-price-gated-order a.button.graham-login-to-order:focus-visible {
    background: #064677 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.graham-catalog-main a.button.graham-login-to-order:focus-visible {
    outline: 3px solid #8fd5ff !important;
    outline-offset: 2px;
}

/* 0.13.56: compact phone sorting and filter controls. */
@media (max-width: 700px) {
    body.graham-catalog-view .graham-catalog-tools {
        align-items: end;
        display: grid !important;
        gap: 6px 8px;
        grid-template-columns: auto auto;
        justify-content: start;
        width: 100%;
    }

    body.graham-catalog-view .graham-catalog-toolbar {
        display: contents !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    body.graham-catalog-view .graham-catalog-toolbar-actions {
        display: flex !important;
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start !important;
        width: auto !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering select {
        width: 146px !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering select {
        font-size: 0.74rem !important;
        height: 34px !important;
        min-height: 34px !important;
        min-width: 0 !important;
        padding: 5px 28px 5px 9px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start;
        width: 112px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel > summary {
        font-size: 0.74rem;
        height: 34px !important;
        min-height: 34px !important;
        min-width: 0 !important;
        padding: 5px 9px !important;
        width: 112px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] > summary {
        width: 100% !important;
    }
}

/* 0.13.62: keep the desktop filter drawer useful without dominating results. */
@media (min-width: 901px) {
    body.graham-catalog-view .graham-catalog-filter-panel > .graham-catalog-filters {
        align-items: end !important;
        display: grid !important;
        gap: 8px 14px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        padding: 10px 12px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel .graham-filter-heading {
        display: none !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel .graham-filter-selects {
        align-items: end;
        display: grid !important;
        gap: 8px;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        width: 100%;
    }

    body.graham-catalog-view .graham-catalog-filter-panel .graham-filter-options {
        align-items: center;
        align-self: center;
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px 12px;
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100%;
    }

    body.graham-catalog-view .graham-catalog-filter-panel .graham-filter-option {
        flex: 0 1 auto;
        width: auto;
    }

    body.graham-catalog-view .graham-catalog-filter-panel .graham-filter-actions {
        align-items: center;
        align-self: end;
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-content: flex-end !important;
        width: auto;
    }

    body.graham-catalog-view .graham-catalog-filter-panel .graham-filter-actions button,
    body.graham-catalog-view .graham-catalog-filter-panel .graham-filter-actions a {
        margin: 0 !important;
        white-space: nowrap;
    }
}
.graham-catalog-main .onsale { background: #b42318 !important; color: #fff !important; }

/* 0.13.121: keep the phone sort and filter controls aligned on narrow screens. */
@media (max-width: 700px) {
    body.graham-catalog-view .graham-catalog-tools {
        gap: 5px 6px !important;
        grid-template-columns: minmax(0, 132px) minmax(0, 1fr) !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering select {
        width: 132px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel,
    body.graham-catalog-view .graham-catalog-filter-panel > summary {
        width: 96px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel > summary {
        font-size: 0.7rem !important;
        padding-left: 8px !important;
        padding-right: 7px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel:not([open]) > summary small {
        display: none !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open],
    body.graham-catalog-view .graham-catalog-filter-panel[open] > summary {
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel[open] {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }
}

@media (max-width: 350px) {
    body.graham-catalog-view .graham-catalog-tools {
        grid-template-columns: minmax(0, 124px) minmax(0, 1fr) !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering,
    body.graham-catalog-view .graham-catalog-toolbar-ordering .woocommerce-ordering select {
        width: 124px !important;
    }

    body.graham-catalog-view .graham-catalog-filter-panel,
    body.graham-catalog-view .graham-catalog-filter-panel > summary {
        width: 90px !important;
    }
}

/* 0.13.434: keep result counts clear of controls in narrow desktop columns. */
@media (min-width: 701px) and (max-width: 1180px) {
    body.graham-catalog-view .graham-catalog-toolbar {
        align-items: stretch !important;
        display: grid !important;
        gap: 6px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-count {
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view .graham-catalog-toolbar-actions {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* 0.13.453: keep the catalogue's useful content in the first phone/tablet view. */
@media (min-width: 701px) and (max-width: 1280px) {
    body.graham-catalog-view .woocommerce-breadcrumb,
    body.graham-catalog-view .wc-block-breadcrumbs,
    body.graham-catalog-view .wp-block-woocommerce-breadcrumbs {
        margin-bottom: 3px !important;
    }

    body.graham-catalog-view .graham-catalog-shell {
        margin-bottom: 44px;
        margin-top: 6px;
    }

    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro {
        gap: 12px;
        margin-bottom: 10px;
        padding: 14px 16px;
    }

    body.graham-catalog-view .graham-category-directory-actions,
    body.graham-catalog-view .graham-category-directory-filters {
        margin: 0 0 8px;
    }

    body.graham-catalog-view .graham-category-card-section {
        margin-bottom: 20px;
    }

    body.graham-catalog-view .graham-section-heading {
        margin-bottom: 10px;
    }

    body.graham-shop-landing .graham-catalog-shell.graham-catalog-home {
        margin-bottom: 44px;
        margin-top: 10px;
        width: min(1320px, calc(100vw - 32px));
    }

    body.graham-shop-landing .graham-catalog-home .graham-catalog-intro {
        margin-bottom: 14px;
        padding: 16px 20px;
    }

    body.graham-shop-landing .graham-catalog-home .graham-section-heading {
        margin-bottom: 10px;
    }
}

@media (max-width: 700px) {
    body.graham-catalog-view .graham-catalog-shell,
    body.graham-shop-landing .graham-catalog-shell.graham-catalog-home {
        margin-bottom: 24px;
        margin-top: 2px;
    }

    body.graham-catalog-view .graham-mobile-category-nav {
        margin-bottom: 6px;
    }

    body.graham-catalog-view .graham-mobile-category-nav summary {
        min-height: 38px;
        padding-bottom: 8px;
        padding-top: 8px;
    }

    body.graham-catalog-view .graham-catalog-intro,
    body.graham-catalog-view .graham-catalog-search .graham-catalog-intro {
        margin-bottom: 6px;
        padding: 9px 11px;
    }

    body.graham-catalog-view .graham-category-directory-actions,
    body.graham-catalog-view .graham-category-directory-filters {
        margin: 0 0 6px;
        padding: 0;
    }

    body.graham-catalog-view .graham-category-card-section {
        margin-bottom: 8px;
        padding-bottom: 8px;
        padding-top: 8px;
    }

    body.graham-catalog-view .graham-section-heading {
        margin-bottom: 6px;
    }

    body.graham-shop-landing .graham-catalog-home .graham-catalog-intro {
        margin-bottom: 6px;
        padding: 8px 10px;
    }
}

