/* Home page layout and components. */
.slider-wrap {
  position: relative;
}

/* Home page components and their responsive rules. Loaded only by home.html. */
.eshop-home {
  color: var(--eshop-ink);
}

.eshop-home-hero {
  position: relative;
  max-width: 1320px;
  margin: 28px auto 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--eshop-main-color-light);
  box-shadow: 0 24px 60px rgba(45, 26, 65, .14);
  isolation: isolate;
}

.eshop-home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(29, 15, 46, .34), transparent);
  pointer-events: none;
  z-index: 1;
}

.eshop-home-section {
  padding-top: 76px;
  padding-bottom: 0;
}

.eshop-home-section:last-child {
  padding-bottom: 72px;
}

.eshop-home-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.eshop-home h1, .eshop-home h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -.01em;
  color: var(--eshop-ink);
}

.eshop-home-heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--eshop-main-color);
  margin: 0 auto 18px;
}

.eshop-home-heading p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--eshop-muted);
  margin: 0;
}

.eshop-home-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.eshop-home-hero .carousel-indicators {
  gap: 8px;
  z-index: 3;
  margin-bottom: 18px;
}

.eshop-home-hero .carousel-indicators button {
  width: 26px;
  height: 5px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .55);
  opacity: 1;
  transition: width .25s ease, background-color .25s ease;
}

.eshop-home-hero .carousel-indicators .active {
  width: 40px;
  background: #fff;
}

.eshop-home-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.eshop-home-categories a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #e8e2ed;
  border-radius: 18px;
  background: #fff;
  color: #282231;
  box-shadow: 0 6px 18px rgba(45, 26, 65, .05);
  transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease;
}

.eshop-home-categories img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .35s ease;
}

.eshop-home-categories span:not(.eshop-image-spinner) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: inherit;
  padding: 18px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.eshop-home-categories span:not(.eshop-image-spinner)::after {
  content: "\f178";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  color: var(--eshop-ink);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.eshop-home-categories a:is(:hover, :focus-visible) {
  transform: translateY(-6px);
  border-color: var(--eshop-main-color-hover);
  box-shadow: 0 18px 38px rgba(45, 26, 65, .16);
  color: var(--eshop-ink);
}

.eshop-home-categories a:is(:hover, :focus-visible) span:not(.eshop-image-spinner)::after {
  opacity: 1;
  transform: translateX(0);
}

.eshop-home-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.eshop-home-highlight-grid a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8e2ed;
  border-radius: 14px;
  color: #282231;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.eshop-home-highlight-grid img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 10px;
  object-fit: contain;
  background: var(--eshop-main-color-light);
  border-radius: 50%;
}

.eshop-home-highlight-grid span {
  flex: 1;
  overflow-wrap: anywhere;
}

.eshop-home-highlight-grid i {
  color: var(--eshop-ink);
  transition: transform .2s ease;
}

.eshop-home-highlight-grid a:is(:hover, :focus-visible) {
  transform: translateY(-4px);
  border-color: var(--eshop-main-color-hover);
  box-shadow: var(--eshop-shadow);
  color: var(--eshop-ink);
}

.eshop-home-highlight-grid a:is(:hover, :focus-visible) i {
  transform: translateX(4px);
}

.eshop-home-story {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--eshop-main-color-light), #fff);
  border: 1px solid var(--eshop-border);
  box-shadow: var(--eshop-shadow);
}

#home-about-title,
#home-business-title {
  scroll-margin-top: max(calc(var(--eshop-header-bottom, 160px) + 24px), 30vh);
}

.eshop-home-story-image {
  display: flex;
  align-items: stretch;
  min-height: 260px;
  background: var(--eshop-main-color-light);
}

@media (min-width: 992px) {
  .eshop-home-text-first .eshop-home-story-image {
    order: 2;
  }
}

@media (hover: hover) and (pointer: fine) {
  .eshop-home-categories a:hover img { transform: scale(1.06); }
}

.eshop-home-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.eshop-home-story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
}

.eshop-home-story-copy p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--eshop-muted);
  margin-bottom: 24px;
}

.eshop-home .btn {
  border-radius: 10px;
  font-size: 14px;
  padding: 13px 22px;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal;
}

