/* ----------------------------  */
/* view product */

/* Works on Firefox */
.view-bottles * {
  scrollbar-width: thin;
  scrollbar-color: var(--color-brown) hsl(24.29deg 36.84% 22.35% / 50%);
}

/* Works on Chrome, Edge, and Safari */
.view-bottles *::-webkit-scrollbar {
  width: 12px;
}

.view-bottles *::-webkit-scrollbar-track {
  background: hsl(24.29deg 36.84% 22.35% / 50%);
}

.view-bottles *::-webkit-scrollbar-thumb {
  background-color: var(--color-brown);
  /* border-radius: 20px; */
  border: 3px solid hsl(24.29deg 36.84% 22.35% / 50%);
}

.view-bottles {
  .buttons {
    display: flex;
    justify-content: space-between;

    .btn-scroller {
      background-color: transparent;
      border: 0;
      /* border: 1px solid; */
      color: var(--color-brown);
      font-size: 2rem;
      height: 2rem;
      width: 2rem;
      /* display: flex;
      justify-content: center;
      align-items: center; */
      padding: 0;
    }
    /* .btn-scroller.left {
      position: absolute;
      bottom: 1rem;
      left: 0;
    }
    .btn-scroller.right {
      position: absolute;
      bottom: 1rem;
      right: 0;
    } */
    @media (min-width: 1080px) {
      /* .btn-scroller.left {
        position: absolute;
        bottom: -0.5rem;
        left: -2rem;
      }
      .btn-scroller.right {
        position: absolute;
        bottom: -0.5rem;
        right: -2rem;
      } */
    }
  }
}

.view-bottles {
  background-color: var(--color-ivory);
  background-image: url("/wp-content/themes/yellowstonebourbon/imgs/LowerFalls_Gold-01.png");
  background-image: image-set(
    "/wp-content/themes/yellowstonebourbon/imgs/LowerFalls_Gold-01.avif"
      type("image/avif"),
    "/wp-content/themes/yellowstonebourbon/imgs/LowerFalls_Gold-01.png"
      type("image/png")
  );
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--color-brown);
  overflow: hidden;
  .container-content {
    position: relative;
    .header {
      text-align: center;
      margin-top: calc(var(--sub-section-margin-y) / 2);
      margin-bottom: calc(var(--sub-section-margin-y) / 2);
    }
    .cards {
      display: grid;
      /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
      grid-template-columns: repeat(6, 100%);
      gap: 1rem;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      /* scroll-padding: 50%; */
    }
    @media (min-width: 1080px) {
      .cards {
        grid-template-columns: repeat(6, 300px);
      }
    }
    @media (min-width: 1600px) {
      .cards {
        justify-content: start;
      }
      & button {
        /* display: none; */
      }
    }
  }
}

.view-bottles .card {
  scroll-snap-align: center;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  --card-header-offset: 2rem;
  margin-bottom: 1rem;
  &:hover .card-header img {
    transform: scale3d(1.1, 1.1, 1.1);
    margin-top: 5%;
  }
}
.view-bottles .card .card-header {
  height: 250px;
  margin-bottom: calc(var(--card-header-offset) * -1);
  position: relative;
}
.view-bottles .card .card-header img {
  width: auto;
  height: 100%;
  transition: all calc(var(--animation-speed) / 2);
}
.view-bottles .card .card-body {
  padding: calc(var(--card-header-offset) + 2.5rem) 2rem 2rem;
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
}
.view-bottles .card:nth-of-type(1) .card-body {
  background-color: var(--color-gold);
}
.view-bottles .card:nth-of-type(2) .card-body {
  background-color: var(--color-blue-gray);
}
.view-bottles .card:nth-of-type(3) .card-body {
  background-color: var(--color-brown);
}
.view-bottles .card:nth-of-type(4) .card-body {
  background-color: var(--color-coal);
}
.view-bottles .card:nth-of-type(5) .card-body {
  background-color: #5f1922;
}
.view-bottles .card:nth-of-type(6) .card-body {
  background-color: var(--color-brown);
}

.view-bottles .card-body:has(.pre-header:not(:empty) ~ .header) .header {
  margin-top: 1em;
}
.view-bottles .card-body .header {
  font-size: 1.5rem;
  line-height: 1.5rem;
  letter-spacing: 0.2em;
  margin-bottom: 1em;
}
.view-bottles .card .card-body .description {
  flex-basis: 100%;
  margin-bottom: 1rem;
}
.view-bottles .card .btn {
  width: fit-content;
  margin: auto;
}

.view-bottles.grid .cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* grid-template-columns: repeat(5, 100%); */
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: none;
  margin-left: calc(var(--container-fluid-margin-x) * -1);
  margin-right: calc(var(--container-fluid-margin-x) * -1);
}
@media (min-width: 630px) {
  .view-bottles.grid .cards {
    margin-left: auto;
    margin-right: auto;
  }
}
.view-bottles.grid .btn-scroller {
  display: none;
}
