/* Baby Salar responsive layout. Keep component overrides here, after main.css. */
@media (max-width: 1023px) {
  .header-desktop { display: none; }
  .header-mobile { display: block; }
  .site-header.is-scrolled .header-desktop { display: none; }
  .mobile-header__shell { padding-block: 7px 9px; }
  .mobile-header__row { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; min-height: 46px; }
  .mobile-header__row--no-cart { grid-template-columns: 42px minmax(0,1fr) 42px; }
  .mobile-header__spacer { width: 42px; height: 42px; }
  .mobile-header__row .brand { justify-self: center; max-width: 100%; align-items: center; }
  .mobile-header__row .brand__logo { max-width: min(var(--bs-logo-width,130px), 160px); max-height: 48px; }
  .mobile-header__row .brand__fa { font-size: 22px; }
  .mobile-header__control { position: relative; width: 42px; height: 42px; border: 1px solid #f0ecee; border-radius: 10px; background: #fff; display: grid; place-items: center; cursor: pointer; }
  .mobile-header__control .bs-icon { width: 21px; height: 21px; }
  .mobile-header__cart { justify-self: end; }
  .mobile-header__search-wrap { margin-top: 9px; }
  .mobile-header__search { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #eee9ec; border-radius: 10px; background: #fcfbfc; color: #66636a; text-align: right; font-size: 11px; }
  .mobile-header__search .bs-icon { width: 18px; height: 18px; }
  .mobile-header__search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .home-hero__layout, .home-hero--slider-only .home-hero__layout, .home-hero--promos-only .home-hero__layout { grid-template-columns: minmax(0,1fr); grid-template-areas: 'main' 'promos'; }
  .home-hero--promos-only .home-hero__layout { grid-template-areas: 'promos'; }
  .hero-main, .home-hero--slider-only .hero-main { aspect-ratio: 2 / 1; }
  .hero-promos, .hero-promos__track { height: auto; }
  .hero-promos__track, .home-hero--promos-only .hero-promos__track { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 12px; }
  .hero-promo, .home-hero--promos-only .hero-promo { aspect-ratio: 2 / 1; }
  .sale-showcase-section__body { grid-template-columns: minmax(0,1fr); }
  .sale-showcase-section__promo, .sale-showcase-section__products, .sale-showcase-section.no-promo .sale-showcase-section__products { grid-column: 1; }
  .sale-showcase-section__promo { aspect-ratio: 4 / 1; }
  .gender-banners__item { min-height: 0; aspect-ratio: 1.9 / 1; }
  .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-trust { grid-column: 1 / -1; }
  .search-panel { margin-top: min(60px,8vh); }
}

@media (max-width: 767px) {
  /* Hidden off-canvas panels must not remain visible when the document overflows. */
  .mobile-menu:not(.is-open), .drawer:not(.is-open) { visibility: hidden; pointer-events: none; }
  .mobile-menu.is-open, .drawer.is-open { visibility: visible; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bottom-nav { position: fixed; z-index: 95; inset-inline: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; height: calc(66px + env(safe-area-inset-bottom, 0px)); padding: 3px max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); border-top: 1px solid #efeaed; background: #fff; box-shadow: 0 -4px 22px rgba(31, 31, 38, .045); direction: rtl; }
  .mobile-bottom-nav__item { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-width: 0; min-height: 56px; padding: 3px 1px; border: 0; border-radius: 9px; background: transparent; color: #666b73; text-decoration: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mobile-bottom-nav__item .bs-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bottom-nav__item small { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; font-weight: 600; line-height: 1.4; }
  .mobile-bottom-nav__item:is(.is-active, [aria-expanded="true"]) { color: var(--bs-pink); }
  .mobile-bottom-nav__item:focus-visible { outline: 2px solid var(--bs-pink); outline-offset: -3px; }
  .mobile-bottom-nav__icon { position: relative; display: grid; place-items: center; }
  .mobile-bottom-nav__count { position: absolute; top: -6px; right: -11px; min-width: 17px; height: 17px; padding: 0 3px; display: grid; place-items: center; border-radius: 20px; border: 2px solid #fff; background: var(--bs-pink); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
  .mobile-bottom-nav__count.is-empty { display: none; }
  .container { width: calc(100% - 28px); }
  .topbar__inner { height: 28px; justify-content: center; overflow: hidden; }
  .mobile-header__shell { padding-block: 5px; }
  .mobile-header__search-wrap { display: none; }
  .topbar__note { min-width: 0; overflow: hidden; justify-content: center; font-size: 9px; }
  .topbar__note > :not(:first-child), .topbar__links { display: none; }
  .home-hero { margin-block: 12px 16px; }
  .home-hero__layout, .home-hero--promos-only .home-hero__layout { grid-template-columns: minmax(0,1fr); grid-template-areas: 'main'; gap: 0; }
  .home-hero .hero-promos { display: none; }
  .home-hero .hero-main--mobile-only { display: block; }
  .home-hero .hero-main__slide--mobile-promo { display: block; }
  .home-hero .hero-main__dot--mobile-promo { display: block; }
  .home-hero .hero-main__control--mobile-only { display: grid; }
  .hero-main, .home-hero--slider-only .hero-main { aspect-ratio: 1.3 / 1; border-radius: 12px; }
  .hero-main__arrow { width: 30px; height: 30px; }
  .hero-main__arrow--prev { right: 7px; }
  .hero-main__arrow--next { left: 7px; }
  .hero-promos__track, .home-hero--promos-only .hero-promos__track { display: flex; gap: 9px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero-promos__track::-webkit-scrollbar { display: none; }
  .hero-promo, .home-hero--promos-only .hero-promo { flex: 0 0 84%; aspect-ratio: 2.05 / 1; scroll-snap-align: start; }
  .hero-promos--count-1 .hero-promo, .home-hero--promo-count-1 .hero-promo { flex-basis: 100%; }
  .category-shortcuts { gap: 10px; padding-block: 12px 17px; }
  .category-shortcut { flex-basis: 72px; }
  .category-shortcut__media, .category-shortcut__icon { width: 60px; height: 60px; border-width: 5px; }
  .category-shortcut b { font-size: 10px; }
  .home-stories { margin-bottom: 15px; }
  .home-stories__carousel { padding-inline: 5px; }
  .home-stories__nav { display: none; }
  .home-story-slide { width: 78px !important; }
  .home-story__ring { width: 68px; height: 68px; }
  .home-story__label { font-size: 10px; max-width: 78px; }
  .product-carousel-section, .sale-showcase-section { padding-block: 12px 18px; }
  .product-carousel-section__head, .sale-showcase-section__head, .babysalar-blog__head { gap: 8px; align-items: center; }
  .product-carousel-section__head h2, .sale-showcase-section__head h2 { font-size: 17px; letter-spacing: 0; }
  .product-carousel-section__all, .sale-showcase-section__all, .babysalar-blog__all { font-size: 10px; padding-inline: 8px; }
  .product-carousel-section__nav, .sale-showcase-section__nav, .babysalar-blog__nav { display: none; }
  .product-carousel-section__head > *, .sale-showcase-section__head > * { min-width: 0; }
  .product-card { border-radius: 12px; }
  .product-card__body { padding: 9px 7px 10px; }
  .product-card__title { font-size: 11px; min-height: 35px; }
  .product-card__badge { top: 7px; right: 7px; min-height: 23px; padding-inline: 7px; font-size: 9px; }
  .product-card__wishlist { top: 7px; left: 7px; width: 30px; height: 30px; }
  .product-card__prices { min-height: 34px; gap: 3px; }
  .product-card__prices .price, .product-card__prices > .amount, .product-card__prices ins, .product-card__prices .price-static, .product-card__variable-price, .product-card__variable-price .amount { font-size: 11px; }
  .product-card__add { min-height: 37px; padding-inline: 4px; font-size: 10px; }
  .sale-showcase-section__shell { padding: 12px; border-radius: 15px; }
  .sale-showcase-section__body { gap: 11px; }
  .sale-showcase-section__promo { aspect-ratio: 2.1 / 1; border-radius: 10px; }
  .gender-banners__grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .gender-banners__item { aspect-ratio: 2 / 1; border-radius: 14px; }
  .wholesale-showcase { min-height: 340px; }
  .service-strip__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-strip__item { padding-inline: 5px; }
  .babysalar-blog__head h2 { font-size: 17px; }
  .search-panel { width: calc(100% - 20px); max-height: calc(100dvh - 36px); margin-top: 18px; padding: 16px 12px; }
  .search-panel__grid { grid-template-columns: minmax(0,1fr); }
  .search-categories { padding: 0; border: 0; }
  .search-panel__field kbd { display: none; }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .footer-about, .footer-trust { grid-column: auto; }
  .footer-bottom .container { min-height: 60px; height: auto; padding-block: 12px; flex-wrap: wrap; gap: 3px 15px; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .product-carousel-section__head h2, .sale-showcase-section__head h2 { font-size: 15px; }
  .product-card__add { font-size: 9px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-hero__layout { gap: 12px; }
  .product-grid--6 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .sale-showcase-section__promo { aspect-ratio: 3 / 1; }
}

@media print {
  .site-header, .site-footer, .mobile-bottom-nav, .drawer, .mobile-menu, .search-layer { display: none !important; }
}
