/* First-paint guard. Keep the whole variant block in the layout but hidden
   until Variant UX has classified/rebuilt the native controls. This eliminates
   the empty color-circle FOUC on a hard refresh, regardless of the exact raw
   Transformer markup. The animation is a fail-open safety net: if JavaScript
   fails completely, native variants become visible again after 2 seconds. */
@keyframes ivux-prepaint-fail-open {
  to { visibility: visible; }
}

.js-product-variants:not(.ivux-ready),
.product-variants:not(.ivux-ready) {
  visibility: hidden;
  animation: ivux-prepaint-fail-open 0s 2s forwards;
}

.js-product-variants.ivux-ready,
.product-variants.ivux-ready {
  visibility: visible !important;
  animation: none !important;
}

/* Pre-paint guard for raw color controls.
   Transformer renders an empty visual span/circle even when an attribute has
   no color code. Hide the raw visual sibling by default, then reveal it only
   after JS has classified that exact node as a real swatch or a text button.
   This prevents the empty-circle flash both on first paint and AJAX rerenders. */
.product-variants .input-container > input.input-color + label,
.js-product-variants .input-container > input.input-color + label,
.product-variants .input-container > input.input-color + span,
.js-product-variants .input-container > input.input-color + span,
.product-variants .input-container > input.input-color + .color,
.js-product-variants .input-container > input.input-color + .color {
  display: none !important;
  visibility: hidden !important;
}

.product-variants .input-container.ivux-visual-color-choice > input.input-color + .ivux-color-visual-node,
.js-product-variants .input-container.ivux-visual-color-choice > input.input-color + .ivux-color-visual-node {
  display: inline-block !important;
  visibility: visible !important;
}

.product-variants .input-container.ivux-text-color-choice > input.input-color + .ivux-color-button,
.js-product-variants .input-container.ivux-text-color-choice > input.input-color + .ivux-color-button {
  display: inline-flex !important;
  visibility: visible !important;
}

.product-variants.ivux-ready .product-variants-item.ivux-group-color {
  order: 0;
}

.product-variants.ivux-ready .product-variants-item.ivux-group-size {
  order: 1;
}

.product-variants.ivux-ready .ivux-prompt {
  color: #777;
  font-size: 0.86em;
  font-weight: 400;
}

.product-variants.ivux-ready .ivux-label-title {
  color: inherit;
}

.product-variants.ivux-ready .ivux-selected-value {
  font-weight: 600;
}

.product-variants.ivux-ready .ivux-group-pending .input-container,
.product-variants.ivux-ready .ivux-group-pending .input-container.item-selected,
.product-variants.ivux-ready .ivux-group-pending .input-container.ivux-native-default {
  border-color: transparent !important;
  box-shadow: none !important;
}

.product-variants.ivux-ready .ivux-group-pending input.input-radio:checked + .radio-label,
.product-variants.ivux-ready .ivux-group-pending .radio-label {
  border-color: #d7d7d7 !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: none !important;
}

.product-variants.ivux-ready .ivux-group-pending select[name^="group["] {
  outline: 2px dashed #d7d7d7;
  outline-offset: 2px;
}

.product-variants.ivux-ready .ivux-choice-unavailable {
  cursor: not-allowed !important;
}

/* Keep the unavailable container hoverable so color-name tooltips still work.
   Selection remains blocked by the capture-phase JavaScript guard and the
   disabled native input. Only the visual choice is dimmed, not the tooltip. */
.product-variants.ivux-ready .ivux-choice-unavailable > label,
.product-variants.ivux-ready .ivux-choice-unavailable > .color,
.product-variants.ivux-ready .ivux-choice-unavailable > .radio-label {
  opacity: 0.45;
}

.product-variants.ivux-ready .ivux-choice-unavailable .radio-label {
  position: relative;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-variants.ivux-ready .ivux-choice-unavailable input {
  cursor: not-allowed !important;
  pointer-events: none;
}

.product-variants.ivux-ready .ivux-group-color .ivux-color-kept-visible {
  cursor: pointer !important;
  opacity: 1 !important;
}

.product-variants.ivux-ready .ivux-group-color .ivux-color-kept-visible .color.product-unavaible::before {
  display: none !important;
}


/* Coded-color swatches: show the color name above the swatch on hover/focus.
   The tooltip is attached to the container so it also works for disabled /
   unavailable colors without making those choices selectable. */
.product-variants.ivux-ready .ivux-group-color.ivux-color-visual-mode .ivux-color-tooltip-host {
  position: relative;
  overflow: visible !important;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-visual-mode .ivux-color-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 40;
  display: block;
  max-width: 220px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-visual-mode .ivux-color-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #222;
  transform: translateX(-50%);
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-visual-mode .ivux-color-tooltip-host:hover > .ivux-color-tooltip,
.product-variants.ivux-ready .ivux-group-color.ivux-color-visual-mode .ivux-color-tooltip-host:focus-within > .ivux-color-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Color is selected only through swatches (coded colors) or text buttons
   (colors without a code). Keep the native select in the DOM for theme
   synchronization, but never expose a duplicate dropdown to the customer. */
/* Immediate rule: do not wait for JavaScript to add ivux-ready/group classes.
   color-dropdown is unique to the native color selector in Transformer. */
.product-variants .color-dropdown,
.js-product-variants .color-dropdown,
.product-variants .color-dropdown + .select2,
.js-product-variants .color-dropdown + .select2,
.product-variants .color-dropdown + .select2-container,
.js-product-variants .color-dropdown + .select2-container,
.product-variants.ivux-ready .ivux-group-color > .select2,
.product-variants.ivux-ready .ivux-group-color .select2-container {
  display: none !important;
}

/* If imported colors have no usable color/texture value, keep the native
   controls for PrestaShop synchronization but expose one clean text picker. */
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode > .color-dropdown,
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode > .select2,
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .color-dropdown + .select2,
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .select2-container {
  display: none !important;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .input-container {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  margin: 0 0 8px 8px;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
  vertical-align: middle;
  cursor: pointer;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode input[data-product-attribute] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .ivux-color-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 48px;
  height: 38px !important;
  padding: 6px 14px !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #222 !important;
  line-height: 24px !important;
  cursor: pointer;
  box-shadow: none !important;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .ivux-color-button::before,
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .ivux-color-button::after {
  display: none !important;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode input:checked + .ivux-color-button,
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .input-container.item-selected .ivux-color-button {
  border-color: #222 !important;
  background: #222 !important;
  color: #fff !important;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .ivux-choice-unavailable > .ivux-color-button {
  opacity: 0.45;
  cursor: not-allowed !important;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode .ivux-color-name {
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit;
  white-space: nowrap;
}

.product-variants.ivux-ready .ivux-group-error {
  border-radius: 6px;
  outline: 2px solid #d63638;
  outline-offset: 6px;
}

.product-variants.ivux-ready .ivux-group-error .control-label,
.product-variants.ivux-ready .ivux-group-error .ivux-prompt {
  color: #b42318;
}

.ivux-validation-message {
  display: none;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid #f2b8b5;
  border-radius: 6px;
  background: #fff2f1;
  color: #9f1c16;
  font-size: 13px;
  line-height: 1.8;
}

.ivux-validation-message.ivux-visible {
  display: block;
}

/* Product-level availability is not a validation error. When the complete
   combination matrix has zero purchasable rows, show a calm status message
   and remove the dead-end "choose an option" affordance. */
.ivux-validation-message.ivux-product-out-of-stock-message {
  border-color: #dedee2;
  background: #f7f7f8;
  color: #5f6065;
}

[data-button-action="add-to-cart"].ivux-product-out-of-stock-native {
  border-color: #d8d8dc !important;
  background: #e9e9eb !important;
  color: #77797f !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

[data-button-action="add-to-cart"].ivux-needs-selection-native {
  border-color: #d8d8dc !important;
  background: #f0f0f1 !important;
  color: #77797f !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.ivux-mobile-select-variant:disabled,
.ivux-mobile-select-variant[aria-disabled="true"] {
  border-color: #d8d8dc !important;
  background: #eeeeef !important;
  color: #77797f !important;
}

.product-variants.ivux-product-out-of-stock-state .ivux-prompt {
  display: none !important;
}

.product-add-to-cart [data-button-action="add-to-cart"].ivux-awaiting-explicit-choice,
[data-button-action="add-to-cart"].ivux-awaiting-explicit-choice {
  cursor: pointer !important;
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

/* Generic non-color variants (size, volume, capacity, storage, count, weight,
   length, etc.). Native selects stay in the DOM for PrestaShop/Transformer
   synchronization, while customers interact with consistent text buttons. */
.product-variants.ivux-ready .ivux-group-generic.ivux-generic-select-mode > select[data-product-attribute],
.product-variants.ivux-ready .ivux-group-generic.ivux-generic-select-mode > .select2,
.product-variants.ivux-ready .ivux-group-generic.ivux-generic-select-mode > .select2-container,
.product-variants.ivux-ready .ivux-group-generic.ivux-generic-select-mode select[data-product-attribute] + .select2,
.product-variants.ivux-ready .ivux-group-generic.ivux-generic-select-mode select[data-product-attribute] + .select2-container {
  display: none !important;
}

.product-variants.ivux-ready .ivux-generic-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}

.product-variants.ivux-ready .ivux-generic-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font: inherit;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.product-variants.ivux-ready .ivux-generic-option:hover:not(:disabled),
.product-variants.ivux-ready .ivux-generic-option:focus-visible:not(:disabled) {
  border-color: #777;
}

.product-variants.ivux-ready .ivux-generic-option.ivux-selected {
  border-color: #222;
  background: #222;
  color: #fff;
}

/* A native default is only a display context until the customer explicitly
   chooses the required attribute. Keep it visually neutral while pending. */
.product-variants.ivux-ready .ivux-group-pending .ivux-generic-option.ivux-selected {
  border-color: #d7d7d7;
  background: #fff;
  color: #222;
}

.product-variants.ivux-ready .ivux-generic-option.ivux-choice-unavailable,
.product-variants.ivux-ready .ivux-generic-option:disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* -------------------------------------------------------------------------
   IranKet product-page responsive repair layer

   Transformer renders the vertical thumbnail rail at a fixed 545px height.
   That fixed rail stretches the full product row on desktop and pushes the
   title, price and purchase action below the fold on mobile/tablet. These
   overrides are deliberately scoped to body#product so catalog cards,
   quick-view modals and back-office screens remain untouched. */

body#product .product_name {
  direction: rtl;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body#product .product_name .ivux-ltr-run {
  display: inline;
  direction: ltr;
  unicode-bidi: isolate;
}

body#product .images-container-1 {
  align-items: flex-start;
}

/* A tapped unavailable swatch may reveal its name without becoming
   selectable. This is the touch equivalent of the desktop hover tooltip. */
.product-variants.ivux-ready .ivux-group-color.ivux-color-visual-mode
  .ivux-color-tooltip-host.ivux-tooltip-open > .ivux-color-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.ivux-mobile-purchase-bar {
  display: none;
}

@media (min-width: 992px) and (max-width: 1199px) {
  body#product .images-container,
  body#product .images-container-1,
  body#product .pro_gallery_top_container,
  body#product .product_left_content {
    height: auto !important;
  }

  body#product .pro_gallery_thumbs_container,
  body#product .pro_gallery_thumbs {
    height: 340px !important;
    max-height: 340px !important;
  }
}

@media (min-width: 1200px) {
  body#product .images-container,
  body#product .images-container-1,
  body#product .pro_gallery_top_container,
  body#product .product_left_content {
    height: auto !important;
  }

  body#product .pro_gallery_thumbs_container,
  body#product .pro_gallery_thumbs {
    height: 424px !important;
    max-height: 424px !important;
  }
}

@media (max-width: 991px) {
  body#product .product_page_container {
    align-items: flex-start;
  }

  body#product .images-container,
  body#product .images-container-1,
  body#product .pro_gallery_top_container,
  body#product .pro_gallery_top_inner,
  body#product .product_left_content {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body#product .images-container-1 {
    display: block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body#product .pro_gallery_thumbs_container {
    display: none !important;
  }

  body#product .pro_gallery_top_container {
    right: auto !important;
    left: auto !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#product .pro_gallery_top,
  body#product .pro_gallery_top .swiper-wrapper,
  body#product .pro_gallery_top .swiper-slide {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body#product .pro_gallery_top .pro_gallery_item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    margin: 0 auto;
    object-fit: contain;
  }

  body#product .product_left_column,
  body#product .product_middle_column,
  body#product .product_right_column {
    height: auto !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  body#product .product_left_column {
    flex: 0 0 52% !important;
    max-width: 52% !important;
  }

  body#product .product_middle_column {
    flex: 0 0 48% !important;
    max-width: 48% !important;
  }

  body#product .product_right_column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  body#product .pro_gallery_top .pro_gallery_item {
    max-height: 390px !important;
  }
}

