/* EVO_MODERN_LAYOUT_FOUNDATION_R5
 * Homepage-only geometry corrections. R3 module presentation and JS hooks stay active.
 */

body.eo-modern-page > main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.eo-modern-page > main > .eo-modern-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.eo-modern-page .eo-header-frame,
.eo-modern-home > .eo-main-navigation,
.eo-modern-home > .eo-section-tight,
.eo-modern-home > .eo-modern-columns,
.eo-modern-home > .eo-modern-content-bottom {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
}

/* Header: Lovable desktop scale over the real OpenCart/UniShop2 controls. */
.eo-modern-header .eo-header-benefits span,
.eo-modern-header .eo-header-meta {
  font-size: 13px;
}

.eo-modern-header .eo-header-main {
  min-height: 116px;
  grid-template-columns: 240px 184px minmax(300px, 1fr) auto;
  gap: 26px;
}

.eo-modern-header .eo-brand-logo strong {
  font-size: 36px;
}

.eo-modern-header .eo-brand-logo small {
  font-size: 11px;
  letter-spacing: .16em;
}

.eo-modern-header .eo-header-search .header-search__input {
  font-size: 17px;
}

.eo-modern-header .eo-header-actions {
  gap: 7px;
}

.eo-modern-header .eo-header-actions > div {
  min-width: 78px;
}

.eo-modern-header .eo-header-actions .top-menu__btn-text,
.eo-modern-header .eo-header-actions .header-block__item-caption {
  font-size: 13px;
  font-weight: 600;
}

.eo-modern-header .eo-header-actions .header-block__item-cart {
  min-width: 165px;
  margin-left: 5px;
}

.eo-modern-header .eo-header-actions .header-cart {
  width: 165px;
  padding-right: 18px;
  padding-left: 18px;
}

.eo-modern-header .eo-header-links a {
  font-size: 16px;
  font-weight: 600;
}

.eo-modern-header .eo-header-secondary .header-phones__main {
  font-size: 19px;
}

.eo-modern-home > .eo-main-navigation a {
  font-size: 15px;
}

/* Hero: the Lovable 8/4 composition, independent of legacy Bootstrap columns. */
.eo-modern-home > .eo-hero {
  grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr);
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 48px;
}

.eo-modern-home .eo-hero__visual,
.eo-modern-home .eo-hero__form {
  min-height: 640px;
}

.eo-modern-home .eo-hero__visual > img {
  object-position: 80% center;
}

.eo-modern-home .eo-hero__content {
  max-width: 440px;
  justify-content: flex-start;
  padding: 48px 24px 40px 40px;
}

.eo-modern-home .eo-hero h1 {
  max-width: 420px;
  margin-top: 24px;
  margin-bottom: 20px;
  font-size: clamp(36px, 2.9vw, 42px);
  line-height: 1.07;
  letter-spacing: -.035em;
}

.eo-modern-home .eo-hero__content > p {
  max-width: 360px;
  font-size: 17px;
  line-height: 1.65;
}

.eo-modern-home .eo-hero__actions {
  width: 260px;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 34px;
}

.eo-modern-home .eo-hero__actions .eo-btn {
  width: 260px;
  min-height: 52px;
  font-size: 16px;
}

.eo-modern-home .eo-hero__phone {
  margin-top: 30px;
  font-size: 18px;
}

.eo-modern-home .eo-hero__phone-note {
  font-size: 14px;
}

.eo-modern-home .eo-hero__form {
  padding: 32px;
}

.eo-modern-home .eo-hero__form h2 {
  font-size: 28px;
}

