.filter-box {
    background: #ffffff;
    padding: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    position: static;
    top: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.filter-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.filter-item {
    margin-bottom: 18px;
}

.filter-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.filter-item input,
.filter-item select {
    border-radius: 8px;
}

.filter-item input[type="checkbox"] {
    margin-right: 6px;
}

.offcanvas {
    width: 300px !important;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.25s ease;
}

.fp-card:hover .product-img {
    transform: scale(1.06);
}

/* Toolbar (mobile) - trendyol-like */
.pl-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pl-tool-btn {
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e7e7e7;
    background: #fff;
    font-weight: 800;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 12px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.pl-tool-btn i {
    color: var(--bs-primary);
    font-size: 16px;
}

.pl-sort-form {
    position: relative;
    height: 44px;
}

.pl-sort-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 16px;
    pointer-events: none;
}

.pl-sort-select {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e7e7e7;
    background: #fff;
    font-weight: 800;
    color: #111;
    padding-left: 38px;
    padding-right: 12px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
    appearance: none;
}

/* Keep fp-card spacing sane on listing */
.product-list-card {
    height: 100%;
}

/* Homepage fp-card is fixed-width for sliders; undo for grid listing */
.product-list-card.fp-card {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    border-radius: 14px;
}

.product-list-card .fp-img-box {
    position: relative;
    border-radius: 14px 14px 0 0;
}

.product-list-card .fp-info {
    padding: 12px;
}

.product-list-card .fp-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    height: auto;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(2 * 1.25em);
    max-height: calc(2 * 1.25em);
    word-break: break-word;
}

.product-list-card .fp-price .new {
    color: var(--bs-primary);
    font-weight: 900;
}

.product-list-card .fp-price .old.is-empty {
    visibility: hidden;
}

.product-list-card .product-meta--compact {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a7a7a;
    font-size: 11px;
    line-height: 1;
    min-height: 14px;
}

.pl-badge {
    --pl-badge-bg: var(--bs-primary);
    --pl-badge-top: 10px;
    position: absolute;
    left: 10px;
    top: var(--pl-badge-top);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--pl-badge-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.18);
    text-transform: uppercase;
    user-select: none;
}

.pl-proof {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.88), rgba(0, 0, 0, 0.55));
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.22);
    overflow: hidden;
    animation: plPulse 1.25s ease-in-out infinite;
}

@media (min-width: 992px) {
    .pl-proof {
        backdrop-filter: none;
        background: linear-gradient(135deg, rgba(255, 106, 0, 0.98), rgba(17, 17, 17, 0.78));
        animation-duration: 1.6s;
        font-weight: 700;
        font-size: 11px;
        letter-spacing: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    .pl-proof::after {
        opacity: 0.55;
    }
}

.pl-proof i {
    color: #ffd166;
    font-size: 12px;
}

/* blinking dot + shimmer */
.pl-proof::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    animation: plBlink 1.2s ease-in-out infinite;
}

.pl-proof::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 45%, rgba(255,255,255,0) 80%);
    transform: translateX(-120%);
    animation: plShimmer 1.9s ease-in-out infinite;
    pointer-events: none;
}

@keyframes plPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.94; }
    50% { transform: translateY(-1px) scale(1.02); opacity: 1; }
}

@keyframes plBlink {
    0%, 100% { opacity: 0.45; box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(255,255,255,0.0); }
}

@keyframes plShimmer {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

/* listing pagination (mobile: arrows only) */
.pl-pagination .pagination {
    gap: 8px;
}

.pl-pagination .page-link {
    border: 0;
    border-radius: 999px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    background: #fff;
    color: #111;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.10);
}

.pl-pagination .page-link:focus {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22), 0 10px 22px rgba(16, 24, 40, 0.10);
}

.pl-pagination .page-item.active .page-link {
    background: var(--bs-primary);
    color: #fff;
}

.pl-pagination .page-item.disabled .page-link {
    opacity: 0.55;
}

@media (max-width: 991.98px) {
    .pl-pagination .page-item.active .page-link {
        background: var(--bs-primary);
    }
    /* keep only prev/next + active page on mobile */
    .pl-pagination .page-item:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }
    .pl-pagination .page-link {
        padding: 0 12px;
    }
}

/* infinite scroll controls */
.pl-loadmore-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-direction: column;
    padding-bottom: 12px;
}

