/* ============================================================
   subcategory.css — стилі ТІЛЬКИ для сторінки категорії
   bodyClass: page-category
   ============================================================ */

.page-category h1,
.page-category h2,
.page-category h3,
.page-category .section-title,
.page-category .subcategory-main h1,
.page-category .viewed-section__title {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.page-category .pnp-item-photo::after,
.page-category .new-arrivals-page .product-image-wrap::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    right: 12px; bottom: 12px;
    background: var(--bronze);
    border: 2px solid var(--paper);
    box-shadow: 0 2px 6px rgba(36,23,20,0.25);
    pointer-events: none;
}

*, *::before, *::after { margin: 0; padding: 0; }

.subcategory-main {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 1.6vw, 28px);
    max-width: 1700px;
    width: 100%;
    margin: 0 auto clamp(16px, 2.5vw, 40px);
    padding: 0 clamp(14px, 2.5vw, 40px);
    overflow-x: hidden; 
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: clamp(10px, 1.5vw, 20px) auto clamp(6px, 0.8vw, 12px);
    padding: 0 clamp(14px, 2.5vw, 40px);
    max-width: 1700px;
    width: 100%;
    font-size: 13px;
    color: var(--ink-faint);
    line-height: 1.4;
    box-sizing: border-box;
}
.breadcrumb a {
    color: var(--rose);
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--rose-deep); }

.subcategory-main h1 {
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 700;
    margin-bottom: clamp(12px, 1.2vw, 20px);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subcategory-content {
    flex: 1;
    min-width: 0;
    order: 2;  
}

#sortSelect {
    display: inline-flex;
    margin-bottom: clamp(12px, 1.2vw, 20px);
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--sand);
    border-radius: 9px;
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath fill='%23db2777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#sortSelect:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(156,50,82,0.12);
}

.shop-page-responsive > .catalog_filtr {
    order: unset;
}

.catalog_filtr {
    flex-shrink: 0;
    order: 1; 
    width: clamp(190px, 16vw, 250px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: clamp(12px, 1.2vw, 20px);
    position: sticky;
    top: clamp(70px, 7vw, 110px);
    max-height: calc(100vh - clamp(90px, 9vw, 130px));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(156,50,82,0.2) transparent;
    box-shadow: var(--shadow-card);
}
.catalog_filtr::-webkit-scrollbar { width: 4px; }
.catalog_filtr::-webkit-scrollbar-thumb { background: rgba(156,50,82,0.2); border-radius: 2px; }

.filtr-panel-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}


.filter-group {
    border-bottom: 1px solid var(--sand);
    padding: 2px 0;
}
.filter-group:last-of-type { border-bottom: none; }

.h4-filtr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 9px 0;
    cursor: pointer;
    text-align: left;
    color: var(--ink-soft);
    gap: 8px;
}
.h4-filtr-label {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    color: var(--ink);
}
.h4-filtr::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--rose);
    border-bottom: 2px solid var(--rose);
    transform: rotate(45deg);
    transition: transform 0.22s ease;
    flex-shrink: 0;
    margin-top: -3px;
}
.filter-group.open .h4-filtr::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}


.filter-panel-body {
    display: none;
    padding: 6px 0 10px;
}
.filter-group.open .filter-panel-body { display: block; }


.vid-do_div {
    display: flex;
    gap: 8px;
    align-items: center;
}
.vid-do {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    border: 1.5px solid var(--sand);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.18s;
    min-width: 0;
    color: var(--ink-soft);
}
.vid-do:focus { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(156,50,82,0.1); }
.vid-do::placeholder { color: var(--ink-faint); }

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: clamp(130px, 18vh, 240px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(156,50,82,0.15) transparent;
}
.checkbox-list::-webkit-scrollbar { width: 3px; }
.checkbox-list::-webkit-scrollbar-thumb { background: rgba(156,50,82,0.15); border-radius: 2px; }

.brand_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 7px;
    transition: background 0.14s, color 0.14s;
    line-height: 1.3;
}
.brand_label:hover {
    background: rgba(156,50,82,0.06);
    color: var(--rose);
}
.brand_label input[type="checkbox"] {
    accent-color: var(--rose);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.filter-actions {
    padding-top: 10px;
}
.remove-filtr {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
    letter-spacing: 0.01em;
}
.remove-filtr:hover {
    background: var(--ink);
    color: var(--porcelain);
    border-color: var(--ink);
}

.filter-toggle-btn { display: none; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 280px));
    gap: 16px;
    width: 100%;
    justify-content: center;
    margin-inline: auto;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card-sm);
    padding: 10px;
    text-align: center;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--paper);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease), border-color var(--med) var(--ease);
    min-width: 0;
    overflow: hidden;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--rose);
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--porcelain);
    display: block;
}

