/* Задача 04: блок «Каталог товарів» на головній і «Усі категорії» в /catalog/ */
.hc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hc-c{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 46%;align-items:center;gap:8px;min-height:188px;padding:22px 18px 22px 24px;border-radius:20px;border:1px solid var(--line);background:#fff;overflow:hidden;isolation:isolate;transition:transform .25s,box-shadow .25s,border-color .25s}
.hc-c::before{content:"";position:absolute;right:-40px;top:50%;width:260px;height:260px;transform:translateY(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(var(--accent-rgb),.13),rgba(var(--accent-rgb),.04) 60%,transparent);z-index:-1;transition:.3s}
.hc-t{display:flex;flex-direction:column;gap:6px;min-width:0}
.hc-g{font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--accent)}
.hc-c b{font-size:20px;line-height:1.18;font-weight:900;letter-spacing:-.015em}
.hc-q{font-family:var(--mono);font-size:12px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-n{align-self:flex-start;margin-top:8px;font-size:12.5px;font-weight:700;padding:5px 10px;border-radius:999px;background:#f1f4f9;color:var(--fg-2)}
.hc-im{height:150px;display:grid;place-items:center}
.hc-im img{max-width:100%;max-height:150px;object-fit:contain;filter:drop-shadow(0 16px 18px rgba(10,30,80,.25));transition:transform .35s}
.hc-go{position:absolute;right:16px;bottom:16px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;opacity:0;transform:translateX(-6px);transition:.25s}
.hc-go svg{width:17px;height:17px}
.hc-c:hover{transform:translateY(-3px);border-color:rgba(var(--accent-rgb),.35);box-shadow:0 24px 44px -30px rgba(20,60,160,.55)}
.hc-c:hover::before{background:radial-gradient(closest-side,rgba(var(--accent-rgb),.2),rgba(var(--accent-rgb),.06) 60%,transparent)}
.hc-c:hover .hc-im img{transform:scale(1.07) rotate(-2deg)}
.hc-c:hover .hc-go{opacity:1;transform:none}
@media(max-width:1400px){.hc{grid-template-columns:repeat(3,minmax(0,1fr))}.hc-c b{font-size:18px}}
@media(max-width:1024px){.hc{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.hc{gap:10px}.hc-c{grid-template-columns:1fr;grid-template-rows:auto 1fr;min-height:0;padding:12px 12px 14px;border-radius:16px;gap:6px}
 .hc-im{order:-1;height:96px}.hc-im img{max-height:92px}.hc-c::before{right:auto;left:50%;top:56px;width:170px;height:170px;transform:translate(-50%,-50%)}
 .hc-c b{font-size:15px}.hc-g,.hc-q{display:none}.hc-n{margin-top:2px;font-size:11.5px;padding:3px 8px}.hc-go{display:none}}


.c16{margin:0 0 30px;padding:22px 24px;border:1px solid var(--line);border-radius:20px;background:#fff}
.c16-h{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:14px}.c16-h h2{margin:0;font-size:22px;font-weight:900;letter-spacing:-.01em}.c16-h span{color:var(--fg-3);font-size:13.5px}
.c16-g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.c16-g h5{margin:0 0 8px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);font-weight:800}
.c16-g ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.c16-g a{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 10px 7px 6px;border-radius:11px;border:1px solid transparent;font-weight:700;font-size:14.5px}
.c16-g a:hover{background:var(--accent-tint2);border-color:rgba(var(--accent-rgb),.18);color:var(--accent)}
.c16-g a .mm-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#f5f7fb;border:1px solid var(--line);color:var(--accent)}
.c16-g a .c16-ph{width:44px;height:38px;background:radial-gradient(60% 60% at 50% 50%,#fff,#eef2f8)}.c16-g a .c16-ph img{width:100%;height:100%;object-fit:contain;padding:3px}
.c16-g a{grid-template-columns:44px minmax(0,1fr) auto!important}
.c16-g a .mm-ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.c16-g a em{font-style:normal;font-family:var(--mono);font-size:11.5px;color:var(--fg-3)}
.c16-g a small{display:block;font-weight:500;font-size:12px;color:var(--fg-3);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1280px){.c16-g{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.c16{padding:16px 14px;margin-inline:-2px}.c16-g{grid-template-columns:1fr;gap:14px}.c16-h{flex-direction:column;gap:2px}}
.c16:empty{display:none}
.hc-im>svg,.c16-ph>svg.i{color:var(--accent);fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.hc-im>svg{width:64px;height:64px}
