/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * 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.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
.homecontent-container {
  margin-bottom: 50px;
  position: relative;
  float: left;
  width: 100%;
}

.homecontent {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.homecontent li {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.homecontent img {
  display: block;
  position: relative;
  z-index: 1;
  height: auto;
  width: 100%;
  border: 0;
}

.homecontent .caption {
  display: block;
  position: absolute;
  z-index: 2;
  font-size: 1em;
  text-shadow: none;
  color: #fff;
  background: #000;
  background: rgba(0,0,0, .6);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 20px;
  margin: 0;
  max-width: none;
}

.homecontent_nav {
  position: absolute;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  top: 52%;
  left: 0;
  opacity: 0.7;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  height: 61px;
  width: 38px;
  background: transparent url("../homecontent.gif") no-repeat left top;
  margin-top: -45px;
}

.homecontent_nav:active {
  opacity: 1.0;
}

.homecontent_nav.next {
  left: auto;
  background-position: right top;
  right: 0;
}


.block {
  position: relative;
  width: 100%;
  left: 0;
  top: 0;
}

.block-hero {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.block-hero .block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 767px) {
  .block-hero:has(.hero-product-card) {
    overflow: visible;
  }
}

/* The media box is sized from the media ratio (set inline per block), so the hero
   has its final height before the video or image loads: no layout shift. */
.block-hero .hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-ratio, 16 / 9);
  overflow: hidden;
  background-color: #1d1d1b;
}

@media (max-width: 767px) {
  .block-hero .hero-media {
    aspect-ratio: var(--hero-ratio-mobile, var(--hero-ratio, 16 / 9));
  }
}

@supports not (aspect-ratio: 1) {
  .block-hero .hero-media {
    height: 0;
    padding-bottom: calc(100% / (var(--hero-ratio, 1.7778)));
  }

  @media (max-width: 767px) {
    .block-hero .hero-media {
      padding-bottom: calc(100% / (var(--hero-ratio-mobile, var(--hero-ratio, 1.7778))));
    }
  }
}