@media (max-width: 767px) {
  body#product.ivux-product-page-ready {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  body#product #mobile_bar_top {
    justify-content: space-between;
    min-width: 0;
  }

  body#product #mobile_bar_top .mobile_logo {
    flex: 0 1 clamp(112px, 38vw, 145px) !important;
    width: clamp(112px, 38vw, 145px) !important;
    max-width: clamp(112px, 38vw, 145px) !important;
    min-width: 0 !important;
    margin: 6px 0 !important;
  }

  body#product #mobile_bar_top .mobile_logo img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  body#product #mobile_bar_top .mobile_bar_item {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 44px !important;
  }

  body#product #breadcrumb_wrapper {
    padding: 7px 0 !important;
  }

  body#product #breadcrumb_wrapper .breadcrumb_nav ul {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
  }

  body#product #breadcrumb_wrapper .breadcrumb_nav li {
    display: none !important;
  }

  body#product #breadcrumb_wrapper .breadcrumb_nav li[itemprop="itemListElement"]:nth-last-child(3) {
    display: inline-flex !important;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body#product #breadcrumb_wrapper .breadcrumb_nav li[itemprop="itemListElement"]:nth-last-child(3)::before {
    content: "‹";
    flex: 0 0 auto;
    margin-left: 7px;
    font-size: 21px;
    line-height: 1;
  }

  body#product #breadcrumb_wrapper .breadcrumb_nav li[itemprop="itemListElement"]:nth-last-child(3) a,
  body#product #breadcrumb_wrapper .breadcrumb_nav li[itemprop="itemListElement"]:nth-last-child(3) span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body#product .product_left_column,
  body#product .product_middle_column,
  body#product .product_right_column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  body#product .product_left_column {
    margin-bottom: 10px !important;
  }

  body#product .pro_gallery_top .pro_gallery_item {
    max-height: 330px !important;
  }

  body#product .product_name {
    margin-top: 8px;
    font-size: clamp(17px, 5vw, 20px) !important;
    line-height: 1.65 !important;
    text-align: right !important;
  }

  body#product .product-information {
    padding-bottom: 8px;
  }

  /* The sticky purchase bar becomes the single mobile purchase control.
     Keep variant selectors in-page, but remove Transformer\'s duplicate native
     qty/add/buy-now controls so customers have one consistent cart action. */
  body#product.ivux-product-page-ready .product_page_container .product-add-to-cart .qty,
  body#product.ivux-product-page-ready .product_page_container .product-add-to-cart .add,
  body#product.ivux-product-page-ready .product_page_container .product-add-to-cart .add_buy_now {
    display: none !important;
  }

  .ivux-mobile-purchase-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10020;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(178px, 1.12fr);
    grid-template-areas:
      "status status"
      "info action";
    column-gap: 12px;
    row-gap: 7px;
    align-items: center;
    min-height: 94px;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e0e0e2;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.09);
    direction: ltr;
  }

  .ivux-mobile-purchase-bar[hidden] {
    display: none !important;
  }

  .ivux-mobile-cart-toast {
    position: absolute;
    right: 12px;
    bottom: calc(100% + 8px);
    left: 12px;
    z-index: 1;
    display: block;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9px;
    background: rgba(28, 28, 28, 0.96);
    color: #fff;
    font-size: 13px;
    line-height: 1.65;
    text-align: right;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
    pointer-events: none;
  }

  .ivux-mobile-cart-toast:empty {
    display: none;
  }

  .ivux-mobile-cart-toast.ivux-mobile-cart-toast-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .ivux-mobile-cart-toast a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .ivux-mobile-purchase-status {
    grid-area: status;
    justify-self: end;
    min-width: 0;
    max-width: 78%;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0f0f1;
    color: #62666d;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: right;
    direction: rtl;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ivux-mobile-purchase-status[hidden] {
    display: none !important;
  }

  .ivux-mobile-purchase-status-available::before,
  .ivux-mobile-purchase-status-added::before {
    content: "✓";
    display: inline-block;
    margin-left: 4px;
    color: #00a049;
    font-weight: 900;
  }

  .ivux-mobile-purchase-status-unavailable,
  .ivux-mobile-purchase-status-error {
    color: #d32f45;
    background: #fff1f3;
  }

  .ivux-mobile-purchase-status-pending {
    color: #62666d;
    background: #f0f0f1;
  }

  .ivux-mobile-purchase-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    justify-content: center;
    direction: rtl;
  }

  .ivux-mobile-price-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
  }

  .ivux-mobile-price {
    display: block;
    min-width: 0;
    color: #23254e;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ivux-mobile-price-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 6px;
    width: 100%;
    min-height: 16px;
    direction: rtl;
  }

  .ivux-mobile-regular-price {
    color: #a1a3a8;
    font-size: 10px;
    line-height: 1.4;
    text-decoration: line-through;
    white-space: nowrap;
  }

  .ivux-mobile-regular-price:empty,
  .ivux-mobile-discount:empty {
    display: none;
  }

  .ivux-mobile-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ef4056;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
  }

  .ivux-mobile-purchase-action {
    grid-area: action;
    min-width: 0;
    direction: rtl;
  }

  .ivux-mobile-add-to-cart,
  .ivux-mobile-cart-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 48px;
    padding: 9px 12px;
    border: 1px solid #ef4056;
    border-radius: 8px;
    background: #ef4056;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
  }

  .ivux-mobile-add-to-cart:active,
  .ivux-mobile-cart-primary-link:active {
    transform: translateY(1px);
  }

  .ivux-mobile-add-to-cart:disabled,
  .ivux-mobile-add-to-cart[aria-disabled="true"] {
    border-color: #c3c3c5;
    background: #c3c3c5;
    color: #fff;
    cursor: not-allowed;
  }

  .ivux-mobile-select-variant {
    border-color: #ef4056;
    background: #ef4056;
  }

  .ivux-mobile-out-of-stock {
    border-color: #d9d9dc;
    background: #e8e8ea;
    color: #76767b;
  }

  .ivux-mobile-retry {
    border-color: #ef4056;
    background: #fff;
    color: #ef4056;
  }

  .ivux-mobile-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ivux-mobile-spin 700ms linear infinite;
  }

  @keyframes ivux-mobile-spin {
    to { transform: rotate(360deg); }
  }

  .ivux-mobile-stepper-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    width: 100%;
  }

  .ivux-mobile-stepper {
    display: grid;
    grid-template-columns: 48px minmax(38px, 1fr) 48px;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    direction: ltr;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .ivux-mobile-stepper-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #ef4056;
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
  }

  .ivux-mobile-stepper-button:disabled {
    color: #c3c3c5;
    background: #f7f7f8;
    cursor: wait;
  }

  .ivux-mobile-stepper-minus {
    border-right: 1px solid #f0f0f1;
  }

  .ivux-mobile-stepper-plus {
    border-left: 1px solid #f0f0f1;
  }

  .ivux-mobile-stepper-remove {
    color: #ef4056;
  }

  .ivux-mobile-trash-icon {
    display: block;
    width: 19px;
    height: 19px;
  }

  .ivux-mobile-stepper-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    color: #23254e;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  .ivux-mobile-stepper-pending .ivux-mobile-stepper-count {
    opacity: 0.62;
  }

  .ivux-mobile-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0;
    color: #62666d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
  }

  .ivux-mobile-purchase-helper,
  .ivux-mobile-purchase-error {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
  }

  .ivux-mobile-purchase-helper {
    color: #777;
  }

  .ivux-mobile-purchase-error {
    color: #d32f45;
  }

  @media (max-width: 360px) {
    .ivux-mobile-purchase-bar {
      grid-template-columns: minmax(0, 0.78fr) minmax(160px, 1.22fr);
      column-gap: 8px;
      padding-right: 9px;
      padding-left: 9px;
    }

    .ivux-mobile-purchase-status {
      max-width: 86%;
      font-size: 9px;
    }

    .ivux-mobile-price {
      font-size: 13px;
    }

    .ivux-mobile-regular-price,
    .ivux-mobile-discount {
      font-size: 9px;
    }

    .ivux-mobile-add-to-cart {
      padding-right: 7px;
      padding-left: 7px;
      font-size: 11px;
    }
  }

  .product-variants.ivux-ready .ivux-group-color.ivux-color-visual-mode .ivux-color-tooltip {
    max-width: min(180px, 70vw);
  }
}

