/* ==========================================================================
   Section: Catalogue Quà Tết 2027 (MuaQuaTet-Catalogue-2027)
   ========================================================================== */
.mqt-catalogue-2027 {
  container-type: inline-size;
  padding-bottom: var(--mqt-section-space, 80px);
}

.mqt-catalogue-2027__banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 15px;
  background: #990d23;
  color: #ffffff;
  box-shadow: 0 14px 36px #58231926;
}

.mqt-catalogue-2027__copy,
.mqt-catalogue-2027__slider {
  grid-area: 1 / 1;
}

.mqt-catalogue-2027__copy {
  position: relative;
  z-index: 2;
  width: 47%;
  align-self: center;
  padding: 42px 10px 42px clamp(22px, 4cqw, 54px);
  pointer-events: none;
  box-sizing: border-box;
}

.mqt-catalogue-2027__title,
.entry-content .mqt-catalogue-2027__title {
  margin: 0 !important;
  padding: 0 !important;
  font: 600 36px / 1.45 Merriweather, Georgia, serif;
  line-height: 1.45 !important;
  color: #ffffff !important;
  text-wrap: balance;
}

.mqt-catalogue-2027__desc,
.entry-content .mqt-catalogue-2027__desc {
  margin: 16px 0 24px !important;
  padding: 0 !important;
  max-width: 44ch;
  font: 400 15px / 1.55 Inter, Arial, sans-serif;
  color: #ffffff !important;
}

.mqt-catalogue-2027__cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 17px;
  border: 0;
  border-radius: 6px;
  background: #ffbd27;
  color: #272727;
  font: 700 16px / 1.35 Inter, Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mqt-catalogue-2027__cta:hover,
.mqt-catalogue-2027__cta:focus-visible {
  background: #ffd061;
  color: #272727;
}

.mqt-catalogue-2027__cta svg {
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.mqt-catalogue-2027__slider {
  margin: 0 !important;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: clamp(370px, 43cqw, 520px);
  background: #990d23;
}

.mqt-catalogue-2027__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--tone, #eac5a5);
  transition: background-color 850ms ease;
}

.mqt-catalogue-2027__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #990d23 38%, #990d23d9 43%, #990d2344 50%, transparent 56%);
  pointer-events: none;
}

.mqt-catalogue-2027__slide {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 20%;
  transform: scale(1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 850ms ease, visibility 0s linear 850ms;
}

.mqt-catalogue-2027__slide.active {
  opacity: 1;
  z-index: 1;
  visibility: visible;
  transition: opacity 850ms ease;
}

.mqt-catalogue-2027__slide:not([src]) {
  visibility: hidden;
}

.mqt-catalogue-2027__nav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.mqt-catalogue-2027__nav button,
.mqt-catalogue-2027__nav button:focus,
.mqt-catalogue-2027__nav button:active {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  cursor: pointer;
}

.mqt-catalogue-2027__nav button:focus:not(:focus-visible) {
  outline: none !important;
}

.mqt-catalogue-2027__nav button:hover,
.mqt-catalogue-2027__nav button:focus-visible {
  color: #ffbd27 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.mqt-catalogue-2027__nav svg {
  display: block;
  filter: drop-shadow(0 1px 2px #000b);
}

@media (max-width: 991px) {
  .mqt-catalogue-2027 > .container {
    padding-left: var(--mqt-gutter-mobile, 12px) !important;
    padding-right: var(--mqt-gutter-mobile, 12px) !important;
  }

  #page.container .mqt-catalogue-2027 > .container,
  #page > .container .mqt-catalogue-2027 > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 767px) {
  .mqt-catalogue-2027__copy,
  .mqt-catalogue-2027__slider {
    grid-area: auto;
  }

  .mqt-catalogue-2027__copy {
    width: auto;
    padding: 23px 19px;
  }

  .mqt-catalogue-2027__title,
  .entry-content .mqt-catalogue-2027__title {
    font-size: 34px;
    line-height: 1.45 !important;
  }

  .mqt-catalogue-2027__desc,
  .entry-content .mqt-catalogue-2027__desc {
    margin: 12px 0 17px !important;
  }

  .mqt-catalogue-2027__cta {
    width: 100%;
  }

  .mqt-catalogue-2027__slider {
    min-height: 0;
  }

  .mqt-catalogue-2027__stage {
    aspect-ratio: 1.4;
    background-size: cover;
  }

  .mqt-catalogue-2027__stage::after {
    background: linear-gradient(#990d2344, transparent 18%);
  }

  .mqt-catalogue-2027__slide {
    width: 100%;
    transform: scale(1);
  }
}

@container (max-width: 670px) {
  .mqt-catalogue-2027__copy,
  .mqt-catalogue-2027__slider {
    grid-area: auto;
  }

  .mqt-catalogue-2027__copy {
    width: auto;
    padding: 23px 19px;
  }

  .mqt-catalogue-2027__title,
  .entry-content .mqt-catalogue-2027__title {
    font-size: 34px;
    line-height: 1.45 !important;
  }

  .mqt-catalogue-2027__desc,
  .entry-content .mqt-catalogue-2027__desc {
    margin: 12px 0 17px !important;
  }

  .mqt-catalogue-2027__cta {
    width: 100%;
  }

  .mqt-catalogue-2027__slider {
    min-height: 0;
  }

  .mqt-catalogue-2027__stage {
    aspect-ratio: 1.4;
    background-size: cover;
  }

  .mqt-catalogue-2027__stage::after {
    background: linear-gradient(#990d2344, transparent 18%);
  }

  .mqt-catalogue-2027__slide {
    width: 100%;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mqt-catalogue-2027__slide,
  .mqt-catalogue-2027__stage {
    transition: none;
  }
}
