:root {
  --radius: 8px;
  --back: #fafafa;
  --line: #bdbdbd;
  --black: #323232;
  --gray: #f2f2f2;
  --slider-delay: 1s;
}

@font-face {
  font-family: Praise;
  src: url("./fonts/Praise-Regular.ttf");
}

@font-face {
  font-family: Afacad;
  src: url("./fonts/Afacad-Regular.ttf");
}

::-webkit-scrollbar-track {
  display: none;
}

::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--line);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--black);
}

.Flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body,
main,
header,
section,
div,
span,
h1,
h2,
h3,
h4,
a,
button {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  line-height: inherit;
  text-decoration: none;
  box-sizing: border-box;
  font-size: inherit;
}

body {
  margin: 4rem;
  font-family: Afacad;
  background: var(--back);
  color: var(--black);
}

main {
  width: 100%;
  height: 86vh;
  margin: 0 auto;
  max-width: 1800px;
  position: relative;
  max-height: 1000px;
  border-radius: var(--radius);
  border: solid 1px var(--line);
}

header {
  z-index: 11;
  height: 3.4rem;
  padding: 0 1rem;
  font-size: 1rem;
  overflow: hidden;
  position: relative;
  border-bottom: solid 1px var(--line);
  color: inherit;
}

.header .dynamic {
  color: inherit;
}

.back {
  right: 0;
  width: 60px;
  height: 100%;
  border: none;
  border-radius: 0;
  background: none;
  position: absolute;
  opacity: 1;
  filter: none;
  border-left: solid 1px var(--line);
  transition: .7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back.close {
  opacity: 0;
  right: -10rem;
  filter: blur(2px);
}

.back:hover {
  border: none;
  border-left: solid 1px var(--line);
  border-top-right-radius: 8px;
  background: var(--gray);
}

.overview {
  margin-top: 5rem;
  text-align: center;
  --overview-fade-start: 140ms;
  --overview-fade-gap: 180ms;
  --overview-fade-steps: 2;
  --overview-fade-duration: 620ms;
  --overview-fade-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color: var(--black);
}

.overview h1,
.overview h2 {
  font-size: 4rem;
  font-family: Afacad;
  line-height: 4rem;
}

.overview h1 {
  font-family: Praise;
  line-height: 1rem;
  font-weight: 400;
  color: var(--line);
}

.overview h2 {
  color: currentColor;
}

.overview .text {
  color: currentColor;
}

.overview.overview--fx h1,
.overview.overview--fx h2,
.overview.overview--fx .text {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 28px, 0);
}

.overview.overview--animated h1,
.overview.overview--animated h2,
.overview.overview--animated .text {
  animation: overviewFade var(--overview-fade-duration) var(--overview-fade-ease) forwards;
  animation-delay: calc(var(--overview-fade-start) + var(--overview-fade-gap) * var(--child-index, 0));
}

.text {
  font-family: Afacad;
  line-height: 1rem;
}

.overview .text {
  display: inline-block;
}

.chat-button-container {
  gap: 1rem;
  opacity: 1;
  right: 1rem;
  bottom: 1rem;
  width: 100%;
  z-index: 111;
  display: flex;
  position: absolute;
  align-items: center;
  pointer-events: none;
  justify-content: flex-end;
  translate: all .2s ease;
  transition-delay: .4s;
}

.chat-button-container.close {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s;
}

button {
  width: 3rem;
  height: 3rem;
  display: flex;
  cursor: pointer;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--gray);
}

button:hover {
  border: solid 1px var(--line);
}

button svg path {
  fill: var(--black);
}

.chat-thread {
  height: 2.5rem;
  border-radius: 4px;
  color: var(--black);
  padding: 0.5rem 1rem;
  background: var(--gray);
  position: relative;
  cursor: text;
  pointer-events: auto;
  transform: scale(0);
  transition: all .3s ease;
  transform-origin: right center;
}

.chat-thread.visible {
  transform: scale(1);
}

.chat-button {
  pointer-events: auto;
}

.chat-thread::after {
  top: 0;
  content: "";
  width: 2rem;
  height: 2.5rem;
  position: absolute;
  background: url("./images/arrow.svg") no-repeat;
  background-size: 1.5rem;
  background-position: center;
}

/* Message chat UI */
.message {
  width: fit-content;
  margin: 1rem 0;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 95%;
}

