/* Photographic category cards and mobile-first refinements */
.sm-cat {
  height: 200px;
  padding: 0;
  background: #0b1017;
  isolation: isolate;
}

.sm-cat img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.sm-cat:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 5, 8, .04) 30%, rgba(3, 5, 8, .94) 100%);
}

.sm-cat:before {
  z-index: 2;
  pointer-events: none;
}

.sm-cat span {
  align-self: end;
  width: 100%;
  padding: 18px;
  color: #fff;
  font-size: 17px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.sm-cat:hover img {
  transform: scale(1.06);
}

/* The desktop enquiry card is intentionally removed on tablets and phones.
   hero-social.css loads a display:grid rule for it, so this later stylesheet
   must win explicitly. */
@media (max-width: 1020px) {
  .sm-hero-card {
    display: none !important;
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .sm-container {
    width: min(92vw, 100% - 24px);
  }

  .sm-topline {
    align-items: center;
    gap: 4px;
    padding: 7px 0;
    text-align: center;
  }

  .sm-topline span:nth-child(2) {
    display: none;
  }

  .sm-header {
    position: sticky;
    top: 0;
  }

  .sm-headrow {
    gap: 9px;
    padding: 6px 0;
  }

  .sm-brand-logo {
    width: 138px;
    max-height: 78px;
  }

  .sm-menu-toggle {
    padding: 9px 13px;
  }

  .sm-nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .sm-nav.open {
    width: 100%;
    padding: 5px 0 10px;
  }

  .sm-nav ul {
    gap: 0;
  }

  .sm-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .sm-nav a {
    display: block;
    padding: 12px 5px;
  }

  .sm-language-switcher {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .sm-language-switcher ul {
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    padding-bottom: 4px;
  }

  .sm-language-switcher a,
  .sm-language-switcher select {
    min-height: 32px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .sm-hero,
  .sm-hero-inner {
    min-height: 660px;
  }

  .sm-hero-bg {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .64) 48%, rgba(0, 0, 0, .12) 77%, rgba(0, 0, 0, .5) 100%),
      url('../img/hero-sportbikes.webp');
    background-position: center, center bottom 55px;
    background-size: cover, 100% auto;
    background-repeat: no-repeat;
    transform: none;
  }

  .sm-hero-inner {
    padding: 34px 0 70px;
  }

  .sm-hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
  }

  .sm-hero .sm-badge {
    font-size: 10px;
    line-height: 1.35;
  }

  .sm-hero h1 {
    margin: 14px auto;
    font-size: clamp(30px, 9.2vw, 39px);
    line-height: .98;
    letter-spacing: -.02em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .sm-hero p {
    max-width: 96%;
    font-size: 14px;
    line-height: 1.45;
  }

  .sm-hero .sm-actions {
    display: grid;
    width: min(310px, 100%);
    margin: 18px auto 0;
  }

  .sm-hero .sm-btn {
    width: 100%;
    padding: 12px 16px;
  }

  .sm-hero-socials {
    margin-top: 14px;
  }

  .sm-section,
  .sm-bikefinder,
  .sm-request {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .sm-section-head {
    align-items: flex-end;
  }

  .sm-section-head h2,
  .sm-section h2,
  .sm-bikefinder h2 {
    margin-bottom: 18px;
    font-size: 29px;
  }

  .sm-section-head a {
    margin-bottom: 20px;
    font-size: 12px;
    white-space: nowrap;
  }

  .sm-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .sm-cat {
    height: 145px;
    border-radius: 15px;
  }

  .sm-cat span {
    padding: 12px;
    font-size: 14px;
    line-height: 1.15;
  }

  .sm-brandgrid {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .woocommerce ul.products li.product {
    padding: 12px !important;
  }

  .sm-stripgrid {
    grid-template-columns: 1fr;
  }

  .sm-stripgrid div,
  .sm-stripgrid div:last-child {
    padding: 17px 18px;
    border-right: 1px solid var(--line);
  }

  .sm-request {
    background-attachment: scroll;
  }

  .sm-request h2 {
    font-size: 34px;
  }

  .sm-paycard {
    margin-top: 22px;
    padding: 24px;
  }

  .sm-paycard img {
    margin: 0 auto;
  }

  .sm-page {
    width: min(92vw, 100% - 24px);
    padding: 42px 0;
  }

  .sm-page h1,
  .sm-shop-head h1 {
    font-size: 34px;
  }

  .sm-request-form-wrap {
    width: 100%;
    padding: 22px;
  }

  .sm-form-grid {
    grid-template-columns: 1fr;
  }

  .sm-request-form .sm-btn,
  .sm-form-whatsapp {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
  }

  .sm-footer {
    padding-top: 40px;
  }

  .sm-footgrid {
    gap: 22px;
    text-align: center;
  }

  .sm-brand-logo-footer {
    width: 220px;
    margin: 0 auto;
  }

  .sm-copy {
    text-align: center;
  }

  .sm-float-wa {
    right: auto;
    left: 12px;
    bottom: 14px;
    max-width: calc(100vw - 92px);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
  }

  .rtl .sm-nav a,
  .rtl .sm-request-form,
  .rtl .sm-page {
    text-align: right;
  }
}

@media (max-width: 360px) {
  .sm-cats {
    grid-template-columns: 1fr;
  }

  .sm-cat {
    height: 170px;
  }
}
