/* Codex: reduce homepage hero slider spacing before the Nouveautes title (desktop only). */
@media (min-width: 1025px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-2f423851 {
    padding-bottom: 0 !important;
  }

  body#index .elementor-3170101 .elementor-element.elementor-element-b823429 .elementor-element.elementor-element-d3b23af > .elementor-column-wrap {
    padding-top: 0 !important;
  }
}
/* Codex: homepage product carousel spacing */
@media (min-width: 1025px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-da44d0a .swiper-slide > *,
  body#index .elementor-3170101 .elementor-element.elementor-element-945315c .swiper-slide > * {
    padding-left: 38px !important;
    padding-right: 38px !important;
  }
}
/* Codex: reduce gap before homepage category section */
@media (min-width: 1025px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-59b44d3 {
    position: relative !important;
    border-bottom: 0 !important;
    margin-top: 40px !important;
    margin-bottom: 22px !important;
  }

  body#index .elementor-3170101 .elementor-element.elementor-element-59b44d3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: 6px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      #f3d672 0%,
      #b57f11 24.0385%,
      #f5d775 48.0769%,
      #fff3a6 53.3654%,
      #fce98f 56.25%,
      #b57f11 79.3269%,
      #f1da77 100%
    );
  }

  body#index .elementor-3170101 .elementor-element.elementor-element-59b44d3 .hero-categories.ag-hero-categories-module,
  body#index .elementor-3170101 .elementor-element.elementor-element-59b44d3 .category-cards {
    margin-top: -36px !important;
    padding-top: 36px !important;
  }

  body#index .elementor-3170101 .elementor-element.elementor-element-59b44d3 .category-card:hover {
    transform: translateY(-25px) !important;
  }
}
/* Codex: tighten homepage reassurance horizontal gap */
@media (min-width: 1025px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-376effe .elementor-element.elementor-element-df0f9dd > .elementor-column-wrap,
  body#index .elementor-3170101 .elementor-element.elementor-element-376effe .elementor-element.elementor-element-d173132 > .elementor-column-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body#index .elementor-3170101 .elementor-element.elementor-element-376effe .elementor-element.elementor-element-03350a0 > .elementor-widget-container,
  body#index .elementor-3170101 .elementor-element.elementor-element-376effe .elementor-element.elementor-element-03350a0 img {
    width: 100% !important;
  }
}
/* Codex: crop left whitespace inside homepage reassurance image */
@media (min-width: 1025px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-376effe .elementor-element.elementor-element-03350a0 > .elementor-widget-container {
    overflow: hidden !important;
  }

  body#index .elementor-3170101 .elementor-element.elementor-element-376effe .elementor-element.elementor-element-03350a0 img {
    max-width: none !important;
    width: calc(100% + 10px) !important;
    transform: translateX(-10px);
    transform-origin: left center;
  }
}
/* Codex: hide neighbouring products on mobile homepage product sliders. */
@media (max-width: 767px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-da44d0a .elementor-carousel-wrapper,
  body#index .elementor-3170101 .elementor-element.elementor-element-945315c .elementor-carousel-wrapper {
    overflow: hidden !important;
  }
}
/* Codex: remove empty gap between wishlist icon and title in mobile best-sellers slider. */
@media (max-width: 767px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-945315c .swiper-slide .p-title,
  body#index .elementor-3170101 .elementor-element.elementor-element-945315c .swiper-slide .p-title a {
    min-height: 0 !important;
  }

body#index .elementor-3170101 .elementor-element.elementor-element-945315c .swiper-slide .p-title {
    margin-top: -1px !important;
  }
}

/* Codex: homepage editorial block matching the long Agorajeux text section. */
body#index .ag-home-editorial {
  box-sizing: border-box;
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: 72px 96px 64px;
  color: #fff;
  font-family: "Inter", sans-serif;
  line-height: 1.42;
}

body#index .ag-home-editorial__intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 58px;
}

body#index .ag-home-editorial__mascot {
  display: block;
  width: 148px;
  height: auto;
}

body#index .ag-home-editorial p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  line-height: 1.42;
}

body#index .ag-home-editorial__intro-text p:last-child,
body#index .ag-home-editorial__column p:last-child {
  margin-bottom: 0;
}

body#index .ag-home-editorial__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 92px;
}

