span {
  font-weight: inherit;
}
.orange {
  color: var(--secondary);
}
.blue {
  color: var(--primary);
}
strong {
  font-weight: bold;
}
button:focus {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
  outline: none;
}
button:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
  background-color: #ffffff;
}
/* #header.hide {
  transform: translateY(-102%);
}
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
} */
#header > .wrapper {
  border-bottom: 1px solid #d1d5db;
}
#header > .wrapper > .container {
  padding: 15px 20px;
  max-width: 1232px;
  margin: 0 auto;

  display: flex;
  align-items: center;
}
#header .logo {
  margin-left: 16px;
}
#header .logo img {
  width: 150px;
  height: auto;
  vertical-align: bottom;
}
#header .header-nav {
  flex-grow: 1;
}
#desktop-menu {
  width: fit-content;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  margin: initial;
}
#header .desktop-nav ul {
  list-style-type: none;
}
#header .desktop-nav li {
  position: relative;
  display: block;
}
#header .desktop-nav li svg {
  width: 24px;
  height: 24px;
  stroke: #414a53;
}
#header .desktop-nav a {
  font-weight: bold;
  font-size: 14px;
  line-height: normal;
  display: flex;
  padding: 0 8px;
  transition: color 200ms;
  color: #000;

  margin: initial;
  background-color: initial;
}
#desktop-menu > li > a {
  border-left: 1px solid #d1d5db;
  align-items: center;
  gap: 4px;
}
#desktop-menu > li:last-child > a {
  border-left: initial;
}
#header .desktop-nav a:hover {
  color: var(--primary);
}
#header .desktop-nav .submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0px 4px 8px 0px #a3a9b026;
  border: 1px solid #eff0f1;
  background: #fafafa;
  min-width: 156px;
  max-width: 220px;
  width: max-content;
  margin: initial;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 200ms ease;
  transition-delay: 60ms;
  z-index: 1000;
}
#header .desktop-nav li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0ms;
}
#header .desktop-nav .submenu li a {
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: normal;
  line-height: normal;
}
#more-li .submenu {
  right: auto;
  left: 0;
}
#header .desktop-nav .submenu .submenu {
  top: 16px;
  right: calc(100% - 10px);
}
#header #desktop-menu > li:last-child .submenu .submenu {
  right: initial;
  left: calc(100% - 10px);
}
#search-btn {
  width: 40px;
  height: 40px;
  margin-left: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
