/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero-section {
  width: 100%;
  height: 100dvh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
  margin-top: -128px;
  padding-top: 128px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 32px;
}

.hero-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-arrow:is(:hover, :focus-visible) {
  cursor: pointer;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  background-color: var(--transparent-dark-grey-25);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-arrow.left {
  margin-left: 96px;
}

.hero-arrow.right {
  margin-right: 96px;
}

.icon-arrow-hero:is(:hover, :focus-visible) {
  cursor: pointer;
}

.slider-hero-container {
  width: 820px;
  height: auto;
  padding: 48px 64px 64px 64px;
  background-color: var(--transparent-black-70);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 460px;
}

.hero-secondary-title {
  color: var(--neutral-09);
  opacity: 0;
  text-align: center;
}

.wineyard-logo {
  width: 140px;
  height: auto;
  margin-top: 20px;
  opacity: 0;
}

.hero-title {
  margin-top: 30px;
  color: var(--beige-02);
  text-align: center;
  opacity: 0;
}

.hero-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 76px;
}

.slider-counter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.page-counter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.page-counter {
  font-size: 12px;
  line-height: 28px;
  letter-spacing: 1px;
  font-weight: var(--medium);
  color: var(--white);
}

.page-counter-separator {
  width: 1px;
  height: 20px;
  background-color: var(--white);
}

.line-counter {
  width: 630px;
  height: 3px;
  background-color: var(--transparent-dark-grey-50);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;

    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 2s ease-in-out forwards;
  opacity: 1;
}

.underline-button.fade-in img {
  opacity: 1;
}

/*-----------------------------------*\
  #WINEYARDS
\*-----------------------------------*/

.wineyards-section {
  width: 100%;
  height: auto;
  background-color: var(--beige-04-2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding: 40px 0;
}

.our-wineyards {
  color: var(--primary);
  font-size: 14px;
  line-height: 28px;
  font-weight: var(--regular);
  letter-spacing: 1px;
}

.wineyard-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
}

.wineyard-logo.wine {
  opacity: 1;
}

.wineyard-separator {
  width: 1px;
  height: 100px;
  background-color: var(--beige-07);
}

.massotina {
  width: 130px;
  height: auto;
}

.galliusi {
  width: 130px;
  height: auto;
}

.customer-logos-full-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0px;
  width: 100%;
  height: auto;
}

.customer-logos-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100px;
  border: solid 1px var(--grey-30);
}

.customer-logos-container {
  display: flex;
  align-items: center;
  width: max-content;
}

.customer-logos-track {
  display: flex;
  gap: 56px;

  animation: scrollLogos 20s linear infinite;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

.customer-single-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.customer-single-logo-container:hover,
.customer-single-logo-container:focus-visible {
  opacity: 0.72;
}

.customer-logo {
  max-height: 100px;
  height: auto;
  width: auto;
  max-width: 160px;
}

/*-----------------------------------*\
  #PROMOTIONS
\*-----------------------------------*/

#PROMOTIONS {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 64px 96px;
  gap: 40px;
}

.promotions-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-direction: column;
}

.promotion-title-secondary {
  color: var(--quertanary);
  text-align: center;
}

.promotion-title {
  color: var(--black);
  text-align: center;
}

.promotions-carrusel-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.promotion-arrow {
  width: 40px;
  height: 40px;
  border: solid 1px var(--neutral-03);
  display: flex;
  justify-content: center;
  align-items: center;
}

.promotion-arrow:is(:hover, :focus-visible) {
  cursor: pointer;
  background-color: var(--beige-04);
}

