@charset "UTF-8";
:root {
  --ink: #03341f;
  --ink2: #854a50;
  --ink3: #321207;
  --cream: #f5f0e8;
  --gold: #c9a84c;
  --rust: #b94a2c;
  --muted: #6b6457;
  --skew: -9deg;
}

.sc-card-product.sc-card-plustinum .card-section,
.sc-card-product.sc-card-the-passion .card-section,
.sc-card-product.sc-card-wisdom .card-section {
  background: none;
}

.sc-card-product .card-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 0.5 ease 0s;
  transform: scale(1.05);
  opacity: 0;
}

.sc-card-product.sc-card-plustinum .card-section::after {
  background-image: url(../img/cc-promo-themetic-plustinum-textbox-dt.png);
}

.sc-card-product.sc-card-the-passion .card-section::after {
  background-image: url(../img/cc-promo-themetic-passion-textbox-dt.png);
}

.sc-card-product.sc-card-wisdom .card-section:after {
  background-image: url(../img/cc-promo-themetic-wisdom-textbox-dt.png);
}

.sc-card-product.sc-card-plustinum {
  background: var(--ink);
}

.sc-card-product.sc-card-the-passion,
.sc-card-product.sc-card-the-passion .panel-door {
  background: var(--ink2) !important;
}

.sc-card-product.sc-card-wisdom,
.sc-card-product.sc-card-wisdom .panel-door {
  background: var(--ink3) !important;
}

@media screen and (min-width: 2501px) {
  .image-overlay .image-box {
    text-align: center;
  }
  .image-overlay img {
    margin: 0 auto;
    max-width: 2500px !important;
  }
}
.image-overlay {
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  right: 0;
  overflow: hidden;
  position: absolute;
  transition: all 1s ease 0s;
  transform: translateX(100px);
  opacity: 0;
}
.image-overlay.active {
  opacity: 1;
}
.image-overlay .image-box {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shadow-overlay {
  display: flex;
  width: 60%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
  position: absolute;
  pointer-events: none;
  transition: all 1s cubic-bezier(0.77, 0, 0.18, 1);
  opacity: 0;
}
.shadow-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
  transform: scale(1);
}

.mask-stage {
  overflow: hidden;
}
.mask-stage .container {
  position: relative;
  z-index: 5;
}
.mask-stage .object-box {
  position: absolute;
  left: 50%;
  top: 0;
  max-width: 430px;
  z-index: 5;
  transition: all 0.75s ease 0.4s;
  opacity: 0;
}
.mask-stage .object-box img {
  width: 100%;
}
.mask-stage.revealed .object-box {
  left: 53%;
  opacity: 1;
}

.panels-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
  left: -6.5%;
  right: -6.5%;
}

/* ─── Panel config — แก้ที่นี่ที่เดียว ─── */
/* Each skewed panel */
.panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 300px;
  overflow: hidden;
  transform: skewX(var(--skew));
  transform-origin: top center;
}

.panel:nth-child(1) {
  left: calc(0 * 300px);
  --delay: 0.45s;
}

.panel:nth-child(2) {
  left: calc(1 * 300px);
  --delay: 0.4s;
}

.panel:nth-child(3) {
  left: calc(2 * 300px);
  --delay: 0.35s;
}

.panel:nth-child(4) {
  left: calc(3 * 300px);
  --delay: 0.3s;
}

.panel:nth-child(5) {
  left: calc(4 * 300px);
  --delay: 0.25s;
}

.panel:nth-child(6) {
  left: calc(5 * 300px);
  --delay: 0.2s;
}

.panel:nth-child(7) {
  left: calc(6 * 300px);
  --delay: 0.15s;
}

.panel:nth-child(8) {
  left: calc(7 * 300px);
  --delay: 0.1s;
}

.panel:nth-child(9) {
  left: calc(8 * 300px);
  --delay: 0.05s;
}

.panel:nth-child(10) {
  left: calc(9 * 300px);
  --delay: 0s;
}

/* Dark door inside each panel */
.panel-door {
  position: absolute;
  inset: -1px;
  background-color: var(--ink);
  background-image: repeating-linear-gradient(-52deg, transparent 0px, transparent 9px, rgba(201, 168, 76, 0.03) 9px, rgba(201, 168, 76, 0.03) 10px);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
  transition-delay: var(--delay);
}

/* Gold edge line */
.panel-door::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(201, 168, 76, 0.22) 30%, rgba(201, 168, 76, 0.38) 50%, rgba(201, 168, 76, 0.22) 70%, transparent 100%);
  transition: opacity 0.5s ease var(--delay);
}

/* Number label (counter-skewed so text reads straight) */
.panel-num {
  position: absolute;
  z-index: 2;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) skewX(8deg);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.16);
  pointer-events: none;
  transition: opacity 0.25s ease var(--delay);
}

/* ── REVEALED STATE ── */
.mask-stage.revealed .panel-door {
  transform: scaleX(0);
}