.message .icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message .text-message {
  z-index: 111;
  padding: .5rem 1rem;
  background: var(--gray);
  border-radius: 4px;
  position: relative;
  margin-left: 1rem;
  white-space: pre-wrap;
}

.text-message {
  transform: scale(.2) translateX(-1rem);    /* initial smaller size */
  transform-origin: center left;
  opacity: 0;
  filter: blur(3px);
  transition: .3s ease;
}


.text-message.show {
  transform: scale(1) translateX(0);
  transform-origin: center left;
  opacity: 1;
  filter: blur(0px);
  transition: .3s ease;
}

.message.temp {
  align-items: center;
}

.waiting {
  background: linear-gradient(
    115deg,
    black 0%,
    #3333338a 40%,
    #ffffff00 50%,
    #333333ad 60%,
    black 100%
  );
  background-size: 200px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3.5s infinite linear;
  text-align: center;
}

@keyframes shine {
  0% {
    background-position: -200px;
  }
  100% {
    background-position: 200px;
  }
}

.message .text-message::before {
  content: '';
  top: .4rem;
  z-index: 1;
  left: -1rem;
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  background: url("./images/message-arrow.svg") no-repeat;
  background-size: 1rem;
  background-position: right center;
}

.chat-attachment {
  margin: 0.25rem 0 0;
  padding-left: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-attachment .chat-contacts {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chat-attachment--products .chat-embla {
  position: relative;
  width: 100%;
  margin: 0;
}

.chat-attachment--products .chat-embla__viewport {
  overflow: hidden;
  padding: 0.2rem 1.5rem;
  margin: 0;
}

.chat-attachment--products .chat-embla__container {
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.chat-attachment--products .chat-embla__viewport--fallback {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.chat-attachment--products .chat-embla__viewport--fallback .chat-embla__container {
  width: max-content;
}

.chat-attachment .chat-contacts {
  align-items: flex-start;
}

.chat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  min-width: 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-attachment--products .chat-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.chat-attachment--products .chat-card:not(.embla__slide) {
  flex: 0 0 260px;
}

.chat-card.up {
  transform: translateY(14px);
  opacity: 0;
}

.chat-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.chat-card__subtitle {
  font-size: 0.9rem;
  color: var(--black);
  opacity: 0.75;
}

.chat-card__price {
  font-size: 0.9rem;
  color: var(--black);
  opacity: 0.75;
}

.chat-card__meta {
  font-size: 0.8rem;
  color: var(--black);
  opacity: 0.65;
}

.chat-card__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chat-card__tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--gray);
  color: var(--black);
  text-transform: capitalize;
}

.chat-card__list {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--black);
  opacity: 0.85;
}

.chat-card__list li {
  margin: 0.1rem 0;
}

.chat-card__cta {
  align-self: flex-start;
  border: none;
  width: 100%;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--black);
  color: #fff;
  transition: opacity 0.2s ease;
}

.chat-card__cta:hover {
  opacity: 0.85;
}

.chat-contacts {
  gap: 0.5rem;
}

.chat-contact {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 160px;
  max-width: 220px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  color: var(--black);
  text-decoration: none;
}

.chat-contact.up {
  transform: translateY(14px);
  opacity: 0;
}

.chat-contact:visited {
  color: var(--black);
}

.chat-contact:hover {
  background: var(--gray);
}

