/**
* 2007-2019 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-2019 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

#homecategories {
    margin-top: 30px;
}

#homecategories h4 {
    font-size: 1.375rem;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

#homecategories .featured-category {
    width: 100%;
    border: 1px solid #d8d8d8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#homecategories .featured-category a {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 100%;
    width: 100%;
}

#homecategories .featured-category a:hover .category_name {
    color: var(--primary-bg-color);
}

#homecategories .featured-category .span_thumb_container_parent.no-image .span_thumb_container {
    justify-content: center;
    padding-bottom: 20px;
}

#homecategories .featured-category .span_main_image_container {
    position: relative;
    z-index: 1;
    display: block;
}

#homecategories .featured-category .span_main_image_container img {
    position: relative;
    z-index: 1;
    padding-bottom: 3px;
}

#homecategories .featured-category .span_main_image_container .bottom_image_backdrop {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #e0e0e0;
    box-shadow: none;
    padding-top: 60px;
    border: 1px solid transparent;
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
    display: none;
}

.lazy-image-parent:not(.image-content-lazyloaded)+.bottom_image_backdrop {
    display: none;
}

#homecategories ul li {
    margin-bottom: 30px;
}

#homecategories .category_name {
    font-size: 18px;
    font-weight: 500;
    padding: 12px 5px;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
    text-align: center;
    word-wrap: break-word;
    width: 100%;
    border-top: 1px solid #d8d8d8;
    min-width: 43px;
}

@media (max-width:767px) {
    #homecategories .category_name {
        min-width: 33px;
    }
}

#homecategories .category_name a {
    width: 100%;
    float: left;
}

#homecategories .category_desc {
    text-align: center;
    height: auto;
    line-height: 15px;
}

#homecategories .category_desc a {
    font-size: 12px;
    color: #232323;
    width: 100%;
    float: left;
}

.homecategories_displayFooterBefore h4 {
    text-align: left !important;
}

.homecategories_displayFooter {
    clear: both;
}

@media (max-width: 991px) {
    #homecategories {
        margin-top: 20px;
    }
    #homecategories ul li {
        margin-bottom: 20px;
    }
    #homecategories .category_name {
        font-size: 16px;
    }
    #homecategories .featured-category .span_main_image_container .bottom_image_backdrop {
        padding-top: 40px;
    }
    #homecategories .featured-category .span_thumb_container_parent {
        bottom: 40px;
    }
}

@media (min-width:1200px) {
    #homecategories ul li {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 767px) {
    #homecategories {
        margin-top: 15px;
    }
    #homecategories ul li {
        flex: 0 0 33.3333%;
        max-width: 33.333%;
        padding: 0 5px;
    }
}

@media (max-width: 575px) {
    #homecategories {
        margin-top: 10px;
    }
    #homecategories ul li {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }
}

@media (max-width: 479px) {
    #homecategories .featured-category .span_thumb_container_parent {
        min-width: 100px;
    }
    #homecategories .featured-category .span_thumb_container {
        padding: 10px 0 50px;
    }
    #homecategories .category_name {
        padding: 8px 5px;
    }
}

#homecategories .featured-category:hover {
    box-shadow: 1px 1px 3px #8080806e;
}