/**
 * IranCoral Mobile UX 1.1.4
 * Sitewide phone/tablet layer (≤768). Desktop untouched outside these media queries.
 * Coordinates with: ic-nav-ux (header), ic-footer-fixes (namads/Goftino), ic-shop-ux (archive filters).
 * Scope: body.ic-mobile-ux + @media — never rewrite footer trust carousel / about / contact blocks.
 *
 * 1.1.4: Revert unsafe offer Swiper param mutation; keep layout width fixes + timer CSS.
 */

/* ========== ≤768: core containment ========== */
@media only screen and (max-width: 768px) {
  html.ic-mobile-ux,
  body.ic-mobile-ux {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.ic-mobile-ux {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.ic-mobile-ux #page,
  body.ic-mobile-ux #wrapper,
  body.ic-mobile-ux .site,
  body.ic-mobile-ux .site-content,
  body.ic-mobile-ux #content,
  body.ic-mobile-ux .main_content,
  body.ic-mobile-ux .elementor,
  body.ic-mobile-ux .elementor-section-wrap {
    max-width: 100% !important;
    overflow-x: clip;
  }

  body.ic-mobile-ux img,
  body.ic-mobile-ux video,
  body.ic-mobile-ux iframe,
  body.ic-mobile-ux svg,
  body.ic-mobile-ux embed,
  body.ic-mobile-ux object {
    max-width: 100% !important;
    height: auto;
  }

  body.ic-mobile-ux .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  /*
   * ROOT CAUSE of homepage left-clip + right gutter:
   * NewKala wraps the Elementor home in blog layout chrome meant for desktop sidebar:
   *   .container > .content_right_blog > .main_content_post_blog > .product-content-onliner > .elementor
   * That stack stayed ~335px on a 375px phone. Force full width; one 12px padding on .container only.
   */
  body.ic-mobile-ux .content_right_blog,
  body.ic-mobile-ux .content_left_blog,
  body.ic-mobile-ux .main_content_post_blog,
  body.ic-mobile-ux .product-content-onliner,
  body.ic-mobile-ux .main_content_post_blog .elementor,
  body.ic-mobile-ux .product-content-onliner .elementor {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .sidebar_blog,
  body.ic-mobile-ux aside.sidebar_blog,
  body.ic-mobile-ux .content_left_blog.sidebar_blog {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body.ic-mobile-ux .elementor-section,
  body.ic-mobile-ux .elementor-top-section,
  body.ic-mobile-ux .elementor-inner-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box !important;
  }

  /* Page .container already has 10–12px — Elementor containers must NOT add more */
  body.ic-mobile-ux .elementor-container,
  body.ic-mobile-ux .elementor-section .elementor-container,
  body.ic-mobile-ux .elementor-container.elementor-column-gap-default,
  body.ic-mobile-ux .elementor-container.elementor-column-gap-no,
  body.ic-mobile-ux .elementor-container.elementor-column-gap-narrow,
  body.ic-mobile-ux .elementor-container.elementor-column-gap-extended,
  body.ic-mobile-ux .elementor-container.elementor-column-gap-wide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  body.ic-mobile-ux .elementor-column,
  body.ic-mobile-ux .elementor-col-10,
  body.ic-mobile-ux .elementor-col-20,
  body.ic-mobile-ux .elementor-col-25,
  body.ic-mobile-ux .elementor-col-30,
  body.ic-mobile-ux .elementor-col-33,
  body.ic-mobile-ux .elementor-col-40,
  body.ic-mobile-ux .elementor-col-50,
  body.ic-mobile-ux .elementor-col-60,
  body.ic-mobile-ux .elementor-col-66,
  body.ic-mobile-ux .elementor-col-70,
  body.ic-mobile-ux .elementor-col-75,
  body.ic-mobile-ux .elementor-col-80,
  body.ic-mobile-ux .elementor-col-90,
  body.ic-mobile-ux .elementor-col-100,
  body.ic-mobile-ux [class*="elementor-col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .elementor-widget-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .elementor-element,
  body.ic-mobile-ux .elementor-widget,
  body.ic-mobile-ux .elementor-widget-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* NewKala / Bootstrap row negative margins → horizontal bleed */
  body.ic-mobile-ux .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
  }

  /* Keep nav mobile chrome paddings from ic-nav-ux — only tame outer containers */
  body.ic-mobile-ux .container.main_header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /*
   * Header lock: hamburger LEFT | logo CENTER | account+cart RIGHT
   * (Reinforces / repairs if ic-nav-ux grid regresses to 2-col "actions ham")
   * Loaded after nav inline (priority 101) so these win on mobile.
   */
  body.ic-mobile-ux .newkala-header-mobile {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-areas: "actions logo ham" !important;
    direction: ltr !important;
    align-items: center !important;
    column-gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .nk-header-part-item-mobile-right {
    grid-area: ham !important;
    justify-self: end !important;
    justify-content: flex-end !important;
  }

  body.ic-mobile-ux .nk-header-part-item-mobile-middle {
    grid-area: logo !important;
    justify-self: center !important;
    justify-content: center !important;
    /* Undo nav absolute-center tricks that collapse auto track to 0 */
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 140px !important;
    min-width: 72px !important;
    overflow: visible !important;
  }

  body.ic-mobile-ux .nk-logo-mobile,
  body.ic-mobile-ux .nk-logo-mobile a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
  }

  body.ic-mobile-ux .nk-logo-mobile img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: 30px !important;
    max-width: 118px !important;
    object-fit: contain !important;
  }

  body.ic-mobile-ux .nk-header-part-item-mobile-left {
    grid-area: actions !important;
    justify-self: start !important;
    justify-content: flex-start !important;
  }

  body.ic-mobile-ux .ic-mobile-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 8px 0;
  }

  body.ic-mobile-ux .ic-mobile-table-scroll table {
    min-width: 480px;
  }

  /* ---- Typography floor ---- */
  body.ic-mobile-ux {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  body.ic-mobile-ux h1,
  body.ic-mobile-ux .product_title,
  body.ic-mobile-ux .entry-title {
    font-size: clamp(1.15rem, 4.6vw, 1.45rem) !important;
    line-height: 1.4 !important;
    word-break: break-word;
  }

  body.ic-mobile-ux h2 {
    font-size: clamp(1.05rem, 4vw, 1.25rem) !important;
    line-height: 1.4 !important;
  }

  body.ic-mobile-ux h3,
  body.ic-mobile-ux .woocommerce-loop-product__title,
  body.ic-mobile-ux ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
  }

  body.ic-mobile-ux .price,
  body.ic-mobile-ux ul.products li.product .price,
  body.ic-mobile-ux .summary .price {
    font-size: 14.5px !important;
    line-height: 1.35 !important;
  }

  body.ic-mobile-ux .summary .price {
    font-size: clamp(1.15rem, 5vw, 1.55rem) !important;
  }

  /* ---- Touch targets ≥44px ---- */
  body.ic-mobile-ux a.button,
  body.ic-mobile-ux button.button,
  body.ic-mobile-ux .button,
  body.ic-mobile-ux .single_add_to_cart_button,
  body.ic-mobile-ux .checkout-button,
  body.ic-mobile-ux .woocommerce-Button,
  body.ic-mobile-ux input[type="submit"],
  body.ic-mobile-ux .add_to_cart_button {
    min-height: 44px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  body.ic-mobile-ux .quantity .qty,
  body.ic-mobile-ux input.qty {
    min-height: 44px !important;
    min-width: 48px !important;
    font-size: 16px !important; /* iOS zoom guard */
    text-align: center;
  }

  body.ic-mobile-ux .quantity .plus,
  body.ic-mobile-ux .quantity .minus,
  body.ic-mobile-ux .quantity button {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body.ic-mobile-ux input[type="text"],
  body.ic-mobile-ux input[type="email"],
  body.ic-mobile-ux input[type="tel"],
  body.ic-mobile-ux input[type="number"],
  body.ic-mobile-ux input[type="password"],
  body.ic-mobile-ux input[type="search"],
  body.ic-mobile-ux select,
  body.ic-mobile-ux textarea {
    font-size: 16px !important;
    min-height: 44px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ---- Archive / shop product grids: CSS Grid 2-col (NOT home swiper tracks) ---- */
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.tax-product_cat ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.tax-product_tag ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.post-type-archive-product ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.woocommerce-shop ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.search-results ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux .main_content_taxonomy_archive ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    list-style: none !important;
  }

  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux.tax-product_cat ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux.tax-product_tag ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux.post-type-archive-product ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux.woocommerce-shop ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux.search-results ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux .main_content_taxonomy_archive ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product,
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) li.product.first,
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) li.product.last,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product.swiper-slide {
    float: none !important;
    clear: none !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product > a,
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) li.product > a,
  body.ic-mobile-ux .main_content_taxonomy_archive ul.products li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product img,
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) li.product img,
  body.ic-mobile-ux .main_content_taxonomy_archive ul.products li.product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .onsale {
    z-index: 2;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .button,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .add_to_cart_button,
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) li.product .add_to_cart_button {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    margin-top: 6px !important;
  }

  /* Archive toolbar: larger filter / sort hits */
  body.ic-mobile-ux .responsive_button_orderby_and_filter_product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 12px !important;
  }

  body.ic-mobile-ux .button_display_filter_product,
  body.ic-mobile-ux .responsive_button_orderby_and_filter_product > button,
  body.ic-mobile-ux .responsive_button_orderby_and_filter_product > a,
  body.ic-mobile-ux .responsive_button_orderby_and_filter_product > div,
  body.ic-mobile-ux .responsive_button_orderby_and_filter_product select {
    min-height: 44px !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  /* Mobile filter drawer: full-bleed, scrollable — complements ic-shop-ux desktop sticky */
  body.ic-mobile-ux .main_sidebar.sidebar_archive_product.show,
  body.ic-mobile-ux .main_sidebar.sidebar_archive_product.open,
  body.ic-mobile-ux .main_sidebar.sidebar_archive_product.active,
  body.ic-mobile-ux body.show_filter .main_sidebar.sidebar_archive_product,
  body.ic-mobile-ux .sidebar_archive_product.opened {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(92vw, 360px) !important;
    max-width: 92vw !important;
    height: 100% !important;
    max-height: 100dvh !important;
    z-index: 100060 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff !important;
    box-shadow: -8px 0 28px rgba(20, 16, 40, 0.18);
    padding: 16px 14px 80px !important;
    box-sizing: border-box !important;
  }

  /* ---- Home / Elementor product sliders (full width, no left-clip) ---- */
  body.ic-mobile-ux .elementor-widget-newkala_slider_product,
  body.ic-mobile-ux .elementor-widget-newkala_slider_offers,
  body.ic-mobile-ux .elementor-widget-newkala_top_sales_products,
  body.ic-mobile-ux .elementor-widget-nk_recent_viewed_products,
  body.ic-mobile-ux .elementor-widget-newkala_slider_product .elementor-widget-container,
  body.ic-mobile-ux .elementor-widget-newkala_slider_offers .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .nk_product_slider_mobile,
  body.ic-mobile-ux .nk_product_slider_mobile_elementor,
  body.ic-mobile-ux .nk_main_product_slider_full_mobile,
  body.ic-mobile-ux .woocommerce.main_product.nk_product_slider_mobile {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .elementor-widget-image img {
    width: 100% !important;
    height: auto !important;
  }

  /* Section title + «مشاهده همه» safe padding */
  body.ic-mobile-ux .nk-archive-product-slider,
  body.ic-mobile-ux .elementor-widget-newkala_slider_product .title_slider,
  body.ic-mobile-ux .elementor-widget-newkala_slider_product a.nk-archive-product-slider,
  body.ic-mobile-ux .main_product .title_product_slider,
  body.ic-mobile-ux .nk_product_slider_mobile .head_product_slider,
  body.ic-mobile-ux .nk_product_slider_mobile .header_slider {
    padding-left: 4px !important;
    padding-right: 4px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  body.ic-mobile-ux .nk-archive-product-slider,
  body.ic-mobile-ux a.nk-archive-product-slider {
    white-space: nowrap;
    overflow: visible !important;
  }

  /* Banner / owl / category sliders: contain without fighting Swiper slide math */
  body.ic-mobile-ux .owl-carousel,
  body.ic-mobile-ux .swiper,
  body.ic-mobile-ux .swiper-container,
  body.ic-mobile-ux .cat-slider-swiper-mobile,
  body.ic-mobile-ux .swiper-container.cat-slider-swiper-mobile,
  body.ic-mobile-ux .cat_slider_product {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .owl-stage-outer {
    overflow: hidden !important;
  }

  /* Track may be wider; parent clips. Do NOT cap slide max-width (breaks Swiper). */
  body.ic-mobile-ux .swiper-wrapper {
    max-width: none;
  }

  body.ic-mobile-ux .nk-content-product-slider.swiper-slide,
  body.ic-mobile-ux .nk_product_slider_mobile .swiper-slide {
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  body.ic-mobile-ux .nk-content-product-slider.swiper-slide img,
  body.ic-mobile-ux .nk_product_slider_mobile .swiper-slide img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ---- Special offer red band ---- */
  body.ic-mobile-ux .elementor-widget-newkala_slider_offers,
  body.ic-mobile-ux .nk_main_product_slider_full_mobile.nk_product_slider_mobile {
    overflow: hidden !important;
  }

  body.ic-mobile-ux .nk_main_product_slider_full_mobile .cat-slider-swiper-mobile,
  body.ic-mobile-ux .nk_slider_offers .cat-slider-swiper-mobile,
  body.ic-mobile-ux .elementor-widget-newkala_slider_offers .swiper-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  /* Offer band: pad track so product card isn't flush-clipped on the start edge */
  body.ic-mobile-ux .nk_main_product_slider_full_mobile .cat-slider-swiper-mobile,
  body.ic-mobile-ux .elementor-widget-newkala_slider_offers .cat-slider-swiper-mobile {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .nk_main_product_slider_full_mobile .nk_icon_full_slider_mobile.swiper-slide {
    box-sizing: border-box !important;
    padding: 12px 10px !important;
  }

  body.ic-mobile-ux .nk_main_product_slider_full_mobile .swiper-slide.product,
  body.ic-mobile-ux .nk_main_product_slider_full_mobile .nk_in_special_offer_slider {
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 12px;
  }

  /* Countdown: force horizontal chips (theme sometimes stacks as bullets) */
  body.ic-mobile-ux .count-slider-offers,
  body.ic-mobile-ux ul.countdown_special_offer_product,
  body.ic-mobile-ux .countdown_special_offer_product {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux .count-slider-offers > li,
  body.ic-mobile-ux .countdown_special_offer_product > li {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    list-style: none !important;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
  }

  body.ic-mobile-ux .count-slider-offers > li::marker,
  body.ic-mobile-ux .countdown_special_offer_product > li::marker {
    content: none !important;
    display: none !important;
  }

  body.ic-mobile-ux .count-slider-offers .num,
  body.ic-mobile-ux .countdown_special_offer_product .num {
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }

  body.ic-mobile-ux .nk_main_product_slider_full_mobile .swiper-slide.product,
  body.ic-mobile-ux .nk_main_product_slider_full_mobile .nk_in_special_offer_slider {
    padding-bottom: 8px !important;
  }

  body.ic-mobile-ux .nk_main_product_slider_full_mobile .count-slider-offers,
  body.ic-mobile-ux .nk_main_product_slider_full_mobile .countdown_special_offer_product {
    position: relative !important;
    height: auto !important;
    min-height: 28px !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Bottom padding so Goftino does not cover last product + buttons */
  body.ic-mobile-ux .elementor-widget-newkala_slider_product,
  body.ic-mobile-ux .elementor-widget-newkala_top_sales_products,
  body.ic-mobile-ux .white-background {
    padding-bottom: 8px;
  }

  body.ic-mobile-ux #content,
  body.ic-mobile-ux .site-content,
  body.ic-mobile-ux .elementor {
    padding-bottom: 88px;
  }

  /* Archive list→grid: flatten horizontal card innards */
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .nk_content_product,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .product-inner,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .product-wrapper,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .main_product_item,
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) li.product > div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .images,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .product-images,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .thumb,
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .thumbnail {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  body.ic-mobile-ux footer.c-footer .c-footer__address,
  body.ic-mobile-ux footer.c-footer .c-footer__links,
  body.ic-mobile-ux #newkala-bottom-footer .c-footer__address {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* ---- Single product ---- */
  body.ic-mobile-ux.single-product div.product,
  body.ic-mobile-ux.single-product .product {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* ElevateZoom / similar creates a 500px zoomWindowContainer → page scrollWidth */
  body.ic-mobile-ux.single-product .zoomWindowContainer,
  body.ic-mobile-ux.single-product .zoomContainer,
  body.ic-mobile-ux.single-product .zoomWindow,
  body.ic-mobile-ux.single-product .zoomLens {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.ic-mobile-ux.single-product .cat_slider_product,
  body.ic-mobile-ux.single-product .cat-slider-swiper-mobile,
  body.ic-mobile-ux.single-product .swiper-container-tab-menu {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux.single-product .woocommerce-product-gallery,
  body.ic-mobile-ux.single-product .custom_images_by_onliner,
  body.ic-mobile-ux.single-product .images,
  body.ic-mobile-ux.single-product .summary.entry-summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux.single-product .woocommerce-product-gallery {
    display: block !important;
  }

  body.ic-mobile-ux.single-product .woocommerce-product-gallery__image img,
  body.ic-mobile-ux.single-product .woocommerce-product-gallery img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body.ic-mobile-ux.single-product form.cart {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
  }

  body.ic-mobile-ux.single-product .single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: min(100%, 200px) !important;
  }

  body.ic-mobile-ux.single-product .woocommerce-tabs,
  body.ic-mobile-ux.single-product .wc-tabs-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
  }

  body.ic-mobile-ux.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 0 0 8px !important;
  }

  body.ic-mobile-ux.single-product .woocommerce-tabs ul.tabs li a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap;
    padding: 10px 14px !important;
  }

  body.ic-mobile-ux.single-product table.shop_attributes,
  body.ic-mobile-ux.single-product .woocommerce-product-attributes {
    width: 100% !important;
    display: block;
    overflow-x: auto;
  }

  /* Sticky ATC bar clearance (common NewKala pattern) */
  body.ic-mobile-ux.single-product .nk_sticky_add_to_cart,
  body.ic-mobile-ux.single-product .sticky_add_to_cart {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 100040 !important;
  }

  /* ---- Cart / checkout ---- */
  body.ic-mobile-ux.woocommerce-cart .woocommerce,
  body.ic-mobile-ux.woocommerce-checkout .woocommerce,
  body.ic-mobile-ux.woocommerce-cart .cart-collaterals,
  body.ic-mobile-ux.woocommerce-checkout #customer_details,
  body.ic-mobile-ux.woocommerce-checkout #order_review,
  body.ic-mobile-ux.woocommerce-cart .woocommerce-cart-form,
  body.ic-mobile-ux.woocommerce-cart .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  body.ic-mobile-ux.woocommerce-cart table.shop_table,
  body.ic-mobile-ux.woocommerce-checkout table.shop_table,
  body.ic-mobile-ux.woocommerce-cart .shop_table_responsive,
  body.ic-mobile-ux.woocommerce-cart table.cart {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux.woocommerce-cart table.shop_table th,
  body.ic-mobile-ux.woocommerce-cart table.shop_table td {
    word-break: break-word;
  }

  body.ic-mobile-ux.woocommerce-cart .cart_totals,
  body.ic-mobile-ux.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    margin-top: 16px !important;
  }

  body.ic-mobile-ux.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
  body.ic-mobile-ux.woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 15px !important;
  }

  body.ic-mobile-ux.woocommerce-cart .product-remove a,
  body.ic-mobile-ux.woocommerce-cart .product-thumbnail img {
    min-width: 44px;
    min-height: 44px;
  }

  body.ic-mobile-ux.woocommerce-checkout .form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 0 12px !important;
  }

  body.ic-mobile-ux.woocommerce-checkout .form-row-first,
  body.ic-mobile-ux.woocommerce-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
  }

  /* ---- Footer (light touch — ic-footer-fixes owns trust/Goftino) ---- */
  body.ic-mobile-ux footer.c-footer,
  body.ic-mobile-ux #newkala-bottom-footer {
    max-width: 100% !important;
    overflow-x: hidden;
  }

  body.ic-mobile-ux footer.c-footer .c-footer__main,
  body.ic-mobile-ux footer.c-footer .row,
  body.ic-mobile-ux #newkala-bottom-footer .c-footer__description-content {
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }

  body.ic-mobile-ux .ic-nl-cta__row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body.ic-mobile-ux .ic-nl-cta__row .ic-nl-email,
  body.ic-mobile-ux .ic-nl-cta__row .ic-nl-submit {
    min-height: 44px !important;
    flex: 1 1 100% !important;
  }

  body.ic-mobile-ux .ic-trust-nav {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* ---- Misc NewKala pain ---- */
  body.ic-mobile-ux .row::before,
  body.ic-mobile-ux .row::after {
    display: table;
    clear: both;
  }

  body.ic-mobile-ux [class*="col-md-"],
  body.ic-mobile-ux [class*="col-lg-"],
  body.ic-mobile-ux [class*="col-sm-"] {
    max-width: 100%;
  }

  body.ic-mobile-ux .breadcrumb,
  body.ic-mobile-ux .woocommerce-breadcrumb {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    word-break: break-word;
    padding: 6px 0 !important;
  }

  /* Avoid fixed bars covering content */
  body.ic-mobile-ux .nk_bottom_navigation,
  body.ic-mobile-ux .bottom_nav_mobile {
    z-index: 100030;
  }
}

/* ========== ≤480: small phones (SE / Android compact) ========== */
@media only screen and (max-width: 480px) {
  body.ic-mobile-ux .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.ic-mobile-ux .elementor-container,
  body.ic-mobile-ux .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) {
    gap: 8px !important;
    grid-template-columns: 1fr 1fr !important;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product {
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px !important;
    border-radius: 10px;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .woocommerce-loop-product__title {
    font-size: 12.5px !important;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .price {
    font-size: 12.5px !important;
  }

  body.ic-mobile-ux .button_display_filter_product,
  body.ic-mobile-ux .responsive_button_orderby_and_filter_product > * {
    font-size: 12px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.ic-mobile-ux.single-product .summary .price {
    font-size: 1.2rem !important;
  }

  body.ic-mobile-ux .elementor-widget-newkala_slider_offers .swiper-slide,
  body.ic-mobile-ux .nk-content-product-slider.swiper-slide {
    max-width: min(168px, 46vw) !important;
  }
}

/* ========== 414–430 large phones: slightly airier ========== */
@media only screen and (min-width: 414px) and (max-width: 768px) {
  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper),
  body.ic-mobile-ux.archive ul.products:not(.swiper-wrapper) {
    gap: 12px !important;
    grid-template-columns: 1fr 1fr !important;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
  }

  body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   IranCoral Mobile UX 1.1.8
   1) Phone product cards: price + add-to-cart stay INSIDE the card, smaller price.
   2) Softer 3D cards, shadows and micro-detail on both phone and desktop.
   3) Respects prefers-reduced-motion.
   ========================================================================== */

/* ---- 1) Product card fit (phones) ---- */
@media only screen and (max-width: 768px) {
  body.ic-mobile-ux ul.products li.product,
  body.ic-mobile-ux li.product.type-product {
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-bottom: 12px !important;
  }

  body.ic-mobile-ux li.product .newkala_container_custom_price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 6px 0 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.ic-mobile-ux li.product .newkala_container_custom_price .price {
    flex: 1 1 auto !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
  }

  body.ic-mobile-ux li.product .newkala_container_custom_price .price ins,
  body.ic-mobile-ux li.product .newkala_container_custom_price .price ins .woocommerce-Price-amount {
    font-size: 12.5px !important;
    font-weight: 700 !important;
  }

  body.ic-mobile-ux li.product .newkala_container_custom_price .price del,
  body.ic-mobile-ux li.product .newkala_container_custom_price .price del .woocommerce-Price-amount {
    font-size: 10.5px !important;
    opacity: 0.65 !important;
    white-space: nowrap !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: auto !important;
    max-width: 50% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart a.add_to_cart_button {
    display: none !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart button.newkala_add_to_cart_button_loop {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart .add_button {
    font-size: 19px !important;
    line-height: 1 !important;
  }
}

/* ---- 2) Card 3D / shadow detail (phone + desktop) ---- */
body.ic-mobile-ux li.product.type-product {
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow:
    0 1px 2px rgba(20, 16, 40, 0.05),
    0 8px 20px -10px rgba(20, 16, 40, 0.18) !important;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  perspective: 900px !important;
  transform-style: preserve-3d !important;
  backface-visibility: hidden;
}

body.ic-mobile-ux li.product.type-product .woocommerce-loop-product__link {
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
  display: block !important;
}

body.ic-mobile-ux li.product.type-product img {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.4s ease !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.ic-mobile-ux li.product.type-product:hover {
    transform: translateY(-6px) scale(1.012) !important;
    box-shadow:
      0 4px 10px rgba(20, 16, 40, 0.08),
      0 26px 46px -20px rgba(20, 16, 40, 0.3) !important;
  }

  body.ic-mobile-ux li.product.type-product:hover img {
    transform: scale(1.06) translateZ(24px) !important;
  }

  body.ic-mobile-ux li.product.type-product .woocommerce-loop-product__title {
    transition: color 0.25s ease !important;
  }

  body.ic-mobile-ux li.product.type-product:hover .woocommerce-loop-product__title {
    color: #6b4ce6 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ic-mobile-ux li.product.type-product,
  body.ic-mobile-ux li.product.type-product img,
  body.ic-mobile-ux li.product.type-product:hover,
  body.ic-mobile-ux li.product.type-product:hover img {
    transition: none !important;
    transform: none !important;
  }
}

/* Section headers get a small accent bar + softer rhythm (both sizes) */
body.ic-mobile-ux .head_product_slider h2,
body.ic-mobile-ux .header_slider h2,
body.ic-mobile-ux .title_product_slider h2 {
  position: relative !important;
  padding-right: 12px !important;
}

body.ic-mobile-ux .head_product_slider h2::before,
body.ic-mobile-ux .header_slider h2::before,
body.ic-mobile-ux .title_product_slider h2::before {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 1.05em !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #6b4ce6, #b98bff) !important;
}

/* Header gets a soft shadow so it separates from content on scroll */
body.ic-mobile-ux .container.main_header {
  box-shadow: 0 2px 10px -6px rgba(20, 16, 40, 0.25);
}

@media only screen and (max-width: 768px) {
  body.ic-mobile-ux .container.main_header {
    box-shadow: 0 2px 12px -6px rgba(20, 16, 40, 0.3) !important;
  }
}

/* ==========================================================================
   IranCoral Mobile UX 1.1.8
   Phone cards: price on its own top row (bigger + bolder), full-width
   "خرید" button on the bottom row instead of the "+" square.
   ========================================================================== */
@media only screen and (max-width: 768px) {
  body.ic-mobile-ux li.product .newkala_container_custom_price {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  body.ic-mobile-ux li.product .newkala_container_custom_price .price {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
  }

  body.ic-mobile-ux li.product .newkala_container_custom_price .price ins,
  body.ic-mobile-ux li.product .newkala_container_custom_price .price ins .woocommerce-Price-amount,
  body.ic-mobile-ux li.product .newkala_container_custom_price .price > .woocommerce-Price-amount {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    color: #1b1b23 !important;
  }

  body.ic-mobile-ux li.product .newkala_container_custom_price .price del,
  body.ic-mobile-ux li.product .newkala_container_custom_price .price del .woocommerce-Price-amount {
    font-size: 11px !important;
    font-weight: 500 !important;
    opacity: 0.6 !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 6px !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart button.newkala_add_to_cart_button_loop {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 10px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart button.newkala_add_to_cart_button_loop .add_button {
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
  }

  body.ic-mobile-ux li.product .Quickview_add_to_cart button.newkala_add_to_cart_button_loop .add_button::after {
    content: "خرید" !important;
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
  }
}
/* ==========================================================================
   IranCoral Mobile UX 1.1.8
   SEO/typography: bold titles, bold price (not currency); animated خرید button;
   3D bounded flash cards with shadows; Goftino chat icon lower & sticky.
   ========================================================================== */

/* Bold product titles everywhere */
body.ic-mobile-ux li.product .woocommerce-loop-product__title,
body.ic-mobile-ux li.product h2.woocommerce-loop-product__title,
body.ic-mobile-ux .product_title {
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* Price bold, currency (تومان) not bold */
body.ic-mobile-ux .price,
body.ic-mobile-ux .price ins,
body.ic-mobile-ux .price .woocommerce-Price-amount {
  font-weight: 800 !important;
}
body.ic-mobile-ux .price .woocommerce-Price-currencySymbol,
body.ic-mobile-ux .price del,
body.ic-mobile-ux .price del .woocommerce-Price-amount {
  font-weight: 400 !important;
  opacity: 0.6 !important;
}

/* 3D bounded flash cards with shadows, per-card */
body.ic-mobile-ux .flash-sale-card,
body.ic-mobile-ux .ic-flash-card,
body.ic-mobile-ux .product-card-3d {
  perspective: 1000px !important;
  transform-style: preserve-3d !important;
}
body.ic-mobile-ux li.product.type-product,
body.ic-mobile-ux .flash-sale-card,
body.ic-mobile-ux .ic-flash-card {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 4px rgba(20, 16, 40, 0.06),
    0 10px 24px -12px rgba(20, 16, 40, 0.22) !important;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.3s ease !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (hover: hover) and (pointer: fine) {
  body.ic-mobile-ux li.product.type-product:hover,
  body.ic-mobile-ux .flash-sale-card:hover,
  body.ic-mobile-ux .ic-flash-card:hover {
    transform: translateY(-5px) rotateX(2deg) !important;
    box-shadow: 0 6px 14px rgba(20, 16, 40, 0.1),
      0 28px 48px -20px rgba(20, 16, 40, 0.32) !important;
  }
}

/* Goftino chat icon: lower & sticky */
#goftino_w,
.goftino-widget,
iframe#goftino_w,
div[id*="goftino"] {
  position: fixed !important;
  bottom: 14px !important;
  z-index: 2147483000 !important;
  transition: none !important;
}
@media (max-width: 768px) {
  #goftino_w,
  .goftino-widget,
  iframe#goftino_w,
  div[id*="goftino"] {
    bottom: 12px !important;
    right: 12px !important;
    left: auto !important;
  }
}
/* Force bold titles (override theme id-specificity rules) */
body.ic-mobile-ux h2.woocommerce-loop-product__title,
body.ic-mobile-ux .woocommerce-loop-product__title,
body.ic-mobile-ux li.product h2,
body.ic-mobile-ux li.product .woocommerce-loop-product__title {
  font-weight: 800 !important;
}
/* Override theme title weight with maximum specificity */
body.ic-mobile-ux .content-area#primary ul.products li .woocommerce-loop-product__title,
body.ic-mobile-ux .main_capisa_archive .content-area#primary ul.products li .woocommerce-loop-product__title,
body.ic-mobile-ux ul.products li.product h2.woocommerce-loop-product__title,
html body.ic-mobile-ux li.product.type-product h2.woocommerce-loop-product__title {
  font-weight: 800 !important;
}
/* ==========================================================================
   IranCoral Mobile UX 1.1.11
   Out-of-stock cards: show "نا موجود", frozen gray button.
   ========================================================================== */
body.ic-mobile-ux li.product.outofstock {
  position: relative !important;
  opacity: 0.85 !important;
}
body.ic-mobile-ux li.product.outofstock .before_content_product_catalog {
  position: relative !important;
}
/* نا موجود badge already exists as .archive_outofstock_text; make it prominent */
body.ic-mobile-ux li.product.outofstock .archive_outofstock_wrapper {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 5 !important;
}
body.ic-mobile-ux li.product.outofstock .archive_outofstock_text {
  background: rgba(120, 120, 130, 0.92) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}
/* Add a frozen gray "نا موجود" button at the bottom of out-of-stock cards */
body.ic-mobile-ux li.product.outofstock::after {
  content: "نا موجود" !important;
  display: block !important;
  width: calc(100% - 20px) !important;
  margin: 10px auto 12px !important;
  padding: 9px 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #8a8a95 !important;
  background: #e6e6ea !important;
  border: 1px solid #d0d0d6 !important;
  border-radius: 10px !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* Mobile only: hide the anchor '+', show full-width animated 'خرید' button */
@media only screen and (max-width: 768px) {
  body.ic-mobile-ux .Quickview_add_to_cart a.add_to_cart_button,
  body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart button.newkala_add_to_cart_button_loop .add_button {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart button.newkala_add_to_cart_button_loop {
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
      box-shadow 0.25s ease, background-color 0.25s ease !important;
    box-shadow: 0 4px 12px -4px rgba(107, 76, 230, 0.45) !important;
    background: linear-gradient(135deg, #6b4ce6 0%, #8e24aa 100%) !important;
    color: #fff !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart button.newkala_add_to_cart_button_loop:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px -6px rgba(107, 76, 230, 0.55) !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart button.newkala_add_to_cart_button_loop:active {
    transform: translateY(0) scale(0.97) !important;
  }
}

/* Desktop: original '+' button stays as the theme renders it */
@media only screen and (min-width: 769px) {
  /* Desktop 'نا موجود' when price/quickview is missing */
  body.ic-mobile-ux li.product.outofstock:not(:has(.newkala_container_custom_price))::before {
    content: "نا موجود" !important;
    display: block !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #8a8a95 !important;
    margin: 8px 0 !important;
  }
}
/* Highest-specificity mobile hide: beats ic-shop-ux inline-flex!important */
@media only screen and (max-width: 768px) {
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button,
  html body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .Quickview_add_to_cart a.add_to_cart_button,
  html body.ic-mobile-ux ul.products li.product .Quickview_add_to_cart a.add_to_cart_button.ajax_add_to_cart {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}
/* Variable products on mobile: if no <button> sibling, keep the <a> as 'خرید' */
@media only screen and (max-width: 768px) {
  html body.ic-mobile-ux .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #6b4ce6 0%, #8e24aa 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px -4px rgba(107, 76, 230, 0.45) !important;
    position: relative !important;
  }
  html body.ic-mobile-ux .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button .add_button {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  html body.ic-mobile-ux .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button .add_button::after {
    content: "خرید" !important;
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
  }
  html body.ic-mobile-ux .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button:active {
    transform: scale(0.97) !important;
  }
}
/* Highest-specificity restore for variable/expired-sale cards with no <button> */
@media only screen and (max-width: 768px) {
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button,
  html body.ic-mobile-ux.ic-shop-ux ul.products:not(.swiper-wrapper) li.product .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #6b4ce6 0%, #8e24aa 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px -4px rgba(107, 76, 230, 0.45) !important;
    position: relative !important;
  }
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button .add_button,
  html body.ic-mobile-ux ul.products li.product .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button .add_button {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button .add_button::after,
  html body.ic-mobile-ux ul.products li.product .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button .add_button::after {
    content: "خرید" !important;
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
  }
}
/* Quantity stepper on mobile product cards */
body.ic-mobile-ux .ic-qty-stepper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}
body.ic-mobile-ux .ic-qty-stepper .ic-qty-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 1px solid #d0d0d6 !important;
  border-radius: 8px !important;
  background: #f4f4f8 !important;
  color: #333 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}
body.ic-mobile-ux .ic-qty-stepper .ic-qty-btn:active {
  transform: scale(0.92) !important;
  background: #e6e6ea !important;
}
body.ic-mobile-ux .ic-qty-stepper .ic-qty-input {
  width: 46px !important;
  height: 34px !important;
  text-align: center !important;
  border: 1px solid #d0d0d6 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  color: #1b1b23 !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
body.ic-mobile-ux .ic-qty-stepper .ic-qty-input::-webkit-outer-spin-button,
body.ic-mobile-ux .ic-qty-stepper .ic-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
/* Variable-product anchor styled as خرید when it's the only button */
html body.ic-mobile-ux .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button {
  position: relative !important;
  overflow: hidden !important;
}
html body.ic-mobile-ux .Quickview_add_to_cart:not(:has(button.newkala_add_to_cart_button_loop)) a.add_to_cart_button .add_button::after {
  content: "خرید" !important;
}
/* ==========================================================================
   IranCoral Mobile UX 1.1.12
   Quantity stepper + add-to-cart button on mobile product cards.
   ========================================================================== */
@media only screen and (max-width: 768px) {
  /* Stepper container */
  body.ic-mobile-ux .ic-qty-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 8px 0 6px !important;
  }
  body.ic-mobile-ux .ic-qty-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border: 1px solid #d0d0d6 !important;
    border-radius: 8px !important;
    background: #f4f4f8 !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.15s ease, transform 0.1s ease !important;
  }
  body.ic-mobile-ux .ic-qty-btn:active {
    transform: scale(0.92) !important;
    background: #e6e6ea !important;
  }
  body.ic-mobile-ux .ic-qty-input {
    width: 46px !important;
    height: 34px !important;
    text-align: center !important;
    border: 1px solid #d0d0d6 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #1b1b23 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
  }
  body.ic-mobile-ux .ic-qty-input::-webkit-outer-spin-button,
  body.ic-mobile-ux .ic-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }
  /* Add-to-cart button */
  body.ic-mobile-ux .ic-addcart-btn {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #6b4ce6 0%, #8e24aa 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px -4px rgba(107, 76, 230, 0.45) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
  }
  body.ic-mobile-ux .ic-addcart-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px -4px rgba(107, 76, 230, 0.55) !important;
  }
  body.ic-mobile-ux .ic-addcart-btn:active {
    transform: scale(0.97) !important;
  }
  body.ic-mobile-ux .ic-addcart-btn.ic-added {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%) !important;
    box-shadow: 0 4px 12px -4px rgba(46, 125, 50, 0.45) !important;
  }
  body.ic-mobile-ux .ic-addcart-btn.ic-added::after {
    content: "✓ افزوده شد" !important;
  }
  body.ic-mobile-ux .ic-addcart-btn:not(.ic-added)::after {
    content: "افزودن به سبد خرید" !important;
  }
  /* out-of-stock: frozen gray button (already handled) */
}
/* Mobile: style the (now visible) anchor add-to-cart as the خرید button */
@media only screen and (max-width: 768px) {
  body.ic-mobile-ux .Quickview_add_to_cart a.add_to_cart_button,
  body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #6b4ce6 0%, #8e24aa 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px -4px rgba(107, 76, 230, 0.45) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart a.add_to_cart_button:hover,
  body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px -4px rgba(107, 76, 230, 0.55) !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart a.add_to_cart_button:active,
  body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart:active {
    transform: scale(0.97) !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart a.add_to_cart_button .add_button,
  body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart .add_button {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  body.ic-mobile-ux .Quickview_add_to_cart a.add_to_cart_button .add_button::after,
  body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart .add_button::after {
    content: "افزودن به سبد خرید" !important;
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
  }
}
/* Override: keep anchor add-to-cart VISIBLE as the خرید button (beats display:none) */
@media only screen and (max-width: 768px) {
  html body.ic-mobile-ux li.product .Quickview_add_to_cart a.add_to_cart_button,
  html body.ic-mobile-ux .Quickview_add_to_cart a.add_to_cart_button.ajax_add_to_cart,
  html body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #6b4ce6 0%, #8e24aa 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px -4px rgba(107, 76, 230, 0.45) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    position: relative !important;
  }
  html body.ic-mobile-ux li.product .Quickview_add_to_cart a.add_to_cart_button .add_button,
  html body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart .add_button {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  html body.ic-mobile-ux li.product .Quickview_add_to_cart a.add_to_cart_button .add_button::after,
  html body.ic-mobile-ux a.add_to_cart_button.ajax_add_to_cart .add_button::after {
    content: "افزودن به سبد خرید" !important;
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
  }
}
/* Final override: force anchor visible (beats #primary specificity) */
@media only screen and (max-width: 768px) {
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button,
  html body.ic-mobile-ux.ic-shop-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button,
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button.ajax_add_to_cart {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #6b4ce6 0%, #8e24aa 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px -4px rgba(107, 76, 230, 0.45) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    position: relative !important;
  }
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button .add_button,
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button.ajax_add_to_cart .add_button {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button .add_button::after,
  html body.ic-mobile-ux .content-area#primary ul.products li.product .Quickview_add_to_cart a.add_to_cart_button.ajax_add_to_cart .add_button::after {
    content: "افزودن به سبد خرید" !important;
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
  }
}