/* Responsive adaptations */
@media (max-width: 1180px) {
  .home-hero__slide--responsive-video::before {
    background-image: var(--hero-responsive-poster-tablet);
  }

  .site-header__inner {
    gap: 18px;
  }

  .brand {
    min-width: 212px;
  }

  .brand__words small {
    display: none;
  }

  .primary-nav {
    gap: 19px;
  }

  .side-selector__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-results .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 42px;
  }

  .product-gallery {
    grid-column: 1;
    grid-row: 1;
  }

  .product-summary {
    grid-column: 2;
    grid-row: 1;
  }

  .product-story {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 760px;
    max-height: none;
    padding: 36px 0 0;
    overflow: visible;
    border-top: 1px solid var(--line);
  }

  .product-story .product-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-story .product-categories {
    align-items: center;
    flex-direction: row;
  }
}

@media (max-width: 920px) {
  .shell {
    width: min(100% - 36px, var(--shell));
  }

  .site-header__inner {
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
  }

  .mobile-only {
    display: inline-grid;
  }

  .primary-nav {
    display: none;
  }

  .brand {
    min-width: 0;
    justify-self: center;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .brand__words strong {
    font-size: 21px;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: flex;
    visibility: hidden;
    width: min(88vw, 390px);
    padding: 24px;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow-large);
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 180ms ease, transform 220ms ease, visibility 220ms;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-menu__heading {
    display: flex;
    min-height: 64px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--heritage-green);
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
  }

  .mobile-menu > a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eceeeb;
    font-weight: 600;
  }

  .mobile-menu > a svg {
    width: 17px;
    height: 17px;
    color: var(--heritage-green);
  }

  .home-hero h1 {
    font-size: 62px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-story__inner {
    min-height: 460px;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 40px;
  }

  .brand-story h2 {
    font-size: 38px;
  }

  .catalog-toolbar {
    padding-block: 12px 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-facets {
    width: 100%;
    padding-bottom: 2px;
  }

  .catalog-toolbar__summary {
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .catalog-results .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-summary {
    position: static;
    grid-column: 1;
    grid-row: 1;
    max-width: 720px;
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }

  .product-gallery {
    grid-column: 1;
    grid-row: 2;
  }

  .product-gallery__progress {
    top: 98px;
  }

  .product-story {
    grid-column: 1;
    grid-row: 3;
    max-width: 720px;
  }

  .bag-page {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bag-summary {
    position: static;
  }

  .account-order-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .order-detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-hero__slide--responsive-video::before {
    background-image: var(--hero-responsive-poster-mobile);
  }

  .page-transition__tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  .page-transition__identity img {
    width: 62px;
    height: 62px;
  }

  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .site-header__inner {
    min-height: 70px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__words strong {
    font-size: 18px;
  }

  .header-actions {
    gap: 0;
  }

  .header-actions .icon-button {
    width: 36px;
  }

  .account-shell {
    min-height: 560px;
    padding-block: 36px 64px;
  }

  .account-panel {
    padding: 30px 22px;
  }

  .account-panel h1,
  .account-result h1 {
    font-size: 34px;
  }

  .account-form--two-column {
    grid-template-columns: 1fr;
  }

  .account-form--two-column .form-field {
    grid-column: 1;
  }

  .account-switch {
    align-items: center;
    flex-direction: column;
  }

  .account-section {
    padding: 24px 22px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .account-orders-section {
    padding: 24px 14px;
  }

  .account-orders-heading,
  .order-detail-header__row {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-order-card {
    min-height: 132px;
    padding: 12px;
    grid-template-columns: 82px minmax(0, 1fr) 16px;
    gap: 12px;
  }

  .account-order-card__image {
    width: 82px;
    height: 102px;
  }

  .account-order-card__meta time {
    display: none;
  }

  .account-order-card__body > strong {
    font-size: 16px;
  }

  .account-order-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .order-detail-layout {
    padding-block: 32px 64px;
  }

  .order-detail-main {
    gap: 30px;
  }

  .order-status-panel {
    padding: 24px 20px;
  }

  .order-checkout-actions {
    grid-template-columns: 1fr;
  }

  .order-progress {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .order-progress li {
    display: grid;
    min-height: 66px;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
  }

  .order-progress li::before {
    top: 26px;
    right: auto;
    bottom: 0;
    left: 12px;
    width: 2px;
    height: auto;
  }

  .order-progress li div {
    padding: 3px 0 18px;
  }

  .order-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .order-item__image {
    width: 74px;
    height: 86px;
  }

  .order-item > b {
    grid-column: 2;
  }

  .order-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .search-panel {
    align-items: stretch;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .search-panel__dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    align-self: start;
  }

  .search-panel__field {
    min-height: 66px;
    padding-left: 15px;
  }

  .search-panel__field > svg {
    width: 19px;
    height: 19px;
    margin-right: 9px;
  }

  .search-panel__field input {
    font-size: 16px;
  }

  .search-panel__clear {
    padding-inline: 9px;
    font-size: 12px;
  }

  .search-panel__close {
    width: 50px;
    height: 66px;
  }

  .search-suggestions {
    min-height: 260px;
    max-height: calc(100dvh - 90px);
    padding: 18px 16px 22px;
  }

  .search-suggestions__message {
    min-height: 220px;
    padding-inline: 20px;
  }

  .search-suggestions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 10px;
  }

  .search-result__title {
    min-height: 40px;
    font-size: 13px;
  }

  .preview-bar__inner {
    padding-block: 9px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .home-hero {
    height: 100svh;
    min-height: 560px;
  }

  .home-hero__media {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero__panel:nth-child(n + 4) {
    display: none;
  }

  .home-hero__content {
    padding-bottom: 64px;
  }

  .home-hero h1 {
    max-width: 340px;
    font-size: 50px;
  }

  .home-hero__lead {
    max-width: 360px;
    font-size: 18px;
  }

  .home-hero__scroll {
    display: none;
  }

  .home-hero__carousel-controls {
    bottom: 14px;
  }

  .section {
    padding-block: 58px;
  }

  .section-heading--split {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .side-selector__tabs {
    padding: 6px;
    gap: 6px;
  }

  .side-selector__tab {
    min-height: 70px;
    padding: 13px 12px;
  }

  .side-selector__tab span {
    font-size: 17px;
  }

  .side-selector__panel {
    padding: 22px 14px 18px;
  }

  .side-selector__intro {
    margin-bottom: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .side-selector__intro > p:last-child {
    max-width: none;
    text-align: left;
  }

  .side-selector__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .side-card {
    min-height: 174px;
    padding: 11px;
    grid-template-rows: minmax(92px, 1fr) auto;
  }

  .side-card--national_team .side-card__emblem {
    width: 76px;
    height: 76px;
  }

  .side-card--club .side-card__emblem {
    width: 76px;
    height: 50px;
    border-width: 4px;
  }

  .side-card__copy {
    padding-top: 10px;
    padding-right: 0;
  }

  .side-card__name {
    font-size: 14px;
  }

  .side-card__arrow {
    display: none;
  }

  .product-grid,
  .catalog-results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 10px;
  }

  .product-card__details {
    padding-top: 11px;
  }

  .product-card__meta {
    font-size: 9px;
  }

  .product-card h3 {
    min-height: 44px;
    font-size: 15px;
  }

  .brand-story__inner {
    display: flex;
    padding-block: 54px;
    flex-direction: column;
    gap: 35px;
  }

  .brand-story__copy {
    padding: 0;
  }

  .brand-story h2 {
    font-size: 35px;
  }

  .brand-story__art {
    width: 100%;
    min-height: 340px;
  }

  .brand-story__art img {
    width: min(100%, 360px);
    max-height: 340px;
  }

  .site-footer {
    padding-top: 52px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    padding-block: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .page-header {
    padding-block: 32px 34px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .catalog-toolbar {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .catalog-filter-toggle {
    display: inline-flex;
    min-height: 46px;
    grid-column: 1;
    grid-row: 1;
    padding-inline: 14px;
    border-color: var(--line);
    background: var(--white);
    color: var(--heritage-green);
  }

  .catalog-filter-toggle svg {
    width: 18px;
    height: 18px;
  }

  .catalog-facets {
    display: none;
    width: 100%;
    padding-top: 14px;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    border-top: 1px solid var(--line);
  }

  .catalog-facets.is-open {
    display: grid;
  }

  .catalog-facet {
    width: 100%;
    min-width: 0;
  }

  .catalog-facet select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .catalog-facets__clear {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .catalog-toolbar__summary {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    border-top: 0;
    padding-top: 0;
  }

  .catalog-toolbar__summary > span {
    display: none;
  }

  .catalog-controls__form {
    padding-top: 20px;
  }

  .catalog-search {
    min-height: 54px;
    margin-bottom: 20px;
  }

  .catalog-search > svg {
    margin-left: 13px;
  }

  .catalog-search input {
    padding-inline: 10px;
    font-size: 14px;
  }

  .catalog-search .button {
    min-height: 54px;
    padding-inline: 15px;
  }

  .sort-form label {
    display: none;
  }

  .sort-form select {
    max-width: 168px;
  }

  .catalog-layout {
    padding-block: 30px 64px;
  }

  .product-page {
    padding-block: 20px 64px;
  }

  .product-detail {
    gap: 30px;
  }

  .product-mobile-lead {
    display: block;
    width: calc(100% + 28px);
    margin-left: -14px;
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 5;
    background: #eef0ec;
  }

  .product-mobile-lead figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .product-mobile-lead img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
  }

  .product-summary {
    grid-row: 2;
  }

  .product-gallery {
    width: calc(100% + 28px);
    margin-left: -14px;
    grid-row: 3;
  }

  .product-gallery__feed {
    gap: 3px;
  }

  .product-gallery__frame:first-child {
    display: none;
  }

  .product-gallery__progress {
    top: 82px;
    margin-left: 12px;
  }

  .product-gallery__frame img {
    padding: 8px;
  }

  .product-summary h1 {
    font-size: 31px;
  }

  .product-summary__back {
    margin-bottom: 22px;
  }

  .product-summary__line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .personalization-panel {
    padding: 16px;
  }

  .personalization-panel__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .product-purchase__actions {
    grid-template-columns: 1fr;
  }

  .product-story {
    grid-row: 4;
    padding-top: 28px;
  }

  .product-story .product-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bag-page {
    padding-block: 34px 64px;
  }

  .bag-line {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .bag-line__image {
    width: 104px;
  }

  .bag-line__heading {
    flex-direction: column;
    gap: 0;
  }

  .bag-line__heading h2 {
    font-size: 17px;
  }

  .bag-line__price {
    margin-bottom: 12px;
  }

  .bag-line__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .bag-summary {
    padding: 22px;
  }

  .checkout-result {
    padding-block: 48px 64px;
  }

  .checkout-result h1 {
    font-size: 34px;
  }

  .checkout-result__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .account-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .account-order-row span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
  }

  .account-order-row strong {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .product-grid--related .product-card:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 380px) {
  .side-selector__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.is-page-entering,
  html.is-page-leaving {
    overflow: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .page-transition {
    display: none;
  }

  .home-hero__slide--responsive-video .home-hero__video {
    display: none;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