/* IranKet Variant UX 1.8.0 — SHEIN-like simple mobile purchase bar */
@media (max-width: 1023px) {
  .ivux-mobile-purchase-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10020;
    display: flex !important;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
    direction: ltr;
  }

  .ivux-mobile-purchase-bar[hidden] { display: none !important; }

  .ivux-mobile-purchase-action {
    flex: 1 1 auto;
    min-width: 0;
    direction: rtl;
  }

  .ivux-mobile-add-to-cart,
  .ivux-mobile-cart-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid #000;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
  }

  .ivux-mobile-add-to-cart:disabled,
  .ivux-mobile-add-to-cart[aria-disabled="true"] {
    border-color: #c9c9c9;
    background: #c9c9c9;
    color: #fff;
  }

  .ivux-mobile-select-variant {
    border-color: #000;
    background: #000;
  }

  .ivux-mobile-out-of-stock {
    border-color: #d8d8d8;
    background: #e9e9e9;
    color: #777;
  }

  .ivux-mobile-retry {
    border-color: #000;
    background: #fff;
    color: #000;
  }

  .ivux-mobile-wishlist {
    flex: 0 0 58px;
    width: 58px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #b8b8b8;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
  }

  .ivux-mobile-wishlist > span {
    display: block;
    font-size: 36px;
    line-height: 1;
    transform: translateY(-1px);
  }

  .ivux-mobile-wishlist-active { color: #111; }

  .ivux-mobile-cart-toast {
    position: absolute;
    right: 12px;
    bottom: calc(100% + 8px);
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 48px;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 14px;
    border: 1px solid #d9efd9;
    border-radius: 10px;
    background: #effbef;
    color: #1c4f27;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    box-shadow: 0 6px 22px rgba(0,0,0,.12);
    pointer-events: none;
  }

  .ivux-mobile-cart-toast::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2aa343;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
  }

  .ivux-mobile-cart-toast:empty { display: none; }
  .ivux-mobile-cart-toast.ivux-mobile-cart-toast-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* 1.8.0 no longer displays price/status/stepper in the fixed bar. */
  .ivux-mobile-purchase-status,
  .ivux-mobile-purchase-info,
  .ivux-mobile-stepper-wrap,
  .ivux-mobile-purchase-helper { display: none !important; }
}


/* 1.8.2 — native Transformer defaults are backend state only until the
   customer explicitly confirms a multi-choice variant. A pending color must
   therefore never retain the theme's selected ring/background. */
.product-variants.ivux-ready .ivux-group-color.ivux-group-pending .input-container.item-selected,
.product-variants.ivux-ready .ivux-group-color.ivux-group-pending .input-container.ivux-native-default {
  outline: none !important;
  box-shadow: none !important;
}

.product-variants.ivux-ready .ivux-group-color.ivux-group-pending input.input-color:checked + .color,
.product-variants.ivux-ready .ivux-group-color.ivux-group-pending input.input-color:checked + .ivux-color-visual-node,
.product-variants.ivux-ready .ivux-group-color.ivux-group-pending .input-container.item-selected > .color,
.product-variants.ivux-ready .ivux-group-color.ivux-group-pending .input-container.ivux-native-default > .color {
  outline: none !important;
  box-shadow: none !important;
  border-color: #d7d7d7 !important;
  transform: none !important;
}

.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode.ivux-group-pending input:checked + .ivux-color-button,
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode.ivux-group-pending .input-container.item-selected .ivux-color-button,
.product-variants.ivux-ready .ivux-group-color.ivux-color-text-mode.ivux-group-pending .input-container.ivux-native-default .ivux-color-button {
  border-color: #d7d7d7 !important;
  background: #fff !important;
  color: #222 !important;
  box-shadow: none !important;
}


/* 1.8.3 — tighten SHEIN-style action row; smaller wishlist tile and cleaner heart icon */
@media (max-width: 1023px) {
  .ivux-mobile-purchase-bar {
    gap: 8px;
    min-height: 64px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .ivux-mobile-add-to-cart,
  .ivux-mobile-cart-primary-link {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  .ivux-mobile-wishlist {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-color: #cfcfcf;
    border-radius: 4px;
  }

  .ivux-mobile-wishlist > span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    transform: none;
  }

  .ivux-mobile-wishlist svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ivux-mobile-wishlist-active svg {
    fill: #111;
    stroke: #111;
  }
}

/* 1.8.4 behavior-only release; cache-busted asset. */


/* 1.8.5 — keep the primary CTA as Add to Cart after success.
   View Cart lives only inside the success toast so shoppers can add another
   color/size combination without leaving the product page. */
@media (max-width: 1023px) {
  .ivux-mobile-cart-toast {
    pointer-events: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ivux-mobile-cart-toast-message {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ivux-mobile-cart-toast-link {
    flex: 0 0 auto;
    color: #165c28;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
  }

  .ivux-mobile-cart-toast-link:hover,
  .ivux-mobile-cart-toast-link:focus {
    color: #0f431d;
    text-decoration: underline;
  }
}


/* 1.8.6 wishlist proxy */
@media (max-width: 1023px) {
  .product_page_container .ivux-native-product-wishlist,
  .product-information .ivux-native-product-wishlist,
  .js-product-container .ivux-native-product-wishlist,
  .product_page_container .ivux-native-product-wishlist-only,
  .product-information .ivux-native-product-wishlist-only,
  .js-product-container .ivux-native-product-wishlist-only {
    display: none !important;
  }
  .ivux-mobile-wishlist[aria-pressed="true"] svg {
    fill: #111;
    stroke: #111;
  }
}


/* 1.8.7 — stronger product-page wishlist hiding and logged-out proxy alignment */
@media (max-width: 1023px) {
  .product_page_container .addToWishlist,
  .product-information .addToWishlist,
  .js-product-container .addToWishlist,
  .product_page_container .add_to_wishlit,
  .product-information .add_to_wishlit,
  .js-product-container .add_to_wishlit,
  .product_page_container .wishlist_button_list,
  .product-information .wishlist_button_list,
  .js-product-container .wishlist_button_list,
  .product_page_container .wishlist_product,
  .product-information .wishlist_product,
  .js-product-container .wishlist_product,
  .product_page_container .product-add-to-wishlist,
  .product-information .product-add-to-wishlist,
  .js-product-container .product-add-to-wishlist {
    display: none !important;
  }
}


/* 1.8.8 — reliable logged-out wishlist fallback modal */
.ivux-wishlist-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
}
.ivux-wishlist-login-overlay[hidden] { display: none !important; }
.ivux-wishlist-login-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 24px 24px;
  background: #fff;
  color: #111;
  text-align: center;
  direction: rtl;
  box-shadow: 0 12px 40px rgba(0,0,0,.24);
}
.ivux-wishlist-login-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.ivux-wishlist-login-text {
  margin: 4px 0 20px;
  font-size: 17px;
  line-height: 1.9;
}
.ivux-wishlist-login-link {
  display: inline-block;
  color: #111;
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
}


/* 1.8.9 — when wishlist module is disabled, remove the heart completely and
   let the primary purchase action consume the full mobile bar width. */
@media (max-width: 1023px) {
  .ivux-mobile-purchase-bar.ivux-mobile-purchase-bar-no-wishlist {
    gap: 0;
  }

  .ivux-mobile-purchase-bar.ivux-mobile-purchase-bar-no-wishlist .ivux-mobile-purchase-action {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
}


/* 1.9.0 — mobile-first product gallery */
@media (max-width: 1023px) {
  .product_left_content .images-container,
  .product_left_content .pro_gallery_top_container,
  .product_left_content .pro_gallery_top_inner {
    width: 100% !important;
    max-width: none !important;
  }

  .product_left_content .pro_gallery_top {
    position: relative;
    overflow: hidden;
    width: 100%;
    touch-action: pan-y pinch-zoom;
    background: #fff;
  }

  .product_left_content .pro_gallery_top .swiper-wrapper {
    align-items: center;
  }

  .product_left_content .pro_gallery_top .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
  }

  .product_left_content .pro_gallery_top .swiper-slide img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
  }

  /* Mobile navigation is swipe-first. */
  .product_left_content .pro_gallery_top > .swiper-button,
  .product_left_content .pro_gallery_top .swiper-button-next,
  .product_left_content .pro_gallery_top .swiper-button-prev,
  .product_left_content .pro_gallery_thumbs,
  .product_left_content .pro_gallery_thumbs_container,
  .product_left_content .pro_gallery_thumbs_wrap {
    display: none !important;
  }

  .ivux-mobile-gallery-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 15;
    min-width: 44px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    direction: ltr;
    box-shadow: 0 1px 5px rgba(0,0,0,.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
  }

  .ivux-mobile-gallery-tap-hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #111;
    box-shadow: 0 1px 5px rgba(0,0,0,.12);
    pointer-events: none;
  }

  .ivux-mobile-gallery-tap-hint svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

.ivux-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: none;
  background: #fff;
  color: #111;
  overscroll-behavior: contain;
  touch-action: none;
}

.ivux-gallery-lightbox.ivux-gallery-lightbox-open {
  display: block;
}

.ivux-gallery-lightbox-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(54px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.96), rgba(255,255,255,.76), rgba(255,255,255,0));
  pointer-events: none;
}

.ivux-gallery-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #111;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.ivux-gallery-lightbox-counter {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  direction: ltr;
  pointer-events: auto;
}

.ivux-gallery-lightbox-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.ivux-gallery-lightbox-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 130ms ease;
}

.ivux-gallery-lightbox-slide.ivux-gallery-lightbox-slide-active {
  opacity: 1;
  visibility: visible;
}

.ivux-gallery-lightbox-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.ivux-gallery-lightbox-help {
  position: absolute;
  right: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,17,17,.72);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(50%);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ivux-gallery-lightbox.ivux-gallery-help-hidden .ivux-gallery-lightbox-help {
  opacity: 0;
}

html.ivux-gallery-lock,
body.ivux-gallery-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}