.product-card .no-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--porcelain);
    color: var(--line);
    font-size: 12px;
}

.product-card h3 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .price {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--rose);
    margin-bottom: 8px;
}

.product-sales-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    justify-content: flex-start;
}
.sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    background: var(--rose);
    color: var(--paper);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    max-width: 100%;
    box-sizing: border-box;
}
.sale-badge::before {
    content: "🏷";
    font-size: 9px;
    flex-shrink: 0;
}

@supports selector(:has(a)) {
    .product-sales-badges {
        counter-reset: saleBadgeCount;
    }
    .product-sales-badges:not(:has(.sale-badge)) {
        display: none;
    }
    .product-sales-badges::after {
        order: -1;
        content: "Акція";
        display: inline-flex;
        align-items: center;
        padding: 3px 9px;
        background: var(--rose);
        color: var(--paper);
        border-radius: var(--radius-pill);
        font-family: var(--font-mono);
        font-size: 10px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0,0,0,.15);
        transition: opacity .15s ease;
    }
    .product-sales-badges:has(.sale-badge:nth-child(2))::after {
        content: "Акції \00D7" counter(saleBadgeCount);
    }
    .product-sales-badges:hover::after {
        opacity: 0;
        pointer-events: none;
    }
    .sale-badge {
        counter-increment: saleBadgeCount;
        max-height: 0;
        opacity: 0;
        transform: translateY(-4px);
        pointer-events: none;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        transition: opacity .18s ease, transform .18s ease, max-height .18s ease, padding .18s ease;
    }
    .product-sales-badges:hover .sale-badge {
        max-height: 40px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding-top: 3px;
        padding-bottom: 3px;
    }
}

.product-card .btn-buy,
.product-card button[disabled] {
    margin-top: auto;
    width: 100%;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
    position: relative;
    z-index: 2;
    letter-spacing: 0.01em;
}
.product-card .btn-buy {
    background: var(--ink);
    color: var(--porcelain);
}
.product-card .btn-buy:hover {
    background: var(--rose);
    transform: translateY(-1px);
}
.product-card .btn-buy:active { transform: translateY(0); }
.product-card button[disabled] {
    background: var(--sand);
    color: var(--ink-faint);
    cursor: not-allowed;
    box-shadow: none;
}

