/* ============================================================
   Mobile Menu
   ============================================================ */

/* Scroll lock */
body.menu-open {
  overflow: hidden;
}

/* ============================================================
   Overlay
   ============================================================ */

.mobile-menu {
  position: fixed;
  top: 92px; /* promo (24px) + main header (68px) */
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 99;
  background-color: #ffffff;
  border-top: 1px solid #e3e3e3;
  font-family: 'Fact', sans-serif;

  display: none;
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .mobile-menu {
    top: 175px;
  }
}

/* Never show on desktop */
@media (min-width: 1200px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================================================
   Inner flex container
   ============================================================ */

.mobile-menu__inner {
  display: flex;
  min-height: 100%;
}

/* Tablet: two columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .mobile-menu__inner {
    flex-direction: row;
    gap: 16px;
  }
}

/* Mobile: single column */
@media (max-width: 767px) {
  .mobile-menu__inner {
    flex-direction: column;
  }
}

.mobile-menu__col {
  flex: 1;
  min-width: 0;
}

.mobile-menu__utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 16px;
  background-color: #1f1f1f;
}

.mobile-menu__utility .header__location-wrap,
.mobile-menu__utility .header__contact-wrap {
  flex-shrink: 0;
}

.mobile-menu__utility .header__location,
.mobile-menu__utility .header__contact {
  color: #ffffff;
}

.mobile-menu__utility .header__location span,
.mobile-menu__utility .header__contact span {
  color: #ffffff;
}

.mobile-menu__utility .header__location-wrap:hover .header__location span,
.mobile-menu__utility .header__contact-wrap:hover .header__contact span {
  color: #f96332;
}

.mobile-menu__utility .header__location-wrap:hover .header__location > img:first-child,
.mobile-menu__utility .header__contact-wrap:hover .header__contact > img:first-child {
  filter: invert(52%) sepia(97%) saturate(512%) hue-rotate(337deg) brightness(101%);
}

.mobile-menu__utility .header__socials {
  gap: 16px;
}

.mobile-menu__utility-contact {
  margin-left: auto;
}

/* ============================================================
   Categories button
   ============================================================ */

.mobile-menu__categories-wrap {
  padding: 16px;
  background-color: #ffffff;
}

.mobile-menu__categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background-color: #f96332;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Fact', sans-serif;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu__categories img {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.mobile-menu__categories:hover {
  background-color: #e0572c;
}

/* ============================================================
   Item rows (left column)
   ============================================================ */

.mobile-menu__item {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #ffffff;
  width: 100%;
  gap: 8px;
}

.mobile-menu__item--border-top {
  border-top: 1px solid #f5f5f5;
}

.mobile-menu__item--border-bottom {
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu__icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.mobile-menu__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.mobile-menu__item-text {
  font-size: 16px;
  font-weight: 400;
  color: #221f1f;
  font-family: 'Fact', sans-serif;
}

.mobile-menu__item-text--sm {
  font-size: 14px;
}

.mobile-menu__item-text--gray {
  color: #8b8080;
}

.mobile-menu__user {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 400;
  color: #8b8080;
  font-family: 'Fact', sans-serif;
  line-height: normal;
}

.mobile-menu__user span {
  display: block;
}

.mobile-menu__account {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu__user-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  color: #766f6e;
}

.mobile-menu__user-link:hover {
  color: #f96332;
}

.mobile-menu__user-name,
.mobile-menu__user-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-menu__account-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu__account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #766f6e;
  font-size: 16px;
  font-family: 'Fact', sans-serif;
  border-top: 1px solid #e3e3e3;
  background-color: #ffffff;
}

.mobile-menu__account-link:hover {
  background-color: #fff3ed;
  color: #f96332;
}

.mobile-menu__account-link:hover .mobile-menu__icon {
  filter: brightness(0) saturate(100%) invert(55%) sepia(77%) saturate(600%) hue-rotate(336deg) brightness(104%);
}

.mobile-menu__geo {
  padding: 16px;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  background-color: #ffffff;
}

.mobile-menu__geo .header__location-wrap {
  width: 100%;
}

.mobile-menu__geo .header__location {
  width: 100%;
  color: #221f1f;
}

.mobile-menu__geo .header__location span {
  color: #221f1f;
}

.mobile-menu__geo .header__location-wrap:hover .header__location span {
  color: #f96332;
}

/* ============================================================
   Company info section (right column, top)
   ============================================================ */

.mobile-menu__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background-color: #ffffff;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu__section-title {
  font-weight: 500;
  color: #221f1f;
  font-family: 'Fact', sans-serif;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .mobile-menu__section-title {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .mobile-menu__section-title {
    font-size: 16px;
  }
}

.mobile-menu__nav-link {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #8b8080;
  font-family: 'Fact', sans-serif;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mobile-menu__nav-link:hover {
  color: #f96332;
}

/* ============================================================
   Simple nav links (right column, middle)
   ============================================================ */

.mobile-menu__simple-link {
  display: flex;
  align-items: center;
  padding: 16px;
  font-size: 16px;
  font-weight: 400;
  color: #8b8080;
  font-family: 'Fact', sans-serif;
  text-decoration: none;
  background-color: #ffffff;
  transition: color 0.15s ease;
}

.mobile-menu__simple-link:hover {
  color: #f96332;
}

/* ============================================================
   Socials block (right column)
   ============================================================ */

.mobile-menu__socials-block {
  background-color: #ffffff;
}

.mobile-menu__socials-label {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 36px;
  font-size: 14px;
  font-weight: 400;
  color: #221f1f;
  font-family: 'Fact', sans-serif;
}

.mobile-menu__socials-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 16px;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu__social-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mobile-menu__social-link img {
  display: block;
}

/* ============================================================
   Contact section (right column, bottom)
   ============================================================ */

.mobile-menu__contact-title {
  display: flex;
  align-items: center;
  padding: 16px;
  font-size: 14px;
  font-weight: 400;
  color: #221f1f;
  font-family: 'Fact', sans-serif;
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px 16px;
}

.mobile-menu__contact-link {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}

.mobile-menu__contact-link img {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.mobile-menu__contact-link span {
  font-size: 14px;
  font-weight: 400;
  color: #74777c;
  font-family: 'Fact', sans-serif;
  white-space: nowrap;
}

.mobile-menu__contact-link:hover span {
  text-decoration: underline;
}

.mobile-menu__contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #74777c;
  font-family: 'Fact', sans-serif;
  line-height: 1.4;
}
