/* Kethron stock-status layout fix — 2026-11-16 */
/* Avoid the legacy global .badge rule (position:absolute) for stock labels. */

.k-stock-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  height: auto !important;
  padding: 7px 11px !important;
  border: 0;
  border-radius: 999px !important;
  color: #fff !important;
  background: #f97316;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(249, 115, 22, .18);
  vertical-align: middle;
  z-index: 4;
}

.k-stock-badge--out {
  color: #fff !important;
  background: #f97316 !important;
}

.k-stock-badge--in {
  color: #167847 !important;
  background: #e8f7ee !important;
  box-shadow: none;
}

.k-stock-badge--warning {
  color: #8a5700 !important;
  background: #fff3d6 !important;
  border: 1px solid #f5d58a;
  box-shadow: none;
  white-space: normal;
}

.k-stock-badge--inline {
  position: static !important;
  flex: 0 0 auto;
}

/* Homepage and shop cards: sale badge stays top-left; stock badge stays top-right. */
.product-style1 .product-img {
  position: relative;
}

.product-style1 .product-img .k-stock-badge--image,
.k-hero-product-media .k-stock-badge--image {
  position: absolute !important;
  top: 12px;
  right: 12px;
  z-index: 5;
  pointer-events: none;
}

.product-style1 .product-img .product-tag2 {
  z-index: 5;
}

/* A single full-width disabled CTA replaces the cart controls for unavailable items. */
.product-style1 .product-actions .k-out-of-stock-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  border: 1px solid #ffd2b5 !important;
  border-radius: 11px !important;
  background: #fff1e7 !important;
  color: #c85b0b !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.product-style1 .product-actions .k-out-of-stock-button::before,
.product-style1 .product-actions .k-out-of-stock-button::after {
  display: none !important;
}

/* Product details: status has its own row and never overlaps the quantity label. */
.product-about > .product-price {
  margin-bottom: 16px !important;
}

.product-about .k-product-stock-status {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 28px;
  margin: 0 0 22px;
  clear: both;
}

.product-about .k-product-stock-status .k-stock-badge {
  position: static !important;
  flex: 0 0 auto;
}

.product-about .k-product-stock-note {
  display: inline-block;
  color: #737b88;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.product-about .pro-btns .k-out-of-stock-button {
  min-width: 240px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 11px !important;
  background: #f97316 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.product-about .pro-btns .k-out-of-stock-button::before,
.product-about .pro-btns .k-out-of-stock-button::after {
  display: none !important;
}

/* Mobile: keep the unavailable button full width and do not show quantity controls. */
@media (max-width: 767.98px) {
  .product-about .k-product-stock-status {
    margin-bottom: 20px;
  }

  .product-about .pro-btns .k-out-of-stock-button {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0;
    min-height: 52px;
  }
}
