/* */

html {
  overflow-x: hidden;
}

body.dovomi-shad-theme {
  overflow-x: hidden;
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* */
body.dovomi-shad-theme img,
body.dovomi-shad-theme video,
body.dovomi-shad-theme iframe,
body.dovomi-shad-theme .elementor-widget-container {
  max-width: 100%;
}

body.dovomi-shad-theme .ast-container,
body.dovomi-shad-theme .elementor-section.elementor-section-boxed > .elementor-container {
  padding-inline: clamp(0.75rem, 4vw, 1.25rem);
}

@media (max-width: 767px) {
  /* */
  html {
    font-size: 18px !important;
  }

  body.dovomi-shad-theme,
  body.dovomi-shad-theme p,
  body.dovomi-shad-theme li,
  body.dovomi-shad-theme .elementor-widget-text-editor,
  body.dovomi-shad-theme .elementor-widget-text-editor p,
  body.dovomi-shad-theme .entry-content,
  body.dovomi-shad-theme .ast-container {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
  }

  body.dovomi-shad-theme h1,
  body.dovomi-shad-theme .elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(1.55rem, 6.5vw, 1.9rem) !important;
    line-height: 1.45 !important;
  }

  body.dovomi-shad-theme h2,
  body.dovomi-shad-theme .elementor-widget-heading h2.elementor-heading-title,
  body.dovomi-shad-theme .elementor-heading-title {
    font-size: clamp(1.35rem, 5.8vw, 1.65rem) !important;
    line-height: 1.5 !important;
  }

  body.dovomi-shad-theme h3,
  body.dovomi-shad-theme .elementor-widget-heading h3.elementor-heading-title {
    font-size: clamp(1.2rem, 5vw, 1.4rem) !important;
    line-height: 1.5 !important;
  }

  body.dovomi-shad-theme h4,
  body.dovomi-shad-theme h5,
  body.dovomi-shad-theme h6 {
    font-size: 1.1rem !important;
    line-height: 1.55 !important;
  }

  body.dovomi-shad-theme .elementor-icon-box-title,
  body.dovomi-shad-theme .elementor-icon-box-title span,
  body.dovomi-shad-theme .elementor-icon-list-text,
  body.dovomi-shad-theme .elementor-button-text,
  body.dovomi-shad-theme .woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.dovomi-shad-theme .woocommerce-loop-product__title {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
  }

  body.dovomi-shad-theme .elementor-icon-box-description,
  body.dovomi-shad-theme .price,
  body.dovomi-shad-theme .woocommerce .price {
    font-size: 1rem !important;
  }

  /* */
  body.dovomi-shad-theme .elementor-95 .elementor-element-e471210 > .elementor-widget-wrap {
    padding: 0.55rem 0.75rem 0.75rem !important;
    min-height: 0 !important;
  }

  body.dovomi-shad-theme .elementor-element-cba2544,
  body.dovomi-shad-theme .elementor-element-cba2544 .elementor-widget-container {
    width: auto !important;
    max-width: 76px !important;
    margin-inline: auto !important;
  }

  body.dovomi-shad-theme .elementor-element-cba2544 img,
  body.dovomi-shad-theme header .elementor-widget-image img,
  body.dovomi-shad-theme .elementor-95 .elementor-widget-image img {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
  }

  body.dovomi-shad-theme header .elementor-widget-image img,
  body.dovomi-shad-theme .elementor-95 .elementor-widget-image img {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dovomi-sky), 0 6px 16px rgba(91, 184, 232, 0.22) !important;
  }

  body.dovomi-shad-theme .elementor-menu-toggle {
    padding: 0.45rem !important;
    min-width: 44px;
    min-height: 44px;
  }

  /* */
  body.dovomi-shad-theme .elementor-element-b12a213 > .elementor-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  body.dovomi-shad-theme .elementor-element-b12a213 > .elementor-container > .elementor-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  body.dovomi-shad-theme .elementor-element-8e9e702,
  body.dovomi-shad-theme .elementor-element-b11c117,
  body.dovomi-shad-theme .elementor-element-dc53735 {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.dovomi-shad-theme .elementor-element-13cdd1a,
  body.dovomi-shad-theme .elementor-element-8099d80,
  body.dovomi-shad-theme .elementor-element-dc53735 .elementor-widget-container {
    min-height: 0 !important;
    padding: 1rem 1.1rem !important;
  }

  /* */
  body.dovomi-shad-theme .elementor-element-8bc4580 .elementor-heading-title {
    font-size: clamp(1.45rem, 6.2vw, 1.75rem) !important;
    line-height: 1.5 !important;
  }

  body.dovomi-shad-theme .elementor-element-8bc4580 .elementor-widget-text-editor,
  body.dovomi-shad-theme .elementor-element-8bc4580 p {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
  }

  /* */
  body.dovomi-shad-theme .elementor-element-271744e,
  body.dovomi-shad-theme .elementor-element-ffe35a7,
  body.dovomi-shad-theme .elementor-element-a14c470,
  body.dovomi-shad-theme .elementor-element-14ead30,
  body.dovomi-shad-theme .elementor-element-dffb398,
  body.dovomi-shad-theme .elementor-element-40f5079 {
    width: 50% !important;
    max-width: 50% !important;
    padding: 0.35rem !important;
  }

  body.dovomi-shad-theme .elementor-element-271744e .elementor-widget-container,
  body.dovomi-shad-theme .elementor-element-ffe35a7 .elementor-widget-container,
  body.dovomi-shad-theme .elementor-element-a14c470 .elementor-widget-container,
  body.dovomi-shad-theme .elementor-element-14ead30 .elementor-widget-container,
  body.dovomi-shad-theme .elementor-element-dffb398 .elementor-widget-container,
  body.dovomi-shad-theme .elementor-element-40f5079 .elementor-widget-container {
    padding: 0.85rem 0.7rem !important;
  }

  /* */
  body.dovomi-shad-theme .woocommerce ul.products,
  body.dovomi-shad-theme ul.products {
    margin-inline: 0 !important;
  }

  body.dovomi-shad-theme .woocommerce ul.products li.product,
  body.dovomi-shad-theme ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  body.dovomi-shad-theme .elementor-widget-image-carousel img,
  body.dovomi-shad-theme .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* */
  body.dovomi-shad-theme .elementor-button,
  body.dovomi-shad-theme .button,
  body.dovomi-shad-theme .woocommerce a.button,
  body.dovomi-shad-theme .woocommerce button.button {
    min-height: 48px;
    padding-block: 0.8rem !important;
    font-size: 1.05rem !important;
  }

  /* */
  body.dovomi-shad-theme .ehf-footer,
  body.dovomi-shad-theme .elementor-location-footer {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.dovomi-shad-theme .elementor-394 {
    flex-direction: column !important;
    align-items: center !important;
    row-gap: 1rem !important;
    padding: 1.1rem 1rem 0.5rem !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-7290410,
  body.dovomi-shad-theme .elementor-394 .elementor-element-e1684a4,
  body.dovomi-shad-theme .elementor-394 .elementor-element-e74178f {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    justify-content: center !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-7290410 > .elementor-widget-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.65rem !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-29b0ab7 .elementor-icon-list-items {
    justify-content: center !important;
    gap: 0.55rem 0.9rem !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-bbf2494 .elementor-heading-title {
    font-size: 1.15rem !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-29b0ab7 .elementor-icon-list-item a {
    display: inline-flex !important;
    align-items: center;
    min-height: 40px;
    padding: 0.2rem 0.15rem;
    font-size: 1.02rem !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-83d78f6 .elementor-social-icons-wrapper {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-social-icon {
    width: 42px !important;
    height: 42px !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-e74178f,
  body.dovomi-shad-theme .elementor-394 .elementor-element-e74178f > .elementor-widget-wrap,
  body.dovomi-shad-theme .elementor-394 .elementor-element-02678a1,
  body.dovomi-shad-theme .elementor-394 .elementor-element-02678a1 a {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  body.dovomi-shad-theme .elementor-394 .elementor-element-02678a1 img,
  body.dovomi-shad-theme .elementor-394 img.dovomi-enamad-img {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  /* */
  body.dovomi-shad-theme .bnav_bottom_nav_wrapper,
  body.dovomi-shad-theme .bnav_main_menu_container {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  body.dovomi-shad-theme .bnav_main_menu a,
  body.dovomi-shad-theme .bnav_main_menu .bnav_flex,
  body.dovomi-shad-theme .bnav_main_menu .bnav_text,
  body.dovomi-shad-theme .bnav_main_menu span {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    gap: 0.25rem;
  }

  body.dovomi-shad-theme .bnav_main_menu i {
    font-size: 1.3rem !important;
  }

  /* */
  body.woocommerce-checkout form.checkout.woocommerce-checkout,
  body.woocommerce-cart form.woocommerce-cart-form,
  .woocommerce form.checkout {
    padding: 1rem 0.85rem !important;
    margin-inline: 0.35rem;
    border-radius: 14px !important;
  }

  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-checkout-payment,
  body.woocommerce-checkout .woocommerce-checkout-review-order {
    width: 100% !important;
    float: none !important;
  }

  body.woocommerce-checkout .woocommerce-checkout-payment .payment_methods li {
    padding: 0.75rem !important;
  }

  body.woocommerce-checkout #place_order,
  body.woocommerce-cart button[name="update_cart"],
  body.woocommerce-cart button[name="apply_coupon"] {
    width: 100% !important;
    margin-top: 0.5rem;
  }

  .woocommerce table.shop_table,
  .woocommerce table.shop_table_responsive {
    font-size: 1.02rem !important;
  }

  .woocommerce table.shop_table_responsive tr td {
    text-align: right !important;
  }

  /* */
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 17px !important;
  }

  body.dovomi-shad-theme .elementor-element-cba2544 img,
  body.dovomi-shad-theme header .elementor-widget-image img,
  body.dovomi-shad-theme .elementor-95 .elementor-widget-image img {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
  }

  body.dovomi-shad-theme .elementor-element-271744e .elementor-heading-title,
  body.dovomi-shad-theme .elementor-element-ffe35a7 .elementor-heading-title,
  body.dovomi-shad-theme .elementor-element-a14c470 .elementor-heading-title,
  body.dovomi-shad-theme .elementor-element-14ead30 .elementor-heading-title,
  body.dovomi-shad-theme .elementor-element-dffb398 .elementor-heading-title,
  body.dovomi-shad-theme .elementor-element-40f5079 .elementor-heading-title,
  body.dovomi-shad-theme .elementor-element-271744e .elementor-icon-box-title,
  body.dovomi-shad-theme .elementor-element-ffe35a7 .elementor-icon-box-title,
  body.dovomi-shad-theme .elementor-element-a14c470 .elementor-icon-box-title,
  body.dovomi-shad-theme .elementor-element-14ead30 .elementor-icon-box-title,
  body.dovomi-shad-theme .elementor-element-dffb398 .elementor-icon-box-title,
  body.dovomi-shad-theme .elementor-element-40f5079 .elementor-icon-box-title {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  body.dovomi-shad-theme .bnav_main_menu a,
  body.dovomi-shad-theme .bnav_main_menu a span,
  body.dovomi-shad-theme .bnav_main_menu .bnav_text {
    font-size: 0.78rem !important;
  }
}
/* ----- جست‌وجوی موبایل زیر هدر ----- */
  body.dovomi-shad-theme .dovomi-mobile-search {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.85rem 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(91, 184, 232, 0.22);
    box-shadow: 0 6px 16px rgba(42, 51, 64, 0.06);
  }

  body.dovomi-shad-theme .dovomi-mobile-search__form {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
  }

  body.dovomi-shad-theme .dovomi-mobile-search__input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(91, 184, 232, 0.45);
    border-radius: 12px;
    background: #fff;
    color: #2a3340;
    font-size: 1rem !important;
    line-height: 1.4;
    box-shadow: none;
  }

  body.dovomi-shad-theme .dovomi-mobile-search__input:focus {
    outline: none;
    border-color: #5bb8e8;
    box-shadow: 0 0 0 3px rgba(91, 184, 232, 0.2);
  }

  body.dovomi-shad-theme .dovomi-mobile-search__submit {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #5bb8e8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 184, 232, 0.28);
  }

  body.dovomi-shad-theme .dovomi-mobile-search__submit i {
    font-size: 1rem;
    line-height: 1;
  }

