/* StockDivar unified responsive header v7626 */

:root {
  --sd-header-red-v7626: #bd1f25;
  --sd-header-red-deep-v7626: #981b22;
  --sd-header-red-soft-v7626: rgba(189, 31, 37, .11);
  --sd-header-control-h-v7626: 44px;
  --sd-header-line-v7626: #e4e7ec;
  --sd-header-ink-v7626: #172033;
}

@media (min-width: 901px) {
  body[data-page="home"] .site-header .header-inner {
    min-height: 66px !important;
    grid-template-columns: auto auto minmax(250px, 1fr) auto !important;
    gap: 12px !important;
  }

  body[data-page="home"] .site-header .header-search {
    min-height: var(--sd-header-control-h-v7626) !important;
    height: var(--sd-header-control-h-v7626);
    max-width: none !important;
    border-color: rgba(15, 23, 42, .06);
    border-radius: 14px !important;
    background: #f5f6f8;
  }

  body[data-page="home"] .site-header .header-actions.sd-header-actions-v7626 {
    display: flex !important;
    direction: rtl;
    align-items: center;
    gap: 8px !important;
    min-width: max-content !important;
  }

  body[data-page="home"] .desktop-nav .nav-category-btn,
  body[data-page="home"] .sd-header-category-v7626 {
    position: relative;
    isolation: isolate;
    min-height: var(--sd-header-control-h-v7626) !important;
    height: var(--sd-header-control-h-v7626);
    overflow: hidden;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 0 13px !important;
    gap: 7px;
    color: #fff !important;
    background: var(--sd-header-red-v7626) !important;
    box-shadow: 0 7px 18px rgba(152, 27, 34, .16);
    font-size: 14px;
    font-weight: 900;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  }

  body[data-page="home"] .desktop-nav .nav-category-btn::after,
  body[data-page="home"] .sd-header-category-v7626::after,
  body[data-page="home"] .sd-header-publish-v7626::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -90% auto -90% -25%;
    width: 18%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: rotate(16deg) translateX(0);
    animation: sdHeaderShineV7626 7s ease-in-out infinite;
    pointer-events: none;
  }

  body[data-page="home"] .desktop-nav .nav-category-btn:hover,
  body[data-page="home"] .sd-header-category-v7626:hover {
    color: #fff !important;
    background: var(--sd-header-red-deep-v7626) !important;
    box-shadow: 0 10px 22px rgba(152, 27, 34, .22);
    transform: translateY(-1px);
  }

  body[data-page="home"] .desktop-nav .hamburger-mini i,
  body[data-page="home"] .sd-header-category-v7626 .hamburger-mini i {
    width: 15px;
    background: currentColor;
  }

  body[data-page="home"] .sd-header-publish-v7626 {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    direction: rtl;
    align-items: stretch;
    height: var(--sd-header-control-h-v7626);
    overflow: hidden;
    border: 1px solid rgba(117, 14, 23, .12);
    border-radius: 13px;
    color: #fff;
    background: var(--sd-header-red-v7626);
    box-shadow: 0 8px 20px rgba(152, 27, 34, .18);
    transition: transform .18s ease, box-shadow .18s ease;
  }

  body[data-page="home"] .sd-header-publish-v7626:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(152, 27, 34, .24);
  }

  body[data-page="home"] .sd-header-publish-item-v7626 {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    color: #fff !important;
    background: transparent;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .18s ease;
  }

  body[data-page="home"] .sd-header-publish-item-v7626 + .sd-header-publish-item-v7626 {
    border-inline-start: 1px solid rgba(255, 255, 255, .42);
  }

  body[data-page="home"] .sd-header-publish-item-v7626:hover {
    background: rgba(117, 14, 23, .22);
  }

  body[data-page="home"] .sd-header-publish-item-v7626 svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body[data-page="home"] .sd-header-utility-v7626 {
    display: inline-flex;
    direction: rtl;
    align-items: stretch;
    height: var(--sd-header-control-h-v7626);
    border: 1px solid var(--sd-header-line-v7626);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .05);
  }

  body[data-page="home"] .sd-header-utility-v7626 .auth-actions {
    display: inline-flex !important;
    align-items: stretch;
    height: 100%;
    gap: 0;
  }

  body[data-page="home"] .sd-header-utility-v7626 .login-btn,
  body[data-page="home"] .sd-header-utility-v7626 .public-account-trigger,
  body[data-page="home"] .sd-header-utility-v7626 .theme-toggle {
    min-height: 42px !important;
    height: 42px !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--sd-header-ink-v7626);
    box-shadow: none !important;
    transform: none;
  }

  body[data-page="home"] .sd-header-utility-v7626 .login-btn,
  body[data-page="home"] .sd-header-utility-v7626 .public-account-trigger {
    padding-inline: 10px;
  }

  body[data-page="home"] .sd-header-utility-v7626 .login-btn {
    min-width: 70px;
  }

  body[data-page="home"] .sd-header-utility-v7626 .login-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 1.8px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 0 -6px 0 -4px currentColor;
  }

  body[data-page="home"] .sd-header-utility-v7626 .signup-link {
    display: none !important;
  }

  body[data-page="home"] .sd-header-utility-v7626 .theme-toggle {
    min-width: 68px;
    padding: 0 10px;
    border-inline-start: 1px solid var(--sd-header-line-v7626) !important;
  }

  body[data-page="home"] .sd-header-utility-v7626 .login-btn:hover,
  body[data-page="home"] .sd-header-utility-v7626 .public-account-trigger:hover,
  body[data-page="home"] .sd-header-utility-v7626 .theme-toggle:hover {
    background: var(--sd-header-red-soft-v7626) !important;
    color: var(--sd-header-red-deep-v7626);
  }

  body[data-page="home"] .sd-header-utility-v7626 .public-account-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    box-shadow: none;
  }

  body[data-page="home"] .sd-header-utility-v7626 .public-account-dropdown {
    left: 0;
    top: calc(100% + 12px);
  }

  html[data-theme="dark"] body[data-page="home"] .sd-header-utility-v7626 {
    border-color: #2b3545;
    background: #182130;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  }

  html[data-theme="dark"] body[data-page="home"] .sd-header-utility-v7626 .login-btn,
  html[data-theme="dark"] body[data-page="home"] .sd-header-utility-v7626 .public-account-trigger,
  html[data-theme="dark"] body[data-page="home"] .sd-header-utility-v7626 .theme-toggle {
    color: #f8fafc;
  }

  html[data-theme="dark"] body[data-page="home"] .sd-header-utility-v7626 .theme-toggle {
    border-inline-start-color: #2b3545 !important;
  }

  body[data-page="home"] .sd-header-publish-item-v7626:focus-visible,
  body[data-page="home"] .desktop-nav .nav-category-btn:focus-visible,
  body[data-page="home"] .sd-header-category-v7626:focus-visible,
  body[data-page="home"] .sd-header-utility-v7626 :is(a, button):focus-visible {
    position: relative;
    z-index: 3;
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body[data-page="home"] .site-header .header-inner {
    grid-template-columns: auto minmax(200px, 1fr) auto !important;
    gap: 9px !important;
  }

  body[data-page="home"] .sd-header-publish-item-v7626,
  body[data-page="home"] .sd-header-category-v7626 {
    padding-inline: 11px !important;
  }

  body[data-page="home"] .sd-header-publish-item-v7626 svg {
    display: none;
  }

  body[data-page="home"] .sd-header-utility-v7626 .public-account-label,
  body[data-page="home"] .sd-header-utility-v7626 .public-account-arrow,
  body[data-page="home"] .sd-header-utility-v7626 .theme-text {
    display: none;
  }

  body[data-page="home"] .sd-header-utility-v7626 .theme-toggle {
    min-width: 43px;
    width: 43px;
    padding: 0;
  }
}

@media (max-width: 900px) {
  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-header-row-v772 {
    grid-template-columns: 82px minmax(0, 1fr) 82px !important;
    gap: 8px !important;
  }

  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-actions-v776 {
    width: 82px;
    height: 42px;
    display: flex !important;
    align-items: stretch;
    justify-content: stretch;
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .05);
  }

  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-theme-v776,
  body[data-page="home"].stockdivar-mobile-app-shell-v772 [data-sd-theme-v776] {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    display: grid !important;
    place-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #566074 !important;
    box-shadow: none !important;
  }

  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-account-v772 {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-inline-start: 1px solid #e4e7ec !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #172033 !important;
    box-shadow: none !important;
  }

  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-theme-v776:hover,
  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-account-v772:hover {
    background: rgba(189, 31, 37, .08) !important;
    color: #981b22 !important;
  }

  html[data-theme="dark"] body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-actions-v776 {
    border-color: #2b3545;
    background: #182130;
  }

  html[data-theme="dark"] body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-theme-v776,
  html[data-theme="dark"] body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-account-v772 {
    color: #f8fafc !important;
  }

  html[data-theme="dark"] body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-account-v772 {
    border-inline-start-color: #2b3545 !important;
  }

  body[data-page="home"] .sd-mobile-search-v772 {
    width: 100%;
  }
}

