.category__body {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.category__link {
    border: 1px solid #b3b3b3;
    padding: 9px;
    display: inline-block;
    margin: 4px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

#ocfilter-button .disabled {
    display: none;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 10px;
    justify-content: center;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .active span {
    background: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.pagination li:first-child a,
.pagination li:last-child a {
    font-weight: bold;
}

.pagination li a[rel="prev"],
.pagination li a[rel="next"] {
    font-size: 16px;
}

@media (max-width: 850px) {
    .category__link {
        border: 1px solid #cac9ff;
        padding: 8px 13px;
        color: #000;
        font-size: 12px;
        font-weight: 600;
        width: auto;
        margin: 1%;
        float: left;
        border-radius: 5px;
    }

    .category__body {
        display: inline-block;
    }
}

/* -------------Сортування--------------- */
.category-sort {
    margin-left: 55%;
    margin-bottom: 15px;
}

.category-sort__label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .category-sort {
        width: 100%;
        margin-left: 0;
    }
}

/* -------------ВІДГУКИ--------------- */

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 6px 0 8px;
    color: #ffb400;
    font-size: 14px;
    line-height: 1;
}

.product-card-rating span {
    color: #ffb400 !important;
}


.product-card-rating small {
    color: #333;
    font-size: 13px;
    margin-left: 5px;
    font-weight: 600;
}

/* -------------badge-SALE--------------- */

.thumb {
    position: relative;
}

.product-badge-sale {
    position: absolute;
    top: 42px;
    left: 10px;
    z-index: 2;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
    line-height: 1;
}

.price-old {
    text-decoration: line-through;
    float: left;
    margin-right: 7px;
    font-size: 16px;
    color: #e53935 !important;
    font-weight: 600;
}

/* -------------badge-NEW--------------- */
.product-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
    line-height: 1;
}


/* -------------badge-SOLD OUT --------------- */
.product-badge-soldout {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    background: #6b7280;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1;
}

.notify-stock-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    border: none;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
}

/* -------------badge- SOLD OUT Modal  --------------- */
.notify-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notify-modal.active {
    display: flex;
}

.notify-modal__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.notify-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#notify-email {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#notify-submit {
    width: 100%;
    margin-top: 12px;
    border: 0;
    background: #111827;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

#notify-message {
    margin-top: 12px;
    font-size: 14px;
}

.notify-error {
    color: #e53935;
}

.notify-success {
    color: #16a34a;
}


/* -------------badge- BESTSELLER   --------------- */
.product-badge-bestseller {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7d774, #d4a017);
    color: #111;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}


/* -------------badge-ТОП Набір   --------------- */
.product-badge-bundle {
    position: absolute;
    top: 74px;
    left: 10px;
    z-index: 2;
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}


/* -------------картка товару   --------------- */

.product-item {
    margin-bottom: 35px;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.product-card {
    height: 100%;
    min-height: 365px;
    display: flex;
    flex-direction: column;
}

.product-card .item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
}

.product-card .thumb {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.product-card .thumb img {
    max-height: 170px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.product-card .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
}

.product-card .thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.product-card .down-content {
    min-height: 95px;
}

.product-card .down-content h4 {
    min-height: 42px;
    line-height: 1.25;
    overflow: hidden;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.product-card .down-content span {
    font-weight: 500 !important;
    font-size: 18px !important;
}

.product-card .product-card__link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-card .down-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    min-height: 30px;
    margin-top: auto;
    text-align: right;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.product-card .product-price--regular {
    justify-content: flex-end;
}

.product-card .product-price--sale {
    justify-content: space-between;
}

.product-card .price-old {
    display: inline-flex;
    flex: 0 0 auto;
    float: none;
    color: #e53935 !important;
    margin: 0 8px 0 0;
    line-height: 1.2;
}

.product-card .price-current,
.product-card .price-new {
    display: inline-flex;
    flex: 0 0 auto;
    color: #0098e8 !important;
    margin-left: auto;
    text-align: right;
    line-height: 1.2;
}

.category-cart-btn,
.notify-stock-btn {
    display: block;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 5;
}

.box-btn-category-cart {
    margin-top: auto;
}

.category-cart-btn {
    display: block;
    width: 100%;
    /*margin: 10px auto 0;*/
    height: auto;
    margin-left: 0px;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: #002fcf;
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.product-card .category-cart-btn.glow-on-hover {
    position: relative;
    z-index: 0;
    overflow: visible;
    border-radius: 10px;
    background: #0523b7;
}

.product-card .category-cart-btn.glow-on-hover:before {
    opacity: 1;
    border-radius: 10px;
}

.product-card .category-cart-btn.glow-on-hover:after {
    border-radius: 10px;
}


@media (max-width: 991px) {
    #products .col-md-3 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    #products .col-md-9 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .product-card .down-content h4 {
    font-size: 14px !important;
    }

    .product-card .down-content span {
    
        font-size: 16px !important;
    }

}