.chat-contact--primary {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.chat-contact--primary:visited,
.chat-contact--primary:hover {
  color: #fff;
}

.chat-contact__label {
  font-weight: 600;
  font-size: 0.85rem;
}

.chat-contact__value {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
  max-width: 180px;
}

@media screen and (max-width: 640px) {
  .chat-attachment {
    padding-left: 0;
  }

  .message-body {
    padding-left: 0 !important;
  }
  
  .chat-card {
    height: fit-content !important;
  }

  .message,
  .chat-contacts {
    padding-left: 1.5rem;
  }

  .chat-card {
    min-width: 160px;
    max-width: 210px;
  }

  .chat-attachment--products .chat-card {
    flex: 0 0 240px;
  }

  .chat-contact {
    min-width: 140px;
    max-width: 200px;
  }
}

.slider-container {
  width: 100%;
  margin: 3rem 0;
  --slider-card-width: 300px;
  --slider-gap: 1rem;
  --slider-scale-default: 1;
  --slider-fade-start: var(--slider-delay, 220ms);
  --slider-fade-gap: 160ms;
  --slider-fade-duration: 520ms;
  --slider-fade-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.overview .slider-container {
  --slider-fade-start: calc(var(--slider-delay, 0ms) + var(--overview-fade-start, 0ms) + var(--overview-fade-gap, 0ms) * var(--overview-fade-steps, 0) + var(--overview-fade-duration, 0ms));
}

.slider-container .embla {
  position: relative;
  --slide-size: var(--slider-card-width);
  --slide-spacing: var(--slider-gap);
  margin: 0 auto;
}

.slider-container .embla__viewport {
  overflow: hidden;
  margin: 0 auto;
}

.slider-container .embla__container {
  display: flex;
  gap: var(--slider-gap);
  margin: 0;
  justify-content: center;
  touch-action: pan-y;
  will-change: transform, opacity;
}

.slider-container .embla__slide {
  flex: 0 0 var(--slider-card-width);
  min-width: var(--slider-card-width);
  padding-left: 0;
  will-change: transform, opacity;
}

.slider-container a {
  width: 100%;
  padding: 0;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-container .slider {
  width: 100%;
  max-width: var(--slider-card-width);
  padding: 0.2rem;
  min-height: 300px;
  border-radius: 24px;
  overflow: hidden !important;
  border: solid 1px var(--line);
  --slide-scale: var(--slider-scale-default, 1);
  transform: scale(var(--slide-scale));
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform, box-shadow, border-color;
}

.slider-container.slider--fx {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  will-change: transform, opacity;
}

.slider-container.slider--fx .embla__slide {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.slider-container.slider--animated {
  animation: sliderRootFade var(--slider-fade-duration) var(--slider-fade-ease) forwards;
  animation-delay: var(--slider-fade-start);
}

.slider-container.slider--animated .embla__slide {
  animation: sliderFadeUp var(--slider-fade-duration) var(--slider-fade-ease) forwards;
  animation-delay: calc(var(--slider-fade-start) + var(--slider-fade-gap) * var(--slide-index, 0));
}

@keyframes overviewFade {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 28px, 0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sliderRootFade {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sliderFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-container.slider--fx,
  .slider-container.slider--fx .embla__slide,
  .slider-container.slider--animated,
  .slider-container.slider--animated .embla__slide,
  .overview.overview--fx h1,
  .overview.overview--fx h2,
  .overview.overview--fx .text,
  .overview.overview--animated h1,
  .overview.overview--animated h2,
  .overview.overview--animated .text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.slider .cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 24px;
}

.slider .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.slider .card-data {
  width: 94%;
  margin-top: 1rem;
  margin-left: 3%;
}

.slider .card-data h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
}

.slider .card-data span {
  color: var(--black);
  display: inline-block;
  margin: 0.5rem 0;
}

@media screen and (max-width: 1081px) {
  .slider-container .embla__container {
    justify-content: normal !important;
  }
}

@media screen and (max-width: 768px) {
  .slider-container {
    margin: 2.5rem 0;
    --slider-scale-default: 0.9;
  }

  .slider-container .slider {
    min-height: 280px;
  }

  .slider-container .embla__container {
    justify-content: normal !important;
  }
}

@media screen and (max-width: 640px) {
  .slider-container {
    margin: 2rem 0;
    --slider-scale-default: 0.86;
  }

  .slider-container .slider {
    min-height: 260px;
    padding: 0.3rem;
  }
}

@media screen and (max-width: 360px) {
  .slider-container {
    --slider-card-width: min(280px, calc(100vw - 2.5rem));
    --slider-gap: 0.75rem;
    --slider-scale-default: 0.84;
  }
}



.embla {
  /* mobile-first */
  --slide-height: 19rem;
  --slide-spacing: 1rem;
  --slide-size: 80%;
}

/* Tablets */
@media (min-width: 640px) {
  .embla {
    --slide-size: 60%;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .embla {
    --slide-size: 33.333%;
  } /* ~3 cards per view */
}

.embla__viewport {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.embla__container {
  display: flex;
  margin-left: calc(var(--slide-spacing) * -1);
}
.embla__slide {
  transform: translate3d(0, 0, 0);
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
}
.embla__slide__number {
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  border-radius: 1.8rem;
  font-size: 4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slide-height);
  user-select: none;
}

/* Ensure your card fills the slide nicely */
.embla__slide > a {
  display: block;
  height: 100%;
}
.embla__slide .slider {
  height: var(--slide-height);
}

@media screen and (max-width: 700px) {
  body {
    margin: 0;
  }
  main {
    margin: 0;
    border: none;
    border-radius: 0;
    min-height: 90vh;
  }
  button,
  a,
  div,
  section {
    cursor: auto;
  }

  .header {
    opacity: 1;
    transform: translateY(0rem);
    transition: .7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .header.close {
    opacity: 0;
    transform: translateY(-10rem);
  }

  .slider-container .embla__container {
    gap: 0 !important;
  }

  .embla__container {
    gap: 0.5rem;
  }
  .overview h1,
  .overview h2 {
    font-size: 3.4rem;
  }

  .overview h2 {
    line-height: 2.5rem;
    margin-bottom: 0.4rem;
  }

  .chat-body {
    bottom: 0;
    height: calc(100% - 3.4rem) !important;
    position: fixed !important;
  }

  .chat-activity {
    display: flex;
    width: 100% !important;
    padding: 1rem !important;
    pointer-events: none;
  }

  .chat-activity .input {
    width: 100%;
    margin: 0 !important;
  }

  .send {
    aspect-ratio: 1/1;
    margin-left: 0.5rem !important;
  }

  .chat-button-container {
    bottom: 2rem;
    position: fixed;
  }

  .chat-activity:has(input:focus) {
    bottom: 0;
    z-index: 1000;
    background: white;
    padding: 0 !important;
    position: fixed !important;
  }

  .chat-activity:has(input:focus) .send,
  .chat-activity:has(input:focus) .input {
    margin: 0 !important;
    border-radius: 0;
  }

  .chat-activity:has(input:focus) .input {
    width: 100%;
    max-width: 100%;
    border-right: none;
  }
}

/* Chat body style */
.chat-body {
  bottom: 0;
  width: 100%;
  height: calc(100% - 3.4rem);
  display: flex;
  position: absolute;
  filter: blur(0);
  flex-direction: column;
  background: var(--back);
  border-radius: var(--radius);
  justify-content: space-between;
  transform: translate(1);
  transform-origin: bottom right;
  transition: .4s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.chat-body.close {
    border-radius: 30%;
    overflow: hidden;
    transform: scale(0);
    filter: blur(1px);
}

.chat-body.close .message-body,
.chat-body.close .chat-activity {
  opacity: 0;
  transition: .1s ease;
  transition-delay: 0s;
}

.message-body {
  overflow-y: auto;
  padding-left: 1.5rem;
  padding-bottom: 10rem;
  transition: .3s ease;
  transition-delay: .5s;
}

.chat-activity {
  width: 100%;
  display: flex;
  padding: 1rem 0;
  align-items: center;
  pointer-events: none;
  transition: .2s ease;
}

.chat-activity .input {
  width: 100%;
  display: flex;
  max-width: 400px;
  height: 3rem;
  align-items: center;
  margin-left: 1.2rem;
  border-radius: 4px;
  border: solid 1px var(--line);
}

.chat-activity input,
.chat-activity textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: none;
  padding-left: 1rem;
  color: var(--black);
}
.chat-activity textarea {
    width: 100%;
    height: 1.4rem;
    font-size: 1rem !important;
    outline: none;
    background: none;
    padding: .7rem;
    padding-left: 1rem;
    font-family: 'Afacad';
    color: var(--black);
    resize: none;
    overflow: hidden;
    white-space: nowrap;
}

.chat-activity input::placeholder,
.chat-activity textarea::placeholder {
  color: var(--line);
}

.chat-activity textarea::-webkit-scrollbar {
  display: none;
}

.chat-activity .icon {
  width: 4rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: solid 1px var(--line);
}

.input,
.send {
  pointer-events: auto;
}

.chat-activity .send {
  margin-left: 1rem;
  border-radius: 0;
  border-radius: 4px;
  cursor: pointer;
  background: var(--back);
  border: solid 1px var(--line);
}

.chat-activity .send:hover {
  background: var(--gray);
}

.send.active {
  border-color: var(--line);
}




