/* Sticky Add-to-Cart bar */
body.single-product { padding-bottom: 84px; } /* et bar ei kataks sisu */

.ks-sticky-atc{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 -18px 40px rgba(0,0,0,.10);
}

.ks-sticky-atc__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ks-sticky-atc__left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ks-sticky-atc__img{
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: rgba(0,0,0,.04);
  flex: 0 0 auto;
}

.ks-sticky-atc__txt{ min-width: 0; }
.ks-sticky-atc__title{
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.ks-sticky-atc__meta{
  font-size: 12px;
  opacity: .72;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.ks-sticky-atc__right{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ks-sticky-atc__price{
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ks-sticky-atc__price del{ opacity:.5; font-weight: 600; }
.ks-sticky-atc__price ins{ text-decoration:none; }

.ks-sticky-atc__btn{
  border: 0;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0,0,0,.86);
  color: #fff;
  transition: transform .12s ease, opacity .12s ease;
  white-space: nowrap;
}

.ks-sticky-atc__btn:hover{ transform: translateY(-1px); }
.ks-sticky-atc__btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }

@media (max-width: 520px){
  body.single-product { padding-bottom: 92px; }
  .ks-sticky-atc__title, .ks-sticky-atc__meta{ max-width: 44vw; }
  .ks-sticky-atc__btn{ padding: 12px 12px; }
}

@media (max-width: 680px) {
  .ks-sticky-atc__title, .ks-sticky-atc__meta{
    display: none;
  }
}



.ks-sticky-atc__btn.is-added{
  opacity: .92;
}
.ks-sticky-atc__btn.is-adding{
  opacity: .75;
}









/* Mobiilis: variatsioonid kohe hinna alla */
@media (max-width: 560px) {

  .woocommerce div.product div.summary {
    display: flex;
    flex-direction: column;
  }

  /* HIND */
  .woocommerce div.product div.summary > p.price,
  .woocommerce div.product div.summary > .price {
    order: 20;
    margin-bottom: 10px;
  }

  /* VARIATSIOONID + QTY + ADD TO CART */
  .woocommerce div.product div.summary > form.cart {
    order: 21;
    margin-top: 0;
  }

  /* LÜHIKIRJELDUS (kui tahad, et see jääks pärast valikuid) */
  .woocommerce div.product div.summary > .woocommerce-product-details__short-description {
    order: 30;
  }

  /* SINU “tagastus & garantii” plokk */
  .woocommerce div.product div.summary > .ks-trust {
    order: 40;
  }

  /* META (tootekood/kategooriad jne) */
  .woocommerce div.product div.summary > .product_meta {
    order: 60;
  }
}
