:root {
  --blue: #0573de;
  --black: #050505;
  --border: #e2e2e2;
  --content-width: 1304px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #151515;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 20;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
}
.skip-link:focus { top: 1rem; }

.utility-bar { height: 42px; border-top: 1px solid #ddd; background: #fafafa; }
.utility-inner {
  width: min(var(--content-width), calc(100% - 32px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.utility-inner a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.utility-inner a:hover { background: #eaf4ff; }
.utility-inner .active { color: #fff; background: var(--black); }
.utility-inner .divider { width: 1px; height: 17px; margin: auto 6px; background: #ccc; }
.utility-inner .sign-in { margin-left: auto; }
.cart {
  width: 72px;
  border: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.main-bar { height: 86px; border-bottom: 4px solid #0b87e9; background: var(--black); }
.main-bar-inner {
  width: min(var(--content-width), calc(100% - 32px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: block; width: 63px; height: 63px; }
.brand svg { width: 100%; height: 100%; }
.header-search {
  width: min(402px, 45vw);
  height: 40px;
  display: flex;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}
.header-search input, .catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 12px; }
.header-search button, .catalog-search button {
  width: 48px;
  border: 0;
  background: #fff;
  color: #000;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

main { min-height: 1220px; }
.hero {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 22px auto 18px;
}
.hero img { display: block; width: 100%; height: auto; }
.hero { border-radius: 18px; overflow: hidden; }
.hero img { border-radius: inherit; }
.catalog { width: min(var(--content-width), calc(100% - 32px)); margin: auto; }
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}
.catalog-heading h1 { margin: 0; font-size: 25px; }
.product-count {
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 13px;
  font-weight: 700;
}
.catalog-categories {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
}
.catalog-category {
  display: inline-flex;
  min-width: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: #222;
  background: #f1f1f1;
  border: 1px solid #d8d8d8;
  border-radius: 9px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.catalog-category:hover { border-color: #0876dc; color: #0876dc; }
.catalog-category.is-active {
  color: #fff;
  background: #0876dc;
  border-color: #0876dc;
}
.catalog-category-count {
  min-width: 26px;
  padding: 2px 6px;
  color: inherit;
  background: rgb(255 255 255 / 22%);
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}
.catalog-search {
  width: min(430px, 100%);
  height: 60px;
  display: flex;
  border: 9px solid #050505;
  background: #fff;
}
.catalog-search button { width: 48px; font-size: 28px; }
.result-status { min-height: 22px; margin: 8px 2px; color: #666; font-size: 14px; }
.product-scroll {
  height: 790px;
  padding: 3px 12px 3px 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #0876dc #ededed;
  scrollbar-width: thin;
}
.product-scroll:focus-visible { outline: 3px solid #6bb7ff; outline-offset: 4px; }
.product-scroll::-webkit-scrollbar { width: 12px; }
.product-scroll::-webkit-scrollbar-track { border-radius: 999px; background: #ededed; }
.product-scroll::-webkit-scrollbar-thumb { border: 3px solid #ededed; border-radius: 999px; background: #0876dc; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 16px;
  padding-bottom: 8px;
}
.product-card {
  display: grid;
  grid-template-rows: minmax(0, 4fr) minmax(0, 1fr);
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 1px rgb(0 0 0 / 3%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover, .product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
}
.product-card[hidden] { display: none; }
.product-card[href] { cursor: pointer; }
.product-card:focus-visible { outline: 3px solid #0876dc; outline-offset: 3px; }
.product-media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #aaa;
}
.product-media img,
.product-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-media video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.product-card.preview-playing .product-media video { opacity: 1; }
.product-body { display: flex; align-items: center; min-height: 0; overflow: hidden; padding: 4px 8px; }
.product-card h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  color: #0a70d8;
  font-size: 14px;
  overflow-wrap: anywhere;
  line-height: 1.15;
  font-weight: 500;
}
.product-card h2 a { color: inherit; text-decoration: none; }
.product-card h2 a:hover { text-decoration: underline; }
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #fff;
  background: #0876dc;
  font-weight: 700;
  text-decoration: none;
}
.card-action:hover { background: #0058ae; }
.card-action.disabled { color: #777; background: #ececec; cursor: default; }
.add-cart {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #0876dc;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.product-card:hover .add-cart, .product-card:focus-within .add-cart { opacity: 1; transform: none; }
.add-cart:hover { background: #0058ae; }
.empty-state { padding: 80px 20px; text-align: center; color: #777; font-size: 20px; }

.site-footer {
  min-height: 177px;
  padding: 50px 20px 30px;
  color: #fff;
  background: #000;
  text-align: center;
}
.socials { display: flex; justify-content: center; gap: 18px; }
.socials a {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.site-footer p { margin: 22px 0 0; color: #777; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* The main catalog uses the same directory as product pages, on the right. */
body.catalog-page.has-product-directory { padding-left: 0; padding-right: var(--product-directory-width); }
.catalog-page .product-directory { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--product-directory-line); }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.catalog-page.has-product-directory { padding-right: 0; }
  .catalog-page .product-directory { transform: translateX(105%); }
  .catalog-page.product-directory-open .product-directory { transform: translateX(0); }
  .catalog-page .product-directory-toggle { left: auto; right: 12px; }
  .catalog-page .site-header { padding-top: 58px; }
}

@media (max-width: 900px) {
  main { min-height: 1050px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .product-scroll { height: 720px; }
  .product-card h2 { min-height: 0; font-size: 14px; }
  .add-cart { opacity: 1; transform: none; }
  .site-footer { min-height: 114px; padding: 24px 20px; }
}

@media (max-width: 560px) {
  .utility-bar { height: 39px; }
  .utility-inner { width: 100%; }
  .utility-inner a { padding: 0 8px; font-size: 12px; }
  .utility-inner a:nth-of-type(4), .utility-inner .divider { display: none; }
  .cart { width: 56px; }
  .main-bar { height: 70px; }
  .main-bar-inner { width: calc(100% - 24px); }
  .brand { width: 49px; height: 49px; }
  .header-search { width: min(68vw, 300px); height: 36px; }
  .hero, .catalog { width: calc(100% - 24px); }
  .hero { margin-top: 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-scroll { height: 680px; padding-right: 8px; }
  .product-card h2 { min-height: 0; }
  .catalog-search { height: 52px; border-width: 7px; }
  .catalog-category { min-width: 116px; padding: 9px 11px; }
  .site-footer { min-height: 90px; padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .product-media video { display: none; }
}

/* Main-page header and category layout, v22. */
.catalog-heading { display: none; }
#header-language-slot { flex: 1; display: flex; justify-content: center; min-width: 150px; }
#header-language-slot .site-language { padding: 0; justify-content: center; }
.catalog-categories { display: grid; grid-template-columns: repeat(6, minmax(132px, 1fr)); }
.catalog-category { min-width: 132px; }
.catalog-category > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.utility-inner { overflow-x: auto; scrollbar-width: thin; }
.utility-inner > a, .utility-inner > button { flex-shrink: 0; }
@media (max-width: 1599px) and (min-width: 821px) {
  .catalog-categories { grid-template-columns: repeat(3, minmax(132px, 1fr)); }
  .utility-inner a { padding: 0 9px; font-size: 13px; }
  .main-bar-inner { gap: 16px; }
  .header-search { width: min(300px, 36%); }
}
@media (max-width: 820px) {
  .catalog-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-category { min-width: 0; gap: 5px; padding: 10px 8px; }
  .main-bar { height: 124px; }
  .main-bar-inner { display: grid; grid-template-columns: 49px minmax(0, 1fr); grid-template-rows: 42px 36px; gap: 10px 14px; padding: 12px 0; }
  .brand { width: 42px; height: 42px; }
  #header-language-slot { min-width: 0; justify-content: flex-end; }
  .header-search { grid-column: 1 / -1; width: 100%; height: 36px; }
  .site-footer p { margin-top: 12px; }
}
@media (max-width: 560px) {
  .utility-inner a:nth-of-type(4) { display: flex; }
  .hero { border-radius: 12px; }
  .catalog-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
