/**
 * Стили каталога V3
 * /new/assets/css/catalog.css
 */

.catalog-v2 { padding: 20px 0; overflow-x: hidden; font-family: var(--fb); }
.catalog-v2-header { margin-bottom: 20px; }
.catalog-v2-header h1 { margin: 0 0 8px 0; font-family: var(--fd); font-size: 22px; font-weight: 700; color: var(--c1); }
.catalog-v2-info { color: var(--n5); font-size: 13px; }
.catalog-v2-sorting { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.catalog-v2-sorting select { padding: 8px 14px; border: 1px solid var(--n2); border-radius: var(--r2); font-size: 13px; font-family: var(--fb); background: #fff; cursor: pointer; color: var(--n7); transition: border-color .2s; }
.catalog-v2-sorting select:focus { outline: none; border-color: var(--g5); }
.catalog-v2-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.catalog-v2-card { background: var(--w,#fff); border: 1.5px solid var(--n2); border-radius: var(--r3); padding: 12px; display: flex; flex-direction: column; transition: border-color .3s ease-out, box-shadow .4s ease-out, transform .3s ease-out; position: relative; animation: cardIn .35s ease backwards; min-width: 0; overflow: hidden; }
.catalog-v2-card:hover { box-shadow: 0 0 0 3px rgba(0,180,98,.08), 0 0 16px rgba(0,180,98,.15), 0 8px 20px rgba(0,0,0,.06); border-color: var(--g5,#00B462); transform: translateY(-3px); }
.catalog-v2-card-photo { width: 100%; aspect-ratio: 4/3; background: #fff; border-radius: var(--r2); margin-bottom: 6px; display: grid; place-items: center; overflow: hidden; position: relative; border: 1px solid var(--n1); }
.catalog-v2-card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; transition: transform .3s ease; }
.catalog-v2-card:hover .catalog-v2-card-photo img { transform: scale(1.05); }
.catalog-v2-card-name { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--c1); text-decoration: none; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-transform: uppercase; letter-spacing: .01em; min-height: 34px; }
.catalog-v2-card-name:hover { color: var(--g5); }
.catalog-v2-card-price { font-size: 16px; font-weight: 800; color: var(--c1); margin-bottom: 3px; }
.catalog-v2-card-price-request { font-size: 13px; font-weight: normal; color: var(--n4); }
.catalog-v2-empty { text-align: center; padding: 48px 20px; background: var(--n0); border-radius: var(--r3); color: var(--n5); }
.catalog-v2-pagination { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.catalog-v2-pagination a, .catalog-v2-pagination span { padding: 8px 14px; border: 1px solid var(--n2); border-radius: var(--r2); text-decoration: none; color: var(--n7); font-size: 14px; transition: all .2s; }
.catalog-v2-pagination a:hover { background: var(--n0); border-color: var(--g5); color: var(--g5); }
.catalog-v2-pagination .pagination-current { background: var(--g5); color: #fff; border-color: var(--g5); font-weight: 600; }
.catalog-v2-pagination .pagination-ellipsis { border: none; padding: 8px 5px; color: var(--n4); }
.pagination-pages { display: flex; gap: 4px; }
.catalog-v2-breadcrumbs { margin-bottom: 14px; font-size: 13px; color: var(--n5); display: flex; flex-wrap: wrap; align-items: center; gap: 0; overflow: hidden; white-space: normal; }
.catalog-v2-breadcrumbs a { color: var(--n5); text-decoration: none; transition: color .2s; }
.catalog-v2-breadcrumbs a:hover { color: var(--g5); }
.catalog-v2-breadcrumbs .separator { margin: 0 6px; color: var(--n3); }
.catalog-v2-subcategories { margin-bottom: 24px; }
.catalog-v2-subcategories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.catalog-v2-subcat-item { background: var(--n0); border-radius: var(--r3); overflow: hidden; transition: all 0.25s ease; animation: cardIn .35s ease backwards; }
.catalog-v2-subcat-item:hover { background: var(--g0); transform: translateY(-2px); box-shadow: 0 4px 12px var(--sg); }
.catalog-v2-subcat-link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.catalog-v2-subcat-img { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; background: #fff; }
.catalog-v2-subcat-img img { max-width: 60px; max-height: 60px; object-fit: contain; transition: transform 0.3s ease; }
.catalog-v2-subcat-item:hover .catalog-v2-subcat-img img { transform: scale(1.08); }
.catalog-v2-subcat-name { padding: 10px 12px 14px; text-align: center; }
.catalog-v2-subcat-name span { color: var(--c1); font-size: 13px; font-weight: 500; line-height: 1.3; display: block; }
.catalog-v2-seo-text, .catalog-v2-seo-text-bottom { margin-top: 30px; padding: 20px 24px; background: var(--n0); border-radius: var(--r3); line-height: 1.7; color: var(--n6); font-size: 14px; }
.catalog-v2-seo-text h2, .catalog-v2-seo-text-bottom h2 { font-family: var(--fd); font-size: 18px; margin-bottom: 12px; color: var(--c1); font-weight: 700; }
.catalog-v2-seo-text p, .catalog-v2-seo-text-bottom p { margin-bottom: 10px; }
.catalog-v2-seo-text ul, .catalog-v2-seo-text-bottom ul { margin: 10px 0; padding-left: 20px; }
.catalog-v2-seo-text li, .catalog-v2-seo-text-bottom li { margin-bottom: 5px; }

@media (max-width: 768px) {
    .catalog-v2-products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .catalog-v2-card { padding: 10px; }
    .catalog-v2-card-photo { aspect-ratio: 4/3; }
    .catalog-v2-card-name { font-size: 12px; min-height: 30px; }
    .catalog-v2-seo-text, .catalog-v2-seo-text-bottom { padding: 15px; }
    .catalog-v2-subcategories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .catalog-v2-subcat-img { padding: 6px; height: 70px; }
    .catalog-v2-subcat-name { padding: 6px 8px 10px; }
    .catalog-v2-subcat-name span { font-size: 11px; }
    .catalog-v2-card .buy-btn, .stock-notify-btn-mini { height: 34px; font-size: 12px; }
    .catalog-v2-card .form-icon { width: 22px; height: 22px; top: 4px; left: 4px; }
    .catalog-v2-card .form-icon svg { width: 13px; height: 13px; }
}

@media (max-width: 480px) {
    .catalog-v2-subcategories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Product card form description (таблетки, 400мг, №12) */
.product-card-form { font-size: 11px; color: var(--n5); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
/* Product card vendor & link */
.product-card-vendor { font-size: 12px; color: var(--n4); font-style: italic; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
a.catalog-v2-card { text-decoration: none; color: inherit; }
a.catalog-v2-card:hover .catalog-v2-card-name { color: var(--g5); }

/* Fav button in card */
.catalog-v2-card .fav-btn { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 1.5px solid rgba(0,0,0,.06); background: rgba(255,255,255,.85); border-radius: 50%; cursor: pointer; display: grid; place-items: center; z-index: 3; transition: all .35s ease-out; padding: 0; }
.catalog-v2-card .fav-btn svg { width: 16px; height: 16px; stroke: var(--n4); fill: none; stroke-width: 2; transition: all .35s ease-out; }
.catalog-v2-card .fav-btn:hover { border-color: transparent; background: rgba(239,68,68,.08); box-shadow: 0 0 12px rgba(239,68,68,.2); }
.catalog-v2-card .fav-btn:hover svg { stroke: #EF4444; filter: drop-shadow(0 0 4px rgba(239,68,68,.3)); }
.catalog-v2-card .fav-btn.active svg { fill: #EF4444; stroke: #EF4444; }
.catalog-v2-card .fav-btn.active { border-color: transparent; background: rgba(239,68,68,.06); }
/* Variant info badge — see V3 block below */
/* Rx badge — V3 text style (не pill!) */
.product-card-rx-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 400; color: var(--n5); background: none; border: none; padding: 0; border-radius: 0; margin: 0 0 8px; letter-spacing: normal; }
.product-card-rx-badge svg { width: 12px; height: 12px; stroke: var(--n4); fill: none; stroke-width: 2; flex-shrink: 0; }
/* Form icon — see V3 block below */
/* Stock status in card */
/* Статус наличия в карточке */
.catalog-v2-card .product-card-stock.out {
    font-size: 12px;
    color: var(--err);
    margin: 4px 0;
}
.catalog-v2-card .product-card-stock.available {
    font-size: 11px;
    color: var(--g5);
    margin: 4px 0;
}

/* Футер карточки */
.catalog-v2-card .product-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-v2-card .product-card-action {
    margin-top: 4px;
    width: 100%;
}


/* Звёздочки рейтинга на карточках каталога */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 0;
    line-height: 1;
}
.rating-stars-mini {
    font-size: 13px;
    color: #ffc107;
    letter-spacing: -1px;
}
.rating-stars-mini .star-empty {
    color: #ddd;
}
.rating-stars-mini .star-half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rating-count {
    color: var(--n4);
    font-size: 11px;
}

/* Единый каталог — товары из других городов */
.catalog-v2-card .product-card-stock.other-cities {
    font-size: 12px;
    color: var(--c3);
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.catalog-v2-card .product-card-stock.other-cities svg {
    flex-shrink: 0;
    stroke: var(--c3);
}
.catalog-v2-card .price-other-city {
    color: var(--n4);
}
.buy-btn.buy-btn--other-city {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c3);
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: var(--r2);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 70px;
    text-decoration: none;
}
.buy-btn.buy-btn--other-city:hover {
    background: #bbdefb;
    border-color: #64b5f6;
    color: var(--c2);
}

/* Fix: предотвращение перетаскивания карточек на мобильных устройствах */
.catalog-v2-card,
.catalog-v2-card a,
.catalog-v2-card img,
.analog-card,
.analog-card img,
.product-card-link,
.product-card-link img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}
.catalog-v2-card img,
.analog-card img,
.product-card-link img {
    pointer-events: none;
}
.catalog-v2-card a,
.analog-card,
.product-card-link {
    touch-action: manipulation;
}

/* Fix: единообразная высота карточек в сетке каталога */
.catalog-v2-products {
    align-items: stretch;
}
.catalog-v2-card .product-card-footer {
    margin-top: auto;
}

/* === Mobile breadcrumbs: horizontal scroll === */
@media (max-width: 768px) {
    .catalog-v2-breadcrumbs {
        display: flex;
        align-items: center;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-bottom: 12px;
        font-size: 12px;
        scrollbar-width: none;
    }
    .catalog-v2-breadcrumbs::-webkit-scrollbar {
        display: none;
    }
    .catalog-v2-breadcrumbs a,
    .catalog-v2-breadcrumbs .separator,
    .catalog-v2-breadcrumbs .current {
        flex-shrink: 0;
    }
}

/* Блок перелинковки Смотрите также (единый стиль crosslinks-grid) */
.product-v2-other-products { margin: 32px 0 16px; padding: 24px; background: var(--n1); border-radius: 12px; }
.product-v2-other-products h2 { font-size: 18px; font-weight: 600; color: var(--n9); margin: 0 0 16px; }
.crosslinks-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.crosslinks-grid a { color: var(--g5); text-decoration: none; font-size: 14px; }
.crosslinks-grid a:hover { text-decoration: underline; }
.crosslinks-grid .crosslink-count { font-size: 12px; color: var(--n4); }
@media (max-width: 600px) {
    .product-v2-other-products { padding: 16px; margin: 24px 0 12px; }
    .crosslinks-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .crosslinks-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Skeleton Loader === */
@keyframes skeleton-pulse {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.skeleton-card {
    background: #fff;
    border: 1px solid var(--n1);
    border-radius: var(--r3);
    padding: 12px;
    display: flex;
    flex-direction: column;
}
.skeleton-el {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 200px 100%;
    animation: skeleton-pulse 1.4s ease infinite;
    border-radius: 4px;
}
.skeleton-photo { width: 100%; aspect-ratio: 4/3; margin-bottom: 6px; border-radius: var(--r2,8px); }
.skeleton-title { height: 14px; width: 85%; margin-bottom: 6px; }
.skeleton-title-short { height: 14px; width: 60%; margin-bottom: 8px; }
.skeleton-vendor { height: 12px; width: 50%; margin-bottom: auto; }
.skeleton-price { height: 18px; width: 40%; margin-top: 8px; margin-bottom: 6px; }
.skeleton-btn { height: 38px; width: 100%; border-radius: var(--r2); }

@media (max-width: 768px) {
    .skeleton-photo { aspect-ratio: 4/3; }
}

/* === "Load More" Button === */
.catalog-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 30px 0 10px;
}
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--fb);
    color: var(--g6);
    background: #fff;
    border: 2px solid var(--g5);
    border-radius: var(--r3);
    cursor: pointer;
    transition: all .25s ease;
}
.load-more-btn:hover {
    background: var(--g5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,180,98,.25);
}
.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.load-more-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.load-more-btn.loading .spinner { display: inline-block; }
.load-more-btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more-progress {
    font-size: 13px;
    color: var(--n4);
}
.load-more-progress-bar {
    width: 200px;
    height: 3px;
    background: var(--n2);
    border-radius: 2px;
    overflow: hidden;
}
.load-more-progress-fill {
    height: 100%;
    background: var(--g5);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ═══ CATALOG ROOT: CATEGORY CARDS ═══ */
.catalog-root { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.catalog-root h1 { font-family: var(--fd); font-size: 26px; font-weight: 700; color: var(--c1); margin: 0 0 8px; }
.catalog-root-sub { color: var(--n5); font-size: 14px; margin-bottom: 28px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat-card { background: #fff; border-radius: 14px; padding: 22px 24px; transition: border-color .3s, box-shadow .4s, transform .3s; cursor: pointer; border: 1px solid var(--n2,#e5e7eb); position: relative; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; color: inherit; box-shadow: 0 1px 4px rgba(0,0,0,.03); animation: catCardIn .5s var(--e,0s) ease backwards; }
.cat-card:hover { border-color: rgba(0,180,98,.35); box-shadow: 0 0 0 3px rgba(0,180,98,.08), 0 4px 16px rgba(0,180,98,.12), 0 8px 20px rgba(0,0,0,.04); transform: translateY(-2px); }
.cat-card:active { transform: scale(.97); transition-duration: .1s; }
.cat-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 28px; text-decoration: none; color: inherit; position: relative; }
.cat-card-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; transition: background .25s, transform .3s; }
.cat-card:hover .cat-card-ico { background: var(--g1); transform: scale(1.1); }
.cat-card-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.cat-card:hover .cat-card-ico svg { stroke: var(--g5); }
.cat-card-title { font-size: 16px; font-weight: 700; color: var(--c1); line-height: 1.3; transition: color .25s; }
.cat-card:hover .cat-card-title { color: var(--g6,#059652); }
.cat-card-cnt { font-size: 12px; color: var(--n4); margin-top: 3px; }
.cat-card-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; animation: catSubsIn .4s .3s ease backwards; }
.cat-sub-tag { font-size: 12px; color: var(--n6,#555); background: var(--n0,#f7f8fa); padding: 5px 10px; border-radius: 8px; white-space: nowrap; transition: all .25s; text-decoration: none; border: 1px solid var(--n1,#eee); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cat-sub-tag:hover { background: var(--g0,#e6f9ee); color: var(--g6); border-color: rgba(0,180,98,.2); }
.cat-card-arrow { position: absolute; top: 50%; right: -4px; transform: translateY(-50%); width: 24px; height: 24px; color: var(--n3); transition: color .2s, right .25s; }
.cat-card:hover .cat-card-arrow { color: var(--g5); right: -8px; }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } .catalog-root h1 { font-size: 22px; } .cat-card { padding: 16px 18px; } }
@media (min-width: 641px) and (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ═══ V3 CARD ANIMATIONS ═══ */
@keyframes catCardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes catSubsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.catalog-v2-card:nth-child(1) { animation-delay: .02s; }
.catalog-v2-card:nth-child(2) { animation-delay: .05s; }
.catalog-v2-card:nth-child(3) { animation-delay: .08s; }
.catalog-v2-card:nth-child(4) { animation-delay: .11s; }
.catalog-v2-card:nth-child(5) { animation-delay: .14s; }
.catalog-v2-card:nth-child(6) { animation-delay: .17s; }
.catalog-v2-card:nth-child(7) { animation-delay: .20s; }
.catalog-v2-card:nth-child(8) { animation-delay: .23s; }
.catalog-v2-card:nth-child(9) { animation-delay: .26s; }
.catalog-v2-card:nth-child(10) { animation-delay: .29s; }
.catalog-v2-card:nth-child(11) { animation-delay: .32s; }
.catalog-v2-card:nth-child(12) { animation-delay: .35s; }
.catalog-v2-card:nth-child(n+13) { animation-delay: .38s; }

/* V3 favorite button refinement — merged into main fav-btn block above */

/* V3 card name hover */
.catalog-v2-card:hover .catalog-v2-card-name { color: var(--g6,#059652); }

/* V3 price styling */
.catalog-v2-card-price { font-family: var(--fb); letter-spacing: -.02em; }
.catalog-v2-card .product-card-price { font-size: 16px; font-weight: 800; color: var(--c1); font-family: var(--fb); }

/* V3 variant badge */
.variant-info { background: var(--w,#fff); border: 1px solid var(--n2); border-radius: 6px; font-weight: 700; font-size: 10px; color: var(--n5); padding: 2px 7px; line-height: 1.4; white-space: nowrap; }

/* V3 buy button in card — "Купить" / "Забронировать" = green */
.catalog-v2-card .buy-btn { width: 100%; height: 38px; border-radius: var(--r2); font-size: 13px; font-weight: 700; border: none; cursor: pointer; transition: all .3s ease-out; letter-spacing: .01em; background: var(--g5); color: var(--w,#fff); }
.catalog-v2-card .buy-btn:hover { background: var(--g6); box-shadow: 0 0 12px rgba(0,180,98,.3), 0 0 24px rgba(0,180,98,.1); }
/* V3 "Выбрать (X)" button = navy blue */
.catalog-v2-card .buy-btn[data-action="open-modal"] { background: var(--c2,#132E4A); }
.catalog-v2-card .buy-btn[data-action="open-modal"]:hover { background: var(--c3,#1B3D61); box-shadow: 0 0 12px rgba(19,46,74,.25), 0 0 24px rgba(19,46,74,.1); }

/* Stock notify mini button */
.stock-notify-btn-mini { width: 100%; height: 38px; border-radius: var(--r2); font-size: 13px; font-weight: 700; background: var(--w,#fff); color: var(--c3); border: 1.5px solid var(--c3); cursor: pointer; transition: all .3s ease-out; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.stock-notify-btn-mini:hover { background: var(--c1l,#f0f4f8); box-shadow: 0 0 12px rgba(27,61,97,.15); border-color: rgba(27,61,97,.4); }
.stock-notify-btn-mini svg { stroke: currentColor; fill: none; vertical-align: -2px; }

/* V3 form icon in card photo */
.catalog-v2-card .form-icon { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; background: none; border: none; border-radius: 6px; display: grid; place-items: center; z-index: 1; opacity: 0.7; }
.catalog-v2-card .form-icon svg { width: 16px; height: 16px; stroke: var(--n5); fill: none; stroke-width: 1.8; }

/* === Quick-View Button === */
.qv-btn{position:absolute;bottom:8px;right:8px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.92);border:1.5px solid var(--n2,#E5E7EB);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;z-index:2;padding:0;color:var(--n5,#6B7280);backdrop-filter:blur(4px)}
.qv-btn:hover{background:var(--g5,#00B462);border-color:var(--g5,#00B462);color:#fff;transform:scale(1.1);box-shadow:0 2px 8px rgba(0,180,98,.3)}
.qv-btn:active{transform:scale(.95)}
.qv-btn svg{flex-shrink:0}
@media(max-width:768px){.qv-btn{width:32px;height:32px;bottom:6px;right:6px}.qv-btn svg{width:16px;height:16px}}

/* === Mobile Filter Button (compact icon) === */
.mobile-filter-btn{position:fixed;bottom:72px;right:16px;width:44px;height:44px;border-radius:50%;background:var(--g5);color:#fff;border:none;cursor:pointer;z-index:90;display:none;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,180,98,.35);transition:all .2s}
.mobile-filter-btn:hover{transform:scale(1.1);box-shadow:0 6px 20px rgba(0,180,98,.45)}
.mobile-filter-btn:active{transform:scale(.95)}
.mobile-filter-btn svg{stroke:#fff;fill:none}
@media(max-width:768px){.mobile-filter-btn{display:flex}}

/* === P0: Touch targets — WCAG 44x44 minimum === */
@media (max-width: 768px) {
  .catalog-v2-card .fav-btn { width: 44px; height: 44px; }
  .catalog-v2-card .fav-btn svg { width: 20px; height: 20px; }
  .catalog-v2-pagination a,
  .catalog-v2-pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* === P1: Mobile horizontal cards for narrow screens === */
@media (max-width: 480px) {
  .catalog-v2-products { grid-template-columns: 1fr; gap: 8px; }
  .catalog-v2-card { flex-direction: row; padding: 8px; gap: 10px; }
  .catalog-v2-card-photo { width: 90px; min-width: 90px; height: 90px; aspect-ratio: 1; margin-bottom: 0; border-radius: var(--r2); }
  .catalog-v2-card-photo img { padding: 4px; }
  .catalog-v2-card .product-card-link { flex-direction: row; gap: 10px; }
  .catalog-v2-card-name { font-size: 13px; min-height: auto; -webkit-line-clamp: 2; }
  .catalog-v2-card .fav-btn { top: 4px; right: 4px; }
  .catalog-v2-card .buy-btn, .catalog-v2-card .stock-notify-btn-mini { height: 32px; font-size: 12px; padding: 0 12px; }
}
