/*
 * Terana Design — nativni hero pro sablonu Samba
 *
 * Obsah, obrazek i odkaz zustavaji spravovane v nativnim Shoptet carouselu.
 * CSS pouze meni rozlozeni a typografii jednoho slidu.
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500;600&display=swap");

body.in-index #carousel {
  --td-olive: var(--color-secondary, #65704a);
  --td-olive-dark: var(--color-secondary-hover, #4d5737);
  --td-paper: var(--color-primary, #fffdf8);
  --td-tint: #f2ede3;
  padding: 32px clamp(24px, 4vw, 56px) 42px;
  overflow: hidden;
  background: var(--td-paper);
}

body.in-index #carousel .carousel-inner {
  min-height: 0 !important;
  overflow: visible;
}

body.in-index #carousel .item > a,
body.in-index #carousel .item > .td-hero-native-layout {
  width: 100%;
  max-width: 1420px;
  min-height: clamp(540px, 58vw, 650px);
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas: "copy media";
  gap: 24px;
  color: #26231e;
  text-decoration: none;
}

body.in-index #carousel .item img {
  grid-area: media;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  max-height: none !important;
  display: block;
  object-fit: cover;
  object-position: 50% 58%;
  border-radius: 4px;
}

body.in-index #carousel .extended-banner-texts {
  grid-area: copy;
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 100%;
  padding: clamp(44px, 5vw, 72px) !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transform: none !important;
  background: var(--td-tint) !important;
  border-radius: 4px;
  color: #26231e !important;
  text-align: left;
}

body.in-index #carousel .extended-banner-title {
  max-width: 12ch;
  margin: 0 !important;
  display: block !important;
  overflow: visible !important;
  color: #26231e !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(50px, 5.2vw, 76px) !important;
  font-weight: 500 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.035em;
  text-overflow: clip !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
}

body.in-index #carousel .extended-banner-text {
  max-width: 39ch;
  margin: 28px 0 0 !important;
  display: block !important;
  overflow: visible !important;
  color: #5f5b54 !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-size: clamp(15px, 1.18vw, 17px) !important;
  font-weight: 400 !important;
  line-height: 1.62 !important;
  text-overflow: clip !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
}

body.in-index #carousel .td-hero-actions {
  width: 100%;
  max-width: 410px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.in-index #carousel .extended-banner-link {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 14px !important;
  align-self: stretch;
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 2px;
  background: var(--td-olive) !important;
  color: #fff !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

body.in-index #carousel .extended-banner-link::after {
  content: "\2192";
  font-size: 18px;
  font-weight: 400;
}

body.in-index #carousel .extended-banner-link:hover {
  background: var(--td-olive-dark) !important;
  transform: translateY(-2px);
}

body.in-index #carousel .td-hero-secondary {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--td-olive);
  border-radius: 2px;
  background: transparent;
  color: var(--td-olive-dark);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

@media (max-width: 1180px) and (min-width: 768px) {
  body.in-index #carousel .td-hero-actions {
    max-width: none;
    grid-template-columns: 1fr;
  }

  body.in-index #carousel .extended-banner-link,
  body.in-index #carousel .td-hero-secondary {
    width: 100% !important;
    justify-content: space-between;
  }
}

body.in-index #carousel .td-hero-secondary::after {
  content: "\2192";
  color: var(--td-olive);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

body.in-index #carousel .td-hero-secondary:hover {
  background: rgba(101, 112, 74, 0.09);
  color: var(--td-olive-dark);
  transform: translateY(-2px);
}

body.in-index #carousel .td-hero-secondary:hover::after {
  transform: translateX(3px);
}

body.in-index #carousel .td-hero-photo-note {
  margin-top: 26px;
  display: block;
  color: #777168;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 991px) {
  body.in-index #carousel {
    padding: 24px 20px 34px;
  }

  body.in-index #carousel .item > a,
  body.in-index #carousel .item > .td-hero-native-layout {
    min-height: 520px;
    grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
  }

  body.in-index #carousel .extended-banner-texts {
    padding: 40px !important;
  }

  body.in-index #carousel .extended-banner-title {
    font-size: clamp(43px, 5.4vw, 56px) !important;
  }
}

@media (max-width: 767px) {
  body.in-index #carousel {
    padding: 14px 14px 28px;
  }

  body.in-index #carousel .item > a,
  body.in-index #carousel .item > .td-hero-native-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy";
    gap: 0;
  }

  body.in-index #carousel .item img {
    height: clamp(270px, 76vw, 390px) !important;
    border-radius: 4px 4px 0 0;
    object-position: 50% 58%;
  }

  body.in-index #carousel .extended-banner-texts {
    min-height: 0;
    padding: 34px 26px 36px !important;
    border-radius: 0 0 4px 4px;
  }

  body.in-index #carousel .extended-banner-title {
    max-width: 12ch;
    font-size: clamp(40px, 12vw, 54px) !important;
    line-height: 0.98 !important;
  }

  body.in-index #carousel .extended-banner-text {
    margin-top: 20px !important;
    font-size: 15px !important;
  }

  body.in-index #carousel .td-hero-actions {
    margin-top: 26px;
    max-width: none;
    grid-template-columns: 1fr;
  }

  body.in-index #carousel .extended-banner-link,
  body.in-index #carousel .td-hero-secondary {
    width: 100% !important;
    min-height: 50px;
    justify-content: space-between;
  }

  body.in-index #carousel .td-hero-photo-note {
    margin-top: 22px;
  }
}
