.main {
    width: 100%;
}

.category-title {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 16px;
    margin-top: 40px;
}

.category-title dl {
    display: flex;
    font-size: 12px;
    margin-bottom: 40px;
}

.category-title dd {
    margin-right: 8px;
}

.category-child-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-child-item li {
    margin: 0 20px 12px 0;
}

.total-count span {
    font-weight: bold;
}

.pager-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.pager {
    display: flex;
}

.pager li {
    margin-right: 16px;
}

.pager li:last-child {
    margin-right: 0;
}

.item-list li img {
    height: 250px;
    width: -webkit-fill-available;
}

.checked-item-list li img {
    height: auto;
}

.item-icon {
    position: absolute;
    top: -10px;
    font-size: 12px;
    right: -8px;
    color: #fff;
    padding: 0 3px;
    z-index: 1;
}

.item-icon p {
    padding: 0 3px;
}

.item-icon .item-soldout {
    background: #B5B5B5;
}

.item-icon .item-sale {
    background: #F23E0C;
}

ul.item-list {
    display: flex;
    flex-wrap: wrap;
    padding: 70px;
}

.item-list li {
    width: 25%;
    padding: 10px;
    list-style: none;
}



p.item-name {
    font-size: 14px;
    text-align-last: center;
}

p.price {
    font-size: 16px;
    place-self: center;
    color: red;
}

.item-name a {
    color: black;
}

.pager-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.total-count {
    margin: 0;
    color: #555;
}

.total-count span {
    font-weight: bold;
    color: #000;
}

.pager {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0px 30px;
    gap: 8px;
}

.pager li {
    display: inline;
}

.pager a {
    text-decoration: none;
    color: #007bff;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.pager a.current {
    background-color: #007bff;
    color: #fff;
    pointer-events: none;
    border-color: #007bff;
}

.pager .current {
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

/* MEDIA QUERIES para mejorar la responsividad */

@media (max-width: 1200px) {
    ul.item-list li {
        width: 33.33%; /* 3 columnas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    ul.item-list li {
        width: 50%; /* 2 columnas en pantallas más pequeñas */
    }
}

@media (max-width: 480px) {
    ul.item-list li {
        width: 100%; /* 1 columna en pantallas pequeñas */
    }

    .category-title {
        font-size: 14px; /* Reducir el tamaño del texto */
    }

    .pager-wrap {
        flex-direction: column; /* Paginación en columna en pantallas muy pequeñas */
    }

    .pager {
        justify-content: center; /* Centrar la paginación */
    }

    .total-count {
        font-size: 12px; /* Reducir tamaño de fuente para pantallas pequeñas */
    }
}
