.collection-product-wrapper .product-top-filter .product-filter-content .product-page-per-view select,
.collection-product-wrapper .product-top-filter .product-filter-content .product-page-filter select,
.collection-product-wrapper .product-top-filter .popup-filter .product-page-per-view select,
.collection-product-wrapper .product-top-filter .popup-filter .product-page-filter select {
    background: unset !important;
    width: 100%;
    height: fit-content;
}

.collection-product-wrapper .product-top-filter .product-filter-content .collection-grid-view,
.collection-product-wrapper .product-top-filter .popup-filter .collection-grid-view {
    width: 35%;
}

.collection-product-wrapper .product-top-filter .product-filter-content .product-page-filter,
.collection-product-wrapper .product-top-filter .popup-filter .product-page-filter {
    width: 100%;
}

.collection-product-wrapper .product-top-filter {
    margin-top: 0px;
}

.product .product-box .product-detail.detail-inline {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
}

.product-detail .detail-inline .detail-title {
    width: 100%;
    padding: 5px 10px 5px 5px;
}

.product .product-box .product-detail .detail-title {
    width: 100% !important;
}

.product .product-box .product-imgbox {
    padding: 10px;
}

.product-box:hover {
    box-shadow: 0px 0px 5px 1px #959595;
}

.collection-product-wrapper .product-wrapper-grid .product-box {
    margin-top: 15px !important;
}

.product .product-box .product-imgbox .on-sale {
    position: absolute;
    width: 150px;
    background: red;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    top: 10px;
    right: -40px;
    transform: rotate(45deg);
    padding: 3px 6px 0 25px !important;
}

.filter-main-btn {
    margin: 5px 10px 0px 10px !important;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin-bottom: 5px;
}

.pagination li {
    flex: 0 0 auto;
    box-shadow: 0px 0px 2px 1px #959595;
    border-radius: 5px;
}

.pagination a,
.pagination span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: #111827;
    line-height: 1;
    min-width: 36px;
    text-align: center;
    white-space: nowrap;
}

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

.pagination .active span {
    background: #252525;
    color: #fff;
    border-color: #252525;
    pointer-events: none;
}

.pagination .disabled span {
    color: var(--muted);
    background: #ccc;
    border-color: #e5e7eb;
    pointer-events: none;
}

.pagination .ellipsis span {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    background-color: #ccc;
}

.pagination--desktop {
    display: block;
}

.pagination--tablet,
.pagination--mobile {
    display: none;
}

@media (max-width: 1023px) and (min-width: 600px) {
    .pagination--desktop {
        display: none;
    }

    .pagination--tablet {
        display: block;
    }
}

@media (max-width: 576px) {

    .pagination--desktop,
    .pagination--tablet {
        display: none;
    }

    .pagination--mobile {
        display: block;
    }

    .pagination a,
    .pagination span {
        padding: 6px 10px;
        min-width: 32px;
        font-size: 14px;
    }

    .sort-select-wrap {
        min-width: 100%;
        max-width: 100%;
    }
}

.product-top-filter {
    border: unset !important;
}

.products-toolbar {
    --card-bg: #fff;
    --card-border: #e9ecef;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .08);
    margin: 10px 0 !important;
}

.products-toolbar .col-12,
.products-toolbar .col-md-6 {
    min-width: 0;
    margin-top: 0px !important;
}

.sort-select-wrap {
    position: relative;
    min-width: 260px;
    max-width: 360px;
    width: 100%;
}

.sort-inline-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .82rem;
    font-weight: 600;
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
}

.sort-select {
    width: 100%;
    border-radius: 999px;
    background: #f8f9fa;
    border-color: #dee2e6;
    padding-left: 82px;
    padding-right: 2.25rem;
    line-height: 1.5;
}

.sort-select:focus {
    background: #fff;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
}

.filters {
    max-width: 720px;
    margin: 0 auto
}

.filter-group {
    margin: 12px 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .08);
    --card-bg: #fff;
    --card-border: #e9ecef;
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 5px
}

