.recent-products-anchor{height:1px;pointer-events:none}
.recent-products[hidden],.recent-products [hidden]{display:none!important}
.recent-products{padding-block:clamp(24px,3vw,42px);border-top:1px solid var(--line)}
.recent-products__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.recent-products__header h2{margin:0;min-width:0;font-size:clamp(1.3rem,1.05rem + 1vw,1.85rem);line-height:1.25}
.recent-products__clear,.recent-products__settings{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 13px;border:1px solid #e1a28c;border-radius:7px;background:#fff5ef;color:#743b29;font:inherit;font-size:.82rem;font-weight:750;line-height:1.3;cursor:pointer}
.recent-products__clear:hover,.recent-products__settings:hover{background:#f9e4d9;border-color:#c77759}
.recent-products__clear:focus-visible,.recent-products__settings:focus-visible,.recent-products__card:focus-visible{outline:3px solid #617f16;outline-offset:3px}
.recent-products__items{display:flex;flex-wrap:wrap;align-items:stretch;gap:16px;min-width:0}
.recent-products__card{display:flex;flex-direction:column;flex:0 1 calc((100% - 48px)/4);min-width:0;max-width:100%;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink);text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease}
.recent-products__card:hover{border-color:#9cae75;box-shadow:0 4px 16px #1b2c1910}
.recent-products__visual{display:flex;position:relative;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;min-width:0;background:#fff}
.recent-products__visual img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:100%;padding:8px;object-fit:contain}
.recent-products__visual>.stock-badge{position:absolute;left:8px;top:8px;z-index:1;max-width:calc(100% - 16px);font-size:.65rem;line-height:1.25;padding:4px 7px;border-radius:5px}
.recent-products__placeholder{padding:16px;color:var(--steel);font-size:.8rem;text-align:center}
.recent-products__body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;padding:14px}
.recent-products .recent-products__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-width:100%;margin:0;font-size:clamp(.88rem,.82rem + .22vw,1.02rem);line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere}
.recent-products__code{font-size:.75rem;line-height:1.3;color:var(--steel);overflow-wrap:anywhere}
.recent-products__price{display:block;max-width:100%;margin-top:auto;padding-top:5px;font-size:.98rem;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.recent-products__price small{display:block;font-size:.72rem;font-weight:500;color:var(--steel)}
.recent-products__status{margin:16px 0}
.recent-products__retry{min-height:44px}
.recent-products__footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:16px;color:var(--steel);font-size:.75rem}
.recent-products__footer p{margin:0}
.recent-products__settings{border-color:transparent;background:transparent;text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){.recent-products__card{flex-basis:calc((100% - 16px)/2)}}
@media(max-width:600px){.recent-products__items{gap:10px}.recent-products__card{flex-basis:calc((100% - 10px)/2)}.recent-products__body{padding:11px;gap:6px}.recent-products__header{margin-bottom:15px}.recent-products__visual img{padding:6px}.recent-products__price{font-size:.92rem}}
@media(prefers-reduced-motion:reduce){.recent-products__card{transition:none}}
