/* فقط توی پریویو المنتور */
.elementor-editor-active .aatcbx .aatc {
  display: none !important; /* همه دکمه‌ها پنهان */
}

.elementor-editor-active .aatcbx .aatc:first-child {
  display: flex !important;  /* فقط اولی دیده بشه */
  opacity: 1;
}
.elementor-editor-active .aatcbx .outofstock{
  display: none !important;
}
:root {
    --aatc: #ef4056;
}
.aatc:not(.mini-cart-item-price) {
    display: none !important;
}
.aatc.active {
    display: flex !important;
}


.product-card-sticky .incart.bs-style span.text-sm,
.product-card-sticky .addtocartwt-title,
.product-card-sticky .single_add_to_cart_button2.addtocartwt span.text-sm
{
  font-size: 13px;
}
.product-card-sticky .addtocartwt-icon{
 display: none;
}
.product-card-sticky .shopAddToCart.bs-style div.lg\:h-\[50px\],
.product-card-sticky .addtocartwt.bs-style,
.product-card-sticky .incart.bs-style
{
  height: 45px;
}
.product-card-sticky .shopAddToCart.bs-style button svg{
    width: 17px;
    height: 17px;
}
.product-card-sticky .shopAddToCart.bs-style button {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
/* فقط Style1 compact */
.price-fixed-bottom-child-box.prk-aatc-compact .shopAddToCart > div{
  height: 32px !important;
  border-radius: 10px;
}

.price-fixed-bottom-child-box.prk-aatc-compact .plus,
.price-fixed-bottom-child-box.prk-aatc-compact .minus{
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.price-fixed-bottom-child-box.prk-aatc-compact .quantity{
  font-size: 14px !important;
  height: 18px !important;
}

.price-fixed-bottom-child-box.prk-aatc-compact .addtocartwt,
.price-fixed-bottom-child-box.prk-aatc-compact .incart{
  height: 32px !important;
  border-radius: 10px;
}

.price-fixed-bottom-child-box.prk-aatc-compact .addtocartwt-title,
.price-fixed-bottom-child-box.prk-aatc-compact .incart span{
  font-size: 12px !important;
}
.zero .box-quantity{
    display: none;
}

.product-type-simple .aatc{
    display: flex !important;
}
body.prk-atc-locked .prk-add2-cart .aatc:not(.pars-ext-atc){
   display: none  !important;
}
body.prk-atc-locked .prk-add2-cart .pars-ext-atc{
  display: block !important;
}
.invisible { visibility: hidden; }
/* وقتی مودال با دکمه‌ی بیرونی باز است، دکمه‌های افزودن داخلی دیده نشوند */
.single_variation_wrap,.prk-atc-locked .shopAddToCart .addtocartwt { display: none !important; }
form.cart,.stock{
  display: none  !important;
} 
@keyframes spin {
  to {
    transform: rotate(1turn)
  }
}
.bs-loading__circle {
  fill: currentColor;
  animation: spin .8s linear infinite;
}
.shopAddToCart .plus.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
    color: #dfdfdf;
}
.shopAddToCart.bs-style .plus.disabled{
    background-color: #f3f3f4;
    color: #cfced3;
}
.shopAddToCart.loading .plus,.shopAddToCart.loading .minus{
    pointer-events: none;
    cursor: default;
}

/* سبک پیشفرض پارس کالا */
.price-fixed-bottom .incart.bs-style.custom-width,
.price-fixed-bottom .shopAddToCart.bs-style.custom-width {
  width: 50%;
}
.plus.digi-style svg{
  color: var(--prk-color-primary, #ff5b0e);
}
.minus.digi-style svg{
 color: var(--prk-color-primary, #ff5b0e);
}

.minus.digi-style .trash{
 color: var(--prk-color-primary, #ff5b0e);
}
.input.bs-loading.digi-style svg{
  color: var(--prk-color-primary, #ff5b0e);
}
@media (max-width: 1023px) {
  .mobile-scroll-layout {
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .mobile-scroll-layout::-webkit-scrollbar {
    display: none;
  }

  .price-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e0e0e2;
    z-index: 10;
  }

  .price-fixed-bottom .price-fixed-bottom-child-box {
    width: 58%;
  }

  .price-fixed-bottom .incart-box {
    display: none;
  }

  .price-fixed-bottom .incart .incart-text {
    display: none;
  }

  .price-fixed-bottom .incart .incart-svg {
    display: block;
  }

  .price-fixed-bottom .incart {
    width: 36px;
  }

  @media (min-width: 640px) {
    .price-fixed-bottom .incart .incart-text {
      display: block;
    }

    .price-fixed-bottom .incart .incart-svg {
      display: none;
    }

    .price-fixed-bottom .incart {
      width: auto;
      flex: 1 1 0%;
    }
  }

  

  .price-fixed-bottom .incart.bs-style span {
    display: none;
  }

  .price-fixed-bottom .incart.bs-style svg {
    display: inline-block;
  }

  .price-fixed-bottom .incart.bs-style.custom-width {
    width: 50px;
  }

  .price-fixed-bottom .shopAddToCart.bs-style.custom-width {
    width: calc(100% - 36px);
  }
}

/* PRK AATC: unavailable selected variation must show only stock message, never CTA. */
.aatc.price-fixed-bottom-child-box.outofstock > .shopAddToCart,
.aatc.price-fixed-bottom-child-box.outofstock > .addtocartwt,
.aatc.price-fixed-bottom-child-box.outofstock > .incart,
.aatc.price-fixed-bottom-child-box[data-prk-available="0"] > .shopAddToCart,
.aatc.price-fixed-bottom-child-box[data-prk-available="0"] > .addtocartwt,
.aatc.price-fixed-bottom-child-box[data-prk-available="0"] > .incart {
  display: none !important;
}

.aatc.price-fixed-bottom-child-box.outofstock,
.aatc.price-fixed-bottom-child-box[data-prk-available="0"] {
  justify-content: center;
}

.aatc.price-fixed-bottom-child-box.outofstock > .outofstock,
.aatc.price-fixed-bottom-child-box[data-prk-available="0"] > .outofstock {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* PRK AATC Style2 / Digikala single-shell state guards */
.aatc[data-prk-aatc-style="style2"] .shopAddToCart.digi-style {
  min-width: 0;
  gap: 12px;
}

.aatc[data-prk-aatc-style="style2"] .shopAddToCart.digi-style.zero .box-quantity,
.aatc[data-prk-aatc-style="style2"] .shopAddToCart.digi-style.zero .incart-box {
  display: none !important;
}

.aatc[data-prk-aatc-style="style2"] .shopAddToCart.digi-style:not(.zero) .box-quantity {
  display: flex !important;
}

.aatc[data-prk-aatc-style="style2"] .shopAddToCart.digi-style:not(.zero) .addtocartwt.digi-style {
  display: none !important;
}

.aatc[data-prk-aatc-style="style2"] .shopAddToCart.digi-style.zero .addtocartwt.digi-style:not(.hidden) {
  display: flex !important;
}

.aatc[data-prk-aatc-style="style2"] .shopAddToCart.digi-style:not(.zero) .incart-box:not(.hidden) {
  display: block;
}

.aatc[data-prk-aatc-style="style2"] .addtocartwt.digi-style .bs-loading.digi-style.hidden {
  display: none !important;
}

/* PRK AATC: prevent duplicate taps while AJAX quantity operation is running */
.aatc.prk-aatc-busy .plus,
.aatc.prk-aatc-busy .minus,
.aatc.prk-aatc-busy .addtocartwt {
  pointer-events: none;
  cursor: wait;
}

.aatc.prk-aatc-busy .box-quantity,
.aatc.prk-aatc-busy .shopAddToCart {
  user-select: none;
}

.aatc .maxhint[hidden] {
  display: none !important;
}
