.categories-page-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 24.2px;
    color: var(--neutral800);
    text-transform: uppercase;
}

.categories-page-sort {
    border: none;
}

.subcategory-pill {
    border: 1px solid var(--neutral300, rgba(183, 195, 195, 1));
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    align-self: center;
    color: var(--neutral600);
}

#slider-price {
    height: 10px;
}

#slider-price .noUi-connect {
    background-color: var(--black);
}

#slider-price .noUi-handle {
    height: 18px;
    width: 18px;
    top: -5px;
    right: -9px;
    border-radius: 9px;
}

.categories-filter-list {
    text-align: left;
}
.categories-filter-link {
    color: var(--neutral800);
    font-size: 16px;
    font-weight: 400;
    line-height: 19.36px;
}

.page-item {
    color: var(--neutral600);
}

.page-item a {
    border-radius: 12px;
}

.page-item:last-of-type .page-link {
    background: var(--primary200);
}

.page-item i {
    color: var(--primary700);
}

.page-item.disabled {
    background: var(--neutral100);
}

.page-item.disabled i {
    color: var(--neutral500);
}

.categories-page-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow .3s;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.product-card:hover {
    border: 1px solid #e0e0e0;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
}

.product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.product-card__image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--neutral100) 0%, var(--neutral200) 50%, var(--neutral100) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.product-card__image-container.loaded {
    background: none;
    animation: none;
}

.product-card__image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 3px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.product-card__content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__title {
    font-size: 0.9rem;
    line-height: 1.2;
    max-height: 3.6em; /* 3 lines of text */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card__price {
    font-weight: bold;
    font-size: 1rem;
}

.product-card__view-btn {
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral100);
    transition: all 0.2s ease;
}

.product-card__view-btn:hover {
    background: var(--neutral200);
}

.product-card__view-btn i {
    font-size: 16px;
    color: var(--neutral800);
    line-height: 0;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .categories-page-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .product-card__view-btn {
        width: 28px;
        height: 28px;
        padding: 0;
    }

    .product-card__view-btn i {
        font-size: 14px;
        line-height: 0;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .categories-page-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .categories-page-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .categories-page-items {
        grid-template-columns: repeat(5, 1fr);
    }
}