.group-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    font: 600 15px/1.2 system-ui;
    cursor: pointer;
    width: 100%;
    text-align: left
}

.caret {
    transition: transform .2s ease;
    display: inline-block
}

.filter-group.open .caret {
    transform: rotate(90deg)
}

.clear-group {
    font: 12px/1 system-ui;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap
}

.options {
    display: none;
    padding: 10px 14px 14px;
    border-top: 1px solid #f1f5f9;
    max-height: 200px;
    overflow-y: scroll;
}

.options ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.options li {
    margin: 0px 0;
    width: 100%;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: 14px/1.4 system-ui
}

input[type="checkbox"] {
    width: 16px;
    height: 16px
}

/* Responsive touch targets */
@media (max-width:640px) {
    .filters {
        max-width: 100%;
        padding: 0 10px
    }

    .group-header {
        padding: 12px
    }

    .options {
        padding: 10px 12px 12px
    }
}

.chip-clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(#ffffff, #fafafa);
    font: 600 12px/1 system-ui;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .08s ease, box-shadow .15s ease, border-color .2s ease, background .2s ease;
    visibility: visible;
    opacity: 1;
}

.chip-clear[hidden] {
    display: inline-flex;
    visibility: hidden;
    opacity: 0;
    width: 0;
    padding: 0;
    border: 0;
    margin: 0
}

.chip-clear:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06)
}

.chip-clear:active {
    transform: translateY(1px)
}

.chip-clear:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px
}

.chip-icon {
    opacity: .7
}

.chip-count {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 11px/1 system-ui;
    transform: translateY(-1px)
}

.filter-group .chip-enter {
    animation: chipIn .18s ease-out
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: translateY(-4px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}


/*SKELETON CSS*/
.ab-body-skel-wrap {
    position: relative;
    width: 100%;
    min-height: 1200px;
}

@media (max-width: 767px) {
    .ab-body-skel-wrap {
        min-height: 900px;
    }
}

.ab-body-skeleton {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: #ffffff;
    padding: 12px 0 24px;
    transition: opacity .18s ease, visibility .18s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

html.ab-body-loaded .ab-body-skeleton {
    opacity: 0;
    visibility: hidden;
}

/* Skeleton styling (light) */
.ab-skel-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

.ab-skel-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
    overflow: hidden;
}

.ab-skel-box,
.ab-skel-line {
    position: relative;
    background: rgba(0, 0, 0, .07);
    overflow: hidden;
}

.ab-skel-box {
    border-radius: 14px;
}

.ab-skel-line {
    border-radius: 10px;
    height: 12px;
}

.ab-skel-line.sm {
    height: 10px;
    opacity: .95;
}

.ab-skel-line.lg {
    height: 16px;
}

.ab-skel-gap {
    height: 12px;
}

.ab-skel-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ab-skel-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
    animation: abSkel 1.05s infinite;
    opacity: .75;
}

@keyframes abSkel {
    100% {
        transform: translateX(120%);
    }
}

/* Category skeleton layout */
.ab-skel-banner {
    height: 220px;
}

.ab-skel-layout {
    display: grid;
    grid-template-columns: 2fr 10fr;
    /* close to col-xl-2 / col-xl-10 */
    gap: 14px;
}

@media (max-width: 991px) {
    .ab-skel-layout {
        grid-template-columns: 1fr;
    }
}

.ab-skel-filter-col {
    min-height: 680px;
}

@media (max-width: 991px) {
    .ab-skel-filter-col {
        min-height: 280px;
    }
}

.ab-skel-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 1199px) {
    .ab-skel-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .ab-skel-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ab-skel-product-card {
    padding: 12px;
}

.ab-skel-thumb {
    height: 170px;
}

.ab-skel-price {
    width: 120px;
}

.ab-skel-name {
    width: 90%;
}

.ab-skel-name2 {
    width: 70%;
}

.ab-skel-pagination {
    height: 52px;
}