#ti-mobile-sticky-bar.ti-sticky-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  padding: 10px 12px;
}

#ti-mobile-sticky-bar .ti-sticky-inner{
  display: flex;
  gap: 10px;
  align-items: center;
}

#ti-mobile-sticky-bar .ti-sticky-variant-btn,
#ti-mobile-sticky-bar .ti-sticky-atc-btn{
  flex: 1;               /* ✅ 50/50 */
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  cursor: pointer;
  min-width: 0;
  width: 100%;
}
/* Sticky Choose Variant label = single line, no wrap */
#ti-mobile-sticky-bar .ti-sticky-variant-btn{
  overflow: hidden;
}

#ti-mobile-sticky-bar .ti-sticky-variant-text{
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* ... show karega */
}

/* ===============================
   TREOW ATC STATES (Minimal)
=============================== */

/* Common base */
#ti-outside-add-btn,
.ti-foot-atc,
[data-ti-sticky-atc],
.ti-sticky-simple-btn{
  position: relative;
}

/* Loading state */
#ti-outside-add-btn.loading,
.ti-foot-atc.loading,
[data-ti-sticky-atc].loading,
.ti-sticky-simple-btn.loading{
  opacity: 0.85;
  pointer-events: none;
}

/* Spinner */
#ti-outside-add-btn.loading::after,
.ti-foot-atc.loading::after,
[data-ti-sticky-atc].loading::after,
.ti-sticky-simple-btn.loading::after{
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: tiSpin1006 0.7s linear infinite;
}

/* Success tick */
#ti-outside-add-btn.success::after,
.ti-foot-atc.success::after,
[data-ti-sticky-atc].success::after,
.ti-sticky-simple-btn.success::after{
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}

/* Go state (simple highlight) */
#ti-outside-add-btn.go,
.ti-foot-atc.go,
[data-ti-sticky-atc].go,
.ti-sticky-simple-btn.go{
  filter: saturate(1.1);
}

/* Keyframes */
@keyframes tiSpin1006{
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}



/* ===============================
   OUTSIDE QTY + ADD TO CART (Treow)
=============================== */

.ti-outside-atc-wrapper{
  width:100%;
  display:flex;
  align-items:stretch;
  gap:10px;
}

/* Qty box */
.ti-qty-box{
  flex:0 0 74px;
  max-width:74px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Qty input */
.ti-qty-input{
  width:100%;
  height:100%;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent;
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#111827;
  padding:10px 8px;
  -moz-appearance:textfield; /* Firefox remove arrows */
}

/* Chrome / Safari remove arrows */
.ti-qty-input::-webkit-outer-spin-button,
.ti-qty-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

/* Add to cart button */
#ti-outside-add-btn{
  flex:1;
  border:0;
  border-radius:5px;
  background:#E36631;
  color:#fff;
  padding:16px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  font-size:18px;
  font-weight:800;
  line-height:1;
  transition:transform .12s ease, opacity .12s ease;
}

/* Icon */
#ti-outside-add-btn .ti-cart-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}

/* Text */
#ti-outside-add-btn .ti-btn-text{
  display:inline-block;
  white-space:nowrap;
}

/* Disabled state */
#ti-outside-add-btn[disabled],
#ti-outside-add-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}

/* Tap highlight remove (mobile) */
#ti-outside-add-btn,
.ti-qty-input{
  -webkit-tap-highlight-color: transparent;
}

/* Mobile small screens */
@media (max-width: 480px){
  .ti-outside-atc-wrapper{
    gap:8px;
  }

  .ti-qty-box{
    flex:0 0 64px;
    max-width:64px;
    border-radius:5px;
  }

  #ti-outside-add-btn{
    border-radius: 5px;
    padding:16px 16px;
    font-size:14px;
  }
}


.ti-simple-atc-wrapper{
  margin-top: 14px;
}

.ti-simple-atc-inner{
  display:flex;
  gap:10px;
  align-items:center;
}

.ti-simple-atc-btn{
  flex:1;
  height:48px;
  font-weight:700;
  border-radius:10px;
}




if (state === "go") {
  $btn.addClass("go");
  $btn.css({
    backgroundColor: "#0f172a",
    color: "#ffffff",
   
    
  });
} 