/**
* 2007-2021 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2021 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.dbhomecategories {
    /*margin-bottom: 3rem;*/
    padding: 30px 30px 0;
    background-color: #FFF;
}

.dbhomecategories img {
    height: auto;
}

.dbhomecategories p {
    line-height: 1.5rem;
}

.dbhomecategories .title {
    margin-bottom: 1rem;
    float: left; 
    margin-right:1rem;
    color: #5B5B5B;
    /*margin-left: .5rem;*/
}

.dbhomecategories .home_cat {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dbhomecategories .home_cat {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: .5rem;
    margin: 0 .5rem 1rem 0;
    padding: 1rem;
    font-weight: bold;
    position: relative;

}


.dbhomecategories .home_cat:hover {
    color: dimgray;
}
.dbhomecategories .home_cat:hover::before {
    content: "";
    background-color: rgba(202, 202, 202, 0.15);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}
.dbhomecategories .home_cat span.name {
    color: #7a7a7a !important;
    margin-top: 10px;
    font-size: 1rem;
    min-height: 3.8rem;
}

.dbhomecategories .home_cat:hover span.name {
    color: #3D9266  !important;
}

.dbhomecategories ul {
    margin-bottom: 0rem;
}

@media (max-width: 991px) {
    /*.dbhomecategories ul li:nth-child(2n+1) {
        clear: both;
    }*/
    .dbhomecategories {
        padding: 0 15px !important;
    }
}

@media (max-width:  767px) {
    .dbhomecategories .title {
        margin-left: 0rem;
        padding-left: 0rem;
        margin-bottom: 0;
        width: 100%;
    }
    .dbhomecategories .home_cat {
        padding: .5rem;
        margin: 0 .2rem 1rem;
        display: block;
        width: 8rem;
        height: 13rem;
    }

    .dbhomecategories ul {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: mandatory;
        }
    
    .dbhomecategories .home_cat img {
        width:80%
    }
    .dbhomecategories ul {
        margin-bottom: 0;
    }

    .dbhomecategories .home_cat span.name {
        font-size: .9rem;
    }

    .dbhomecategories .col-xs-4 {
        width: 45%;
    }
}