/* Compact buy strip: price + stock left, qty + cart right */

.product-buy-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  margin: 0.75rem 0 1rem;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: none;
}

.product-buy-strip .product-secondary-actions {
  display: none;
  margin: 0;
  gap: 8px;
  grid-column: 1 / -1;
}

.product-buy-strip .product-secondary-actions:has(.product-notify-link:not([hidden])) {
  display: flex;
}

.product-buy-strip .product-notify-link {
  font-size: 0.8125rem;
  font-weight: 600;
}

.product-buy-strip .product-price-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  grid-column: 1;
  min-width: 0;
}

.product-buy-strip .price-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 10px;
  margin: 0;
}

.product-buy-strip .price-row__main {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}

.product-buy-strip .price-placeholder,
.product-buy-strip .price-current {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
}

.product-buy-strip .price-unit {
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
}

.product-buy-strip .product-cheaper-link {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3b6fd9;
  white-space: nowrap;
}

.product-buy-strip .price-info {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.product-buy-strip .price-info--out-of-stock {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.product-buy-strip .product-actions.product-actions--engine {
  display: contents;
}

.product-buy-strip .product-actions__main-row {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-self: end;
  padding-left: 14px;
  border-left: 1px solid #e8edf3;
}

.product-buy-strip .quantity-selector {
  border-radius: 8px;
  border-color: #dbe3ee;
  background: #fff;
}

.product-buy-strip .quantity-btn {
  width: 32px;
  height: 38px;
  font-size: 1rem;
  background: #f8fafc;
}

.product-buy-strip .quantity-btn:hover {
  background: #f1f5f9;
}

.product-buy-strip .quantity-input {
  width: 40px;
  height: 38px;
  font-size: 0.875rem;
}

.product-buy-strip .btn-cart {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-buy-strip .product-package-banner {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #92400e;
  box-shadow: none;
}

.product-buy-strip .product-package-banner__icon {
  font-size: 0.9rem;
}

.product-buy-strip .product-package-banner__text {
  display: inline;
}

.product-buy-strip .product-package-banner__title,
.product-buy-strip .product-package-banner__detail {
  display: inline;
  font-size: 0.75rem;
  line-height: 1.2;
}

.product-buy-strip .product-package-banner__title {
  margin: 0 4px 0 0;
  font-weight: 700;
}

.product-buy-strip .product-package-banner__detail {
  color: #92400e;
}

@media (max-width: 720px) {
  .product-buy-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-buy-strip .product-price-block,
  .product-buy-strip .product-actions__main-row,
  .product-buy-strip .product-package-banner {
    grid-column: 1;
  }

  .product-buy-strip .product-actions__main-row {
    padding-left: 0;
    border-left: 0;
    justify-self: stretch;
    justify-content: flex-end;
  }

  .product-buy-strip .product-package-banner {
    grid-row: auto;
    margin-top: -2px;
  }
}

@media (max-width: 480px) {
  .product-buy-strip .product-actions__main-row {
    justify-content: stretch;
  }

  .product-buy-strip .btn-cart {
    flex: 1 1 auto;
  }
}
