/* Custom mobile overrides (<=767px) */
@media (max-width: 767px) {
  .site__header-desktop {
    display: none !important;
  }

  .site__header-mobile {
    display: block !important;
  }

  .site__header-desktop .nav-panel,
  .site__header-desktop .nav-panel__nav-links,
  .site__header-desktop .nav-links,
  .site__header-desktop .nav-links__list {
    display: none !important;
  }

  .form-check-label em {
    font-size: 0.775rem;
  }

  .wishlist-container .page-content.card {
    margin-top: 0 !important;
  }

  .wishlist-container-header {
    padding: 1rem 1.375rem;
    margin-bottom: 0 !important;
  }

  .wishlist-list-container {
    padding: 1.375rem;
  }

  .wishlist-list-item-link {
    padding: 12px !important;
  }

  .wishlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .wishlist-list-item {
    border: 1px solid #ebebeb;
    border-radius: 2px;
    background: #fff;
  }

  .wishlist-list-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .wishlist-list-item-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    flex: 1;
    min-width: 0;
  }

  .wishlist-list-item-title span {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
  }

  .wishlist-list-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .wishlist-list-item-right button {
    background: transparent;
    border: 0;
    padding: 4px;
  }

  .wishlist-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .wishlist-footer-links > a {
    margin-left: 0;
  }

  .site-footer__widgets {
    padding: 4px 0 20px 0;
  }

  .mobilemenu .mobile-links,
  .mobilemenu .mobile-links__item {
    display: block;
    width: 100%;
  }

  .mobilemenu .mobile-links__item-title {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
  }

  .mobilemenu .mobile-links__item-link {
    display: block;
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  .mobilemenu .mobile-links__item-sub-links {
    width: 100%;
  }

  .footer-links {
    margin-top: 20px;
  }

  .footer-contacts {
    margin-top: 20px;
  }

  .products-list[data-layout=list] .product-card .product-card__info {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 12px 16px !important;
  }

  .products-list[data-layout=list] .product-card .product-card__name {
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .products-list[data-layout=list] .product-card .product-card__list-meta {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  .products-list[data-layout=list] .product-card .product-card__list-meta > * {
    padding-left: 0 !important;
  }

  .form-group.row.has-error {
    margin-bottom: 0;
  }

  .card-body {
    padding-top: 16px;
  }

  .dashboard__orders .table-responsive-sm {
    overflow-x: visible;
  }

  .page-header__container.container {
    padding-bottom: 0 !important;
  }

  .page-header__breadcrumb {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-header__breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .page-header__breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    min-width: 0;
  }

  .page-header__breadcrumb .breadcrumb-item {
    flex: 0 0 auto;
  }

  .page-header__breadcrumb .breadcrumb-item.active {
    flex: 1 1 auto;
    min-width: 96px;
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-header__title {
    padding: 4px 0 10px 0;
  }

  .site {
    min-height: auto;
    height: auto;
  }

  .site__body {
    flex: 0 0 auto;
    height: auto;
  }

  .site {
    gap: 0;
  }

  .site__body {
    margin: 0;
    padding: 0;
  }

  #identity .site__body {
    flex: 0 0 auto;
  }

  #identity .site__content {
    flex: 0 0 auto;
  }

  #identity .block {
    flex: 0 0 auto;
  }

  #my-account .col-12.col-lg-9.mt-4 {
    margin-top: 12px !important;
  }

  #my-account .block {
    margin-bottom: 12px !important;
  }

  #identity .col-12.col-lg-9.mt-4 {
    margin-top: 12px !important;
  }

  #identity .block {
    margin-bottom: 15px !important;
  }

  .account-nav {
    overflow-x: visible;
    background: transparent;
  }

  .account-nav.flex-grow-1 {
    background: transparent !important;
  }

  .account-nav ul {
    flex-wrap: wrap;
    white-space: normal;
    border-bottom: 0;
    gap: 8px;
  }

  .account-nav__item {
    width: calc(50% - 4px);
  }

  .account-nav__item:last-child {
    margin-left: auto;
  }

  .account-nav__item a {
    width: 100%;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 2px;
    text-align: center;
    margin-bottom: 0;
  }

  .account-nav__item--active a {
    background: #fff;
    border-color: #333;
  }

  #identity .form-control-comment {
    display: none;
  }

  .dashboard__orders .card-table table {
    min-width: 0;
  }

  .dashboard__orders table {
    width: 100%;
  }

  .dashboard__orders thead {
    display: none;
  }

  .dashboard__orders tbody,
  .dashboard__orders tr,
  .dashboard__orders td {
    display: block;
    width: 100%;
  }

  .dashboard__orders tr {
    border: 1px solid #ebebeb;
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 12px;
  }

  .dashboard__orders tbody tr:last-child td.text-center.text-muted {
    padding: 0;
  }

  .dashboard__orders tbody tr:last-child {
    border: none;
    padding: 12px 22px;
    margin: 0;
  }

  .dashboard__orders td {
    padding: 4px 0;
  }

  .brands-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brands-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: inherit;
  }

  .brands-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    min-width: 84px;
    height: 84px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
  }

  .brands-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .brands-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .brands-card__title,
  .brands-card__name--placeholder {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
  }

  .brands-card__meta {
    display: block;
    font-size: 13px;
    color: #777;
  }

  .sitemap-page__section-body {
    padding: 20px;
  }

  .sitemap-page__title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.3;
  }

  .sitemap-page__links {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sitemap-page__item + .sitemap-page__item {
    margin-top: 8px;
  }

  .sitemap-page__link {
    color: #333;
  }

  .sitemap-page__links--nested {
    margin-top: 8px;
    padding-left: 14px;
  }
}
