/* ================================================================
   Product listings (shop, category / tag / attribute archives, search)
   Markup: template-parts/shop/shop.php, filters.php.
   Behaviour: template-parts/shop/shop.js.
   Product cards: template-parts/sections/featured-products.css.

   Mobile first. Below 1024px the filters are a drawer opened from the
   toolbar; from 1024px a sidebar next to the results. html.opsim-js is set
   in <head> (inc/woocommerce/shop-filter/query.php), so the drawer layout
   applies from the first paint; without JavaScript the form is shown
   inline with its submit button.

   Same tokens as the checkout and the cart drawer: neutral 1px borders,
   13px corners, brand colour for the selected state and the main button.
   ================================================================ */

.opsim-shop {
    --sh-brand: var(--opsim-brand, #016b61);
    --sh-brand-hover: color-mix(in srgb, var(--sh-brand) 85%, #000);
    --sh-text: var(--opsim-text-primary, #111827);
    --sh-muted: var(--opsim-gray-500, #6b7280);
    --sh-border: var(--opsim-gray-200, #e5e7eb);
    --sh-border-strong: var(--opsim-gray-300, #d1d5db);
    --sh-surface: var(--opsim-surface, #fff);
    --sh-surface-muted: var(--opsim-gray-50, #f9fafb);
    --sh-chip: var(--opsim-gray-100, #f3f4f6);
    --sh-radius: var(--theme-radius);
    --sh-control-h: 44px;
    --sh-sidebar: 248px;
    --sh-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --sh-focus: 0 0 0 3px color-mix(in srgb, var(--sh-brand) 20%, transparent);

    color: var(--sh-text);
}

.opsim-shop__inner {
    max-width: 1400px; /* the header's container */
    margin: 0 auto;
    padding: 24px 20px 56px;
}

@media (max-width: 767px) {
    .opsim-shop__inner {
        padding: 16px 12px 40px;
    }
}

.opsim-shop [hidden] {
    display: none !important;
}

/* ---------------------------------------------------------------
   Head: title + product count
   --------------------------------------------------------------- */

.shop-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 0 0 16px;
}

.shop-head__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--sh-text);
    overflow-wrap: anywhere;
}

.shop-head__count {
    margin: 0;
    font-size: 0.875rem;
    color: var(--sh-muted);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .shop-head__title {
        font-size: 1.75rem;
    }
}

/* ---------------------------------------------------------------
   Toolbar: [Filtrer] [Trier] on mobile / tablet, [chips … Trier] above the
   results from 1024px
   --------------------------------------------------------------- */

.shop-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin: 0 0 12px;
}

/* Without JavaScript there is no drawer to open: the form shows inline */
html:not(.opsim-js) .opsim-shop .shop-toolbar__filter {
    display: none;
}

html:not(.opsim-js) .opsim-shop .shop-toolbar {
    grid-template-columns: minmax(0, 1fr);
}

.shop-toolbar__button,
.shop-sort__control {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: var(--sh-control-h);
    margin: 0;
    padding: 0 14px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--sh-text);
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-toolbar__button:hover,
.shop-sort__control:hover {
    border-color: var(--sh-border-strong);
}

.shop-toolbar__button:focus-visible {
    outline: none;
    border-color: var(--sh-brand);
    box-shadow: var(--sh-focus);
}

.shop-toolbar__button svg,
.shop-sort__control > svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.shop-toolbar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    background: var(--sh-brand);
    border-radius: var(--theme-radius-full);
    font-variant-numeric: tabular-nums;
}

/* Sort: a native select (keyboard, screen readers, mobile pickers) styled as the button */
.shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.shop-sort__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.shop-sort__control {
    padding: 0;
    cursor: default;
}

.shop-sort__control:focus-within {
    border-color: var(--sh-brand);
    box-shadow: var(--sh-focus);
}

.shop-sort__control > svg {
    position: absolute;
    top: 50%;
    pointer-events: none;
    transform: translateY(-50%);
}

.shop-sort__control > svg:first-child {
    left: 14px;
}

.shop-sort__control > svg:last-child {
    right: 12px;
    width: 16px;
    height: 16px;
    color: var(--sh-muted);
}

.shop-sort__select {
    width: 100%;
    min-width: 0;
    height: calc(var(--sh-control-h) - 2px);
    margin: 0;
    padding: 0 34px 0 40px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: var(--sh-radius);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.shop-sort__select option {
    text-transform: none;
}

.shop-sort__submit {
    min-height: var(--sh-control-h);
    padding: 0 16px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: var(--sh-brand);
    border: 0;
    border-radius: var(--sh-radius);
    cursor: pointer;
}

/* From 1024px: title + count on the left, sort on the right, one row */
@media (min-width: 1024px) {
    .opsim-shop__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        column-gap: 24px;
    }

    .shop-head {
        margin: 0;
    }

    .shop-chips,
    .shop-layout {
        grid-column: 1 / -1;
    }

    .shop-layout {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--sh-border);
    }

    .shop-chips {
        margin: 16px 0 0;
    }

    .shop-toolbar {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
        margin: 0;
    }

    .opsim-js .opsim-shop .shop-toolbar__filter {
        display: none;
    }

    .shop-sort__label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        font-size: 0.875rem;
        color: var(--sh-muted);
    }

    .shop-sort__control {
        width: auto;
        min-width: 230px;
    }
}

/* ---------------------------------------------------------------
   Active filters (chips)
   --------------------------------------------------------------- */

.shop-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 16px;
}

.shop-chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    max-width: 100%;
    padding: 4px 10px 4px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sh-text);
    text-decoration: none;
    background: var(--sh-chip);
    border: 1px solid transparent;
    border-radius: var(--theme-radius-full);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.shop-chip > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-chip:hover {
    border-color: var(--sh-border-strong);
    background: var(--sh-surface);
}