.eshop-home-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto 32px;
  padding: 6px;
  border: 1px solid #e8e2ed;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(45, 26, 65, .05);
}

.eshop-home-tabs .nav-link {
  margin: 0;
  padding: 11px 22px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--eshop-muted);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  transition: color .2s ease, background-color .2s ease;
}

.eshop-home-tabs .nav-link:is(:hover, :focus-visible) {
  color: var(--eshop-ink);
}

.eshop-home-tabs .nav-link.active,
.eshop-home-tabs .nav-link.active:is(:hover, :focus-visible) {
  background: var(--eshop-main-color);
  color: var(--eshop-ink) !important;
  border: 0;
}

.eshop-home-news {
  color: var(--eshop-ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background: var(--eshop-main-color);
  padding: 40px 44px;
  border-radius: 20px;
  box-shadow: 0 20px 46px rgba(70, 25, 82, .28);
}

.eshop-home-news::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.eshop-home-news h2 { color: var(--eshop-ink); }

.eshop-home-news p {
  margin: 0;
  color: var(--eshop-ink);
}



.eshop-home-news .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.eshop-home-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.eshop-home-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eshop-home-services a {
  display: inline-block;
  margin-top: 18px;
  color: var(--eshop-ink);
  transition: color .2s ease;
}

.eshop-home-services a:is(:hover, :focus-visible) {
  color: var(--eshop-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eshop-home-services a:focus-visible {
  outline: 2px solid var(--eshop-main-color-hover);
  outline-offset: 4px;
}

.eshop-home-values > div {
  position: relative;
  padding: 32px 22px;
  border: 1px solid var(--eshop-border);
  background: var(--eshop-main-color-light);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.eshop-home-values > div:is(:hover, :focus-within) {
  transform: translateY(-6px);
  border-color: var(--eshop-main-color-hover);
  box-shadow: var(--eshop-shadow);
}

.eshop-home-values img {
  width: 76px;
  height: 76px;
  padding: 14px;
  object-fit: contain;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 50%;
}

.eshop-home-values h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--eshop-ink);
}

.eshop-home-values p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--eshop-ink);
  margin: 0;
}

.eshop-home a:focus-visible, .eshop-home button:focus-visible {
  outline: 2px solid var(--eshop-main-color);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .eshop-home-hero { margin: 18px 12px 0; border-radius: 16px; }

  .eshop-home-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eshop-home-services {
    grid-template-columns: 1fr;
  }

  .eshop-home-story {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .eshop-home-about .eshop-home-story,
  .eshop-home-business .eshop-home-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .eshop-home-section {
    padding-top: 40px;
  }

  .eshop-home-section:last-child {
    padding-bottom: 40px;
  }

  .eshop-home-heading {
    margin-bottom: 24px;
  }

  .eshop-home-heading p {
    font-size: 14px;
  }

  .eshop-home-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .eshop-home-categories span {
    padding: 12px 8px;
    font-size: 13px;
  }

  .eshop-home-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .eshop-home-highlight-grid a {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    font-size: 13px;
  }

  .eshop-home-highlight-grid img {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .eshop-home-highlight-grid span {
    flex-basis: calc(100% - 56px);
  }

  .eshop-home-highlight-grid i {
    display: none;
  }

  .eshop-home-story-copy {
    padding: 24px;
  }

  .eshop-home-story-copy p {
    font-size: 14px;
  }

  .eshop-home-tabs {
    width: 100%;
    gap: 4px;
    border-radius: 16px;
  }

  .eshop-home-tabs .nav-link {
    flex: 1 1 auto;
    padding: 10px 12px;
    font-size: 13px;
  }

  .eshop-home-news {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .eshop-home-values {
    gap: 28px 16px;
  }

  .eshop-home-values h3 {
    font-size: 15px;
  }

  .eshop-home-values p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eshop-home-categories a,
  .eshop-home-categories span::after,
  .eshop-home-highlight-grid a,
  .eshop-home-highlight-grid i,
  .eshop-home-values > div {
    transition: none;
  }

  .eshop-home-categories a:hover,
  .eshop-home-categories a:hover img,
  .eshop-home-highlight-grid a:hover,
  .eshop-home-highlight-grid a:hover i,
  .eshop-home-values > div:hover {
    transform: none;
  }
}
