:root {
  --uzsoft-blue: #2563eb;
  --uzsoft-blue-dark: #1d4ed8;
  --uzsoft-blue-light: #eff6ff;
  --uzsoft-navy: #0f172a;
  --uzsoft-gray-50: #f8fafc;
  --uzsoft-gray-100: #f1f5f9;
  --uzsoft-gray-200: #e2e8f0;
  --uzsoft-gray-500: #64748b;
  --uzsoft-gray-700: #334155;
  --uzsoft-red: #dc2626;
  --uzsoft-green: #16a34a;
  --uzsoft-radius: 8px;
  --uzsoft-radius-lg: 14px;
  --uzsoft-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --uzsoft-shadow: 0 18px 38px -28px rgba(15, 23, 42, .45);
  --uzsoft-shadow-blue: 0 16px 32px -12px rgba(29, 78, 216, .25), 0 4px 8px rgba(29, 78, 216, .08);
  --uzsoft-ease: cubic-bezier(.22, 1, .36, 1);
}

body.uzsoft-mp-v2 {
  --porto-body-ff: Inter, Arial, sans-serif;
}

body.uzsoft-mp-v2 #header.header-builder {
  display: none !important;
}

.uzsoft-mp,
.uzsoft-mp * {
  box-sizing: border-box;
}

.uzsoft-mp {
  position: relative;
  z-index: 40;
  background: #fff;
  color: var(--uzsoft-navy);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

header.uzsoft-mp[data-uzsoft-mp-header] {
  z-index: 140;
  box-shadow: var(--uzsoft-shadow);
}

.uzsoft-mp a {
  color: inherit;
  text-decoration: none;
}

.uzsoft-mp-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.uzsoft-mp-container {
  width: min(1248px, calc(100vw - 32px));
  margin: 0 auto;
}

.uzsoft-mp-topbar {
  position: relative;
  z-index: 170;
  border-bottom: 1px solid var(--uzsoft-gray-200);
  background: var(--uzsoft-gray-50);
}

.uzsoft-mp-topbar__inner,
.uzsoft-mp-main__inner,
.uzsoft-mp-catbar__inner {
  display: flex;
  align-items: center;
}

.uzsoft-mp-topbar__inner {
  min-height: 42px;
  justify-content: space-between;
  gap: 18px;
}

.uzsoft-mp-topbar__left,
.uzsoft-mp-topbar__right,
.uzsoft-mp-actions,
.uzsoft-mp-socials {
  display: inline-flex;
  align-items: center;
}

.uzsoft-mp-topbar__left,
.uzsoft-mp-topbar__right {
  gap: 12px;
  color: var(--uzsoft-gray-700);
  font-size: 12px;
  font-weight: 700;
}

.uzsoft-mp-topbar__left span,
.uzsoft-mp-topbar__right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.uzsoft-mp-socials {
  gap: 6px;
}

.uzsoft-mp-socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--uzsoft-gray-500);
}

.uzsoft-mp-main {
  position: relative;
  z-index: 160;
  background: #fff;
}

.uzsoft-mp-main__inner {
  min-height: 88px;
  gap: 18px;
}

.uzsoft-mp-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.uzsoft-mp-logo img {
  width: auto;
  max-width: 188px;
  max-height: 58px;
}

.uzsoft-mp-mobile-toggle {
  display: none;
}

.uzsoft-mp-search {
  min-width: 0;
  height: 50px;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  border: 2px solid var(--uzsoft-blue);
  border-radius: 14px;
  background: #fff;
}

.uzsoft-mp-search__category,
.uzsoft-mp-search input,
.uzsoft-mp-search button {
  min-width: 0;
  border: 0;
}

.uzsoft-mp-search__category {
  width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid var(--uzsoft-gray-200);
  background: var(--uzsoft-gray-50);
  color: var(--uzsoft-blue);
  font-size: 13px;
  font-weight: 800;
}

.uzsoft-mp-search__category select {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.uzsoft-mp-search input[type="search"] {
  flex: 1 1 auto;
  padding: 0 16px;
  color: var(--uzsoft-navy);
  font-size: 14px;
}

.uzsoft-mp-search button {
  width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--uzsoft-blue) 0%, #4f46e5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.uzsoft-mp-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 900;
}

.uzsoft-mp-phone__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--uzsoft-gray-50);
  color: var(--uzsoft-blue);
}

.uzsoft-mp-phone small {
  display: block;
  color: var(--uzsoft-gray-500);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.uzsoft-mp-phone strong {
  display: block;
  color: var(--uzsoft-navy);
  font-size: 17px;
  line-height: 1.15;
}

.uzsoft-mp-actions {
  gap: 7px;
}

.uzsoft-mp-action {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.uzsoft-mp-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--uzsoft-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.uzsoft-mp-catbar {
  position: relative;
  z-index: 120;
  border-top: 1px solid var(--uzsoft-gray-200);
  background: #fff;
}

.uzsoft-mp-catbar__inner {
  min-height: 64px;
  gap: 22px;
}

.uzsoft-mp-mega-btn {
  width: 208px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--uzsoft-radius);
  background: linear-gradient(135deg, var(--uzsoft-blue) 0%, #4f46e5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.uzsoft-mp-nav {
  min-width: 0;
  flex: 1 1 auto;
}

.uzsoft-mp-nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uzsoft-mp-nav-list a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--uzsoft-navy);
  font-size: 13px;
  font-weight: 900;
}