.promotions-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.promotion-card {
  width: 500px;
  height: 644px;
  background-color: var(--primary);
  padding: 40px 40px 24px 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.promotion-card:is(:hover, :focus-visible) {
  cursor: pointer;
}

.promotion-card:hover .underline-button::after {
  width: 100%;
}

.promotion-card.beige {
  background-color: var(--accent);
}

.promotion-card:hover .promotion-image {
  transform: scale(1.05);
}

.promotion-image {
  width: 100%;
  height: 420px;
  transition: transform 0.4s ease-in-out;
}

.promotion-card-title {
  margin-top: 24px;
  color: var(--white);
  text-align: center;
}

.promotion-date {
  color: var(--secondary-dark);
  margin-top: 12px;
  text-align: center;
}

.promotion-button {
  margin-top: auto;
}

.date-promo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.promotion-separator {
  width: 1px;
  height: 28px;
  background-color: var(--beige-04);
}

.promotion-code {
  background-color: var(--beige-01);
  padding: 4px 8px;
}

/* ────────── OFFER CAROUSEL FIX ────────── */

/* Make the whole strip flex, arrows + viewport */
.promotions-carrusel-container {
  display: flex;
  align-items: center;
  gap: 12px;
  /* space around the viewport */
  width: 100%;
}

/* This replaces “overflow:hidden” so you can scroll horizontally */
.carousel-viewport {
  flex: 0 0 auto;
  /* respect the JS-set width exactly */
  overflow-x: auto;
  /* scrollable */
  overflow-y: hidden;
  /* hide vertical overflow */
  scroll-behavior: smooth;
  /* for finger-drag on mobile */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Stretch the inner container to fit all cards in one row */
.promotions-card-container {
  display: flex;
  gap: 24px;
  /* same gap you already use */
  width: max-content;
  /* so it grows beyond the viewport */
}

/* Each card stays exactly 500px wide and snaps into place */
.promotion-card {
  flex: 0 0 500px;
  /* fixed width */
  box-sizing: border-box;
  scroll-snap-align: start;
}

/*-----------------------------------*\
  #SELECTION
\*-----------------------------------*/
.selection-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 206px;
  background-image: url("../../assets/images/Images/Desktop/header-online-shop-wine-desktop.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.selection-secondary-title {
  color: var(--secondary-dark);
  text-align: center;
}

.selection-title {
  color: var(--white);
  text-align: center;
}

/*-----------------------------------*\
  #PRODUCTS
\*-----------------------------------*/
.products-container.index {
  width: 100%;
  max-width: 1280px;
}

.products-container.index {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  justify-content: flex-start;
  align-items: center;
}

.product-card.index {
  flex: 0 0 auto;
  /* Prevent shrinking */
  scroll-snap-align: start;
  min-width: 300px;
  /* or your desired card width */
  height: 604px;
}

.products-container.index::-webkit-scrollbar {
  display: none;
}

.products-container.index {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 1280px) {
  /*-----------------------------------*\
  #HERO
\*-----------------------------------*/

  .hero-arrow.left {
    margin-left: 48px;
  }

  .hero-arrow.right {
    margin-right: 48px;
  }

  /*-----------------------------------*\
  #PROMOTIONS
\*-----------------------------------*/

  #PROMOTIONS {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 64px 48px;
    gap: 40px;
  }

  .promotion-arrow.index {
    display: none;
  }

  .carousel-viewport {
    width: 100% !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
  }

  .promotions-card-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
  }

  .promotion-card {
    flex: 0 0 auto;
    /* Prevent shrinking */
    scroll-snap-align: start;
    min-width: 500px;

    /* or your desired card width */
    height: 644px;
  }

  .promotions-card-container::-webkit-scrollbar {
    display: none;
  }

  .promotions-card-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /*-----------------------------------*\
  #PRODUCTS
\*-----------------------------------*/

  .products-section.index {
    padding: 64px 48px 48px 48px;
  }
}

@media (max-width: 970px) {
  /*-----------------------------------*\
  #HERO
\*-----------------------------------*/

  .hero-section {
    padding: 128px 32px 0 32px;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slider-hero-container {
    order: 1;
    width: 100%;
    height: auto;
    padding: 48px 24px;
    min-height: unset;
  }

  .hero-arrow.left,
  .hero-arrow.right {
    order: 2;
    position: static;
    margin: 0;
  }

  .hero-arrow.left {
    margin-right: 88px;
    margin-top: 20px;
  }

  .hero-arrow.right {
    margin-left: 88px;
    margin-top: -40px;
  }

  .hero-arrow.left,
  .hero-arrow.right {
    display: inline-flex;
  }

  .slider-counter-container {
    width: 100%;
  }

  .line-counter {
    width: 100%;
    height: 3px;
    background-color: var(--transparent-dark-grey-50);
  }

  .wineyard-logo.index {
    width: 140px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0;
  }

  /*-----------------------------------*\
  #PROMOTIONS
\*-----------------------------------*/

  #PROMOTIONS {
    padding: 64px 32px;
  }

  /*-----------------------------------*\
  #PRODUCTS
\*-----------------------------------*/

  .products-section.index {
    padding: 64px 32px 48px 32px;
  }
}

