body {
    background-color: var(--on-main-color);
}

.main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2pc;
    width: 100%;
    max-width: 1400px;
    min-height: 100svh;
    padding: 1pc 2pc;
    padding-bottom: 8pc;
    margin: 0 auto;
}

.main .page-name {
    width: 100%;
    height: max-content;
    padding: 1pc;
}

.main .page-name p {
    font-family: "Montserrat", serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.main .product-output {
    --product-width: 250px;
    --product-height: 300px;

    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--product-width));
    grid-template-rows: max-content;
    justify-content: center;
    gap: 2.5pc;
    width: 100%;
}

.main .product-output .product {
    display: flex;
    flex-direction: column;
    gap: .5pc;
    background-color: var(--main-color);
    width: var(--product-width);
    height: var(--product-height);
    box-shadow: 0 0 2.5px var(--on-main-shadow-color);
    border-radius: .5pc;
    overflow: hidden;
    padding: .25pc;
    transition: .2s ease;
}

.main .product-output .product:hover {
    transform: scale(1.01);
}

.main .product-output .product .img {
    position: relative;
    width: 100%;
    height: 65%;
    min-height: 50%;
    border-radius: .25pc;
    overflow: hidden;
}

.main .product-output .product .img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main .product-output .product .text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: .25pc;
    width: 100%;
}

.main .product-output .product .text-area .text {
    flex: 1;
    width: 100%;
    padding: 0 .25pc;
}

.main .product-output .product .text-area .text h1 {
    font-size: 1.2rem;
    font-weight: 500;
}

.main .product-output .product .text-area .text p {
    font-size: .9rem;
    font-weight: 400;
    text-align: left;
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main .product-output .product .text-area .buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .5pc;
    width: 100%;
    height: 38%;
    min-height: 38%;
    padding: 0 .5pc;
}

.main .product-output .product .text-area .buttons .price {
    flex: 1;
    display: flex;
    justify-content: start;
    align-items: center;
    height: 100%;
}

.main .product-output .product .text-area .buttons .price p {
    font-size: 1rem;
    font-weight: 600;
}

.main .product-output .product .text-area .buttons .button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: max-content;
    height: 100%;
    background-color: var(--secondary-color);
    aspect-ratio: 1/1;
    border-radius: .25pc;
    transition: .2s ease;
    cursor: pointer;
}

.main .product-output .product .text-area .buttons .button:hover {
    background-color: var(--secondary-color-bold);
}

.main .product-output .product .text-area .buttons .button:active {
    transition: .1s ease;
    background-color: var(--secondary-color);
}

.main .product-output .product .text-area .buttons .button svg {
    width: 1rem;
    height: 1rem;
    fill: white;
}

@media only screen and (max-width: 500px) {
    .main .product-output {
        --product-width: 100%;
        --product-height: 350px;
    }
}