/**
* 2007-2023 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-2023 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.
*/

.home-categories {
  background: #F3F3F4;
}

.home-categories .header-subtitle {
  color: #D14291;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: .2rem;
}
.home-categories .header-title {
  color: #000000;
  font-size: 1.6rem;
  text-align: center;
  font-weight: bold;
}

.grid-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  gap: max(3%,1rem);
  margin-top: 3rem;
}

.home-categories .flip-card-front img {
  width: 100%;
  -webkit-filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.flip-header {
  background: #D14291;
  color: #ffffff;
  padding: .8rem 5px 1.8rem 5px;
  margin-bottom: -1rem;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  border-radius: 1rem 1rem 4px 4px;
  -webkit-filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 80%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  color: black;
}

.flip-card-back {
  color: #000000;
  transform: rotateY(180deg);
  border-radius: 1rem;
  background-image: linear-gradient(225deg, transparent 0%, #ffffff 0% 90%, transparent 89%);
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
  padding: 1.6rem;
  text-align: left;
  font-size: 1rem;
}
.flip-card-back p {
  margin-bottom: .3rem;
}

@media (max-width:1199px) {
  .flip-card {
    height: 250px;
  }
  .grid-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  /*.grid-categories {*/
  /*  grid-template-columns: repeat(3, 1fr);*/
  /*}*/
}

@media (max-width: 767px) {
  .grid-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .flip-card {
    height: 250px;
  }

  .flip-card-back {
    padding: 1rem;
    font-size: .8rem;
  }
}

@media (max-width: 575px) {
  .grid-categories {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .flip-card-back {
    min-height: 100%;
  }

  .flip-card {
    padding: 0 1.2rem;
  }

  .flip-header {
    font-size: 1rem;
  }

}