@media (max-width: 700px) {
  /*-----------------------------------*\
  #HERO
\*-----------------------------------*/

  .hero-section {
    padding: 144px 20px 20px 20px;
    min-height: 100dvh;
    height: auto;
    gap: 8px;
  }

  .slider-hero-container {
    order: 1;
    width: 100%;
    height: auto;
    padding: 40px 16px;
  }

  .hero-title {
    margin-top: 0;
    font-size: 24px;
    line-height: 32px;
  }

  /*-----------------------------------*\
  #WINEYARDS
\*-----------------------------------*/

  .wineyard-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  /*-----------------------------------*\
  #PROMOTIONS
\*-----------------------------------*/

  #PROMOTIONS {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 64px 20px;
    gap: 40px;
  }

  .promotion-card {
    flex: 0 0 auto;
    /* Prevent shrinking */
    scroll-snap-align: start;
    min-width: 342px;

    /* or your desired card width */
    height: 544px;
  }

  .promotion-card {
    width: 342px;
    height: 544px;
    background-color: var(--primary);
    padding: 24px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
  }

  .promotion-image {
    width: 100%;
    height: 304px;
    transition: transform 0.4s ease-in-out;
  }

  /*-----------------------------------*\
  #PRODUCTS
\*-----------------------------------*/

  .products-section.index {
    padding: 64px 20px 48px 20px;
  }

  .product-card.index {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 300px;
    height: 544px;
  }

  .product-card.index {
    width: 300px;
    height: 544px;
    background-color: var(--white);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    border: solid 1px var(--border-beige);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
  }

  .badges-container {
    top: 12px;
    right: 12px;
  }

  .new-product-badge {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {
  .hero-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    margin-top: 56px;
  }
}

@media (max-width: 500px) {
  /*-----------------------------------*\
  #HERO
\*-----------------------------------*/

  .hero-section {
    padding: 144px 16px 20px 16px;
  }

  .slider-hero-container {
    order: 1;
    width: 100%;
    height: auto;
    padding: 24px 16px;
  }

  /*-----------------------------------*\
  #SELECTION
\*-----------------------------------*/
  .selection-section {
    padding: 0 16px;
  }

  /*-----------------------------------*\
  #PROMOTIONS
\*-----------------------------------*/

  #PROMOTIONS {
    padding: 64px 16px;
  }

  .products-section.index {
    padding: 64px 16px 48px 16px;
  }
}

@media (max-width: 410px) {
  /*-----------------------------------*\
  #HERO
\*-----------------------------------*/

  .hero-section {
    padding: 144px 16px 20px 16px;
  }

  .slider-hero-container {
    order: 1;
    width: 100%;
    height: auto;
    padding: 24px 16px;
  }

  /*-----------------------------------*\
  #SELECTION
\*-----------------------------------*/
  .selection-section {
    padding: 0 16px;
  }

  /*-----------------------------------*\
  #PROMOTIONS
\*-----------------------------------*/

  #PROMOTIONS {
    padding: 64px 16px;
  }

  .promotion-card {
    flex: 0 0 auto;
    /* Prevent shrinking */
    scroll-snap-align: start;
    min-width: 302px;

    /* or your desired card width */
    height: 504px;
  }

  .promotion-card {
    width: 302px;
    height: 504px;
    background-color: var(--primary);
    padding: 24px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
  }

  .promotion-image {
    width: 100%;
    height: 264px;
    transition: transform 0.4s ease-in-out;
  }
}

@media (max-width: 360px) {
  /*-----------------------------------*\
  #PROMOTIONS
\*-----------------------------------*/

  .promotion-card {
    min-width: 264px;

    height: 474px;
  }

  .promotion-card {
    width: 264px;
    height: 474px;
    background-color: var(--primary);
    padding: 24px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
  }

  .promotion-image {
    width: 100%;
    height: 224px;
    transition: transform 0.4s ease-in-out;
  }
}
