/* ========================================
   Sticky Buy Now Bar
   ======================================== */

.sticky-buy-now-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 990;
  background-color: rgba(0, 0, 0, 0.95);
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease, visibility 0.3s;
  /* iOSのホームインジケーター・Safariツールバー回避 */
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
}

.sticky-buy-now-bar.is-visible {
  visibility: visible;
  transform: translateY(0);
}

.sticky-buy-now-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.sticky-buy-now-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sticky-buy-now-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.sticky-buy-now-name {
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
}

.sticky-buy-now-price {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 120px;
}

.sticky-buy-now-price del {
  opacity: 0.6;
}

.sticky-buy-now-price ins {
  text-decoration: none;
}

.sticky-buy-now-action {
  flex-shrink: 0;
}

.sticky-buy-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 48px;
  border-radius: 22px;
  background-color: #4c92f3;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.sticky-buy-now-btn:hover {
  opacity: 0.85;
  color: #ffffff !important;
  text-decoration: none;
}

/* ========================================
   SP (767px以下)
   ======================================== */
@media screen and (max-width: 767px) {
  .sticky-buy-now-inner {
    padding: 0 16px;
    height: 56px;
  }

  .sticky-buy-now-thumb {
    width: 32px;
    height: 32px;
  }

  .sticky-buy-now-name {
    display: none;
  }

  .sticky-buy-now-price {
    font-size: 14px;
    min-width: auto;
  }

  .sticky-buy-now-btn {
    padding: 0 32px;
    font-size: 14px;
  }
}