/* 1.9.1 — tactile mobile gallery physics */
@media (max-width: 1023px) {
  .product_left_content .pro_gallery_top,
  .product_left_column .pro_gallery_top {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .product_left_content .pro_gallery_top .swiper-wrapper,
  .product_left_column .pro_gallery_top .swiper-wrapper {
    will-change: transform;
    transition-timing-function: cubic-bezier(.22,.61,.36,1) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .product_left_content .pro_gallery_top .swiper-slide,
  .product_left_column .pro_gallery_top .swiper-slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
  }

  .product_left_content .pro_gallery_top.ivux-gallery-dragging .ivux-mobile-gallery-counter,
  .product_left_column .pro_gallery_top.ivux-gallery-dragging .ivux-mobile-gallery-counter,
  .product_left_content .pro_gallery_top.ivux-gallery-dragging .ivux-mobile-gallery-tap-hint,
  .product_left_column .pro_gallery_top.ivux-gallery-dragging .ivux-mobile-gallery-tap-hint {
    opacity: .55;
    transition: opacity 100ms linear;
  }
}

.ivux-gallery-lightbox-slide {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ========================================================================== *
 * 1.10.0 — Flipkart-inspired mobile category Sort / Filter UX
 * ========================================================================== */
@media (max-width: 1023px) {
  html.ivux-catalog-modal-open,
  body.ivux-catalog-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .ivux-catalog-mobile-controls {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 48px;
    background: #fff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    direction: rtl;
  }

  .ivux-catalog-control {
    position: relative;
    appearance: none;
    border: 0;
    border-left: 1px solid #ececec;
    background: #fff;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    color: #202124;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .ivux-catalog-control:last-child { border-left: 0; }
  .ivux-catalog-control svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .ivux-catalog-control.is-active { color: #111; }
  .ivux-catalog-filter-count {
    position: absolute;
    top: 6px;
    margin-inline-start: 62px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
  }

  /* Native mobile list toolbar is replaced by the focused two-action bar. */
  #js-product-list-top {
    display: none !important;
  }

  .ivux-catalog-sort-overlay,
  .ivux-catalog-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 20020;
    visibility: hidden;
    pointer-events: none;
  }
  .ivux-catalog-sort-overlay.is-open,
  .ivux-catalog-filter-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .ivux-catalog-sort-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.48);
    opacity: 0;
    transition: opacity .2s ease;
  }
  .ivux-catalog-sort-overlay.is-open .ivux-catalog-sort-backdrop { opacity: 1; }

  .ivux-catalog-sort-sheet {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    max-height: min(72vh, 560px);
    padding: 4px 0 calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 14px 14px 0 0;
    transform: translate3d(0, 105%, 0);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
    direction: rtl;
    box-shadow: 0 -8px 28px rgba(0,0,0,.14);
  }
  .ivux-catalog-sort-overlay.is-open .ivux-catalog-sort-sheet { transform: translate3d(0,0,0); }
  .ivux-catalog-sheet-handle {
    width: 36px;
    height: 4px;
    margin: 4px auto 8px;
    background: #d4d4d4;
    border-radius: 999px;
  }
  .ivux-catalog-sheet-title {
    padding: 10px 18px 8px;
    font-size: 12px;
    color: #666;
    font-weight: 700;
  }
  .ivux-catalog-sort-option {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-top: 1px solid #f2f2f2;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
    font: inherit;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
  }
  .ivux-catalog-sort-option:active { background: #f7f7f7; }
  .ivux-catalog-radio {
    width: 18px;
    height: 18px;
    border: 1.5px solid #9a9a9a;
    border-radius: 50%;
    box-sizing: border-box;
    flex: 0 0 18px;
  }
  .ivux-catalog-sort-option.is-current .ivux-catalog-radio {
    border: 5px solid #111;
  }
  .ivux-catalog-sort-option.is-current span { font-weight: 700; }

  .ivux-catalog-filter-overlay {
    background: #fff;
    transform: translate3d(100%,0,0);
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
  }
  [dir="rtl"] .ivux-catalog-filter-overlay { transform: translate3d(-100%,0,0); }
  .ivux-catalog-filter-overlay.is-open { transform: translate3d(0,0,0); }
  .ivux-catalog-filter-panel {
    height: 100%;
    height: 100dvh;
    display: grid;
    grid-template-rows: 52px minmax(0,1fr) 64px;
    background: #fff;
    direction: rtl;
  }
  .ivux-catalog-filter-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-bottom: 1px solid #ededed;
    background: #fff;
  }
  .ivux-catalog-filter-header strong {
    font-size: 16px;
    font-weight: 700;
  }
  .ivux-catalog-filter-close,
  .ivux-catalog-filter-clear {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
  }
  .ivux-catalog-filter-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ivux-catalog-filter-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #222;
    stroke-width: 1.7;
    stroke-linecap: round;
  }
  .ivux-catalog-filter-clear {
    padding: 8px 6px;
    color: #555;
    font-size: 12px;
  }
  .ivux-catalog-filter-clear:disabled { opacity: .35; }

  .ivux-catalog-filter-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 34% 66%;
    overflow: hidden;
    background: #fff;
  }
  .ivux-catalog-facet-nav {
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f6f6f6;
    border-left: 1px solid #ececec;
  }
  .ivux-catalog-facet-nav-item {
    width: 100%;
    min-height: 52px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #ececec;
    background: transparent;
    color: #5b5b5b;
    text-align: right;
    font: inherit;
    font-size: 12px;
    line-height: 1.45;
  }
  .ivux-catalog-facet-nav-item.is-active {
    position: relative;
    background: #fff;
    color: #111;
    font-weight: 700;
  }
  .ivux-catalog-facet-nav-item.is-active::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    background: #111;
  }

  .ivux-catalog-facet-content {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }
  .ivux-catalog-filter-native {
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .ivux-catalog-filter-native > .sticky_facet_title,
  .ivux-catalog-filter-native .facet-title,
  .ivux-catalog-filter-native .facet-title-mobile,
  .ivux-catalog-filter-native .dropdown_tri {
    display: none !important;
  }
  .ivux-catalog-filter-native .ivux-catalog-facet-section {
    display: none !important;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 14px 90px !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .ivux-catalog-filter-native .ivux-catalog-facet-section.is-active {
    display: block !important;
  }
  .ivux-catalog-filter-native .dropdown_wrap,
  .ivux-catalog-filter-native .dropdown_list,
  .ivux-catalog-filter-native .facet_filter_box,
  .ivux-catalog-filter-native .collapse {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    height: auto !important;
    max-height: none !important;
    width: auto !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
  }
  .ivux-catalog-filter-native .facet_filter_item_li {
    margin: 0 !important;
    border-bottom: 1px solid #f1f1f1;
  }
  .ivux-catalog-filter-native .facet-label {
    min-height: 46px;
    width: 100%;
    margin: 0 !important;
    padding: 9px 0 !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 13px;
  }
  .ivux-catalog-filter-native .facet-label .search-link {
    color: #333 !important;
    text-decoration: none !important;
  }
  .ivux-catalog-filter-native .magnitude {
    color: #999;
    font-size: 11px;
  }
  .ivux-catalog-filter-native .custom-input-item {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
  }

  .ivux-catalog-filter-footer {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(140px,1.2fr);
    gap: 10px;
    align-items: center;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #e7e7e7;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,.05);
  }
  .ivux-catalog-result-count {
    min-width: 0;
    color: #666;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ivux-catalog-filter-apply {
    min-height: 46px;
    border: 0;
    border-radius: 3px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
  }
}

@media (min-width: 1024px) {
  .ivux-catalog-mobile-controls,
  .ivux-catalog-sort-overlay,
  .ivux-catalog-filter-overlay { display: none !important; }
}


/* 1.10.1 — use Transformer/stsidebar native mobile filter drawer instead of a second custom filter UI */
@media (max-width: 1023px) {
  /* The custom full-screen filter from 1.10.0 is no longer used. */
  .ivux-catalog-filter-overlay { display: none !important; }

  /* Once our toolbar has discovered the native FILTER trigger, hide its old vertical tab.
     The element stays in DOM so the original Transformer/stsidebar click handler remains available. */
  .ivux-native-filter-proxy {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}


/* 1.10.2 — native Transformer filter content inside a true mobile overlay drawer */
@media (max-width: 1023px) {
  html.ivux-catalog-modal-open,
  body.ivux-catalog-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .ivux-native-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 20060;
    visibility: hidden;
    pointer-events: none;
    direction: rtl;
  }
  .ivux-native-filter-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
  }
  .ivux-native-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.46);
    opacity: 0;
    transition: opacity .22s ease;
  }
  .ivux-native-filter-overlay.is-open .ivux-native-filter-backdrop { opacity: 1; }

  .ivux-native-filter-sheet {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(92vw, 430px);
    display: grid;
    grid-template-rows: 54px minmax(0,1fr) 66px;
    background: #fff;
    box-shadow: -10px 0 34px rgba(0,0,0,.16);
    transform: translate3d(104%,0,0);
    transition: transform .22s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
  }
  [dir="rtl"] .ivux-native-filter-sheet {
    inset-inline-end: auto;
    inset-inline-start: 0;
    box-shadow: 10px 0 34px rgba(0,0,0,.16);
    transform: translate3d(-104%,0,0);
  }
  .ivux-native-filter-overlay.is-open .ivux-native-filter-sheet { transform: translate3d(0,0,0); }

  .ivux-native-filter-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    min-width: 0;
    padding: 0 8px;
    border-bottom: 1px solid #ececec;
    background: #fff;
  }
  .ivux-native-filter-header strong {
    font-size: 16px;
    font-weight: 700;
    color: #161616;
  }
  .ivux-native-filter-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
  }
  .ivux-native-filter-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }
  .ivux-native-filter-active-count {
    padding-inline-end: 8px;
    color: #777;
    font-size: 11px;
    white-space: nowrap;
  }

  .ivux-native-filter-content {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
  }
  .ivux-native-filter-content > #left_column,
  .ivux-native-filter-content > .left_column,
  .ivux-native-filter-column {
    position: static !important;
    inset: auto !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 10px 14px 20px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .ivux-native-filter-column #search_filters {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .ivux-native-filter-column #search_filters > .sticky_facet_title {
    display: none !important;
  }
  .ivux-native-filter-column .facet {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #eee;
  }
  .ivux-native-filter-column .facet-title-mobile,
  .ivux-native-filter-column .facet-title,
  .ivux-native-filter-column .dropdown_tri {
    min-height: 48px;
    margin: 0 !important;
    padding: 13px 2px !important;
    color: #222 !important;
    font-size: 14px !important;
    font-weight: 600;
    background: #fff !important;
  }
  .ivux-native-filter-column .facet_filter_box,
  .ivux-native-filter-column .dropdown_list {
    margin: 0 !important;
    box-shadow: none !important;
  }
  .ivux-native-filter-column .facet_filter_item_li {
    margin: 0 !important;
  }
  .ivux-native-filter-column .facet-label {
    min-height: 44px;
    padding-block: 8px !important;
    margin: 0 !important;
  }

  .ivux-native-filter-footer {
    display: flex;
    align-items: center;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid #e8e8e8;
    background: #fff;
    box-shadow: 0 -4px 14px rgba(0,0,0,.05);
  }
  .ivux-native-filter-view {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 3px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
  }

  /* The legacy vertical FILTER tab stays alive for Transformer JS but is never visible. */
  #search_filter_toggler.ivux-native-filter-proxy,
  .rightbar_tri.ivux-native-filter-proxy,
  #switch_left_column.ivux-native-filter-proxy {
    position: fixed !important;
    inset: auto !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}


