/* ========== MAIN CONTAINERS ========== */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;

    margin-top: 75px;
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

/* ========== CATEGORY STYLING ========== */
.category {
    position: relative;
    display: flex;
    flex-direction: column;

    width: 200px;
    height: auto;
    margin: 5px;
    padding: 15px;

    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;

    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.category::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.category::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}
.category::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}
.category::-webkit-scrollbar-corner {
    background: transparent;
}

/* ========== PRODUCT STYLING ========== */
.product {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    width: 200px;
    height: auto;
    margin: 5px;
    padding: 15px;

    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product img {
    max-width: 100%;
    max-height: 230px;
}

/* ========== LABEL ========== */
.label {
    font-size: 14px;
    font-weight: bold;
    color: red;
    background-color: white;
}

/* ========== NAME, PRICE, STOCK ========== */
.name,
.price,
.stock {
    padding-top: 5px;
    font-size: 14px;
    color: black;
}

.price {
    padding-bottom: 5px;
}

.stock {
    display: none;
}

/* ========== BANNER STYLING ========== */
.banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 200px;
    height: 330px;
    margin: 5px;
    padding: 15px;

    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner img {
    max-width: 100%;
    max-height: auto;
}

/* ========== HOVER EFFECTS ========== */
.category:hover,
.product:hover,
.banner:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* ========== PAGINATION ========== */
.pagination-wrapper {
    display: grid;
    align-items: center;
    justify-items: center;

    width: 100%;
    overflow-x: auto;
}

.pagination {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 10px;

    padding: 10px 0;
}

.pagination a {
    flex-shrink: 0;
    padding: 6.5px 10px;

    font-size: 14px;
    color: black;
    text-decoration: none;

    border: 1px solid #ddd;
    border-radius: 5px;

    transition: background 0.3s;
}

.pagination a:hover {
    background: #f2f2f2;
}

.pagination a.active {
    color: white;
    background: var(--color-main);
    border: 1px solid var(--color-main);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .container {
        margin-top: 145px;
    }

    .products-container {
        gap: 0;
        padding: 0;
    }

    .product,
    .banner {
        width: 40%;
        height: auto;
        margin: 1.5%;
        padding: 10px;
    }

    .category {
        width: 85%;
        height: auto;
        max-height: 300px;
        margin: 1%;
    }

    .category:hover,
    .product:hover,
    .banner:hover {
        transform: scale(1.0);
    }
}
