/**
 * @version     CVS: 1.0.0
 * @package     com_test
 * @copyright   2024 Agamemnon
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Agamemnon <info@easylogic.gr>
 */

.view-items .row,
.view-item .row{
    justify-content: center;
}

.view-items .row > *,
.view-item .row > *{
    width: max-content;
}

.items-container-outer{
    background-color: whitesmoke;
    padding: 1.5rem 0;

    border-radius: 15px;

    height: auto;
}

.view-items .items-container{
    width: 100%;
}

.view-items .item-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;

    gap: 1rem;
}

.product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    height: auto;
    padding: 1rem;

    background-color: #f7e7ce;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 5px;

    color: whitesmoke;
}

.product-img-test{
    text-align: center;
}

.product-img-test:hover > img{
    transform: scale(1.07);
    cursor: pointer;
}

.product-img-test > img{
    width: auto;
    height: 200px;

    transition: transform 0.5s ease-in-out;
}

.product-name{
    background-color: #c46210;
    border-radius: 5px;
    padding: 0.27rem;
    text-align: center;
}

.items-container .product-name > a{
    color: whitesmoke;
    text-decoration: none;
}

.items-container .product-name:hover > a > h3{
    transform: scale(1.1);
}

.product-info-container{
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    margin-top: 1rem;
    padding: 1rem;

    border-radius: 5px;
    background-color: #c46210;
}

.product-info-text{
    font-weight: bold;
    margin: 0;
}

.dynamic-btn{
    padding: 0.4rem 1.2rem;
    background-color: #c46210;
    border-radius: 5px;

    cursor: pointer;
    color: whitesmoke;
    text-decoration: none;
}

.dynamic-btn > p{
    margin: 0;
}

.dynamic-btn:hover > p{
    transform: scale(1.1);
}

.dynamic-btn:active{
    opacity: 0.7;
}

/* API ARTICLES STYLING */
.articles-container{
    width: 100%;
    background-color: #f7e7ce;
}

.articles-inner{
    display: grid;
    grid-template-columns: auto auto auto;
    place-items: center;

    padding: 2rem 0;

    gap: 2rem;
}

.article-card{
    border: 2px solid #c46210;
    border-radius: 5px;

    overflow: hidden;
}

.article-info{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    padding: 1rem;

    background-color: #c46210;
}

.article-created-date > p{
    margin: 0;
    color: whitesmoke;
}

.article-title > a{
    display: inline-block;

    text-decoration: none !important;
    font-weight: bold;
    font-size: 24px;
    color: whitesmoke;

    transition: transform 0.25s ease-in-out;
}

.article-title > a:hover{
    color: whitesmoke;

    transform: scale(1.1);
}