/* 1.10.3 — render the exact live PrestaShop/Transformer #search_filters engine */
@media (max-width: 1023px) {
  /* Hide every legacy vertical/toolbar filter launcher once our toolbar is active. */
  .ivux-native-filter-trigger-wrap,
  #search_filter_toggler.ivux-native-filter-proxy,
  .rightbar_tri[data-name="left_column"].ivux-native-filter-proxy,
  #switch_left_column.ivux-native-filter-proxy {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
  }

  .ivux-native-filter-content > #search_filters,
  .ivux-native-filter-root {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 14px 24px !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .ivux-native-filter-root > .sticky_facet_title {
    display: none !important;
  }

  .ivux-native-filter-root .facet {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #ececec !important;
  }

  .ivux-native-filter-root .facet-title-mobile,
  .ivux-native-filter-root .facet-title,
  .ivux-native-filter-root .dropdown_tri {
    display: flex !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 12px 2px !important;
    background: #fff !important;
    color: #161616 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .ivux-native-filter-root .facet_filter_box,
  .ivux-native-filter-root .dropdown_list {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .ivux-native-filter-root .facet_filter_item_li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .ivux-native-filter-root .facet-label {
    width: 100% !important;
    min-height: 44px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    align-items: center !important;
  }

  .ivux-native-filter-root .search-link,
  .ivux-native-filter-root .js-search-link {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}


/* 1.10.4 — exact stsidebar FILTER target inside IVUX mobile overlay */
@media (max-width: 1023px) {
  .ivux-native-filter-exact-wrap,
  .ivux-native-filter-exact-trigger {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .ivux-native-filter-content > .ivux-native-filter-source-live {
    display: block !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
  }

  .ivux-native-filter-content > .ivux-native-filter-source-live #search_filters,
  .ivux-native-filter-content > .ivux-native-filter-source-live .sidebar_content,
  .ivux-native-filter-content > .ivux-native-filter-source-live .rightbar_content,
  .ivux-native-filter-content > .ivux-native-filter-source-live .side_content {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html.ivux-filter-open,
  body.ivux-filter-open { overflow: hidden !important; }
}


/* 1.10.5 — category filter uses Transformer's own left_column drawer. */
@media (max-width: 1023px) {
  .ivux-native-filter-overlay,
  .ivux-native-filter-backdrop,
  .ivux-native-filter-panel {
    display: none !important;
  }

  /* Keep original trigger available to JS but remove duplicate black tab from UI. */
  .filter-button,
  #search_filter_toggler,
  #switch_left_column_wrap {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Once Transformer opens the native left column, make sure its contents stay visible. */
  #left_column #search_filters,
  #left_column .facet,
  #left_column .facet_filter_box {
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* 1.10.6 — the top toolbar uses the ORIGINAL Transformer black FILTER trigger. */
@media (max-width: 1023px) {
  .ivux-catalog-mobile-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ivux-catalog-native-filter-slot {
    min-width: 0;
    display: flex;
    align-items: stretch;
  }

  .ivux-catalog-native-filter-slot > .ivux-relocated-native-filter {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ivux-catalog-native-filter-slot > .ivux-relocated-native-filter .icon_text,
  .ivux-catalog-native-filter-slot > .ivux-relocated-native-filter .ivux-relocated-filter-label {
    display: inline !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font: inherit !important;
    color: inherit !important;
  }

  .ivux-catalog-native-filter-slot > .ivux-relocated-native-filter i {
    display: inline-flex !important;
    transform: none !important;
    font-size: 20px !important;
    color: #111 !important;
  }

  .ivux-catalog-native-filter-slot > .ivux-relocated-native-filter .ivux-catalog-filter-count {
    position: static !important;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
  }

  .ivux-original-filter-wrap-empty {
    display: none !important;
  }

  /* 1.10.2–1.10.5 experimental custom filter overlays must never participate. */
  .ivux-native-filter-overlay,
  .ivux-catalog-filter-overlay {
    display: none !important;
  }

  /* Do not hide the relocated native trigger through old proxy rules. */
  .ivux-relocated-native-filter.ivux-native-filter-proxy,
  .ivux-catalog-native-filter-slot .ivux-relocated-native-filter {
    display: flex !important;
  }
}


/* 1.10.7 — relocate Amazzing Filter's own .compact-toggle into the toolbar. */
@media (max-width: 1023px) {
  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
    width: 100% !important;
    max-width: none !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 8px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
  }

  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger .compact-toggle-text {
    display: inline !important;
    position: static !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
    font: inherit !important;
    letter-spacing: 0 !important;
    color: #111 !important;
  }

  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger .compact-toggle-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    transform: none !important;
    font-size: 20px !important;
    color: #111 !important;
  }

  /* Disable our previous experimental filter layers only; Amazzing Filter's
     own #amazzing_filter and .af-compact-overlay remain untouched. */
  .ivux-native-filter-overlay,
  .ivux-catalog-filter-overlay {
    display: none !important;
  }
}


/* 1.10.8 — polished Flipkart-inspired mobile catalog controls while preserving
   Amazzing Filter as the single, original filter engine. */
@media (max-width: 1023px) {
  .ivux-catalog-mobile-controls {
    min-height: 54px !important;
    background: rgba(255,255,255,.98) !important;
    border-top: 1px solid #eeeeee !important;
    border-bottom: 1px solid #e6e6e6 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.045) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .ivux-catalog-mobile-controls::after {
    content: '';
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 50%;
    width: 1px;
    background: #e6e6e6;
    pointer-events: none;
  }

  .ivux-catalog-control,
  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger {
    min-height: 54px !important;
    height: 54px !important;
    border: 0 !important;
    padding: 0 12px !important;
    gap: 9px !important;
    background: transparent !important;
    color: #171717 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
  }

  .ivux-catalog-control:active,
  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger:active {
    background: #f7f7f7 !important;
  }

  .ivux-catalog-control svg,
  .ivux-amazzing-toolbar-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger .compact-toggle-icon {
    display: none !important;
  }

  .ivux-amazzing-toolbar-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
  }

  .ivux-catalog-filter-count {
    position: static !important;
    margin: 0 !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    text-align: center !important;
  }

  /* Sorting: calmer bottom sheet, clearer hierarchy and larger touch targets. */
  .ivux-catalog-sort-backdrop {
    background: rgba(0,0,0,.40) !important;
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
  }
  .ivux-catalog-sort-sheet {
    max-height: min(76vh, 620px) !important;
    padding: 6px 0 calc(10px + env(safe-area-inset-bottom)) !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -12px 34px rgba(0,0,0,.16) !important;
  }
  .ivux-catalog-sheet-handle {
    width: 38px !important;
    height: 4px !important;
    margin: 2px auto 5px !important;
    background: #d6d6d6 !important;
  }
  .ivux-catalog-sort-head {
    min-height: 50px;
    padding: 0 16px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
  }
  .ivux-catalog-sort-head strong {
    font-size: 16px;
    font-weight: 800;
    color: #151515;
  }
  .ivux-catalog-sort-close {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
    border-radius: 50%;
  }
  .ivux-catalog-sort-close:active { background: #f3f3f3; }
  .ivux-catalog-sort-close svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }
  .ivux-catalog-sheet-title {
    padding: 10px 16px 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #7b7b7b !important;
  }
  .ivux-catalog-sort-option {
    min-height: 54px !important;
    padding: 0 18px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #f2f2f2 !important;
    font-size: 14px !important;
    color: #242424 !important;
  }
  .ivux-catalog-sort-option:last-child { border-bottom: 0 !important; }
  .ivux-catalog-sort-option.is-current {
    background: #fafafa !important;
  }
  .ivux-catalog-radio {
    width: 20px !important;
    height: 20px !important;
    border-width: 1.5px !important;
    border-color: #8d8d8d !important;
  }
  .ivux-catalog-sort-option.is-current .ivux-catalog-radio {
    border: 5px solid #111 !important;
  }

  /* Amazzing Filter native drawer: visual redesign only, zero engine duplication. */
  #amazzing_filter .title_block {
    display: none !important;
  }

  #amazzing_filter .ivux-af-mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 56px;
    padding: 0 10px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #e9e9e9;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  #amazzing_filter .ivux-af-mobile-header strong {
    font-size: 17px;
    font-weight: 800;
    color: #151515;
  }
  #amazzing_filter .ivux-af-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  #amazzing_filter .ivux-af-clear,
  #amazzing_filter .ivux-af-close {
    border: 0;
    background: transparent;
    color: #222;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  #amazzing_filter .ivux-af-clear {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 650;
  }
  #amazzing_filter .ivux-af-clear:disabled {
    opacity: .32;
  }
  #amazzing_filter .ivux-af-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  #amazzing_filter .ivux-af-close:active,
  #amazzing_filter .ivux-af-clear:active { background: #f4f4f4; }
  #amazzing_filter .ivux-af-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  #amazzing_filter .block_content {
    padding: 0 16px 14px !important;
    background: #fff !important;
  }
  #amazzing_filter .selectedFilters {
    margin: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f1f1;
  }
  #amazzing_filter .selectedFilters.hidden {
    display: none !important;
  }
  #amazzing_filter .clearAll {
    display: none !important;
  }

  #amazzing_filter .af_filter {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #ececec !important;
    background: #fff !important;
  }
  #amazzing_filter .af_subtitle {
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    display: flex !important;
    align-items: center !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
  }
  #amazzing_filter .af_filter_content {
    padding: 0 0 12px !important;
  }
  #amazzing_filter .af_filter_content ul {
    margin: 0 !important;
    padding: 0 !important;
  }
  #amazzing_filter .af_filter_content li {
    margin: 0 !important;
  }
  #amazzing_filter .af-checkbox-label,
  #amazzing_filter .af-radio-label,
  #amazzing_filter .af-textbox-label {
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px 2px !important;
    display: flex !important;
    align-items: center !important;
    color: #282828 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  #amazzing_filter .af-checkbox-label:before,
  #amazzing_filter .af-radio-label:before {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    line-height: 19px !important;
    margin-inline-end: 10px !important;
    border: 1.5px solid #9a9a9a !important;
    box-sizing: border-box !important;
  }
  #amazzing_filter .active > .af-checkbox-label:before,
  #amazzing_filter .active > .af-radio-label:before {
    border-color: #111 !important;
    background: #111 !important;
    color: #fff !important;
  }
  #amazzing_filter .count {
    margin-inline-start: auto !important;
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
  }
  #amazzing_filter .af-quick-search {
    margin: 0 0 10px !important;
  }
  #amazzing_filter .qsInput,
  #amazzing_filter .af-select {
    min-height: 44px !important;
    border: 1px solid #dedede !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
  }

  #amazzing_filter .btn-holder {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 18 !important;
    margin: 8px -16px -14px !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;
    background: rgba(255,255,255,.98) !important;
    border-top: 1px solid #e9e9e9 !important;
    box-shadow: 0 -8px 18px rgba(0,0,0,.055) !important;
  }
  #amazzing_filter .viewFilteredProducts {
    position: relative !important;
    min-height: 50px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #111 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
  }
  #amazzing_filter .viewFilteredProducts:active {
    transform: scale(.995);
  }
  #amazzing_filter .af-total-count {
    opacity: .72;
    font-weight: 600;
  }

  .af-compact-overlay {
    background: rgba(0,0,0,.42) !important;
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
  }
}

