﻿
.mainSection {
    /*background-color: #1E1F20;dark*/
    background-color:white;
    min-height: 300px;
}

.categoriesContainer {
    margin: 20px 0 0 5%;
    position: relative;
    width: fit-content;
    font-family: 'Golos Text';
}

    /* Button */
    .categoriesContainer button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 160px;
        padding: 10px 16px;
        font-size: 1.1rem;
        font-weight: 500;
        color: white;
        background-color: #8C8068;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.1s ease;
    }

        .categoriesContainer button:hover {
            background-color: #7a705c;
        }

        .categoriesContainer button:active {
            transform: scale(0.97);
        }

        .categoriesContainer button .arrow {
            transition: transform 0.3s ease;
        }

/* Dropdown */
.categoryItems {
    margin-top: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    width: 260px;
}

    /* Open state */
    .categoryItems.open {
        max-height: 500px; /* reasonable cap */
    }

.categoriesContainer button[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

/* List */
.categoryItems ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.categoryItem a {
    display: block;
    padding: 10px 16px;
    font-size: 1rem;
    color: #2F3031;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .categoryItem a:hover {
        background-color: #f3f4f6;
        color: #8C8068;
    }


.productsTitle {
    display:flex;
    justify-content:center;
}

.productsTitle h1{
    text-align:center;
    width:90%;
    border-style:double;
    margin-top:40px;
}

.products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
    /* gap: 30px;  with card*/
    row-gap: 0;
    /*column-gap: 30px;*/
    padding: 40px 10px 40px 10px;
}

/* cards */
.productContainer {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    text-decoration: none;
    border-style: solid;
    border-width: thin;
    /* border-color: #AAA8A4; dark */
    border-color: white;
    padding: 10px 5px;
    width: 80%;
    /*background-color: #2F3031;dark */
    background-color: white;
    /*box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.312);dark */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

    .productContainer.hide {
        display: none;
    }

    .productContainer:hover {
        transform: translateY(-5px);
        box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.523);
    }

.productsText {
    order: 2;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-self: center;
    border-radius: 10px;
    margin: 0;
    /*padding: 10px;*/
    height: auto;
}

    .productsText h1 {
        /* color: #D3D6D8; dark */
        /*color: #2F3031;*/
        font-size: 1rem;
        /*margin: 0 0 10px 0;*/
        margin: 0;
        font-family: 'Golos Text';
    }

    .productsText p {
        font-size: 0.85rem;
        color: #AAA8A4;
        /* margin: 0 0 10px 0; */
        font-family: 'Golos Text';
    }

.productContainer img {
    order: 1;
    display: flex;
    align-self: center;
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 1 / 1;
    /*object-fit: scale-down;*/
    object-fit:cover;
    /*box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.312);dark */
}

.paginationButtons {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-self: center;
    color: white;
    gap: 20px;
    padding-bottom: 50px;
    /*color: rgb(211, 214, 216);*/
    color: black
}

    .paginationButtons a {
        /*text-decoration: none;
        color: white;*/
        /*color: #8C8068;*/
        color: black;
    }

/* Responsive */
@media (min-width: 350px) {
    /* Main section */
    .productContainer {
        width: 50%;
    }
}

/* Responsive */
@media (min-width: 550px) {
    /* Main section */
    .productContainer {
        width: 35%;
    }
}


@media (min-width: 700px) {
    /* Main section */
    .productContainer {
        width: 40%;
    }
}

@media (min-width: 1000px) {
    /* Main section */
    .productsText h1 {
        font-size: 1.5rem;
    }

    .productsText p {
        font-size: 1.25rem;
    }
}
