:root {
  --demo-navy: #101e30;
  --demo-brass: #c2a477;
  --demo-ivory: #f6f2e9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video { max-width: 100%; }

.demo-notice {
  position: relative;
  z-index: 60;
  margin: 0;
  padding: 7px 16px;
  background: #e9e1d3;
  color: #4a453d;
  font: 400 10px/1.4 'Jost', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .04em;
  text-align: center;
}

.demo-brand-note {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(194, 164, 119, .55);
  border-radius: 999px;
  background: #f8f5ef;
  color: #7a5c2e;
  font: 500 10px/1.4 'Jost', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-status,
.demo-toast {
  padding: 12px 16px;
  border: 1px solid #bfaF95;
  background: #fbf9f4;
  color: var(--demo-navy);
  font: 500 13px/1.5 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

.demo-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 40px));
  box-shadow: 0 12px 34px rgba(16, 30, 48, .2);
}

[aria-disabled='true'] { cursor: not-allowed !important; opacity: .58; }

@media (max-width: 767px) {
  body > div,
  body > div[style*='width: 390px'],
  body > div[style*='width:390px'] {
    width: 100% !important;
    max-width: 100% !important;
  }

  body > div[style*='height: 844px'],
  body > div[style*='height:844px'] {
    min-height: 100dvh !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .demo-notice { padding-inline: 14px; font-size: 10px; }

  body:not(.page-mobile) > div > div:first-child > div {
    display: flex !important;
    justify-content: center !important;
    padding-inline: 16px !important;
    text-align: center !important;
  }

  body:not(.page-mobile) > div > div:first-child > div > :first-child,
  body:not(.page-mobile) > div > div:first-child > div > :last-child {
    display: none !important;
  }

  body:not(.page-mobile) header > div:first-child {
    grid-template-columns: 44px minmax(0, 1fr) 88px !important;
    gap: 8px !important;
    padding: 10px 16px 0 !important;
  }

  body:not(.page-mobile) header > div:first-child > form { display: none !important; }
  body:not(.page-mobile) header > div:first-child > a img:first-child { width: 36px !important; }
  body:not(.page-mobile) header > div:first-child > a img:last-child { width: min(190px, 52vw) !important; }
  body:not(.page-mobile) header > div:first-child > div { gap: 0 !important; }
  body:not(.page-mobile) header > div:first-child > div > :first-child,
  body:not(.page-mobile) header > div:first-child > div > button { display: none !important; }

  body:not(.page-mobile) header nav[aria-label='Main'] {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    padding: 12px 16px 14px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  body:not(.page-mobile) header nav[aria-label='Main']::-webkit-scrollbar { display: none; }
  body:not(.page-mobile) header nav[aria-label='Main'] > * { flex: 0 0 auto; }
  body:not(.page-mobile) .ba-shop-dropdown { display: none !important; }

  main section,
  footer > div { padding-left: 20px !important; padding-right: 20px !important; }

  main [style*='font-size: 84px'],
  main [style*='font-size: 68px'],
  main [style*='font-size: 64px'],
  main [style*='font-size: 54px'],
  main [style*='font-size: 52px'] { font-size: clamp(38px, 12vw, 52px) !important; }

  main [style*='min-height: 720px'] { min-height: 520px !important; }

  .page-index main [style*='grid-template-columns: repeat(auto-fit'],
  .page-product main [style*='grid-template-columns: 92px'],
  .page-cart main [style*='grid-template-columns'],
  .page-search main [style*='grid-template-columns'],
  .page-brands main [style*='grid-template-columns'],
  .page-brand main [style*='grid-template-columns'] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-product main [style*='grid-template-columns: 92px'] > :first-child { display: none !important; }
  .page-product main [style*='grid-template-columns: 140px'] { grid-template-columns: 120px minmax(0, 1fr) !important; }
  .page-product main [style*='grid-template-columns: 140px'] > :last-child { display: none !important; }

  .page-cart main aside { max-width: none !important; width: 100% !important; padding: 24px !important; }
  .page-cart main [style*='grid-template-columns: 96px'] { grid-template-columns: 82px minmax(0, 1fr) !important; }
  .page-cart main [style*='grid-template-columns: 96px'] > :nth-last-child(-n+2) { grid-column: 2; }

  .page-search main form[role='search'] { width: 100% !important; }
  .page-search main form[role='search'] input { min-width: 0 !important; width: 100% !important; }
  .page-search main form[role='search'] a { flex: 0 0 auto; }

  .page-brands main a,
  .page-brand main a { min-width: 0 !important; max-width: 100% !important; }

  footer [style*='min-width: 220px'],
  footer [style*='min-width: 190px'],
  footer [style*='min-width: 150px'] { min-width: 0 !important; }
}

@media (max-width: 389px) {
  .page-mobile [style*='width: 370px'],
  .page-mobile [style*='width: 350px'] { width: calc(100% - 20px) !important; }
}
