@media screen and (min-width: 800px) {
  #main-container:has(.splide .splide__slide) {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }
}

@media screen and (min-width: 1000px) {
  .product-media {
    height: fit-content;
    position: sticky;
    top: 10rem;
  }
}

@media screen and (min-width: 1024px) {
  #options .select2 {
    width: 100% !important;
  }
}

.summary {
  width: 100%;
}

.summary.unvisible {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-canvas);
  z-index: 100;
  border-top: thin solid var(--color-divider);
}

@media screen and (max-width: 512px) {
  .summary:not(.unvisible) .summary__content {
    padding: 0;
  }
  .summary.unvisible .summary__content {
    padding: 1rem 0 0;
  }
  .summary.unvisible .summary__content > *:first-child {
    padding: 0 1.6rem;
  }
}
@media screen and (min-width: 512px) {
  .summary:not(.unvisible) .summary__content {
    padding: 0;
  }
  .summary.unvisible .summary__content {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.summary__content {
  align-items: center;
}

@media screen and (min-width: 512px) {
  .summary__content {
    display: flex;
    flex-direction: row;
  }
  .summary__content > *:first-child {
    flex: 1;
    /* padding: 0; */
  }
}

.summary .btn--primary {
  margin: 0.5rem auto auto;
  width: 100%;
}

.summary.unvisible .btn--primary {
  border-radius: 0;
}

@media screen and (min-width: 512px) {
  .summary.unvisible .btn--primary {
    border-radius: var(--radius);
  }
}
@media screen and (min-width: 512px) {
  .summary .btn--primary {
    margin: auto;
    border-radius: initial;
    border-radius: var(--radius);
    width: unset;
  }
}

.summary__price {
  margin: 0;
}
.summary__compare_at_price {
  margin: 0;
  text-decoration: line-through;
  text-decoration-color: red;
}

.carousel-view {
  margin-bottom: 3.2rem;
}
.main-carousel.is-fullscreen .carousel-cell {
  height: 100%;
}
.main-carousel .carousel-cell {
  width: 100%; /* full width */
}

.main-carousel .carousel-cell img {
  width: 100%; /* full width */
  object-fit: contain;
}

.nav-carousel {
  background: var(--color-canvas);
  border-radius: var(--radius);
  overflow: hidden;
}

.nav-carousel .carousel-cell {
  width: 6rem;
  margin: 0.4rem 0.2rem;
  height: 6rem;
  background-color: var(--color-body-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
}
.nav-carousel .carousel-cell.is-selected {
  border: 2px solid var(--color-primary);
}
.nav-carousel .carousel-cell img {
  width: 100%; /* full width */
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.flickity-viewport {
  transition: height 0.2s;
}

.footer {
  padding-bottom: 10rem;
}

.information-tbl {
  width: 100%;
  margin-bottom: 3.2rem;
  border-collapse: collapse;
}
p + .information-tbl {
  margin-top: 1rem;
}

.information-tbl,
.information-tbl tr,
.information-tbl td,
.information-tbl th {
  border: thin solid var(--color-divider);
}

.information-tbl td,
.information-tbl th {
  padding: 0.4rem 1rem;
}

.information-tbl tr:nth-child(odd) {
  background: var(--color-canvas);
}

#related_products h2 {
  margin-top: 3.2rem;
  margin-bottom: 1rem;
}

/* splide */
.splide {
  display: none;
}
.splide:has(.splide__slide) {
  display: block;
}
.splide img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.splide__pagination li {
  padding: 0.5rem;
}

.splide__pagination__page.is-active {
  background-color: var(--color-primary) !important;
}

.splide__progress__bar {
  background: var(--color-divider) !important;
  height: 2px;
}

/* quick-checkout */
#quick-checkout {
  background-color: var(--color-canvas);
  border: 0;
  margin-bottom: 3rem;
}

@media screen and (min-width: 800px) {
  #quick-checkout {
    padding: 4rem;
  }
}
#quick-checkout .card {
  background-color: var(--color-body-bg);
}

#quick-checkout button {
  text-transform: uppercase;
}

#quick-checkout__custom-quantity {
  margin: 0;
  min-width: 0;
  font-weight: bold;
  max-width: 10rem;
}
#quick-checkout .input {
  background-color: var(--color-body-bg);
}

#quick-checkout__personal_data {
  border-bottom: thick solid var(--color-divider);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
@media screen and (min-width: 768px) {
  #quick-checkout .grid div:has(> #id_address) {
    grid-column: 2/5;
  }
}

/* add-to-cart */
#add-to-cart {
  background-color: var(--color-canvas);
  border: 0;
  margin-bottom: 3rem;
}

@media screen and (min-width: 800px) {
  #add-to-cart {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* payment-methods */
#payment-methods {
  border-bottom: thick solid var(--color-divider);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.payment_method {
  transition: all 0.2s;
}

.payment_method img {
  width: 16rem;
  height: 100%;
  object-fit: contain;
}

section.splide.splide--promotion {
  max-width: 1800px;
  margin: auto;
}
