.el55-product-showcase {
    --el55-accent: var(--color-primary, #d51f2b);
    --el55-surface: var(--theme-product-card-bg, #fff);
    --el55-ink: var(--theme-product-card-text, var(--el55-section-text, #17191d));
    --el55-muted: color-mix(in srgb, var(--el55-ink) 58%, transparent);
    --el55-border: color-mix(in srgb, var(--el55-ink) 11%, transparent);
    color: var(--el55-section-text);
    background: var(--el55-section-bg);
}

.el55-product-showcase__header {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.el55-product-showcase__title {
    margin: 0;
    color: inherit;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    font-weight: 850;
    line-height: 1.35;
}

.el55-product-showcase__description {
    margin-top: .55rem;
    color: color-mix(in srgb, var(--el55-section-text) 68%, transparent);
    font-size: .9rem;
    line-height: 1.8;
}

.el55-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.el55-filter-column {
    align-self: stretch;
}

.el55-filter-panel {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    padding: 1rem;
    overflow-y: auto;
    color: var(--el55-ink);
    border: 1px solid color-mix(in srgb, var(--el55-accent) 24%, var(--el55-border));
    border-radius: 1rem;
    background: var(--el55-surface);
    box-shadow: 0 .4rem 1rem rgba(16, 24, 40, .055);
}

.el55-filter-panel::-webkit-scrollbar { width: 0; }

.el55-filter-panel__heading,
.el55-stock-filter,
.el55-filter-group > summary,
.el55-filter-panel__submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.el55-filter-panel__heading {
    gap: .5rem;
    margin-bottom: .9rem;
    font-size: .9rem;
    font-weight: 850;
}

.el55-filter-panel__heading i { color: var(--el55-accent); }

.el55-filter-panel__clear {
    color: var(--el55-accent);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
}

.el55-stock-filter {
    position: relative;
    gap: .5rem;
    min-height: 2.8rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--el55-border);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.el55-stock-filter input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.el55-stock-filter__switch {
    position: relative;
    width: 2.35rem;
    height: 1.35rem;
    border-radius: 99rem;
    background: color-mix(in srgb, var(--el55-ink) 12%, transparent);
    transition: background-color .18s ease;
}

.el55-stock-filter__switch::after {
    position: absolute;
    top: .18rem;
    right: .18rem;
    width: .99rem;
    height: .99rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 .1rem .25rem rgba(0, 0, 0, .18);
    content: "";
    transition: transform .18s ease;
}

.el55-stock-filter input:checked + .el55-stock-filter__switch { background: var(--el55-accent); }
.el55-stock-filter input:checked + .el55-stock-filter__switch::after { transform: translateX(-1rem); }

.el55-filter-group {
    border-bottom: 1px solid var(--el55-border);
}

.el55-filter-group > summary {
    min-height: 3.35rem;
    list-style: none;
    font-size: .8rem;
    font-weight: 750;
    cursor: pointer;
}

.el55-filter-group > summary::-webkit-details-marker { display: none; }
.el55-filter-group > summary::before { color: var(--el55-accent); content: "⌄"; font-size: 1.1rem; }
.el55-filter-group[open] > summary::before { transform: rotate(180deg); }

.el55-filter-group__options {
    display: grid;
    gap: .45rem;
    padding: 0 0 .85rem;
}

.el55-filter-group__options--chips {
    display: flex;
    flex-wrap: wrap;
}

.el55-filter-option {
    display: flex;
    gap: .5rem;
    align-items: center;
    min-width: 0;
    color: var(--el55-muted);
    font-size: .74rem;
    cursor: pointer;
}

.el55-filter-option input { accent-color: var(--el55-accent); }
.el55-filter-option__color { width: .85rem; height: .85rem; border: 1px solid var(--el55-border); border-radius: 50%; background: var(--el55-filter-color, #ddd); }

.el55-filter-option--chip {
    min-height: 2rem;
    padding: .25rem .5rem;
    border: 1px solid var(--el55-border);
    border-radius: .6rem;
}

.el55-price-filter { display: grid; gap: .5rem; padding: 0 0 .85rem; }
.el55-price-filter label { display: flex; gap: .5rem; align-items: center; color: var(--el55-muted); font-size: .72rem; }
.el55-price-filter input { width: 100%; min-width: 0; padding: .35rem .45rem; border: 1px solid var(--el55-border); border-radius: .45rem; color: var(--el55-ink); }

.el55-filter-panel__submit {
    gap: .5rem;
    justify-content: center;
    min-height: 2.65rem;
    margin-top: 1rem;
    color: #fff;
    border: 0;
    border-radius: .7rem;
    background: var(--el55-accent);
    font-size: .78rem;
    font-weight: 750;
}

.el55-sorter {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .8rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: .65rem .85rem;
    border: 1px solid var(--el55-border);
    border-radius: .75rem;
    background: var(--el55-surface);
}

.el55-sorter__label { color: var(--el55-muted); font-size: .75rem; font-weight: 700; }
.el55-sorter__option { color: var(--el55-muted); font-size: .73rem; font-weight: 650; cursor: pointer; }
.el55-sorter__option input { position: absolute; opacity: 0; pointer-events: none; }
.el55-sorter__option.is-active { color: var(--el55-accent); font-weight: 850; }

.el55-pagination {
    display: flex;
    gap: .35rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 .25rem;
    direction: rtl;
}

.el55-pagination__link {
    display: inline-grid;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: .35rem;
    place-items: center;
    color: var(--el55-ink);
    border: 1px solid var(--el55-border);
    border-radius: .65rem;
    background: var(--el55-surface);
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.el55-pagination__link:hover {
    color: var(--el55-accent);
    border-color: color-mix(in srgb, var(--el55-accent) 40%, var(--el55-border));
    transform: translateY(-1px);
}

.el55-pagination__link.is-active {
    color: #fff;
    border-color: var(--el55-accent);
    background: var(--el55-accent);
}

.el55-pagination__link--arrow {
    font-size: .95rem;
}

.el55-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    color: var(--el55-ink);
    border: 1px solid var(--el55-border);
    border-radius: 1.4rem;
    background: var(--el55-surface);
    box-shadow: 0 .45rem 1.3rem rgba(16, 24, 40, .055);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .el55-product-card:hover {
        border-color: color-mix(in srgb, var(--el55-accent) 32%, var(--el55-border));
        box-shadow: 0 .8rem 1.9rem rgba(16, 24, 40, .1);
        transform: translateY(-2px);
    }
}

.el55-product-card__media {
    position: relative;
    aspect-ratio: 1 / .92;
    min-height: 0;
    padding: 1rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 44%, #fff 0, color-mix(in srgb, var(--el55-ink) 3%, #fff) 72%);
}

.el55-product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.el55-product-card__image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .28s ease;
}

@media (hover: hover) and (pointer: fine) {
    .el55-product-card:hover .el55-product-card__image-link img {
        transform: scale(1.025);
    }
}

.el55-product-card__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: color-mix(in srgb, var(--el55-ink) 22%, transparent);
    font-size: 2rem;
}

.el55-product-card__badges {
    position: absolute;
    z-index: 2;
    inset: .75rem .75rem auto auto;
    display: flex;
    gap: .35rem;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
}

.el55-product-card__badge {
    display: inline-flex;
    flex: 0 1 auto;
    gap: .25rem;
    align-items: center;
    min-width: 0;
    padding: .3rem .5rem;
    overflow: hidden;
    color: var(--el55-badge-text, #fff);
    border-radius: .55rem;
    background: var(--el55-badge-bg, #343840);
    font-size: .65rem;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.el55-product-card__badge--discount {
    --el55-badge-bg: var(--el55-accent);
    --el55-badge-text: #fff;
}

.el55-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1.05rem 1.1rem;
}

.el55-product-card__brand {
    margin-bottom: .25rem;
    overflow: hidden;
    color: var(--el55-muted);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.el55-product-card__name {
    min-height: 2.9em;
    margin: 0;
    overflow: hidden;
    font-size: .95rem;
    font-weight: 850;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.el55-product-card__name a {
    color: var(--el55-ink);
    text-decoration: none;
}

.el55-product-card__name a:hover {
    color: var(--el55-accent);
}

.el55-product-card__primary-spec {
    margin: .4rem 0 0;
    overflow: hidden;
    color: var(--el55-ink);
    font-size: .8rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.el55-product-card__variants {
    display: grid;
    gap: .65rem;
    margin-top: .8rem;
}

.el55-variant-group {
    min-width: 0;
}

.el55-variant-group__label {
    display: block;
    margin-bottom: .35rem;
    overflow: hidden;
    color: var(--el55-muted);
    font-size: .69rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.el55-variant-group__options {
    display: flex;
    gap: .35rem;
    max-height: 2.15rem;
    overflow: hidden;
}

.el55-variant-chip {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2rem;
    padding: .35rem .55rem;
    overflow: hidden;
    color: var(--el55-ink);
    border: 1px solid var(--el55-border);
    border-radius: .7rem;
    background: color-mix(in srgb, var(--el55-ink) 3%, transparent);
    font-size: .7rem;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.el55-variant-chip:hover {
    border-color: color-mix(in srgb, var(--el55-accent) 42%, var(--el55-border));
    background: color-mix(in srgb, var(--el55-accent) 8%, #fff);
}

.el55-variant-chip.is-selected,
.el55-variant-chip[aria-current="true"] {
    color: var(--el55-accent);
    border-color: color-mix(in srgb, var(--el55-accent) 35%, transparent);
    background: color-mix(in srgb, var(--el55-accent) 9%, #fff);
    font-weight: 750;
}

.el55-variant-chip.is-disabled,
.el55-variant-chip[aria-disabled="true"] {
    opacity: .42;
    cursor: not-allowed;
}

.el55-variant-chip--more {
    flex: 0 0 auto;
    color: var(--el55-muted);
}

.el55-variant-group.has-error .el55-variant-group__label,
.el55-variant-feedback {
    color: var(--el55-accent);
}

.el55-variant-group.has-error .el55-variant-chip {
    border-color: color-mix(in srgb, var(--el55-accent) 55%, transparent);
}

.el55-variant-feedback {
    min-height: 1.15em;
    margin-top: .25rem;
    font-size: .65rem;
    line-height: 1.15;
}

.el55-product-card__purchase {
    display: grid;
    gap: .55rem;
    margin-top: auto;
    padding-top: 1rem;
}

.el55-product-card__price-area {
    min-height: 3rem;
}

.el55-product-card__price {
    display: flex;
    gap: .3rem;
    align-items: baseline;
}

.el55-product-card__price strong {
    color: var(--el55-ink);
    font-size: 1.12rem;
    font-weight: 900;
}

.el55-product-card__price span {
    color: var(--el55-muted);
    font-size: .68rem;
    font-weight: 650;
}

.el55-product-card__price-area del {
    display: block;
    margin-top: .1rem;
    color: var(--el55-muted);
    font-size: .7rem;
}

.el55-product-card__unavailable {
    color: var(--el55-accent);
    font-size: .85rem;
}

.el55-product-card__availability {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    color: var(--el55-muted);
    font-size: .68rem;
    font-weight: 600;
}

.el55-product-card__availability.is-available i {
    color: #168a55;
}

.el55-product-card__availability.is-unavailable i {
    color: var(--el55-accent);
}

.el55-add-to-cart,
.el55-product-card__details {
    position: relative;
    display: flex;
    gap: .45rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: .65rem .75rem;
    color: #fff;
    border: 1px solid var(--el55-accent);
    border-radius: .85rem;
    background: var(--el55-accent);
    box-shadow: 0 .35rem .8rem color-mix(in srgb, var(--el55-accent) 18%, transparent);
    font-size: .77rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease, background-color .18s ease;
}

.el55-add-to-cart:hover:not(:disabled),
.el55-product-card__details:hover {
    color: #fff;
    filter: brightness(.93);
    transform: translateY(-1px);
}

.el55-add-to-cart:focus-visible,
.el55-product-card__details:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--el55-accent) 25%, transparent);
    outline-offset: 2px;
}

.el55-add-to-cart:disabled {
    color: var(--el55-muted);
    border-color: var(--el55-border);
    background: color-mix(in srgb, var(--el55-ink) 5%, transparent);
    box-shadow: none;
    cursor: not-allowed;
}

.el55-add-to-cart__spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: el55-spin .7s linear infinite;
}

.el55-add-to-cart.is-loading .el55-add-to-cart__icon {
    display: none;
}

.el55-add-to-cart.is-loading .el55-add-to-cart__spinner {
    display: inline-block;
}

.el55-add-to-cart.is-success {
    border-color: #168a55;
    background: #168a55;
}

@keyframes el55-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
    .el55-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .el55-product-card {
        border-radius: 1.05rem;
    }

    .el55-product-card__media {
        padding: .65rem;
    }

    .el55-product-card__body {
        padding: .8rem .7rem .85rem;
    }

    .el55-product-card__name {
        min-height: 2.75em;
        font-size: .84rem;
    }

    .el55-product-card__variants {
        gap: .5rem;
        margin-top: .65rem;
    }

    .el55-variant-chip {
        min-width: 2rem;
        min-height: 2.1rem;
        padding-inline: .45rem;
    }

    .el55-add-to-cart,
    .el55-product-card__details {
        min-height: 2.85rem;
        padding-inline: .45rem;
        font-size: .7rem;
    }
}

@media (max-width: 991.98px) {
    .el55-filter-panel {
        position: static;
        max-height: none;
        margin-bottom: .25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .el55-product-showcase *,
    .el55-product-showcase *::before,
    .el55-product-showcase *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