.shop-chip:focus-visible,
.shop-chips__clear:focus-visible,
.shop-filters__clear:focus-visible,
.shop-empty__action:focus-visible {
    outline: 2px solid var(--sh-brand);
    outline-offset: 2px;
}

.shop-chip svg {
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--sh-muted);
}

.shop-chips__clear {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sh-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-chips__clear:hover {
    color: var(--sh-brand-hover);
}

/* ---------------------------------------------------------------
   Layout: sidebar + results from 1024px
   --------------------------------------------------------------- */

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 1024px) {
    .shop-layout {
        grid-template-columns: var(--sh-sidebar) minmax(0, 1fr);
        align-items: start;
        gap: 32px;
    }
}

/* ---------------------------------------------------------------
   Filters panel (sidebar / drawer / inline without JavaScript)
   --------------------------------------------------------------- */

.shop-filters {
    margin: 0;
    min-width: 0;
}

.shop-filters__overlay {
    display: none;
}

.shop-filters__panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    outline: none;
}

.shop-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-filters__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: inherit;
}

.shop-filters__close {
    display: none;
}

.shop-filters__none {
    margin: 12px 0;
    font-size: 0.875rem;
    color: var(--sh-muted);
}

.shop-filters__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 0;
}

.shop-filters__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--sh-text);
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
}

.shop-filters__clear:hover {
    border-color: var(--sh-border-strong);
}

/* The checkout's order button */
.shop-filters__apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--sh-brand);
    border: 0;
    border-radius: var(--sh-radius);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.shop-filters__apply:hover {
    background: var(--sh-brand-hover);
}

.shop-filters__apply:focus-visible {
    outline: 2px solid var(--sh-brand);
    outline-offset: 3px;
}

.shop-filters__apply-js {
    display: none;
}

.opsim-js .opsim-shop .shop-filters__apply-js {
    display: inline;
}

.opsim-js .opsim-shop .shop-filters__apply-nojs {
    display: none;
}

/* Sidebar (from 1024px): no drawer chrome; results update as you choose */
@media (min-width: 1024px) {
    .shop-filters__header {
        padding: 0 0 4px;
    }

    .opsim-js .opsim-shop .shop-filters__footer {
        display: none;
    }
}

/* Inline without JavaScript, below 1024px: a bordered block above the results */
@media (max-width: 1023.98px) {
    html:not(.opsim-js) .opsim-shop .shop-filters__panel {
        padding: 16px;
        border: 1px solid var(--sh-border);
        border-radius: var(--sh-radius);
    }
}