@media (max-width: 360px) {
  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-header-row-v772 {
    grid-template-columns: 72px minmax(0, 1fr) 72px !important;
    gap: 5px !important;
  }

  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-actions-v776 {
    width: 72px;
    height: 38px;
    border-radius: 12px;
  }

  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-theme-v776,
  body[data-page="home"].stockdivar-mobile-app-shell-v772 [data-sd-theme-v776],
  body[data-page="home"].stockdivar-mobile-app-shell-v772 .sd-mobile-account-v772 {
    width: 35px !important;
    min-width: 35px !important;
    height: 36px !important;
    flex-basis: 35px !important;
  }
}

@keyframes sdHeaderShineV7626 {
  0%, 62% { transform: rotate(16deg) translateX(0); }
  80%, 100% { transform: rotate(16deg) translateX(860%); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .desktop-nav .nav-category-btn,
  body[data-page="home"] .sd-header-category-v7626,
  body[data-page="home"] .sd-header-publish-v7626,
  body[data-page="home"] .sd-header-publish-item-v7626,
  body[data-page="home"] .sd-header-utility-v7626 :is(a, button) {
    transition: none !important;
  }

  body[data-page="home"] .desktop-nav .nav-category-btn::after,
  body[data-page="home"] .sd-header-category-v7626::after,
  body[data-page="home"] .sd-header-publish-v7626::after {
    animation: none !important;
  }
}