@media (max-width: 1279px) {
  .eo-modern-header .eo-header-main {
    grid-template-columns: 205px 160px minmax(220px, 1fr) auto;
    gap: 14px;
  }

  .eo-modern-header .eo-brand-logo strong {
    font-size: 32px;
  }

  .eo-modern-header .eo-brand-logo small {
    font-size: 9px;
  }

  .eo-modern-header .eo-header-catalog .header-menu__btn,
  .eo-modern-header .eo-header-catalog .menu__header {
    width: 160px;
  }

  .eo-modern-header .eo-header-actions > div {
    min-width: 52px;
  }

  .eo-modern-header .eo-header-actions .top-menu__btn-text,
  .eo-modern-header .eo-header-actions .header-block__item-caption {
    font-size: 11px;
  }

  .eo-modern-header .eo-header-actions .header-block__item-cart {
    min-width: 112px;
  }

  .eo-modern-header .eo-header-actions .header-cart {
    width: 112px;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 1023px) {
  body.eo-modern-page .eo-header-frame,
  .eo-modern-home > .eo-main-navigation,
  .eo-modern-home > .eo-section-tight,
  .eo-modern-home > .eo-modern-columns,
  .eo-modern-home > .eo-modern-content-bottom {
    width: calc(100% - 32px);
  }

  .eo-modern-home > .eo-hero {
    grid-template-columns: 1fr;
  }

  .eo-modern-home .eo-hero__visual {
    min-height: 580px;
  }

  .eo-modern-home .eo-hero__form {
    min-height: 0;
  }
}

@media (max-width: 959px) {
  .eo-modern-header .eo-header-main {
    min-height: 0;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .eo-modern-header .eo-header-logo-slot {
    grid-column: 1;
    grid-row: 1;
  }

  .eo-modern-header .eo-header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .eo-modern-header .eo-header-catalog {
    grid-column: 1;
    grid-row: 2;
  }

  .eo-modern-header .eo-header-search {
    grid-column: 2;
    grid-row: 2;
  }

  .eo-modern-header .eo-header-actions > div {
    min-width: 44px;
  }

  .eo-modern-header .eo-header-actions .top-menu__btn-text,
  .eo-modern-header .eo-header-actions .header-block__item-caption,
  .eo-modern-header .eo-header-actions .header-cart__total {
    display: none;
  }

  .eo-modern-header .eo-header-actions .header-block__item-cart {
    min-width: 54px;
    margin-left: 0;
  }

  .eo-modern-header .eo-header-actions .header-cart {
    width: 54px;
    padding: 0;
  }

  .eo-modern-header .eo-header-links {
    display: none;
  }

  .eo-modern-header .eo-header-secondary .header-block__item-telephone {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  body.eo-modern-page .eo-header-frame,
  .eo-modern-home > .eo-main-navigation,
  .eo-modern-home > .eo-section-tight,
  .eo-modern-home > .eo-modern-columns,
  .eo-modern-home > .eo-modern-content-bottom {
    width: calc(100% - 24px);
  }

  .eo-modern-home > .eo-hero {
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 38px;
  }

  .eo-modern-home .eo-hero__visual {
    min-height: 720px;
  }

  .eo-modern-home .eo-hero__content {
    max-width: none;
    padding: 28px 24px 300px;
  }

  .eo-modern-home .eo-hero h1 {
    max-width: 520px;
    font-size: clamp(34px, 9.2vw, 42px);
  }

  .eo-modern-home .eo-hero__content > p {
    max-width: 470px;
    font-size: 15px;
  }

  .eo-modern-home .eo-hero__actions,
  .eo-modern-home .eo-hero__actions .eo-btn {
    width: 100%;
  }

  .eo-modern-home .eo-hero__form {
    padding: 25px 21px;
  }
}

@media (max-width: 600px) {
  .eo-modern-header .eo-header-main {
    grid-template-columns: minmax(135px, 1fr) auto;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .eo-modern-header .eo-header-search {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .eo-modern-header .eo-brand-logo svg {
    width: 30px;
    height: 30px;
  }

  .eo-modern-header .eo-brand-logo strong {
    font-size: 28px;
  }

  .eo-modern-header .eo-brand-logo small {
    margin-top: 5px;
    font-size: 8px;
  }

  .eo-modern-header .eo-header-actions {
    gap: 2px;
  }

  .eo-modern-header .eo-header-actions > div {
    min-width: 34px;
  }

  .eo-modern-header .eo-header-actions .top-menu__btn,
  .eo-modern-header .eo-header-actions .header-account,
  .eo-modern-header .eo-header-actions .header-wishlist,
  .eo-modern-header .eo-header-actions .header-compare {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .eo-modern-header .eo-header-actions .header-block__item-cart {
    min-width: 38px;
  }

  .eo-modern-header .eo-header-actions .header-cart {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 430px) {
  body.eo-modern-page .eo-header-frame,
  .eo-modern-home > .eo-main-navigation,
  .eo-modern-home > .eo-section-tight,
  .eo-modern-home > .eo-modern-columns,
  .eo-modern-home > .eo-modern-content-bottom {
    width: calc(100% - 20px);
  }

  .eo-modern-home .eo-hero__content {
    padding-right: 19px;
    padding-left: 19px;
  }

  .eo-modern-home .eo-hero h1 {
    font-size: 35px;
  }
}