/* Drawer (below 1024px, with JavaScript) */
@media (max-width: 1023.98px) {
    .opsim-js .opsim-shop .shop-filters {
        position: fixed;
        inset: 0;
        z-index: 100001; /* above the header, below the cart drawer */
        visibility: hidden;
        pointer-events: none;
    }

    .opsim-js .opsim-shop .shop-filters.is-animated {
        transition: visibility 0s linear 0.35s;
    }

    .opsim-js .opsim-shop .shop-filters.is-open {
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .opsim-js .opsim-shop .shop-filters.is-animated .shop-filters__overlay {
        transition: opacity 0.3s ease;
    }

    .opsim-js .opsim-shop .shop-filters.is-animated .shop-filters__panel {
        transition: transform 0.35s var(--sh-ease);
    }

    .opsim-js .opsim-shop .shop-filters__overlay {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(17, 24, 39, 0.5);
        opacity: 0;
        cursor: pointer;
    }

    .opsim-js .opsim-shop .shop-filters.is-open .shop-filters__overlay {
        opacity: 1;
    }

    .opsim-js .opsim-shop .shop-filters__panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(420px, calc(100% - 40px)); /* an overlay strip stays visible to tap */
        height: 100%;
        height: 100dvh;
        overflow: hidden;
        background: var(--sh-surface);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
        transform: translateX(-100%);
    }

    .opsim-js .opsim-shop .shop-filters.is-open .shop-filters__panel {
        transform: translateX(0);
    }

    .opsim-js[dir="rtl"] .opsim-shop .shop-filters__panel {
        left: auto;
        right: 0;
        transform: translateX(100%);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    }

    .opsim-js[dir="rtl"] .opsim-shop .shop-filters.is-open .shop-filters__panel {
        transform: translateX(0);
    }

    /* Header: the cart drawer's brand bar */
    .opsim-js .opsim-shop .shop-filters__header {
        flex: none;
        min-height: 60px;
        padding: 0 12px 0 20px;
        color: #fff;
        background: var(--sh-brand);
    }

    .opsim-js .opsim-shop .shop-filters__title {
        font-size: 1rem;
        letter-spacing: 0.04em;
    }

    .opsim-js .opsim-shop .shop-filters__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: inherit;
        background: transparent;
        border: 0;
        border-radius: var(--sh-radius);
        cursor: pointer;
    }

    .opsim-js .opsim-shop .shop-filters__close:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .opsim-js .opsim-shop .shop-filters__close:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -4px;
    }

    .opsim-js .opsim-shop .shop-filters__close svg {
        width: 22px;
        height: 22px;
    }

    .opsim-js .opsim-shop .shop-filters__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px;
    }

    .opsim-js .opsim-shop .shop-filters__footer {
        flex: none;
        flex-direction: row;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--sh-surface);
        border-top: 1px solid var(--sh-border);
    }

    .opsim-js .opsim-shop .shop-filters__footer > * {
        min-width: 0;
    }

    .opsim-js .opsim-shop .shop-filters__clear {
        flex: 0 0 auto;
    }

    .opsim-js .opsim-shop .shop-filters__apply {
        flex: 1 1 auto;
        white-space: nowrap;
    }

    /* Page behind the open drawer: no scrolling (shop.js keeps the scrollbar's width) */
    html.shop-filters-is-open {
        overflow: hidden;
    }
}

/* ---------------------------------------------------------------
   Filter groups
   --------------------------------------------------------------- */

.shop-facet {
    border-bottom: 1px solid var(--sh-border);
}

.shop-facet:last-child {
    border-bottom: 0;
}

.shop-facet__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 4px 0;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.shop-facet__summary::-webkit-details-marker {
    display: none;
}

.shop-facet__summary:focus-visible {
    outline: 2px solid var(--sh-brand);
    outline-offset: -2px;
    border-radius: var(--theme-radius-sm);
}

.shop-facet__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shop-facet__selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--sh-brand);
    border-radius: var(--theme-radius-full);
    font-variant-numeric: tabular-nums;
}

.shop-facet__summary > svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--sh-muted);
    transition: transform 0.2s ease;
}

.shop-facet[open] > .shop-facet__summary > svg {
    transform: rotate(180deg);
}

.shop-facet__body {
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
}

/* Options: checkbox + optional swatch + name + count */
.shop-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-option {
    position: relative;
    padding-left: calc(var(--depth, 0) * 18px);
}

.shop-option__input {
    position: absolute;
    top: 50%;
    left: calc(var(--depth, 0) * 18px);
    width: 18px;
    height: 18px;
    margin: -9px 0 0;
    opacity: 0;
    cursor: pointer;
}

.shop-option__label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: var(--sh-text);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .shop-option__label {
        min-height: 34px;
        font-size: 0.875rem;
    }
}

.shop-option__box {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--sh-surface);
    border: 1.5px solid var(--sh-border-strong);
    border-radius: 5px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Check mark: the theme's check icon as a mask, white on the brand colour */
.shop-option__box::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #fff;
    -webkit-mask: url("../../assets/icons/interface/check.svg") center / contain no-repeat;
    mask: url("../../assets/icons/interface/check.svg") center / contain no-repeat;
    opacity: 0;
}

.shop-option__label:hover .shop-option__box {
    border-color: var(--sh-muted);
}

