/* hawk-market.ru 2026-10-16: единая карточка товара (вариант 2 «мини-таблица», доработанный) */
.hmc{--ac:#8672d2;--ac2:#6d59b9;--ink:#1d1d1d;--mut:#6b7180;--line:#ece9f6;position:relative;display:flex;flex-direction:column;height:100%;padding:12px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);transition:box-shadow .25s,transform .25s,border-color .25s;font-family:inherit}
.hmc:hover{border-color:#ddd6f5;box-shadow:0 18px 40px -18px rgba(70,50,160,.35);transform:translateY(-3px)}
.hmc a{color:inherit;text-decoration:none}
.hmc__media{position:relative;display:block;aspect-ratio:1/1;border-radius:14px;background:radial-gradient(120% 100% at 50% 0%,#fff 0%,#f5f3fb 100%);overflow:hidden}
.hmc__media img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;transition:transform .35s ease}
.hmc:hover .hmc__media img{transform:scale(1.05)}
.hmc__st{position:absolute;left:8px;top:8px;display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;background:rgba(255,255,255,.92);backdrop-filter:blur(4px);box-shadow:0 1px 3px rgba(0,0,0,.06)}
.hmc__st::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.hmc__st.is-in{color:#1f8f4e}.hmc__st.is-ord{color:#b26b00}
.hmc__brand{position:absolute;right:8px;top:8px;padding:4px 8px;border-radius:8px;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ac2);background:rgba(255,255,255,.92)}
.hmc__sale{position:absolute;left:8px;bottom:8px;padding:3px 8px;border-radius:8px;background:#e5484d;color:#fff;font-size:11px;font-weight:800}
.hmc__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:12px 0 8px;min-height:2.7em;font-size:14px;line-height:1.35;font-weight:600}
.hmc__name:hover{color:var(--ac2)}
.hmc__spec{display:grid;gap:5px;margin:0 0 12px;padding:0;font-size:12.5px;line-height:1.3}
.hmc__spec div{display:flex;align-items:baseline;gap:6px;min-width:0}
.hmc__spec dt{color:var(--mut);font-weight:400;white-space:nowrap}
.hmc__spec div::after{content:"";order:2;flex:1;border-bottom:1px dotted #d9d5e6;transform:translateY(-3px);min-width:8px}
.hmc__spec dd{order:3;margin:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
.hmc__foot{margin-top:auto}
.hmc__price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:0 0 10px}
.hmc__price b{font-size:20px;font-weight:800;letter-spacing:-.01em;white-space:nowrap}
.hmc__price s{font-size:13px;color:#9aa0ab}
.hmc__price small{font-size:11.5px;color:var(--mut)}
.hmc__price.is-req b{font-size:15px;color:var(--ac2)}
.hmc__act{display:grid;grid-template-columns:1fr 44px;gap:8px}
.hmc__buy,.hmc__one{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;border:0;border-radius:12px;font:700 14px/1 inherit;cursor:pointer;transition:background .2s,box-shadow .2s,transform .15s,color .2s}
.hmc__buy{padding:0 12px;color:#fff;background:linear-gradient(135deg,#9a86e6 0%,#7a63d0 55%,#6650c2 100%);box-shadow:0 6px 16px -6px rgba(102,80,194,.7)}
.hmc__buy:hover{box-shadow:0 10px 22px -8px rgba(102,80,194,.9);transform:translateY(-1px)}
.hmc__buy:active,.hmc__one:active{transform:scale(.97)}
.hmc__buy svg,.hmc__one svg{width:19px;height:19px;flex:0 0 19px}
.hmc__one{color:var(--ac2);background:#f3f0fc}
.hmc__one:hover{background:var(--ac);color:#fff}
.hmc__buy.is-req{background:#fff;color:var(--ac2);box-shadow:inset 0 0 0 2px #cfc5f2}
.hmc__buy.is-req:hover{background:var(--ac);color:#fff;box-shadow:none}
@media (max-width:767px){
  .hmc{padding:9px;border-radius:16px}
  .hmc__name{font-size:13px;margin:10px 0 6px}
  .hmc__spec{font-size:11.5px;gap:4px}
  .hmc__spec div:nth-child(n+4){display:none}
  .hmc__spec dt{max-width:52%;overflow:hidden;text-overflow:ellipsis}
  .hmc__price b{font-size:17px}.hmc__price.is-req b{font-size:13.5px}
  .hmc__act{grid-template-columns:1fr 38px;gap:6px}
  .hmc__buy,.hmc__one{height:38px;font-size:13px;border-radius:11px}
  .hmc__buy span{display:none}
  .hmc__buy::after{content:attr(data-short)}
  .hmc__brand{display:none}
}
/* сетки темы: карточка во всю высоту ячейки */
.product-layout>.hmc,.item>.hmc{margin-bottom:16px}
.row-price.category-page,.row.row-price{display:flex;flex-wrap:wrap}
.row-price .product-layout{display:flex}
.row-price .product-layout>.hmc{width:100%}
@media (max-width:767px){.row-price .product-layout{padding-left:5px;padding-right:5px}.row-price.category-page{margin-left:-5px;margin-right:-5px}}
.hm-rail__it{scroll-snap-align:start;display:flex}.hm-rail__it>.hmc{width:100%}
/* 16.10 правки: без всплывающих характеристик темы, ровные ряды, фото без «плитки в плитке» */
.catalogCard-extra,.product-layout .short-attributes-groups-category{display:none!important}
.row-price .product-layout,.product-layout.product-grid{margin-bottom:22px!important;height:auto!important;z-index:auto!important}
.product-layout:hover{z-index:auto!important}
.product-layout:hover>.hmc{position:relative}
.hmc__media{background:#f7f6fb}
.hmc__media img{mix-blend-mode:multiply}
.owl-carousel .item>.hmc,.featured .item>.hmc{margin:6px 4px 14px}
.owl-carousel .hmc .hmc__media img{width:84%!important;display:block}
.container-modules .item,.owl-carousel .owl-item .item{border:0!important;box-shadow:none!important;background:none!important;padding:0!important}
.container-modules .item:hover{box-shadow:none!important}
/* вид «список» и «прайс» не используем — карточка только плиткой */
#list-view,#price-view{display:none!important}
/* 16.10: ровная высота карточек в каруселях и сетках, цены и кнопки на одной линии */
.hmc__spec{min-height:calc(4 * 1.3em + 3 * 5px)}
.owl-carousel .owl-stage{display:flex!important}
.owl-carousel .owl-item{display:flex!important;height:auto!important}
.owl-carousel .owl-item>.item,.owl-carousel .owl-item .item{display:flex!important;width:100%;height:100%}
.owl-carousel .owl-item .hmc{width:100%;margin:6px 6px 14px!important}
.hm-rail__it,.row-price .product-layout{align-items:stretch}
/* заголовки блоков темы («Недавно просмотренные», «Рекомендуемые» и т. п.) в стиле сайта */
.title-module{margin:0 0 14px!important;padding:0!important;border:0!important;text-align:left!important}
.title-module span{font-size:22px!important;font-weight:800!important;color:#1d1d1d!important;letter-spacing:-.01em;text-transform:none!important;background:none!important;padding:0!important}
.title-module span::before,.title-module span::after,.title-module::before,.title-module::after{display:none!important}
@media (max-width:767px){.hmc__spec{min-height:calc(3 * 1.3em + 2 * 4px)}.title-module span{font-size:19px!important}}
/* фото на белом (в каруселях mix-blend не работает), характеристики прижаты вверх, кнопки без переноса */
.hmc__media{background:#fff!important;box-shadow:inset 0 0 0 1px #f0edf8}
.hmc__media img{mix-blend-mode:normal!important}
.hmc__spec{align-content:start}
.hmc__buy{white-space:nowrap;min-width:0;overflow:hidden}
.hmc__buy span{overflow:hidden;text-overflow:ellipsis}
.owl-carousel .hmc__buy{font-size:13px;gap:6px;padding:0 8px}
.owl-carousel .owl-wrapper{display:flex!important}
.owl-carousel .owl-wrapper .owl-item{float:none!important}
/* 2026-10-17: страница категории — 4 товара в ряд на ПК */
@media (min-width:1200px){.category-page>.product-layout.product-grid{width:25%}}
/* 2026-10-17: карточки подкатегорий — горизонтальные, фото слева, полное название */
#content .row:has(>div>.thumbnail.subcategory){display:flex;flex-wrap:wrap}
#content .row>div:has(>.thumbnail.subcategory){display:flex;margin-bottom:12px}
#content .thumbnail.subcategory{flex:1;display:flex;margin:0;padding:10px 12px;border:1px solid #eceef4;border-radius:14px;background:#fff;box-shadow:none;transition:border-color .2s,box-shadow .2s,transform .2s}
#content .thumbnail.subcategory:hover{border-color:#c9d3fb;box-shadow:0 8px 22px rgba(91,124,240,.12);transform:translateY(-2px)}
#content .thumbnail.subcategory>a{display:flex;align-items:center;gap:12px;width:100%;color:#1d2233;text-decoration:none}
#content .thumbnail.subcategory>a>div:first-child{flex:none;width:52px;height:52px;border-radius:12px;background:linear-gradient(135deg,#f3f5fb,#f2eefc);display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0}
#content .thumbnail.subcategory>a>div:first-child img{width:46px;height:46px;object-fit:contain;mix-blend-mode:multiply;margin:0}
#content .thumbnail.subcategory .name-wrapper{flex:1;min-width:0;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;background:none!important;position:static!important}
#content .thumbnail.subcategory .display-table,#content .thumbnail.subcategory .display-table-cell{display:block!important;height:auto!important;width:auto!important;padding:0!important}
#content .thumbnail.subcategory .display-table-cell{font-size:13px;font-weight:600;line-height:1.3;text-align:left!important;white-space:normal!important;overflow:visible!important;color:#1d2233;hyphens:manual;overflow-wrap:break-word}
#content .thumbnail.subcategory:hover .display-table-cell{color:#4b63d8}
@media (max-width:767px){
 #content .row>div:has(>.thumbnail.subcategory){padding-left:5px;padding-right:5px;margin-bottom:10px}
 #content .thumbnail.subcategory{padding:8px 10px;border-radius:12px}
 #content .thumbnail.subcategory>a{gap:9px}
 #content .thumbnail.subcategory>a>div:first-child{width:44px;height:44px;border-radius:10px}
 #content .thumbnail.subcategory>a>div:first-child img{width:38px;height:38px}
 #content .thumbnail.subcategory .display-table-cell{font-size:12.5px}
}
