.el57-section { --el57-muted: color-mix(in srgb, var(--el57-text) 56%, transparent); color: var(--el57-text); background: var(--el57-bg); direction: rtl; }
.el57-heading { max-width: 42rem; margin: 0 auto 1.5rem; text-align: center; }
.el57-heading h2 { margin: 0; color: inherit; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.el57-heading div { margin-top: .5rem; color: var(--el57-muted); }
.el57-tabs { display: flex; gap: 1.75rem; align-items: center; justify-content: center; margin: 0 0 2rem; overflow-x: auto; scrollbar-width: none; }
.el57-tab { position: relative; flex: 0 0 auto; padding: .35rem 0 .55rem; color: var(--el57-muted); border: 0; border-radius: 0; background: transparent; font-size: clamp(.95rem, 1.8vw, 1.2rem); font-weight: 500; line-height: 1.4; }
.el57-tab::after { position: absolute; right: 0; bottom: 0; width: 0; height: 1px; background: currentColor; content: ""; transition: width .2s ease; }
.el57-tab.is-active { color: var(--el57-text); }
.el57-tab.is-active::after { width: 100%; }
.el57-panel[hidden] { display: none; }
.el57-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.1rem; }
.el57-card { min-width: 0; color: var(--el57-text); }
.el57-card__media { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: .3rem; background: #f2f3f4; }
.el57-card__image { display: block; width: 100%; height: 100%; }
.el57-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .45s ease; }
.el57-card__secondary { opacity: 0; }
.el57-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #aaa; font-size: 2rem; }
.el57-card__sale { position: absolute; z-index: 2; top: .55rem; right: .55rem; padding: .18rem .45rem; color: #fff; border-radius: 99rem; background: #ff3d45; font-size: .65rem; font-weight: 700; }
.el57-card__cart { position: absolute; z-index: 3; right: .55rem; bottom: .55rem; left: .55rem; justify-content: center; width: calc(100% - 1.1rem); padding: .6rem; color: #555; border: 0; border-radius: 99rem; background: rgba(255,255,255,.94); font-size: .68rem; font-weight: 600; opacity: 0; transform: translateY(.5rem); transition: opacity .2s ease, transform .2s ease; }
.el57-card__info { padding-top: .65rem; }
.el57-card__info h3 { margin: 0 0 .3rem; overflow: hidden; color: inherit; font-size: .75rem; font-weight: 500; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.el57-card__info h3 a { color: inherit; }
.el57-card__price { display: flex; gap: .3rem; align-items: baseline; min-height: 1.35rem; font-size: .72rem; }
.el57-card__price strong { font-weight: 700; }
.el57-card__price span, .el57-card__price del { color: var(--el57-muted); font-size: .62rem; }
.el57-card__colors { display: flex; gap: .35rem; margin-top: .45rem; }
.el57-card__colors span { width: .78rem; height: .78rem; border: 1px solid #fff; border-radius: 50%; background: var(--el57-swatch); box-shadow: 0 0 0 1px #b8b8b8; }
.el57-footer { margin-top: 2rem; text-align: center; }
.el57-footer a { padding-bottom: .15rem; color: inherit; border-bottom: 1px solid currentColor; font-size: .72rem; }
.el57-empty { padding: 3rem; text-align: center; color: var(--el57-muted); }

@media (hover: hover) and (pointer: fine) {
    .el57-card:hover .el57-card__secondary { opacity: 1; }
    .el57-card:hover .el57-card__primary { transform: scale(1.025); }
    .el57-card:hover .el57-card__cart { opacity: 1; transform: none; }
    .el57-card__cart:hover { color: #fff; background: #111; }
}
@media (max-width: 991.98px) { .el57-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .el57-section { padding-inline: .15rem; }
    .el57-tabs { justify-content: flex-start; gap: 1.25rem; margin-bottom: 1.35rem; }
    .el57-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .7rem; }
    .el57-card__cart { opacity: 1; transform: none; }
    .el57-card__media { aspect-ratio: 3/4; }
    .el57-card__info h3 { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .el57-section * { scroll-behavior: auto !important; transition: none !important; } }