#search-btn svg {
  width: 32px;
  height: 32px;
  stroke: #424242;
}
#search-btn:hover svg {
  stroke: var(--primary);
}
#accoount-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  background-color: var(--primary);
  transition: background-color 200ms;
}
#accoount-btn .txt {
  font-weight: bold;
  font-size: 13px;
  line-height: normal;
  color: #fff;
  transition: color 200ms;
}
#accoount-btn svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  transition: stroke 200ms;
}
#accoount-btn:hover {
  background-color: transparent;
}
#accoount-btn:hover .txt {
  color: var(--primary);
}
#accoount-btn:hover svg {
  stroke: var(--primary);
}
#header .search-box {
  z-index: 990;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#header .search-box > .container {
  padding: 32px 20px;
  max-width: 1232px;
  margin: 0 auto;
}
#header .search-box .holder {
  display: flex;
  gap: 8px;
  position: relative;
  border: 1px solid #e2e2e2;
  padding: 10px 16px;
  border-radius: 16px;
  background-color: #fff;
}
#header .search-box input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  padding: initial;
}
#header .search-box .holder svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: #6e7a86;
}
#header .search-box .holder:hover svg {
  stroke: var(--primary);
}
#header .search-box .holder label {
  font-size: 14px;
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e7a86;
  pointer-events: none;
}
#header .search-box .holder input:focus + label,
#header .search-box .holder input:not(:placeholder-shown) + label {
  display: none;
}
#header .search-box .search-results {
  padding: 0 24px;
  margin-top: 32px;
}
#header .search-box .search-results .group {
  display: flex;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid #e1e4e7;
  margin-top: 24px;
}
#header .search-box .search-results .group:first-child {
  margin-top: initial;
}
#header .search-box .search-results .group:last-child {
  border-bottom: initial;
  padding-bottom: initial;
}
#header .search-box .search-results .cate {
  display: flex;
  gap: 8px;
}
#header .search-box .search-results .cate svg {
  width: 20px;
  height: 20px;
  stroke: #414a53;
}
#header .search-box .search-results .cate p {
  font-size: 14px;
  line-height: normal;
  color: #ed6234;
}
#header .search-box .search-results ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
  margin-right: auto;
}
#header .search-box .search-results ul li::marker {
  color: var(--secondary);
  font-size: 18px;
  line-height: normal;
}
#header .search-box .search-results ul li a {
  font-size: 14px;
  line-height: 1.85;
  color: #424242;
}
#header .search-box .search-results .group.veterinaries ul li a .txt {
  padding-left: 8px;
  border-left: 1px solid #d9d9d9;
}
#header .search-box .search-results .group.veterinaries ul li a .city {
  padding-right: 8px;
  color: #6e7a86;
}
#header .search-box .search-results ul li a:hover {
  color: var(--primary);
}
#hamburger {
  display: none;
}
#header .search-box .categories {
  display: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px 8px;
}
#header .search-box .categories button {
  display: flex;
  align-items: center;
  height: 32px;
  gap: 8px;
  padding: 0 8px 0 16px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  border-radius: 100vmax;
}
#header .search-box .categories button .num {
  width: 20px;
  height: 20px;
  background-color: #a0acb9;
  border-radius: 100vmax;
  display: grid;
  place-items: center;
}
#header .search-box .categories button .num span {
  font-size: 12px;
  line-height: 1;
  margin-bottom: -3px;
  color: #fff;
}
#header .search-box .categories button .txt {
  font-size: 12px;
  line-height: normal;
  color: #000;
}
#header .search-box .categories button.current {
  border-color: #0066ff;
  background-color: #e5efff;
}
#header .search-box .categories button.current .num {
  background-color: var(--primary);
}
#header .search-box .loading {
  display: none;
  flex-direction: column;
}
#header .search-box[data-state="loading"] .loading {
  display: flex !important;
}
#header .search-box .loading .wrapper {
  display: flex;
  gap: 42px;
  padding: 24px 0;
  border-bottom: 1px solid #e1e4e7;
}
#header .search-box .loading .wrapper:last-child {
  border-bottom: initial;
}
#header .search-box .loading .skeleton {
  width: 15%;
  height: 20px;
  border-radius: 12px;
  background-color: #ebebeb;
  animation: skeleton 700ms ease-in infinite alternate;
}
#header .search-box .loading .skeleton:last-child {
  width: 30%;
}
#header .mobile-drawer .bottom-master {
  display: none;
}
#header .mobile-drawer .top {
  display: none;
  align-items: center;
  padding: 4px 20px;
}
#header .mobile-drawer .top > * {
  width: 48px;
  height: 48px;
}
#header .mobile-drawer .top svg {
  width: 32px;
  height: 32px;
  stroke: #414a53;
}
#header .mobile-drawer .top .drawer-logo {
  width: 40px;
  height: 40px;
  margin: 0 auto;
}
#header .mobile-drawer .top :where(.account-cta, .close) {
  display: grid;
  place-items: center;
}
/* ====================== استایل منوی موبایل ====================== */
#mobile-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  overflow-y: auto;
}
#mobile-menu li {
  border-bottom: 1px dashed #d1d5db;
  margin-bottom: 8px;
  padding: 0 8px;
}
#mobile-menu li svg {
  width: 18px;
  height: 18px;
  stroke: #414a53;
  flex-shrink: 0;
}
#mobile-menu li:hover {
  background-color: #f9f9f9;
}
#mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  width: 100%;
  color: #424242;
  transition: background 0.2s;
}
#mobile-menu .menu-text {
  flex: 1;
}

#mobile-menu .chevron {
  width: 20px;
  height: 20px;
  stroke: #414a53;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
}

/* زیرمنوها */
#mobile-menu ul li {
  padding: 0 26px 0 8px;
  border-bottom: initial;
}
#mobile-menu .has-children > ul {
  display: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