.pl-loadmore-btn {
    border: 0;
    border-radius: 999px;
    height: 46px;
    padding: 0 18px;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(16, 24, 40, 0.14);
}

.pl-loadmore-btn:disabled {
    opacity: 0.72;
}

.pl-loadmore-btn:focus {
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.22), 0 14px 26px rgba(16, 24, 40, 0.14);
}

.pl-loadmore-spinner {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 3px solid rgba(17, 17, 17, 0.12);
    border-top-color: var(--bs-primary);
    animation: plSpin 0.9s linear infinite;
    display: none;
}

.pl-loadmore-spinner.is-visible {
    display: block;
}

.pl-loadmore-sentinel {
    width: 1px;
    height: 1px;
}

.js-pagination.is-js {
    display: none;
}

@keyframes plSpin {
    to { transform: rotate(360deg); }
}

.product-list-card .product-meta--compact.is-empty {
    visibility: hidden;
}

.product-list-card .product-meta--compact .pm-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.product-list-card .product-meta--compact .bi-star-fill {
    color: #ffc107;
    font-size: 11px;
}

.product-list-card .product-meta--compact .bi-heart-fill {
    color: var(--bs-primary);
    font-size: 11px;
}

.product-list-card .product-meta--compact .pm-num {
    font-weight: 700;
    font-size: 11px;
    color: #666;
}

.product-list-card .fp-add-cart-btn {
    margin: 10px 12px 12px;
    width: calc(100% - 24px);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .product-grid.row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .product-list-card.fp-card {
        border-radius: 14px;
    }

    .product-list-card .fp-info {
        padding: 10px 10px 8px;
    }

    .product-list-card .fp-title {
        font-size: 13px;
        line-height: 1.25;
        min-height: calc(2 * 1.25em);
        max-height: calc(2 * 1.25em);
    }

    .product-list-card .fp-add-cart-btn {
        margin: 8px 10px 10px;
        width: calc(100% - 20px);
    }
}

.filter-box .btn-primary {
    background: linear-gradient(
        135deg,
        var(--bs-primary),
        color-mix(in srgb, var(--bs-primary) 70%, white)
    );
    border: none;
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px
        color-mix(in srgb, var(--bs-primary) 25%, transparent);
    transition: all 0.25s ease;
}

.filter-box .btn-primary:hover {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 85%, white),
        color-mix(in srgb, var(--bs-primary) 55%, white)
    );
    box-shadow: 0 6px 18px
        color-mix(in srgb, var(--bs-primary) 35%, transparent);
    transform: translateY(-2px);
}

.filter-box .btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px
        color-mix(in srgb, var(--bs-primary) 20%, transparent);
}

@media (max-width: 768px) {
    .filter-box {
        position: static;
        top: auto;
    }
}

.breadcrumb-wrapper {
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #999;
    margin: 0 2px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.product-category {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.category-filter .form-check {
    margin-bottom: 6px;
}

.category-filter .form-check-label {
    font-size: 14px;
    cursor: pointer;
}

.category-filter .form-check-input {
    cursor: pointer;
}

.category-filter .ms-3 {
    border-left: 1px dashed #e5e5e5;
    padding-left: 10px;
    margin-left: 6px;
}

.category-filter {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

.category-filter::-webkit-scrollbar {
    width: 6px;
}

.category-filter::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    border-radius: 4px;
}

.category-filter::-webkit-scrollbar-track {
    background: transparent;
}

.product-meta {
    font-size: 12.5px;
    color: #666;
}

.rating-line {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.rating-score {
    font-weight: 600;
    color: #333;
}

.star-rating {
    position: relative;
    font-size: 13px;
    line-height: 1;
}

.star-rating-back {
    color: #ddd;
}

.star-rating-front {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffc107;
    white-space: nowrap;
    overflow: hidden;
}

.star-rating i {
    margin-right: 1px;
}

.rating-count {
    color: #777;
    font-size: 12px;
}

.favorite-line {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.pagination {
    justify-content: center;
    gap: 6px;
}

.pagination .page-link {
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 500;
    color: #555;
    background: #f6f6f6;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--bs-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pagination .page-item.disabled .page-link {
    background: #f0f0f0;
    color: #bbb;
}

.pagination .page-link:focus {
    box-shadow: none;
}