/* 1.10.9 — visual polish for mobile Sort + Amazzing Filter. Engine untouched. */
@media (max-width: 1023px) {
  /* Toolbar: lighter, flatter, easier to scan. */
  .ivux-catalog-mobile-controls {
    min-height: 50px !important;
    height: 50px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 32 !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.035) !important;
    background: #fff !important;
  }
  .ivux-catalog-mobile-controls::after {
    top: 11px !important;
    bottom: 11px !important;
    background: #e9e9e9 !important;
  }
  .ivux-catalog-control,
  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger {
    min-height: 50px !important;
    height: 50px !important;
    padding: 0 14px !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }
  .ivux-catalog-control svg,
  .ivux-amazzing-toolbar-icon svg {
    width: 19px !important;
    height: 19px !important;
    stroke-width: 1.55 !important;
  }
  .ivux-catalog-sort-copy {
    display: inline-flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
  }
  .ivux-catalog-sort-copy > span:first-child { white-space: nowrap; }
  .ivux-catalog-current-sort {
    max-width: 118px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8a8a8a;
    font-size: 10px;
    font-weight: 500;
  }
  .ivux-catalog-filter-count {
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
    line-height: 17px !important;
  }
  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger.is-active,
  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger:has(.ivux-catalog-filter-count:not([hidden])) {
    font-weight: 800 !important;
  }

  /* Sort sheet: compact, calm and one-thumb friendly. */
  .ivux-catalog-sort-sheet {
    border-radius: 16px 16px 0 0 !important;
    max-height: min(68vh, 520px) !important;
    overflow: hidden !important;
    box-shadow: 0 -8px 30px rgba(0,0,0,.12) !important;
  }
  .ivux-catalog-sheet-handle {
    width: 34px !important;
    height: 4px !important;
    margin: 7px auto 2px !important;
    background: #dadada !important;
  }
  .ivux-catalog-sort-head {
    min-height: 46px !important;
    padding: 0 14px 0 8px !important;
  }
  .ivux-catalog-sort-head strong {
    font-size: 15px !important;
    font-weight: 800 !important;
  }
  .ivux-catalog-sort-close {
    width: 38px !important;
    height: 38px !important;
  }
  .ivux-catalog-sheet-title {
    padding: 7px 16px 5px !important;
    font-size: 11px !important;
    color: #929292 !important;
  }
  .ivux-catalog-sort-options {
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }
  .ivux-catalog-sort-option {
    min-height: 48px !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    border-bottom: 1px solid #f1f1f1 !important;
    transition: background .12s ease !important;
  }
  .ivux-catalog-sort-option.is-current {
    background: #f7f7f7 !important;
    font-weight: 750 !important;
  }
  .ivux-catalog-radio {
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #aaa !important;
    background: #fff !important;
  }
  .ivux-catalog-sort-option.is-current .ivux-catalog-radio {
    border: 5px solid #111 !important;
    background: #fff !important;
  }

  /* Amazzing Filter: keep native drawer, only improve visual hierarchy. */
  #amazzing_filter {
    background: #fff !important;
  }
  #amazzing_filter .ivux-af-mobile-header {
    min-height: 52px !important;
    padding: 0 8px 0 14px !important;
    border-bottom: 1px solid #ededed !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.01) !important;
  }
  #amazzing_filter .ivux-af-mobile-header strong {
    font-size: 16px !important;
    font-weight: 800 !important;
  }
  #amazzing_filter .ivux-af-clear {
    min-height: 36px !important;
    padding: 0 8px !important;
    color: #555 !important;
    font-size: 11.5px !important;
    font-weight: 650 !important;
  }
  #amazzing_filter .ivux-af-clear:disabled {
    color: #b7b7b7 !important;
    opacity: 1 !important;
  }
  #amazzing_filter .ivux-af-close {
    width: 38px !important;
    height: 38px !important;
  }
  #amazzing_filter .block_content {
    padding: 0 14px 10px !important;
  }
  #amazzing_filter .selectedFilters {
    padding: 7px 0 !important;
  }
  #amazzing_filter .af_filter {
    border-bottom-color: #ededed !important;
  }
  #amazzing_filter .af_subtitle {
    min-height: 50px !important;
    padding: 0 1px !important;
    font-size: 14.5px !important;
    font-weight: 750 !important;
  }
  #amazzing_filter .af_filter_content {
    padding-bottom: 9px !important;
  }
  #amazzing_filter .af-checkbox-label,
  #amazzing_filter .af-radio-label,
  #amazzing_filter .af-textbox-label {
    min-height: 40px !important;
    padding: 6px 1px !important;
    font-size: 13.5px !important;
  }
  #amazzing_filter .af-checkbox-label:before,
  #amazzing_filter .af-radio-label:before {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    line-height: 18px !important;
    margin-inline-end: 9px !important;
    border-width: 1.3px !important;
    border-color: #aaa !important;
  }
  #amazzing_filter .count {
    margin-inline-start: 8px !important;
    color: #aaa !important;
    font-size: 11px !important;
  }
  #amazzing_filter .qsInput,
  #amazzing_filter .af-select {
    min-height: 41px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
  }
  #amazzing_filter .btn-holder {
    margin: 6px -14px -10px !important;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom)) !important;
    border-top-color: #ececec !important;
    box-shadow: 0 -5px 14px rgba(0,0,0,.045) !important;
  }
  #amazzing_filter .viewFilteredProducts {
    min-height: 46px !important;
    border-radius: 4px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
  }
  #amazzing_filter .af-total-count {
    opacity: .68 !important;
    font-size: 12px !important;
  }
  .af-compact-overlay {
    background: rgba(0,0,0,.38) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    backdrop-filter: blur(1px) !important;
  }
}

/* 1.10.10 — keep Amazzing Filter CTA fully inside the mobile drawer */
@media (max-width: 1023px) {
  #amazzing_filter,
  #amazzing_filter .block_content,
  #amazzing_filter .btn-holder,
  #amazzing_filter .viewFilteredProducts {
    box-sizing: border-box !important;
  }

  #amazzing_filter .btn-holder {
    position: sticky !important;
    left: auto !important;
    right: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  #amazzing_filter .viewFilteredProducts {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* 1.10.11 — Flipkart-like active-filter badge */
@media (max-width: 1023px) {
  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger {
    position: relative !important;
    overflow: visible !important;
  }

  .ivux-amazzing-toolbar-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
  }

  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger .ivux-catalog-filter-count {
    position: absolute !important;
    top: -7px !important;
    right: -9px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, .28) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    direction: ltr !important;
  }

  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger .ivux-catalog-filter-count[hidden] {
    display: none !important;
  }

  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger.is-active {
    color: #111 !important;
  }

  .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger.is-active .compact-toggle-text {
    font-weight: 800 !important;
  }
}


/* 1.10.12 — reliable Flipkart-style floating Sort / Filter toolbar */
@media (max-width: 1023px) {
  .ivux-catalog-mobile-controls-anchor {
    display: block !important;
    width: 100% !important;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
  }

  .ivux-catalog-mobile-controls {
    /* JS fixed fallback is used because Transformer ancestors can break CSS sticky. */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transition: box-shadow .16s ease, border-color .16s ease !important;
  }

  .ivux-catalog-mobile-controls.is-floating {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 1100 !important;
    margin: 0 !important;
    background: rgba(255,255,255,.985) !important;
    border-top-color: transparent !important;
    border-bottom: 1px solid #e6e6e6 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.09) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
  }

  .ivux-catalog-mobile-controls.is-floating .ivux-catalog-control,
  .ivux-catalog-mobile-controls.is-floating .ivux-catalog-native-filter-slot > .compact-toggle.ivux-amazzing-filter-trigger {
    background: transparent !important;
  }

  html.ivux-catalog-controls-floating .ivux-catalog-mobile-controls {
    padding-top: env(safe-area-inset-top, 0px) !important;
  }
}


/* 1.10.13 — no duplicate spacer below the floating Sort / Filter bar */
@media (max-width: 1023px) {
  .ivux-catalog-mobile-controls-anchor {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  .ivux-catalog-mobile-controls.is-floating {
    margin-bottom: 0 !important;
  }
}


/* 1.10.14 — paired mobile header + Sort/Filter scroll choreography
   Scroll down: header yields screen space, Sort/Filter stays pinned.
   Scroll up: header returns and Sort/Filter sits directly underneath. */
@media (max-width: 1023px) {
  #mobile_bar.ivux-catalog-scroll-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1102 !important;
    margin: 0 !important;
    background: #fff !important;
    transform: translate3d(0, 0, 0) !important;
    transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .18s ease !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
  }

  #mobile_bar.ivux-catalog-scroll-header.is-hidden-by-scroll {
    transform: translate3d(0, -105%, 0) !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  #mobile_bar.ivux-catalog-scroll-header.is-visible-by-scroll {
    transform: translate3d(0, 0, 0) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.06) !important;
    pointer-events: auto !important;
  }

  .ivux-catalog-mobile-controls.is-floating {
    top: var(--ivux-catalog-float-top, 0px) !important;
    transition:
      top .22s cubic-bezier(.22,.61,.36,1),
      box-shadow .16s ease,
      border-color .16s ease !important;
    z-index: 1101 !important;
  }

  html.ivux-catalog-header-visible .ivux-catalog-mobile-controls.is-floating {
    box-shadow: 0 3px 10px rgba(0,0,0,.065) !important;
  }

  html.ivux-catalog-header-hidden .ivux-catalog-mobile-controls.is-floating {
    top: 0 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.09) !important;
  }

  /* The toolbar and header visually read as one stacked navigation surface. */
  html.ivux-catalog-header-visible #mobile_bar.ivux-catalog-scroll-header {
    border-bottom: 0 !important;
  }

  html.ivux-catalog-header-visible .ivux-catalog-mobile-controls.is-floating {
    border-top: 1px solid #eeeeee !important;
  }

  @media (prefers-reduced-motion: reduce) {
    #mobile_bar.ivux-catalog-scroll-header,
    .ivux-catalog-mobile-controls.is-floating {
      transition: none !important;
    }
  }
}


/* 1.10.15 — compositor-synchronized header / toolbar motion */
@media (max-width: 1023px) {
  #mobile_bar.ivux-catalog-scroll-header,
  .ivux-catalog-mobile-controls.is-floating {
    --ivux-nav-motion-duration: 260ms;
    --ivux-nav-motion-ease: cubic-bezier(.2,.72,.2,1);
    transition-duration: var(--ivux-nav-motion-duration) !important;
    transition-timing-function: var(--ivux-nav-motion-ease) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
  }

  #mobile_bar.ivux-catalog-scroll-header {
    transition-property: transform, box-shadow !important;
  }

  .ivux-catalog-mobile-controls.is-floating {
    top: 0 !important;
    transform: translate3d(0, var(--ivux-catalog-header-shift, 0px), 0) !important;
    transition-property: transform, box-shadow, border-color !important;
  }

  html.ivux-catalog-header-hidden .ivux-catalog-mobile-controls.is-floating {
    transform: translate3d(0, 0, 0) !important;
  }

  html.ivux-catalog-header-visible .ivux-catalog-mobile-controls.is-floating {
    transform: translate3d(0, var(--ivux-catalog-header-shift, 0px), 0) !important;
  }

  #mobile_bar.ivux-catalog-scroll-header.is-hidden-by-scroll {
    transform: translate3d(0, -100%, 0) !important;
  }

  #mobile_bar.ivux-catalog-scroll-header.is-visible-by-scroll {
    transform: translate3d(0, 0, 0) !important;
  }

  @media (prefers-reduced-motion: reduce) {
    #mobile_bar.ivux-catalog-scroll-header,
    .ivux-catalog-mobile-controls.is-floating {
      transition-duration: 0ms !important;
    }
  }
}