#mobile-menu .has-children.open > ul {
  display: block;
}
#mobile-menu .has-children ul a {
  height: 36px;
  font-size: 14px;
  font-weight: normal;
}
/* وقتی منو باز است، فلش بچرخد */
#mobile-menu .has-children.open > a .chevron {
  transform: rotate(180deg);
}
#mobile-menu .cta a {
  color: var(--primary);
  font-size: 13px;
}
#mobile-menu .cta svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}
#mobile-menu ul ul li {
  padding-right: 16px;
}
#mobile-menu ul ul li a {
  font-size: 13px !important;
}
/* اختیاری: انیمیشن نرم‌تر برای دسته‌بندی‌ها و نتایج */
#search-box.expanded .categories,
#search-box.expanded .res {
  animation: fadeInResults 0.3s ease forwards;
}
#search-box .notfound {
  display: none;
  flex-direction: column;
  align-items: center;
}
#search-box .notfound img {
  width: 56px;
  height: 56px;
}
#search-box .notfound p {
  font-size: 14px;
  line-height: 1.75;
  color: #6e7a86;
  text-align: center;
}
#search-box .notfound .titl {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: #424242;
}
#search-box[data-state="404"] .notfound {
  display: flex !important;
}
#search-box:not([data-state="def"]) .res,
#search-box:not([data-state="def"]) .categories {
  display: none !important;
}
@media (min-width: 768px) {
}
@media (min-width: 1026px) {
  #header .search-box {
    width: 100%;
    max-height: 75vh;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #f6f6f6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 200ms ease;
  }
  #header .search-box.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
  }
  #header .logo .mobile {
    display: none;
  }
  #search-box:not(.expanded) .search-results {
    display: none;
  }
  #search-box.expanded .search-results {
    display: block;
  }
}
@media (max-width: 1026px) {
  #header .desktop-nav,
  #header .logo .desktop,
  #search-btn {
    display: none;
  }
  #header .logo {
    margin: 0 auto 0 auto;
  }
  #header .logo img {
    width: 40px;
    height: auto;
  }
  #hamburger {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
  }
  #hamburger svg {
    width: 32px;
    height: 32px;
    stroke: #414a53;
  }
  #header > .wrapper > .container {
    padding: 4px 20px;
  }
  #accoount-btn {
    height: 48px;
    width: 48px;
    border: none;
    background: none;
    padding: initial;
    justify-content: center;
  }
  #accoount-btn .txt {
    display: none;
  }
  #accoount-btn svg {
    width: 32px;
    height: 32px;
    stroke: #414a53;
  }
  #header .header-nav {
    flex-grow: 0;
  }
  #header .search-box .holder {
    padding: 7px 11px;
    gap: 4px;
    margin-bottom: 24px;
  }
  #header .search-box .holder label {
    right: 38px;
  }
  #header .search-box .search-results {
    margin: initial;
    padding: 24px 0 0;
    border-top: 1px solid #d1d5db;
  }
  /* موبایل */
  #header .mobile-drawer {
    position: fixed;
    display: none;
    flex-direction: column;
    top: 0px;
    bottom: 0px;
    right: 0;
    width: 100%;
    background: #ffffff;
    overscroll-behavior: contain;
    transition: right 300ms;
    z-index: 2000;
  }
  #header .mobile-drawer.open {
    display: flex;
  }
  #header .search-box .categories {
    display: flex;
  }
  #header .search-box .search-results .group {
    flex-direction: column;
    gap: 8px;
    border-bottom: initial;
  }
  #header .search-box .search-results ul {
    margin-right: initial;
    width: initial;
    padding-right: 20px;
  }
  #header .search-box {
    position: absolute;
    width: 100%;
    top: 56px;
    right: 0;
    background-color: #fff;
    overflow-y: auto;
  }

  #search-box {
    /* ارتفاع پیش‌فرض = فقط نوار ورودی (holder) */
    height: auto;
    overflow: hidden; /* برای جلوگیری از نشت محتوا */
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #header #search-box .container {
    padding: 32px 20px 0;
    height: 100%;
    background-color: #fff;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* وقتی هنوز چیزی تایپ نشده → نتایج کاملاً مخفی */
  #search-box:not(.expanded) .search-results :is(.categories, .res) {
    display: none;
  }

  /* حالت گسترش (وقتی حداقل یک کاراکتر تایپ شده) */
  #search-box.expanded {
    height: calc(100% - 56px) !important;
  }

  #search-box.expanded .search-results :is(.categories, .res) {
    display: flex;
  }
  #header .mobile-drawer .bottom-master {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 20px 20px 24px;
    z-index: 980;
    background-color: #fff;
  }
  #header .mobile-drawer .bottom-master > a {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #header .mobile-drawer .bottom-master > a .txt {
    font-size: 14px;
    line-height: normal;
    color: #424242;
    text-decoration: underline;
    margin-bottom: -4px;
  }
  #header .mobile-drawer .bottom-master .social {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #header .mobile-drawer .bottom-master .social a {
    display: flex;
  }
  #mobile-menu {
    display: block;
    flex-grow: 1;
    padding: 121px 20px 76px;
  }
  #header .search-box .loading .wrapper {
    flex-direction: column;
    gap: 12px;
  }
  #header .search-box .loading .skeleton {
    width: 34%;
  }
  #header .search-box .loading .skeleton:last-child {
    width: 55%;
  }
  .petboom-top-banner.close {
    display: none !important;
  }
  #search-box.expanded .res {
    flex-direction: column;
  }
  #header .mobile-drawer .top {
    display: flex;
  }
}
@media (max-width: 767px) {
}
@keyframes fadeInResults {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes skeleton {
  0% {
    background-color: hsl(0, 0%, 92%);
  }
  100% {
    background-color: hsl(0, 0%, 96%);
  }
}