.wishlist-heart-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.15s, transform 0.15s;
    backdrop-filter: blur(4px);
}
.wishlist-heart-btn:hover {
    background: var(--paper);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .subcategory-main {
        flex-direction: column;
        gap: 0;
        padding: 0 8px;
        margin-top: 10px;
        overflow-x: hidden;
    }
    .filter-toggle-btn {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        margin-bottom: 8px;
        padding: 8px 12px;
        background: var(--paper);
        border: 1.5px solid rgba(156,50,82,0.3);
        border-radius: 9px;
        font-size: 12px;
        font-weight: 600;
        color: var(--rose);
        cursor: pointer;
        box-shadow: 0 1px 5px rgba(156,50,82,0.07);
    }
    .catalog_filtr {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        overflow-y: hidden;
        padding: 0;
        border: none;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
        transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1), padding 0.3s ease, margin 0.3s ease;
    }
    .catalog_filtr.mobile-open {
        max-height: 3000px;
        padding: 12px;
        border: 1.5px solid var(--sand);
        border-radius: 11px;
        margin-bottom: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 2px 14px rgba(156,50,82,0.06);
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    .product-card {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .product-card {
        padding: 7px;
        border-radius: 9px;
    }
    .product-card img,
    .product-card .no-photo { border-radius: 6px; margin-bottom: 5px; aspect-ratio: 3 / 2; }
    .product-card h3 { font-size: 14px; margin-bottom: 4px; }
    .product-card .price { font-size: 15px; margin-bottom: 6px; }
    .product-card .btn-buy,
    .product-card button[disabled] { font-size: 13px; padding: 10px 8px; border-radius: 8px; }
    .product-sales-badges { top: 5px; left: 5px; max-width: calc(100% - 10px); }
    .sale-badge,
    .product-sales-badges::after { font-size: 10px; padding: 3px 7px; }
    .sale-badge::before { font-size: 10px; }
    #sortSelect { font-size: 12px; padding: 7px 26px 7px 9px; }
    .wishlist-heart-btn { width: 24px; height: 24px; top: 5px; right: 5px; }
    .subcategory-content { display: flex; flex-direction: column; align-items: center; }
    .subcategory-content > * { width: 100%; }
    .breadcrumb { justify-content: center; }
    .subcategory-main h1 { text-align: center; }
    #sortSelect { align-self: center; }
    .products-grid { width: 100%; }
}

@media (min-width: 481px) and (max-width: 600px) {
    .subcategory-main {
        flex-direction: column;
        gap: 0;
        padding: 0 12px;
        margin-top: 12px;
        overflow-x: hidden;
    }
    .filter-toggle-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 10px;
        padding: 9px 14px;
        background: var(--paper);
        border: 1.5px solid rgba(156,50,82,0.3);
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        color: var(--rose);
        cursor: pointer;
    }
    .catalog_filtr {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        overflow-y: hidden;
        padding: 0;
        border: none;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
        transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1), padding 0.3s ease, margin 0.3s ease;
    }
    .catalog_filtr.mobile-open {
        max-height: 3000px;
        padding: 13px;
        border: 1.5px solid var(--sand);
        border-radius: 12px;
        margin-bottom: 12px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    .product-card {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .product-card { padding: 12px; border-radius: 10px; }
    .product-card h3 { font-size: 14px; }
    .product-card .price { font-size: 15px; }
    .product-card .btn-buy,
    .product-card button[disabled] { font-size: 13px; padding: 10px; }
    .subcategory-content { display: flex; flex-direction: column; align-items: center; }
    .subcategory-content > * { width: 100%; }
    .breadcrumb { justify-content: center; }
    .subcategory-main h1 { text-align: center; }
    #sortSelect { align-self: center; }
    .products-grid { width: 100%; }
}

@media (max-width: 600px) {
    .subcategory-content {
        width: 100%;
        min-width: 0;
        align-items: stretch;
    }

    .products-grid {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: center;
        justify-items: center;
    }

    .products-grid .product-card {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .subcategory-main {
        flex-direction: column;
        gap: 0;
        padding: 0 16px;
        margin-top: 14px;
    }
    .filter-toggle-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 10px;
        padding: 10px 16px;
        background: var(--paper);
        border: 1.5px solid rgba(156,50,82,0.3);
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        color: var(--rose);
        cursor: pointer;
    }
    .catalog_filtr {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        overflow-y: hidden;
        padding: 0;
        border: none;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
        transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1), padding 0.3s ease, margin 0.3s ease;
    }
    .catalog_filtr.mobile-open {
        max-height: 3000px;
        padding: 14px;
        border: 1.5px solid var(--sand);
        border-radius: 12px;
        margin-bottom: 14px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (min-width: 901px) and (max-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        justify-content: center;
    }
}

@media (min-width: 1281px) and (max-width: 1920px) {
    .subcategory-main { max-width: clamp(1100px, 92vw, 1700px); }
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 280px));
        gap: 14px;
        justify-content: center;
    }
}

@media (min-width: 1921px) and (max-width: 2560px) {
    .subcategory-main { max-width: 1950px; }
    .catalog_filtr { width: clamp(230px, 13vw, 300px); }
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 300px));
        gap: 20px;
        justify-content: center;
    }
}

@media (min-width: 2561px) and (max-width: 3840px) {
    .subcategory-main { max-width: 3400px; }
    .catalog_filtr { width: clamp(280px, 10vw, 460px); border-width: 2px; }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(20px, 0.9vw, 40px);
    }
    .product-card { border-radius: 18px; border-width: 2px; padding: 16px; }
    .product-card h3 { font-size: 16px; }
    .product-card .price { font-size: 18px; }
    .product-card .btn-buy,
    .product-card button[disabled] { font-size: 15px; padding: 13px; border-radius: 11px; }
}

@media (min-width: 3841px) {
    .subcategory-main { max-width: 90vw; }
    .catalog_filtr { width: clamp(360px, 8vw, 640px); border-width: 3px; }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(28px, 0.7vw, 64px);
    }
    .product-card { border-radius: 24px; border-width: 3px; padding: clamp(18px, 0.9vw, 48px); }
    .product-card h3 { font-size: 20px; }
    .product-card .price { font-size: 24px; }
    .product-card .btn-buy,
    .product-card button[disabled] { font-size: 18px; padding: 16px; border-radius: 14px; }
    .sale-badge,
    .product-sales-badges::after { font-size: 13px; padding: 5px 12px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .sale-badge,
    .product-sales-badges,
    .product-sales-badges::after,
    .catalog_filtr,
    .remove-filtr,
    .btn-buy,
    .h4-filtr::after,
    .wishlist-heart-btn {
        transition: none !important;
        animation: none !important;
    }
}

