/**
 * Theme4 Elegant Categories — home-only layout.
 * Self-contained styles; does not alter category pages or the mobile drawer.
 */
#home .t4-elegant-home {
  --t4-ec-ink: #16243c;
  --t4-ec-muted: #778399;
  --t4-ec-accent: #bd9c67;
  --t4-ec-line: #e9edf2;
  display: grid;
  grid-template-columns: minmax(218px, 252px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.6vw, 38px);
  width: min(calc(100% - 40px), var(--theme-container-max, 1420px));
  max-width: none;
  margin: clamp(20px, 2.6vw, 38px) auto 56px;
}
#home .t4-elegant-home > .t4-elegant-home__content {
  min-width: 0;
}
#home .t4-elegant-home__content .t4-home,
#home .t4-elegant-home__content .t4-home-slider {
  min-width: 0;
  max-width: 100%;
}
#home .t4-elegant-home__content img,
#home .t4-elegant-home__content iframe {
  max-width: 100%;
}
#home .t4-elegant-categories {
  position: sticky;
  top: 22px;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(222, 227, 235, 0.9);
  box-shadow: 0 16px 46px rgba(22, 36, 60, 0.065), 0 2px 10px rgba(22, 36, 60, 0.025);
}
#home .t4-elegant-categories__heading {
  background: linear-gradient(140deg, #203550 0%, #142338 75%, #0f1b2b 100%);
  color: #fff;
  padding: 25px 21px 23px;
  position: relative;
  isolation: isolate;
}
#home .t4-elegant-categories__heading:after {
  content: '';
  position: absolute;
  width: 155px;
  height: 155px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(224, 197, 142, .18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
#home .t4-elegant-categories__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9b692;
  letter-spacing: .16em;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}
#home .t4-elegant-categories__spark {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  transform: rotate(45deg);
  background: #dec38e;
}
#home .t4-elegant-categories__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}
#home .t4-elegant-categories__title {
  color: #fff;
  margin: 0;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.04em;
}
#home .t4-elegant-categories__heading-icon {
  color: rgba(226, 206, 165, .82);
  flex: 0 0 auto;
}
#home .t4-elegant-categories__rule {
  width: 38px;
  height: 2px;
  background: #d3b57c;
  margin-top: 18px;
  border-radius: 4px;
}
#home .t4-elegant-categories__nav {
  padding: 11px 11px 8px;
}
#home .t4-elegant-categories__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(64vh, 640px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d8dde5 transparent;
}
#home .t4-elegant-categories__item + .t4-elegant-categories__item {
  border-top: 1px solid #f1f3f6;
}
#home .t4-elegant-categories__link {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  padding: 10px 9px;
  border-radius: 8px;
  color: var(--t4-ec-ink);
  font-size: 12.8px;
  font-weight: 610;
  letter-spacing: -.012em;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
#home .t4-elegant-categories__index {
  color: #a6afbc;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  flex: 0 0 20px;
}
#home .t4-elegant-categories__name {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
#home .t4-elegant-categories__arrow {
  color: #a8b2bd;
  opacity: .6;
  flex: 0 0 auto;
  transition: transform .2s ease, color .2s ease, opacity .2s ease;
}
#home .t4-elegant-categories__link:hover,
#home .t4-elegant-categories__link:focus-visible {
  background: #f3f6fa;
  color: #122e54;
}
#home .t4-elegant-categories__link:hover .t4-elegant-categories__index,
#home .t4-elegant-categories__link:focus-visible .t4-elegant-categories__index {
  color: #aa8246;
}
#home .t4-elegant-categories__link:hover .t4-elegant-categories__arrow,
#home .t4-elegant-categories__link:focus-visible .t4-elegant-categories__arrow {
  transform: translateX(3px);
  color: #a4814a;
  opacity: 1;
}
#home .t4-elegant-categories__link:focus-visible {
  outline: 2px solid #bd9c67;
  outline-offset: -2px;
}
#home .t4-elegant-categories__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 19px;
  color: #a19a8a;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12em;
}
#home .t4-elegant-categories__foot-line {
  height: 1px;
  width: 17px;
  background: #bd9c67;
}
#home .t4-elegant-home__content > .t4-home > :first-child {
  margin-top: 0;
}
#home .t4-elegant-home__content .sm-section__head {
  margin-top: 25px;
}
@media (max-width: 1050px) {
  #home .t4-elegant-home {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    width: calc(100% - 28px);
  }
  #home .t4-elegant-categories__heading { padding: 20px 17px; }
  #home .t4-elegant-categories__link { font-size: 12px; }
}
@media (max-width: 800px) {
  #home .t4-elegant-home {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: calc(100% - 26px);
    margin-top: 16px;
  }
  #home .t4-elegant-categories {
    position: static;
    flex: none;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(22, 36, 60, .045);
  }
  #home .t4-elegant-categories__heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 17px;
  }
  #home .t4-elegant-categories__eyebrow { display: none; }
  #home .t4-elegant-categories__title-row { margin: 0; }
  #home .t4-elegant-categories__title { font-size: 16px; }
  #home .t4-elegant-categories__heading-icon { width: 18px; height: 18px; }
  #home .t4-elegant-categories__rule { margin: 0 0 0 auto; }
  #home .t4-elegant-categories__nav { padding: 7px 10px 9px; }
  #home .t4-elegant-categories__list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 7px;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
  }
  #home .t4-elegant-categories__item { flex: 0 0 auto; scroll-snap-align: start; }
  #home .t4-elegant-categories__item + .t4-elegant-categories__item { border: 0; }
  #home .t4-elegant-categories__link {
    min-height: 39px;
    white-space: nowrap;
    border: 1px solid #e8edf3;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 9px;
  }
  #home .t4-elegant-categories__index { display: none; }
  #home .t4-elegant-categories__name { overflow-wrap: normal; }
  #home .t4-elegant-categories__arrow { width: 13px; height: 13px; }
  #home .t4-elegant-categories__foot { display: none; }
  #home .t4-elegant-home__content { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #home .t4-elegant-categories__link,
  #home .t4-elegant-categories__arrow { transition: none; }
}