/* 1.10.16 — true scroll-linked premium header / toolbar motion */
@media (max-width: 1023px) {
  #mobile_bar.ivux-catalog-scroll-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1102 !important;
    margin: 0 !important;
    background: #fff !important;
    transform: translate3d(0, var(--ivux-catalog-header-y, 0px), 0) !important;
    transition: box-shadow .16s ease !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    contain: paint !important;
  }

  .ivux-catalog-mobile-controls.is-floating {
    top: 0 !important;
    transform: translate3d(0, var(--ivux-catalog-toolbar-y, 0px), 0) !important;
    transition: box-shadow .16s ease, border-color .16s ease !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    contain: paint !important;
  }

  /* Neutralize previous binary transform states. Position is now supplied
     continuously by JS as CSS variables, pixel-by-pixel with the scroll. */
  html.ivux-catalog-header-hidden .ivux-catalog-mobile-controls.is-floating,
  html.ivux-catalog-header-visible .ivux-catalog-mobile-controls.is-floating,
  html.ivux-catalog-header-partial .ivux-catalog-mobile-controls.is-floating {
    transform: translate3d(0, var(--ivux-catalog-toolbar-y, 0px), 0) !important;
  }

  #mobile_bar.ivux-catalog-scroll-header.is-hidden-by-scroll,
  #mobile_bar.ivux-catalog-scroll-header.is-visible-by-scroll {
    transform: translate3d(0, var(--ivux-catalog-header-y, 0px), 0) !important;
  }

  html.ivux-catalog-header-partial #mobile_bar.ivux-catalog-scroll-header,
  html.ivux-catalog-header-hidden #mobile_bar.ivux-catalog-scroll-header {
    box-shadow: none !important;
  }

  html.ivux-catalog-header-visible #mobile_bar.ivux-catalog-scroll-header {
    box-shadow: 0 1px 0 rgba(0,0,0,.055) !important;
  }

  html.ivux-catalog-header-partial .ivux-catalog-mobile-controls.is-floating,
  html.ivux-catalog-header-hidden .ivux-catalog-mobile-controls.is-floating {
    box-shadow: 0 3px 12px rgba(0,0,0,.075) !important;
  }

  /* No transform transition while actively scrolling: this removes the elastic
     catch-up/jump and keeps the shared edge welded to the user's finger. */
  #mobile_bar.ivux-catalog-scroll-header,
  .ivux-catalog-mobile-controls.is-floating {
    transition-property: box-shadow, border-color !important;
    transition-duration: .16s !important;
  }
}


/* 1.10.17 — compositor-first mobile catalog chrome
   Inspired by modern large-commerce navigation: pin threshold is observer-driven,
   while active scroll performs transform-only compositing. */
@media (max-width: 1023px) {
  #mobile_bar.ivux-catalog-compositor-chrome {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1102 !important;
    margin: 0 !important;
    background: #fff !important;

    /* Hot-scroll properties: compositor-only. */
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-font-smoothing: antialiased;
    contain: paint !important;

    /* Kill legacy transform transitions: transition catch-up is a common source
       of the visual "disconnect" between two scroll-linked surfaces. */
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
  }

  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    z-index: 1101 !important;
    background: #fff !important;

    will-change: transform !important;
    backface-visibility: hidden !important;
    contain: paint !important;
    transition: none !important;
    animation: none !important;

    /* Live backdrop blur forces extra work while scrolling on many phones.
       Large commerce UIs generally favour an opaque chrome surface here. */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.075) !important;
  }

  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome::before,
  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome::after {
    pointer-events: none !important;
  }

  .ivux-catalog-mobile-controls-anchor {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  /* Override every older state-specific rule. The JS hot path writes the final
     transform directly to the element in the same rAF. */
  html.ivux-catalog-header-visible #mobile_bar.ivux-catalog-compositor-chrome,
  html.ivux-catalog-header-hidden #mobile_bar.ivux-catalog-compositor-chrome,
  html.ivux-catalog-header-partial #mobile_bar.ivux-catalog-compositor-chrome,
  #mobile_bar.ivux-catalog-compositor-chrome.is-hidden-by-scroll,
  #mobile_bar.ivux-catalog-compositor-chrome.is-visible-by-scroll {
    transition: none !important;
  }

  @media (prefers-reduced-motion: reduce) {
    #mobile_bar.ivux-catalog-compositor-chrome,
    .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome {
      transition: none !important;
    }
  }
}


/* 1.10.18 — immediate upward reveal + exact 54px floating surface */
@media (max-width: 1023px) {
  /* Previous 1.10.12 safe-area padding enlarged the floating toolbar and could
     look like a second white layer under/around Sort + Filter. The mobile browser
     already owns the system safe area; this commerce toolbar must stay one row. */
  html.ivux-catalog-controls-floating .ivux-catalog-mobile-controls,
  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 54px !important;
    height: 54px !important;
    max-height: 54px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.055) !important;
  }

  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome .ivux-catalog-control,
  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome .ivux-catalog-native-filter-slot,
  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome .compact-toggle.ivux-amazzing-filter-trigger {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Make sure no legacy pseudo-element can paint a horizontal white strip.
     The ::after divider is re-created only as the center vertical separator. */
  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome::before {
    content: none !important;
    display: none !important;
  }
  .ivux-catalog-mobile-controls.is-floating.ivux-catalog-compositor-chrome::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 13px !important;
    bottom: 13px !important;
    left: 50% !important;
    width: 1px !important;
    height: auto !important;
    background: #e6e6e6 !important;
    pointer-events: none !important;
  }

  .ivux-catalog-mobile-controls-anchor {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
  }
}
\n\n/* 1.10.19 — stable bottom-sheet body lock; never jump the catalog scroll position */\n@media (max-width: 1023px) {\n  html.ivux-catalog-modal-open {\n    overflow: hidden !important;\n    overscroll-behavior: none !important;\n  }\n  body.ivux-catalog-modal-open {\n    overflow: hidden !important;\n    overscroll-behavior: none !important;\n    touch-action: none;\n  }\n  .ivux-catalog-sort-overlay.is-open {\n    overscroll-behavior: contain;\n  }\n  .ivux-catalog-sort-sheet {\n    overscroll-behavior: contain;\n    touch-action: pan-y;\n  }\n}\n

/* 1.10.20 — premium sort bottom sheet: preserve catalog paint + smooth open/close */
@media (max-width: 1023px) {
  /* Do not hide/reposition the document itself. Background scrolling is blocked
     by touch/wheel gesture cancellation in JS, keeping the product grid painted. */
  html.ivux-catalog-modal-open,
  body.ivux-catalog-modal-open {
    overflow: visible !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
  }

  .ivux-catalog-sort-overlay {
    visibility: hidden !important;
    pointer-events: none !important;
    contain: layout paint !important;
    transition: visibility 0s linear .29s !important;
  }

  .ivux-catalog-sort-overlay.is-open,
  .ivux-catalog-sort-overlay.is-closing {
    visibility: visible !important;
  }

  .ivux-catalog-sort-overlay.is-open {
    pointer-events: auto !important;
    transition-delay: 0s !important;
  }

  .ivux-catalog-sort-overlay.is-closing {
    pointer-events: none !important;
  }

  .ivux-catalog-sort-backdrop {
    background: rgba(0,0,0,.36) !important;
    opacity: 0 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: opacity .24s cubic-bezier(.2,.7,.2,1) !important;
    will-change: opacity !important;
  }

  .ivux-catalog-sort-overlay.is-open .ivux-catalog-sort-backdrop {
    opacity: 1 !important;
  }

  .ivux-catalog-sort-overlay.is-closing .ivux-catalog-sort-backdrop {
    opacity: 0 !important;
  }

  .ivux-catalog-sort-sheet {
    transform: translate3d(0, calc(100% + 12px), 0) !important;
    transition: transform .28s cubic-bezier(.22,.72,.18,1) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    box-shadow: 0 -8px 26px rgba(0,0,0,.12) !important;
  }

  .ivux-catalog-sort-overlay.is-open .ivux-catalog-sort-sheet {
    transform: translate3d(0,0,0) !important;
  }

  .ivux-catalog-sort-overlay.is-closing .ivux-catalog-sort-sheet {
    transform: translate3d(0, calc(100% + 12px), 0) !important;
  }

  .ivux-catalog-sort-close,
  .ivux-catalog-sort-backdrop {
    -webkit-tap-highlight-color: transparent !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .ivux-catalog-sort-backdrop,
    .ivux-catalog-sort-sheet {
      transition-duration: .01ms !important;
    }
  }
}