.products-grid .bsp-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-card-sm);
    width: 100%;
    max-width: 280px;
    min-width: 0;
    padding: clamp(10px, .8vw, 16px);
    text-align: center;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-self: center;
    background: var(--paper);
    box-shadow: var(--shadow-card);
    overflow: visible;
    transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease), border-color var(--med) var(--ease);
}
.products-grid .bsp-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: var(--rose);
}
.products-grid .bsp-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.products-grid .bsp-card img {
    width: calc(100% + clamp(20px, 1.6vw, 32px));
    margin-left: calc(-1 * clamp(10px, .8vw, 16px));
    margin-right: calc(-1 * clamp(10px, .8vw, 16px));
    margin-top: calc(-1 * clamp(10px, .8vw, 16px));
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
    margin-bottom: 12px;
    background: var(--paper);
}
.products-grid .bsp-card .bsp-no-photo {
    width: calc(100% + clamp(20px, 1.6vw, 32px));
    margin-left: calc(-1 * clamp(10px, .8vw, 16px));
    margin-right: calc(-1 * clamp(10px, .8vw, 16px));
    margin-top: calc(-1 * clamp(10px, .8vw, 16px));
    aspect-ratio: 1 / 1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    margin-bottom: 12px;
    background: var(--paper);
    color: var(--ink-faint);
    font-size: 13px;
}
.products-grid .bsp-card h3 {
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
}
.products-grid .bsp-card .bsp-price {
    font-family: var(--font-mono);
    color: var(--rose);
    font-weight: 500;
    font-size: clamp(14px, 1vw, 17px);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}
.products-grid .bsp-card .bsp-card__size {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--rose);
    line-height: 1;
    margin: 4px 0 6px;
    position: relative;
    z-index: 2;
}
.products-grid .bsp-card .bsp-card__bottom {
    margin-top: auto;
    min-height: 28px;
    position: relative;
    z-index: 2;
}

.products-grid .bsp-card .wh-j6q1 {
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
.products-grid .bsp-card:hover .wh-j6q1 { opacity: 1; }

.products-grid .bsp-card .bsp-btn--pill {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--paper);
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    opacity: 0;
    box-shadow: 0 2px 6px rgba(156,50,82,.30);
    font-size: 15px;
    transition: width .28s cubic-bezier(.4,0,.2,1), border-radius .28s ease, padding .28s cubic-bezier(.4,0,.2,1), background .18s ease, opacity .2s ease;
}
.products-grid .bsp-card:hover .bsp-btn--pill { opacity: 1; }
.products-grid .bsp-card .bsp-btn--pill:hover:not(:disabled) {
    width: 140px;
    border-radius: 999px;
    padding: 0 8px 0 12px;
    background: var(--rose-deep);
}
.products-grid .bsp-card .bsp-btn--pill:disabled {
    background: var(--sand-deep);
    cursor: not-allowed;
    opacity: .7;
}

.products-grid .bsp-card .bsp-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin: 0;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
}
.products-grid .bsp-card .bsp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    background: var(--rose);
    color: var(--paper);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    max-width: 100%;
    box-sizing: border-box;
}
.products-grid .bsp-card .bsp-badge strong { font-weight: 700; }
.products-grid .bsp-card .bsp-badge::before { content: "🏷"; font-size: 9px; flex-shrink: 0; }

@supports selector(:has(a)) {
    .products-grid .bsp-card .bsp-badges { counter-reset: bspBadgeCount; }
    .products-grid .bsp-card .bsp-badges:not(:has(.bsp-badge)) { display: none; }
    .products-grid .bsp-card .bsp-badges::after {
        order: -1;
        content: "Акція";
        display: inline-flex;
        align-items: center;
        padding: 3px 9px;
        background: var(--rose);
        color: var(--paper);
        border-radius: var(--radius-pill);
        font-family: var(--font-mono);
        font-size: 10px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0,0,0,.15);
        transition: opacity .15s ease;
    }
    .products-grid .bsp-card .bsp-badges:has(.bsp-badge:nth-child(2))::after { content: "Акції ×" counter(bspBadgeCount); }
    .products-grid .bsp-card .bsp-badges:hover::after { opacity: 0; pointer-events: none; }
    .products-grid .bsp-card .bsp-badge {
        counter-increment: bspBadgeCount;
        max-height: 0;
        opacity: 0;
        transform: translateY(-4px);
        pointer-events: none;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        transition: opacity .18s ease, transform .18s ease, max-height .18s ease, padding .18s ease;
    }
    .products-grid .bsp-card .bsp-badges:hover .bsp-badge {
        max-height: 40px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding-top: 3px;
        padding-bottom: 3px;
    }
}
@media (max-width: 600px) {
    .products-grid .bsp-card {
        width: 100%;
        max-width: min(100%, 420px);
        margin-inline: auto;
    }
    .products-grid .bsp-card img,
    .products-grid .bsp-card .bsp-no-photo { aspect-ratio: 1 / 1; }
}