/* Responsive polish shared by every route. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.site-header .collections-trigger {
  padding-inline-end: 4px;
}

.site-header .brand-title,
.site-header .brand strong {
  text-overflow: clip !important;
}

.site-header .lang button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 11px/1 Arial, sans-serif;
  cursor: pointer;
}

.site-header .lang button.active {
  background: var(--lilac, #a991bc);
  color: #fff;
  box-shadow: 0 8px 18px rgba(114, 83, 124, .25);
}

.product-info h1,
.product-card h2,
.product-card h3,
.spec strong,
.contact-list a,
.contact-footer {
  overflow-wrap: anywhere;
}

.contact-list > a {
  align-items: center;
}

.contact-list > a > span {
  min-width: 0;
}

.phone-number {
  flex: 0 0 auto;
}

.contact-footer .social-row .social-platform,
.contact-footer .social-row a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(86, 57, 95, .18);
  border-radius: 50%;
  background: #fff;
  color: #24182a;
  font: 700 16px/1 Arial, sans-serif;
  text-decoration: none;
}

/* Keep the header to two compact rows on tablets across both page systems. */
@media (max-width: 1000px) {
  .site-header {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    justify-items: stretch !important;
    column-gap: 14px !important;
    row-gap: 9px !important;
    padding: 12px clamp(14px, 3vw, 24px) !important;
    text-align: start !important;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: auto !important;
    min-width: 0 !important;
  }

  .site-header .lang,
  .site-header .lang-switch {
    grid-column: 2;
    grid-row: 1;
    order: initial !important;
    align-self: center;
    justify-self: end;
  }

  .site-header .nav,
  .site-header .main-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 0 0 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .site-header .collections-menu {
    min-width: 0;
    align-self: center !important;
  }

  .site-header .collections-dropdown {
    position: fixed !important;
    top: var(--gr-header-bottom, 122px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100svh - var(--gr-header-bottom, 122px) - 16px);
    overflow-y: auto;
    transform: translateY(-7px) !important;
  }

  [dir="rtl"] .site-header .collections-dropdown {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    transform: translateY(-7px) !important;
  }

  .site-header .collections-menu:hover .collections-dropdown,
  .site-header .collections-menu:focus-within .collections-dropdown,
  .site-header .collections-menu.is-open .collections-dropdown,
  [dir="rtl"] .site-header .collections-menu:hover .collections-dropdown,
  [dir="rtl"] .site-header .collections-menu:focus-within .collections-dropdown,
  [dir="rtl"] .site-header .collections-menu.is-open .collections-dropdown {
    transform: translateY(0) !important;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 118px;
  }

  .site-header {
    column-gap: 8px !important;
    row-gap: 8px !important;
    padding: 10px 12px !important;
  }

  .site-header .brand {
    max-width: calc(100vw - 140px) !important;
    gap: 8px !important;
  }

  .site-header .brand-logo,
  .site-header .brand-mark {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .site-header .brand > span:last-child {
    max-width: calc(100vw - 188px) !important;
  }

  .site-header .brand-title,
  .site-header .brand strong {
    max-width: none !important;
    overflow: visible !important;
    font-size: 12.5px !important;
    line-height: 1.05 !important;
    letter-spacing: .11em !important;
  }

  .site-header .brand-sub,
  .site-header .brand em,
  .site-header .brand small {
    max-width: none !important;
    overflow: visible !important;
    margin-top: 3px !important;
    font-size: 7px !important;
    line-height: 1.1 !important;
    letter-spacing: .22em !important;
  }

  .site-header .lang,
  .site-header .lang-switch {
    gap: 1px !important;
    padding: 3px !important;
  }

  .site-header .lang span,
  .site-header .lang button,
  .site-header .lang-switch button {
    display: grid !important;
    place-items: center;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: 10px/1 Arial, sans-serif !important;
    cursor: pointer;
  }

  .site-header .lang button.active,
  .site-header .lang-switch button.active {
    background: var(--lilac, #a991bc);
    color: #fff;
    box-shadow: 0 7px 16px rgba(114, 83, 124, .24);
  }

  .site-header .nav,
  .site-header .main-nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 30px;
    column-gap: 11px !important;
    row-gap: 3px !important;
    justify-content: center !important;
    align-items: center !important;
    justify-items: center;
  }

  .site-header .nav > *,
  .site-header .main-nav > * {
    grid-column: span 2;
  }

  .site-header .nav > :nth-child(4),
  .site-header .main-nav > :nth-child(4) {
    grid-column: span 2;
  }

  .site-header .nav > :nth-child(5),
  .site-header .main-nav > :nth-child(5) {
    grid-column: span 2;
  }

  .site-header .nav > a,
  .site-header .main-nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .collections-menu,
  .site-header .collections-trigger {
    justify-content: center;
    width: 100%;
  }

  .site-header .collections-menu {
    height: 30px;
  }

  .site-header .nav > a,
  .site-header .main-nav > a,
  .site-header .collections-trigger {
    min-height: 30px !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    letter-spacing: .11em !important;
  }

  .home-hero {
    height: calc(100svh - var(--header-h)) !important;
  }

  .hero-copy h1 {
    max-width: min(82vw, 300px);
    text-wrap: balance;
  }

  .page-hero h1,
  .catalog-hero .section-title,
  .product-info h1 {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .contact-list > a {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px !important;
    padding: 12px 0 !important;
  }

  .contact-list > a > span {
    font-size: 14px;
  }

  .contact-list .phone-number {
    font-size: 13px;
  }

  .socials {
    justify-content: center !important;
  }

  .contact-footer {
    padding: 26px 14px !important;
  }

  .contact-footer .contact-lines {
    gap: 8px;
  }

  .contact-footer .phone-number {
    display: block;
    padding: 6px 0;
  }
}

@media (max-width: 360px) {
  .site-header .brand {
    max-width: calc(100vw - 132px) !important;
  }

  .site-header .brand > span:last-child {
    max-width: calc(100vw - 178px) !important;
  }

  .site-header .brand-title,
  .site-header .brand strong {
    font-size: 11.5px !important;
    letter-spacing: .09em !important;
  }

  .site-header .nav,
  .site-header .main-nav {
    column-gap: 8px !important;
  }

  .site-header .nav > a,
  .site-header .main-nav > a,
  .site-header .collections-trigger {
    font-size: 9px !important;
    letter-spacing: .08em !important;
  }

  .page-hero h1,
  .catalog-hero .section-title {
    font-size: clamp(38px, 14vw, 50px) !important;
  }

  .page-hero h1 {
    font-size: clamp(36px, 12vw, 46px) !important;
  }

  .product-info h1 {
    font-size: clamp(34px, 11vw, 42px) !important;
  }
}

[dir="rtl"] .site-header {
  text-align: right !important;
}

[dir="rtl"] .site-header .brand {
  direction: ltr;
}

[dir="rtl"] .contact-list > a {
  direction: rtl;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