body#index .ag-home-editorial h3 {
  margin: 0 0 22px;
  color: #f4ca2f;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
}

body#index .ag-home-editorial h3:not(:first-child) {
  margin-top: 48px;
}

body#index .ag-home-editorial blockquote {
  position: relative;
  margin: 66px 0 0 28px;
  padding: 30px 44px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
}

body#index .ag-home-editorial blockquote::before {
  content: "“";
  position: absolute;
  left: -12px;
  top: -34px;
  color: rgba(255, 255, 255, .16);
  font-size: 118px;
  font-family: Georgia, serif;
  line-height: 1;
}

@media (max-width: 1024px) {
  body#index .ag-home-editorial {
    padding: 48px 28px;
  }

  body#index .ag-home-editorial__intro,
  body#index .ag-home-editorial__columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body#index .ag-home-editorial__mascot {
    width: 118px;
  }

  body#index .ag-home-editorial blockquote {
    margin-left: 0;
    padding: 24px 26px;
  }
}

/* Codex: styling for the homepage editorial text widgets stored by Creative Elements. */
@media (min-width: 1025px) {
  body#index .elementor-element-4a72e04 > .elementor-container,
  body#index .elementor-element-4716ec9 > .elementor-container {
    width: calc(100% - 180px) !important;
    max-width: none !important;
  }

  body#index .elementor-element-459e20b .elementor-widget-container {
    text-align: left !important;
  }

  body#index .elementor-element-860ff3d {
    width: 22% !important;
  }

  body#index .elementor-element-32a359e {
    width: 78% !important;
  }

  body#index .elementor-element-bd64301 > .elementor-column-wrap {
    padding-right: 35px !important;
  }

  body#index .elementor-element-f65ac70 > .elementor-column-wrap {
    padding-left: 35px !important;
  }
}

body#index .elementor-element-459e20b img {
  max-width: 150px !important;
  height: auto !important;
  margin-left: 0 !important;
}

body#index .ag-home-editorial-intro,
body#index .ag-home-editorial-column {
  color: #fff;
  font-family: "Inter", sans-serif;
}

body#index .ag-home-editorial-intro p,
body#index .ag-home-editorial-column p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-weight: 400 !important;
  line-height: 1.42;
}

body#index .ag-home-editorial-column h3 {
  margin: 0 0 22px;
  color: #f4ca2f;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 800 !important;
  line-height: 1.28;
}

body#index .ag-home-editorial-column h3:not(:first-child) {
  margin-top: 48px;
}

body#index .ag-home-editorial-column blockquote {
  position: relative;
  margin: 66px 0 0 28px;
  padding: 30px 44px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  font-weight: 400 !important;
  font-style: italic;
  line-height: 1.45;
}

body#index .ag-home-editorial-column blockquote::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -24px;
  width: 62px;
  height: 54px;
  background: url("data:image/svg+xml,%3Csvg width='62' height='54' viewBox='0 0 62 54' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='0.07' d='M11.8937 0C5.32689 0 0 5.49451 0 12.2737C0 19.0487 5.32689 24.5473 11.8937 24.5473C23.7834 24.5473 15.8583 48.2723 0 48.2723V54C28.3027 54.0041 39.3929 0 11.8937 0ZM46.1555 0C39.5927 0 34.2658 5.49451 34.2658 12.2737C34.2658 19.0487 39.5927 24.5473 46.1555 24.5473C58.0492 24.5473 50.1241 48.2723 34.2658 48.2723V54C62.5644 54.0041 73.6546 0 46.1555 0Z' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 1024px) {
  body#index .elementor-element-459e20b img {
    max-width: 118px !important;
  }

  body#index .ag-home-editorial-column blockquote {
    margin-left: 0;
    padding: 24px 26px;
  }
}
/* Codex: remove empty gap between wishlist icon and title in desktop best-sellers slider. */
@media (min-width: 768px) {
  body#index .elementor-3170101 .elementor-element.elementor-element-945315c .swiper-slide .p-title,
  body#index .elementor-3170101 .elementor-element.elementor-element-945315c .swiper-slide .p-title a {
    min-height: 0 !important;
  }

  body#index .elementor-3170101 .elementor-element.elementor-element-945315c .swiper-slide .p-title {
    margin-top: -1px !important;
  }
}