/* 1.10.21 — Temu/Digikala-style combination-aware mobile cart state */
@media (max-width: 1023px) {
  /* 1.8.0 intentionally hid the old stepper. The new stepper is now a primary
     purchase state and must be visible only when the selected combination is in cart. */
  .ivux-mobile-purchase-action .ivux-mobile-stepper-wrap {
    display: grid !important;
    grid-template-columns: minmax(128px, .92fr) minmax(0, 1.08fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    direction: ltr !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper {
    display: grid !important;
    grid-template-columns: 44px minmax(34px, 1fr) 44px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-button {
    min-width: 44px !important;
    min-height: 46px !important;
    height: 46px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-remove {
    color: #111 !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-count {
    min-width: 34px !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-cart-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 8px 12px !important;
    border: 1px solid #111 !important;
    border-radius: 4px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    text-align: center !important;
    direction: rtl !important;
    white-space: nowrap !important;
    touch-action: manipulation !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-cart-link:active {
    transform: translateY(1px) !important;
    background: #222 !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-button:active:not(:disabled) {
    background: #f5f5f5 !important;
  }
}


/* 1.10.22 — stable minus control at quantity 1 */
@media (max-width: 1023px) {
  .ivux-mobile-purchase-action .ivux-mobile-stepper-minus {
    position: relative !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-remove-at-min {
    color: #111 !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-remove-at-min::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 7px !important;
    width: 14px !important;
    height: 1px !important;
    border-radius: 999px !important;
    background: #d7d7d7 !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-button:focus-visible {
    outline: 2px solid #111 !important;
    outline-offset: -3px !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper {
    border-color: #dcdcdc !important;
  }

  .ivux-mobile-purchase-action .ivux-mobile-stepper-button,
  .ivux-mobile-purchase-action .ivux-mobile-stepper-count,
  .ivux-mobile-purchase-action .ivux-mobile-cart-link {
    -webkit-tap-highlight-color: transparent !important;
  }
}


/* 1.10.25 — supplier identity in Prestacart basket is owned by Commerce. */
.psf-cart-item .seller-name.ivux-commerce-supplier,
.cart-item .seller-name.ivux-commerce-supplier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 1.4;
}

.psf-cart-item .seller-name.ivux-commerce-supplier > .fa,
.psf-cart-item .seller-name.ivux-commerce-supplier > .fas,
.cart-item .seller-name.ivux-commerce-supplier > .fa,
.cart-item .seller-name.ivux-commerce-supplier > .fas {
  display: none !important;
}

.ivux-commerce-supplier .ivux-supplier-shop-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ivux-commerce-supplier .ivux-supplier-shop-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ivux-commerce-supplier .ivux-supplier-name {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* 1.10.27 — server-side PrestaCart supplier marker is data only. */
.ivux-cart-supplier-marker { display: none !important; }

/* ========================================================================== *
 * 1.10.31 — SHEIN-inspired mobile subcategory rail
 * Transformer keeps the original semantic links; Variant UX only reshapes the
 * mobile presentation into a compact horizontal discovery rail. Desktop stays
 * exactly as the theme renders it.
 * ========================================================================== */
@media (max-width: 1023px) {
  #subcategories.ivux-mobile-subcategories {
    position: relative;
    width: auto;
    margin: 0 -1px 10px;
    padding: 0;
    background: #fff;
    border-top: 1px solid #f3f3f3;
    border-bottom: 1px solid #ededed;
    overflow: hidden;
  }

  #subcategories.ivux-mobile-subcategories > .page_heading {
    display: none !important;
  }

  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-track,
  #subcategories.ivux-mobile-subcategories > ul.inline_list {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 8px 12px 9px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    direction: rtl;
    box-sizing: border-box;
  }

  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-track::-webkit-scrollbar,
  #subcategories.ivux-mobile-subcategories > ul.inline_list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  #subcategories.ivux-mobile-subcategories li,
  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-item {
    float: none !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-align: start;
  }

  /* IranKet intentionally uses text-only subcategories on mobile. */
  #subcategories.ivux-mobile-subcategories li > a.img,
  #subcategories.ivux-mobile-subcategories li > a.img picture,
  #subcategories.ivux-mobile-subcategories li > a.img img,
  #subcategories.ivux-mobile-subcategories .subcat_desc {
    display: none !important;
  }

  #subcategories.ivux-mobile-subcategories .s_title_block {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  #subcategories.ivux-mobile-subcategories .subcategory-name,
  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    max-width: 172px;
    padding: 0 15px !important;
    border: 1px solid #ededed;
    border-radius: 4px;
    background: #f6f6f6;
    color: #202124 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 110ms ease, border-color 110ms ease, transform 90ms ease;
    box-sizing: border-box;
  }

  #subcategories.ivux-mobile-subcategories .subcategory-name:active,
  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-link:active {
    background: #eeeeee;
    border-color: #e3e3e3;
    transform: scale(.98);
  }

  /* Keep the category header compact so the first products reach the viewport
     much sooner than Transformer's multi-row subcategory grid. */
  #subcategories.ivux-mobile-subcategories + .ivux-catalog-mobile-controls,
  #subcategories.ivux-mobile-subcategories ~ .ivux-catalog-mobile-controls {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-track,
  #subcategories.ivux-mobile-subcategories > ul.inline_list {
    gap: 7px;
    padding-inline: 10px !important;
    scroll-padding-inline: 10px;
  }

  #subcategories.ivux-mobile-subcategories .subcategory-name,
  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-link {
    min-height: 40px;
    max-width: 158px;
    padding-inline: 13px !important;
    font-size: 12.5px !important;
  }
}

/* ========================================================================== *
 * 1.10.32 — Mobile subcategory / Sort-Filter collision fix
 *
 * Transformer category markup can inherit row/float/overflow rules that make
 * the subcategory rail's visual children extend outside the parent's computed
 * height. The following rules make the rail own its vertical space while
 * keeping horizontal scrolling on the track itself. The normal toolbar then
 * starts after that space; floating behaviour is intentionally unchanged.
 * ========================================================================== */
@media (max-width: 1023px) {
  #subcategories.ivux-mobile-subcategories {
    display: flow-root !important;
    clear: both !important;
    height: auto !important;
    min-height: 60px !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
  }

  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-track,
  #subcategories.ivux-mobile-subcategories > ul.inline_list {
    position: relative !important;
    z-index: 1 !important;
    height: auto !important;
    min-height: 58px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
  }

  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-item,
  #subcategories.ivux-mobile-subcategories li {
    height: auto !important;
    min-height: 40px !important;
  }

  /* Only the in-flow toolbar gets separation. Once it becomes fixed, its
     compositor choreography remains exactly as previous UX versions. */
  .ivux-catalog-mobile-controls:not(.is-floating) {
    clear: both !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
  }

  #subcategories.ivux-mobile-subcategories + .ivux-catalog-mobile-controls:not(.is-floating),
  #subcategories.ivux-mobile-subcategories ~ .ivux-catalog-mobile-controls:not(.is-floating) {
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  #subcategories.ivux-mobile-subcategories {
    min-height: 58px !important;
    margin-bottom: 7px !important;
  }

  #subcategories.ivux-mobile-subcategories .ivux-mobile-subcategory-track,
  #subcategories.ivux-mobile-subcategories > ul.inline_list {
    min-height: 56px !important;
  }
}

/* ========================================================================== *
 * 1.10.33 — isolated mobile subcategory rail (hard fix for Transformer crop)
 *
 * The 1.10.31/1.10.32 approach reused Transformer's UL/LI/Bootstrap grid.
 * On the live category page those inherited layout rules still clipped the
 * lower half of the chips. 1.10.33 renders an independent rail with no theme
 * row/column classes, then hides only the native source on mobile.
 * ========================================================================== */
@media (max-width: 1023px) {
  #subcategories.ivux-mobile-subcategories-source {
    display: none !important;
  }

  .ivux-mobile-subcategory-rail[data-ivux-mobile-subcategories="1"] {
    position: relative !important;
    z-index: 3 !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border-top: 1px solid #f3f3f3 !important;
    border-bottom: 1px solid #ededed !important;
    box-sizing: border-box !important;
    contain: layout paint;
  }

  .ivux-mobile-subcategory-rail-track {
    position: relative !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    direction: rtl;
    box-sizing: border-box !important;
  }

  .ivux-mobile-subcategory-rail-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .ivux-mobile-subcategory-chip {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: 172px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 4px !important;
    background: #f7f7f7 !important;
    color: #202124 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 38px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    scroll-snap-align: start;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
  }

  .ivux-mobile-subcategory-chip:active {
    background: #eeeeee !important;
    border-color: #dedede !important;
    transform: scale(.98);
  }

  /* The normal toolbar must start after the rail's own 60px formatting box. */
  .ivux-mobile-subcategory-rail + .ivux-catalog-mobile-controls:not(.is-floating),
  .ivux-mobile-subcategory-rail ~ .ivux-catalog-mobile-controls:not(.is-floating),
  .ivux-catalog-mobile-controls:not(.is-floating) {
    clear: both !important;
  }
}

@media (max-width: 420px) {
  .ivux-mobile-subcategory-rail[data-ivux-mobile-subcategories="1"] {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    margin-bottom: 9px !important;
  }

  .ivux-mobile-subcategory-rail-track {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    gap: 7px !important;
    padding: 8px 10px !important;
    scroll-padding-inline: 10px;
  }

  .ivux-mobile-subcategory-chip {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    max-width: 158px !important;
    padding-inline: 13px !important;
    font-size: 12.5px !important;
    line-height: 38px !important;
  }
}

@media (min-width: 1024px) {
  .ivux-mobile-subcategory-rail[data-ivux-mobile-subcategories="1"] {
    display: none !important;
  }
}

/* ========================================================================== 
 * 1.10.34 — swipe discoverability for mobile subcategories
 *
 * A horizontal rail is not always perceived as scrollable when every chip is
 * fully boxed. Keep the rail compact but add three discoverability cues only
 * while there is hidden content: a clipped/faded edge, a tiny "بکشید" cue,
 * and a short first-visit motion. The cue disappears as soon as the user
 * touches, wheels or scrolls the rail and stays dismissed for the session.
 * ========================================================================== */
@media (max-width: 1023px) {
  .ivux-mobile-subcategory-rail[data-ivux-mobile-subcategories="1"] {
    --ivux-swipe-cue-width: 66px;
  }

  .ivux-mobile-subcategory-swipe-cue {
    display: none;
    position: absolute;
    z-index: 5;
    inset-inline-end: auto;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: var(--ivux-swipe-cue-width);
    pointer-events: none;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding-inline-start: 7px;
    color: #5c5c5c;
    background: linear-gradient(90deg, #fff 34%, rgba(255,255,255,.94) 58%, rgba(255,255,255,0));
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .18s ease;
  }

  .ivux-mobile-subcategory-rail.is-swipeable:not(.ivux-swipe-used) .ivux-mobile-subcategory-swipe-cue {
    display: flex;
    opacity: .94;
  }

  .ivux-mobile-subcategory-swipe-cue .ivux-swipe-cue-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .ivux-mobile-subcategory-swipe-cue .ivux-swipe-cue-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 20px;
    font-size: 22px;
    font-weight: 300;
    line-height: 18px;
    transform: translateX(0);
  }

  /* The fade intentionally covers a sliver of the left-most visible chip.
     That "peek" is a conventional affordance that more content continues. */
  .ivux-mobile-subcategory-rail.is-swipeable:not(.ivux-swipe-used) .ivux-mobile-subcategory-rail-track {
    padding-left: 18px !important;
  }

  .ivux-mobile-subcategory-rail.ivux-swipe-discovery .ivux-swipe-cue-arrow {
    animation: ivuxSubcategorySwipeCue 1.05s ease-in-out 2;
  }

  @keyframes ivuxSubcategorySwipeCue {
    0%, 100% { transform: translateX(0); opacity: .68; }
    50% { transform: translateX(-7px); opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .ivux-mobile-subcategory-rail.ivux-swipe-discovery .ivux-swipe-cue-arrow {
      animation: none !important;
    }
  }
}

@media (max-width: 420px) {
  .ivux-mobile-subcategory-rail[data-ivux-mobile-subcategories="1"] {
    --ivux-swipe-cue-width: 60px;
  }
  .ivux-mobile-subcategory-swipe-cue {
    padding-inline-start: 5px;
  }
  .ivux-mobile-subcategory-swipe-cue .ivux-swipe-cue-label {
    font-size: 9.5px;
  }
}

/* 1.10.36 — mobile PDP breadcrumb removal (Transformer + ST Page Banner).
   Transformer can render the breadcrumb in two different wrappers:
   1) core #breadcrumb_wrapper
   2) stpagebanner .breadcrumb_wrapper / #page_banner_container_*
   Hide the nav immediately; JS collapses ST Page Banner only when it has no
   meaningful banner content of its own. */
@media (max-width: 767px) {
  body#product #breadcrumb_wrapper,
  body#product .breadcrumb_spacing {
    display: none !important;
  }

  body#product .breadcrumb_wrapper .breadcrumb_nav,
  body#product [id^="page_banner_container_"] .breadcrumb_nav {
    display: none !important;
  }

  body#product .breadcrumb_wrapper.ivux-mobile-breadcrumb-empty,
  body#product [id^="page_banner_container_"].ivux-mobile-breadcrumb-empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
}