.mask-stage.revealed .panel-door::after {
  opacity: 0;
}

.mask-stage.revealed .panel-num {
  opacity: 0;
}

.mask-stage.revealed .image-overlay {
  transform: translateX(0);
}

.mask-stage.revealed .shadow-overlay {
  opacity: 1;
}

.sc-card-product.sc-card-plustinum .card-section.in-view::after,
.sc-card-product.sc-card-the-passion .card-section.in-view::after,
.sc-card-product.sc-card-wisdom .card-section.in-view::after {
  opacity: 1;
  transform: scale(1);
}

.card-image-wrap,
.card-heading,
.card-subtext,
.benefit-item,
.button-control {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  position: relative;
  z-index: 1;
}

.card-section {
  transition: all 0.5s ease 0.35s;
  opacity: 0;
}
.card-section.in-view {
  opacity: 1;
}
.card-section.in-view .card-image-wrap {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.card-section.in-view .card-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.card-section.in-view .card-subtext {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.card-section.in-view .benefit-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}
.card-section.in-view .benefit-item:nth-child(1) {
  transition-delay: 0.52s;
}
.card-section.in-view .benefit-item:nth-child(2) {
  transition-delay: 0.64s;
}
.card-section.in-view .button-control {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

@media only screen and (min-width: 992px) {
  .sc-card-product .sc-inner {
    padding: 91px 0;
  }
}
@media only screen and (max-width: 991px) {
  .card-section {
    transition: all 0.2s ease 0.2s;
    opacity: 0;
  }
  .card-section.in-view {
    opacity: 1;
  }
  .card-section.in-view .card-image-wrap {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }
  .card-section.in-view .card-heading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
  }
  .card-section.in-view .card-subtext {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
  }
  .card-section.in-view .benefit-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .card-section.in-view .benefit-item:nth-child(1) {
    transition-delay: 0.52s;
  }
  .card-section.in-view .benefit-item:nth-child(2) {
    transition-delay: 0.64s;
  }
  .card-section.in-view .button-control {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
  }
  .image-overlay,
  .shadow-overlay {
    display: none;
  }
  .mask-stage .object-box {
    display: none !important;
  }
}
/* Container วาง text ทับ banner */
@media screen and (min-width: 1921px) {
  .morement-text {
    position: absolute;
    bottom: 33%; /* ปรับตำแหน่งแนวตั้ง */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    max-width: max-content;
  }
}
.highlight-banner-overlay {
  position: relative;
}

.morement-text {
  position: absolute;
  bottom: 26%; /* ปรับตำแหน่งแนวตั้ง */
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  max-width: max-content;
}

.morement-text .mor {
  height: 80px;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  animation: stretchMore 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.morement-text .ment {
  height: 80px;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  animation: stretchMent 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* E wrapper — ซ่อน overflow เพื่อให้ยืดออกจากซ้าย */
.e-wrapper {
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 0;
}

/* ตัว E เริ่มต้นที่ width: 0 แล้วขยายออก */
.letter-e {
  height: 80px;
  width: 0;
  min-width: 0;
  margin: 0;
  position: relative;
  object-fit: cover;
  object-position: left center;
  animation: stretchE 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.text-top {
  height: 80px;
  flex-shrink: 0;
  margin: 0;
  left: -24px;
  top: 0;
  opacity: 0;
  position: absolute;
  animation: stretchTextTop 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 3.6s;
}

.text-bottom {
  height: 67px;
  flex-shrink: 0;
  margin: 0;
  right: -24px;
  bottom: 0;
  opacity: 0;
  position: absolute;
  animation: stretchTextBottom 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 3.6s;
}

@keyframes stretchTextTop {
  0% {
    opacity: 0;
    top: 0;
  }
  55% {
    top: -70px;
    opacity: 1;
  }
  100% {
    top: -70px;
    opacity: 1;
  }
}
@keyframes stretchTextBottom {
  0% {
    opacity: 0;
    top: 0;
  }
  55% {
    top: 70px;
    opacity: 1;
  }
  100% {
    top: 70px;
    opacity: 1;
  }
}
@keyframes stretchMore {
  0% {
    opacity: 0;
    top: 120px;
  }
  55% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 1;
  }
}
@keyframes stretchMent {
  0% {
    opacity: 0;
    top: -120px;
  }
  55% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 1;
  }
}
:root {
  --e-start-width: 60px;
  --e-mid-width: 60px;
  --e-end-width: 620px;
}

@media (max-width: 767px) {
  :root {
    --e-start-width: 10px;
    --e-mid-width: 10px;
    --e-end-width: 80px;
  }
}
@keyframes stretchE {
  0% {
    opacity: 0;
    top: 120px;
    width: var(--e-start-width);
  }
  55% {
    top: 0;
    opacity: 1;
    width: var(--e-mid-width);
  }
  100% {
    width: var(--e-end-width);
  }
}
@media screen and (max-width: 1199px) {
  .text-top {
    height: 58px;
    left: -24px;
  }
  .text-bottom {
    height: 45px;
    right: -24px;
  }
  .morement-text .mor,
  .morement-text .ment,
  .letter-e {
    height: 60px;
  }
  @keyframes stretchTextTop {
    0% {
      opacity: 0;
      top: 0;
    }
    55% {
      top: -52px;
      opacity: 1;
    }
    100% {
      top: -52px;
      opacity: 1;
    }
  }
  @keyframes stretchTextBottom {
    0% {
      opacity: 0;
      top: 0;
    }
    55% {
      top: 60px;
      opacity: 1;
    }
    100% {
      top: 60px;
      opacity: 1;
    }
  }
  :root {
    --e-start-width: 60px;
    --e-mid-width: 60px;
    --e-end-width: 535px;
  }
  @keyframes stretchE {
    0% {
      opacity: 0;
      top: 120px;
      width: var(--e-start-width);
    }
    55% {
      top: 0;
      opacity: 1;
      width: var(--e-mid-width);
    }
    100% {
      width: var(--e-end-width);
    }
  }
}
@media screen and (max-width: 991px) {
  .text-top {
    height: 45px;
    left: -24px;
  }
  .text-bottom {
    height: 33px;
    right: -24px;
  }
  .morement-text .mor,
  .morement-text .ment,
  .letter-e {
    height: 48px;
  }
  @keyframes stretchTextTop {
    0% {
      opacity: 0;
      top: 0;
    }
    55% {
      top: -38px;
      opacity: 1;
    }
    100% {
      top: -38px;
      opacity: 1;
    }
  }
  @keyframes stretchTextBottom {
    0% {
      opacity: 0;
      top: 0;
    }
    55% {
      top: 45px;
      opacity: 1;
    }
    100% {
      top: 45px;
      opacity: 1;
    }
  }
  :root {
    --e-start-width: 60px;
    --e-mid-width: 60px;
    --e-end-width: 360px;
  }
  @keyframes stretchE {
    0% {
      opacity: 0;
      top: 120px;
      width: var(--e-start-width);
    }
    55% {
      top: 0;
      opacity: 1;
      width: var(--e-mid-width);
    }
    100% {
      width: var(--e-end-width);
    }
  }
}
@media (max-width: 767px) {
  .text-top {
    height: 40px;
    left: 0;
  }
  .text-bottom {
    height: 30px;
    right: 0;
  }
  .morement-text {
    bottom: 39%;
  }
  .morement-text .mor,
  .morement-text .ment,
  .letter-e {
    height: 40px;
  }
  @keyframes stretchTextTop {
    0% {
      opacity: 0;
      top: 0;
    }
    55% {
      top: -32px;
      opacity: 1;
    }
    100% {
      top: -32px;
      opacity: 1;
    }
  }
  @keyframes stretchTextBottom {
    0% {
      opacity: 0;
      top: 0;
    }
    55% {
      top: 45px;
      opacity: 1;
    }
    100% {
      top: 45px;
      opacity: 1;
    }
  }
  :root {
    --e-start-width: 60px;
    --e-mid-width: 60px;
    --e-end-width: 240px;
  }
  @keyframes stretchE {
    0% {
      opacity: 0;
      top: 120px;
      width: var(--e-start-width);
    }
    55% {
      top: 0;
      opacity: 1;
      width: var(--e-mid-width);
    }
    100% {
      width: var(--e-end-width);
    }
  }
}
@media screen and (max-width: 450px) {
  .text-top {
    height: 32px;
  }
  .text-bottom {
    height: 23px;
  }
  .morement-text {
    bottom: 40%;
  }
  .morement-text .mor,
  .morement-text .ment,
  .letter-e {
    height: 31px;
  }
  .e-wrapper {
    margin: 0 8px 0 0;
  }
  @keyframes stretchTextBottom {
    0% {
      opacity: 0;
      top: 0;
    }
    55% {
      top: 30px;
      opacity: 1;
    }
    100% {
      top: 30px;
      opacity: 1;
    }
  }
  @keyframes stretchE {
    0% {
      opacity: 0;
      top: 120px;
      width: 25px;
    }
    55% {
      top: 0;
      width: 25px;
      opacity: 1;
    }
    100% {
      top: 0;
      width: 155px;
      opacity: 1;
    }
  }
}
/* หยุด animation ไว้ก่อน */
.morement-text .mor,
.morement-text .ment,
.letter-e,
.text-top,
.text-bottom {
  animation-play-state: paused;
}

/* เมื่อ add class animate แล้วค่อยเล่น */
.morement-text.animate .mor,
.morement-text.animate .ment,
.morement-text.animate .letter-e,
.morement-text.animate .text-top,
.morement-text.animate .text-bottom {
  animation-play-state: running;
}/*# sourceMappingURL=bg-transition.css.map */