.shop-option__input:checked + .shop-option__label .shop-option__box {
    background: var(--sh-brand);
    border-color: var(--sh-brand);
}

.shop-option__input:checked + .shop-option__label .shop-option__box::after {
    opacity: 1;
}

.shop-option__input:focus-visible + .shop-option__label .shop-option__box {
    box-shadow: var(--sh-focus);
    border-color: var(--sh-brand);
}

.shop-option__input:checked + .shop-option__label .shop-option__name {
    font-weight: 700;
}

.shop-option__swatch {
    flex: none;
    width: 16px;
    height: 16px;
    background: var(--swatch);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.shop-option__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.shop-option__count {
    flex: none;
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--sh-muted);
    font-variant-numeric: tabular-nums;
}

/* A selected option with no product left (kept so it can be unselected) */
.shop-option.is-empty .shop-option__name {
    color: var(--sh-muted);
}

/* Price */
.shop-price__fields {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.shop-price__field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.shop-price__label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sh-muted);
}

.shop-price__field {
    position: relative;
}

.shop-price__input {
    display: block;
    width: 100%;
    height: var(--sh-control-h);
    margin: 0;
    padding: 0 44px 0 12px;
    font: inherit;
    font-size: 1rem; /* 16px: no zoom on iOS focus */
    color: var(--sh-text);
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

.shop-price__input::-webkit-outer-spin-button,
.shop-price__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.shop-price__input::placeholder {
    color: var(--opsim-gray-400, #9ca3af);
}

.shop-price__input:hover {
    border-color: var(--sh-border-strong);
}

.shop-price__input:focus {
    outline: none;
    border-color: var(--sh-brand);
    box-shadow: var(--sh-focus);
}

.shop-price__currency {
    position: absolute;
    right: 12px;
    bottom: 0;
    display: flex;
    align-items: center;
    height: var(--sh-control-h);
    font-size: 0.8125rem;
    color: var(--sh-muted);
    pointer-events: none;
}

.shop-price__sep {
    display: flex;
    align-items: center;
    height: var(--sh-control-h);
    color: var(--sh-muted);
}

.shop-price__hint {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: var(--sh-muted);
}

/* ---------------------------------------------------------------
   Results: the theme's product cards in a responsive grid
   --------------------------------------------------------------- */

.shop-results {
    min-width: 0;
    transition: opacity 0.15s ease;
}

/* Loading (shop.js): the current results stay, dimmed, until the new ones arrive */
.opsim-shop.is-loading .shop-results {
    opacity: 0.45;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .shop-results,
    .shop-facet__summary > svg,
    .opsim-js .opsim-shop .shop-filters.is-animated,
    .opsim-js .opsim-shop .shop-filters.is-animated .shop-filters__panel,
    .opsim-js .opsim-shop .shop-filters.is-animated .shop-filters__overlay {
        transition: none;
    }
}

.opsim-shop .shop-grid {
    grid-template-columns: repeat(var(--shop-cols-mobile, 2), minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 768px) {
    .opsim-shop .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1280px) {
    .opsim-shop .shop-grid {
        grid-template-columns: repeat(var(--shop-cols, 4), minmax(0, 1fr));
        gap: 16px;
    }
}

.shop-results--no-border .fp-product-card {
    border: none;
}

/* Customizer → Featured Products: 3 or more columns on phones would crush the cards */
@media (max-width: 380px) {
    .opsim-shop .shop-grid {
        grid-template-columns: repeat(min(var(--shop-cols-mobile, 2), 2), minmax(0, 1fr));
    }
}

.opsim-shop .opsim-pagination {
    margin-top: 32px;
}

.opsim-shop .opsim-pagination li a,
.opsim-shop .opsim-pagination li span {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    border-color: var(--sh-border);
    border-radius: var(--theme-radius-sm);
}

.opsim-shop .opsim-pagination li span.dots {
    border-color: transparent;
}

.opsim-shop .opsim-pagination svg {
    width: 18px;
    height: 18px;
}

.opsim-shop .opsim-pagination a:focus-visible {
    outline: 2px solid var(--sh-brand);
    outline-offset: 2px;
}

/* Empty state */
.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 20px;
    text-align: center;
    background: var(--sh-surface-muted);
    border-radius: var(--sh-radius);
}

.shop-empty > svg {
    width: 32px;
    height: 32px;
    color: var(--sh-muted);
}

.shop-empty__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.shop-empty__action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--sh-text);
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
}

.shop-empty__action:hover {
    border-color: var(--sh-border-strong);
}