.block-hero .hero-media video,
.block-hero .hero-media picture,
.block-hero .hero-media picture img {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block .caption {
  display: block;
  position: absolute;
  z-index: 2;
  font-size: 1em;
  text-shadow: none;
  color: #fff;
  padding: 10px 20px;
  margin: 0;
}

.block-hero .caption {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 3rem 3rem;
  color: #fff;
}

.block-hero .caption .h-serif {
  color: #fff;
  font-size: 3.3rem;
  line-height: 1.1;
}

.block-hero .caption .h-serif .h-serif-primary {
  font-family: droid-serif, serif;
  font-weight: 400;
  font-style: italic;
  font-size: inherit;
  color: #c39c71;
  display: block;
}

.block-hero .caption .description,
.block-hero .caption .description p {
  color: inherit;
  font-size: 1.125rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.block-hero .caption .caption-buttons {
  display: inline-flex;
  flex-direction: column;
  max-width: 480px;
}

.block-hero .caption .caption-buttons__row {
  display: flex;
}

.block-hero .caption .caption-buttons__row .btn {
  flex: 1 1 0;
}

@media (max-width: 767px) {
  .block-hero .caption .caption-buttons {
    display: flex;
    align-items: center;
    max-width: none;
    width: 100%;
  }

  .block-hero .caption .caption-buttons__row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .block-hero .caption .caption-buttons__row .btn {
    width: 80%;
  }

  .block-hero .caption .caption-buttons__row .btn.ml-1 {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  .block-hero .caption .caption-buttons .btn-pro {
    width: 80%;
  }
}

.block-hero .caption .caption-buttons .btn-pro {
  width: 100%;
  margin-top: 0.75rem;
}

@media (max-width: 767px) {
  .block-hero .caption .caption-buttons .btn-pro {
    margin-top: 0;
  }
}

.block-hero .caption .btn-pro {
  background-color: #1d1d1b;
}

.block-hero .caption .btn-pro:hover {
  background-color: #000;
}

.block-hero .caption .btn-outline-primary {
  color: #fff;
  border-color: #fff;
}

.block-hero .caption .btn-outline-primary:hover {
  background-color: #fff;
  color: #1d1d1b;
}

@media (min-width: 1560px) {
  .block-hero .caption {
    padding-left: 10%;
    padding-right: 5%;
  }
}

@media (max-width: 767px) {
  .block-hero .caption {
    width: 100%;
    padding: 100px 1.5rem 2rem;
    text-align: center;
  }

  .block-hero .caption .h-serif {
    font-size: 2.2rem;
  }

  .block-hero .caption .mt-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .block-hero .caption .mt-3 .btn {
    margin-left: 0 !important;
    width: 80%;
  }

  .block-hero .caption .mt-2 {
    text-align: center;
  }

  .block-hero .caption .mt-2 .btn {
    width: auto;
    max-width: 90%;
    font-size: 0.65rem;
    white-space: normal;
    line-height: 1.3;
  }
}

/* Hero product card — white card overlaid on hero right side */
.hero-product-card {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 280px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-decoration: none;
  color: #1d1d1b;
}

.hero-product-card__badge {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1d1d1b;
  border-bottom: 1px solid #eee;
}

.hero-product-card__link {
  display: block;
  text-decoration: none;
  color: #1d1d1b;
}

.hero-product-card__link:hover {
  text-decoration: none;
  color: #1d1d1b;
}

.hero-product-card__image {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  /* fixed box: the card keeps its height before the product image loads (CLS) */
  height: calc(200px + 2rem);
}

.hero-product-card__image img {
  display: block;
  height: 100%;
  max-height: 200px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.hero-product-card__infos {
  padding: 0 1.25rem 1.25rem;
  text-align: center;
}

.hero-product-card__category {
  display: block;
  font-family: montserrat, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1d1d1b;
  margin-bottom: 0.25rem;
}

.hero-product-card__title {
  font-family: droid-serif, serif;
  font-weight: 700;
  font-size: 1.325rem;
  margin: 0.25rem 0 1rem;
  color: #1d1d1b;
}

.hero-product-card__description {
  font-size: 0.8rem;
  color: #7a7a7a;
  line-height: 1.4;
}

.hero-product-card__features {
  margin: 0.5rem 0;
}

.hero-product-card__intensity {
  margin-bottom: 0.25rem;
}

.hero-product-card__grain {
  width: 12px;
  height: auto;
  margin: 0 1px;
}

.hero-product-card__feature-label {
  display: block;
  font-family: montserrat, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  color: #7a7a7a;
  padding: 2px 10px;
}

.hero-product-card__intensity div,
.hero-product-card__notes div {
  padding: 2px 10px;
}

.hero-product-card__notes div {
  font-family: droid-serif, serif;
  font-size: 0.875rem;
  font-style: normal;
  color: #7a7a7a;
}

.hero-product-card .hr-simple {
  margin: 0.5rem -0.5rem;
}

.hero-product-card .hr-double {
  margin: 0.5rem -0.5rem;
}

.hero-product-card__price {
  font-family: droid-serif, serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #1d1d1b;
  margin-top: 0.75rem;
}

@media (min-width: 1560px) {
  .hero-product-card {
    right: 10%;
  }
}

@media (max-width: 991px) {
  .hero-product-card {
    width: 240px;
    right: 2%;
  }
}

@media (max-width: 767px) {
  .block-hero:has(.hero-product-card) {
    overflow: visible;
    background-color: #f3efe9;
  }

  .hero-product-card {
    position: relative;
    top: auto;
    right: auto;
    transform: translateY(30%);
    width: 80%;
    max-width: 300px;
    margin: -16rem auto 0;
    z-index: 10;
  }
}

/* Below 400px the caption buttons collide with the product card:
   raise the buttons a little and let the card start a bit lower */
@media (max-width: 400px) {
  .block-hero:has(.hero-product-card) .caption {
    padding-bottom: 8rem;
  }

  .hero-product-card {
    margin-top: -13rem;
  }
}

/* Featured categories inline — same card design as nh_categoryextra home, slightly smaller */
.block-featured-categories-inline {
  padding: 4rem 0 calc(3rem + 130px);
  background:
    top left -200px no-repeat url('/themes/brulerie/assets/img/feuille-cafe-hero-2.png'),
    bottom right no-repeat url('/themes/brulerie/assets/img/feuille-cafe-hero-1.png'),
    #f3efe9;
  overflow: hidden;
}

.block-featured-categories-inline .desc {
  color: #18100d;
  font-size: 1rem;
  display: block;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

.block-featured-categories-inline .container {
  max-width: 1070px;
}

.categories-inline__list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0;
  padding-top: 60px;
  overflow: visible;
  list-style: none;
}

.categories-inline__item.card {
  flex: 0 0 auto;
  width: 16.6875rem;
  height: 17rem;
  text-align: center;
  border: none;
  background: #fff;
  border-radius: 5px;
  padding: 0;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.categories-inline__image {
  margin-top: -30px;
  height: 240px;
  overflow: visible;
  z-index: 1;
  position: relative;
}

.categories-inline__image img {
  max-height: 240px;
  max-width: 90%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.categories-inline__item h5 {
  padding: 1rem 0.75rem 2rem;
  margin: 0;
}

.categories-inline__item .home-category-name {
  font-size: 1.4rem;
  font-family: 'droid-serif', serif;
  font-weight: 700;
  letter-spacing: -0.1rem;
  color: #1d1d1b;
  text-decoration: none;
}

.categories-inline__item .home-category-name:hover {
  color: #c39c71;
  text-decoration: none;
}

.categories-inline__item .hr-double {
  height: 5px;
  min-height: 5px;
  border-top: 1px solid #ede3d8;
  border-bottom: 1px solid #ede3d8;
  margin: 0.5rem 0.25rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .categories-inline__item.card {
    width: 30%;
  }
}

@media (max-width: 767px) {
  .block-featured-categories-inline {
    padding-top: 14rem;
    padding-bottom: 3rem;
  }

  .categories-inline__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .categories-inline__item.card {
    width: 14rem;
    height: 17rem;
    flex-shrink: 0;
  }

  .categories-inline__image {
    height: 180px;
  }
}

/* Featured categories grid — same layout as nh_categoryextra home, without background image */
.block-featured-categories-grid {
  padding-top: 35px;
  background:
    top left no-repeat url('/themes/brulerie/assets/img/feuille-cafe-hero-2.png'),
    bottom right no-repeat url('/themes/brulerie/assets/img/feuille-cafe-hero-1.png'),
    #f3efe9;
  overflow: hidden;
}

.block-featured-categories-grid .container {
  max-width: 1070px;
  padding: 0 0 150px 0;
}

.block-featured-categories-grid .card-block {
  padding: 0;
  border-radius: 5px;
}

.block-featured-categories-grid .card-block .home-category-image {
  margin-top: -50px;
  overflow: visible;
  z-index: 1000;
}

.block-featured-categories-grid .card-block .home-category-name {
  font-size: 1.5rem;
  font-family: 'droid-serif', serif;
  font-weight: 700;
  letter-spacing: -0.125rem;
  color: #1d1d1b;
}

.block-featured-categories-grid .card-actu {
  background-color: #1d1d1b;
}

.block-featured-categories-grid .card-actu .home-category-actu-title {
  margin: 27px 0;
  font-family: montserrat, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.block-featured-categories-grid .card-actu .home-category-actu {
  font-family: 'droid-serif', serif;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 10px 40px;
}

@media (min-width: 576px) {
  .block-featured-categories-grid .card-block .home-category-image {
    height: 280px;
  }

  .block-featured-categories-grid .card-block {
    min-height: 315px;
  }
}

/* Product tabs repeater - language switcher */
.products-categories-widget .translationsLocales.nav-pills {
  border-right: 1px solid #dfdfdf;
  border-bottom: none;
  border-left: 1px solid #dfdfdf;
  margin-bottom: 1rem;
}
.products-categories-widget .translationsLocales .nav-link {
  border-radius: 0;
  color: #6c757d;
  font-size: 14px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
}
.products-categories-widget .translationsLocales .nav-link.active {
  color: #000;
  background: none;
  border-bottom: 2px solid #000;
}

/* Entity search widget */
.entity-search-widget {
  position: relative;
  flex: 1;
}
.entity-search-input {
  border: 1px solid #ddd;
  padding: 6px 10px;
  font-size: 13px;
  width: 100%;
}
.entity-search-dropdown {
  display: none;
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-top: 0;
  max-height: 250px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.entity-search-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.entity-search-suggestion:hover {
  background: #f5f5f5;
}
.entity-search-suggestion-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 2px;
  background: #f9f9f9;
}
.entity-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  padding: 8px;
  min-height: 40px;
}
.entity-search-list:empty {
  display: none;
}
.entity-search-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eee;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}
.entity-search-delete {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #666;
  line-height: 1;
}
.entity-search-delete:hover {
  color: #000;
}

/* Tab rows spacing */
.product-tab-row {
  margin-bottom: 1rem;
}