.uzsoft-mp-tagline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--uzsoft-gray-700);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.uzsoft-mp-home {
  background: var(--uzsoft-gray-50);
  color: var(--uzsoft-navy);
  font-family: Inter, Arial, sans-serif;
  padding: 16px 0 24px;
}

.uzsoft-mp-home-grid,
.uzsoft-mp-el-home-grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.uzsoft-mp-home-sidebar {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--uzsoft-gray-200);
  border-radius: var(--uzsoft-radius-lg);
  background: #fff;
  box-shadow: var(--uzsoft-shadow-xs);
}

.uzsoft-mp-home-sidebar-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--uzsoft-radius);
  color: var(--uzsoft-gray-700);
  font-size: 13px;
  font-weight: 800;
}

.uzsoft-mp-home-content {
  min-width: 0;
}

.uzsoft-mp-home .hero-banners,
.uzsoft-mp-el-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.uzsoft-mp-home .hero-main {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 38px 42px;
  border-radius: var(--uzsoft-radius-lg);
  background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 24px 56px -16px rgba(29, 78, 216, .35);
}

.uzsoft-mp-home .hero-main h1 {
  max-width: 620px;
  margin: 0 0 12px;
  color: #fff;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.08;
}

.uzsoft-mp-home .hero-main p {
  max-width: 440px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 1.5;
}

.uzsoft-mp-home .hero-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--uzsoft-radius-lg);
  background: #fff;
  color: var(--uzsoft-blue);
  font-size: 13px;
  font-weight: 900;
}

.uzsoft-mp-home .hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uzsoft-mp-home .hero-small {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--uzsoft-radius-lg);
  background: #fff;
}

.uzsoft-mp-home .prod-grid,
.uzsoft-mp-catalog ul.products,
.uzsoft-mp-single-related .prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.uzsoft-mp-home .prod-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.prod-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--uzsoft-gray-200);
  border-radius: var(--uzsoft-radius-lg);
  background: #fff;
}

.prod-img-wrap {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--uzsoft-gray-100);
  border-radius: var(--uzsoft-radius);
  background: linear-gradient(135deg, var(--uzsoft-gray-50) 0%, #f4f7fb 100%);
}

.prod-img-wrap img {
  width: auto;
  max-width: 122px;
  max-height: 122px;
  object-fit: contain;
}

.prod-title-heading {
  margin: 0;
  font: inherit;
}

.prod-title {
  min-height: 36px;
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--uzsoft-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 46px;
  margin-top: auto;
  margin-bottom: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff 0%, #f3f0ff 100%);
}

.prod-now {
  color: #4f46e5;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.prod-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--uzsoft-radius);
  background: linear-gradient(135deg, var(--uzsoft-blue) 0%, #5b21e6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 991px) {
  .uzsoft-mp-container {
    width: min(100%, calc(100vw - 24px));
  }

  .uzsoft-mp-topbar__left,
  .uzsoft-mp-phone,
  .uzsoft-mp-tagline {
    display: none;
  }

  .uzsoft-mp-main__inner {
    min-height: 74px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .uzsoft-mp-mobile-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--uzsoft-blue);
    color: #fff;
  }

  .uzsoft-mp-logo img {
    max-width: 132px;
    max-height: 46px;
  }

  .uzsoft-mp-search {
    order: 4;
    width: 100%;
    height: 46px;
    flex-basis: 100%;
  }

  .uzsoft-mp-search__category {
    width: 126px;
  }

  .uzsoft-mp-actions {
    margin-left: auto;
  }

  .uzsoft-mp-action {
    width: 38px;
    min-height: 40px;
  }

  .uzsoft-mp-action span:not(.uzsoft-mp-badge) {
    display: none;
  }

  .uzsoft-mp-catbar__inner {
    min-height: 0;
    display: block;
    padding-bottom: 10px;
  }

  .uzsoft-mp-sections,
  .uzsoft-mp-nav {
    display: none;
  }

  .uzsoft-mp-nav.is-open {
    display: block;
  }

  .uzsoft-mp-home-grid,
  .uzsoft-mp-el-home-grid,
  .uzsoft-mp-home .hero-banners,
  .uzsoft-mp-el-hero-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .uzsoft-mp-home-sidebar,
  .uzsoft-mp-home .hero-side {
    display: none;
  }

  .uzsoft-mp-home .hero-main {
    min-height: 260px;
    padding: 28px 24px;
  }

  .uzsoft-mp-home .hero-main h1 {
    font-size: 30px;
  }

  .uzsoft-mp-home .prod-grid,
  .uzsoft-mp-catalog ul.products,
  .uzsoft-mp-single-related .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .uzsoft-mp-topbar__right {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .uzsoft-mp-socials a,
  .uzsoft-mp-search__category {
    display: none;
  }

  .uzsoft-mp-logo img {
    max-width: 116px;
  }

  .uzsoft-mp-home {
    padding-top: 12px;
  }

  .uzsoft-mp-home .hero-main {
    min-height: 230px;
    padding: 24px 18px;
  }

  .uzsoft-mp-home .hero-main h1 {
    font-size: 27px;
  }

  .prod-card {
    padding: 10px;
  }

  .prod-img-wrap {
    min-height: 128px;
  }

  .prod-img-wrap img {
    max-width: 112px;
    max-height: 112px;
  }
}
