/**
 * Sticky bottom product bar — always visible, fixed at bottom of viewport.
 * Layout matches the reference screenshot:
 * ┌──────────────────────────────────────────────────────────────────────┐
 * │ [cover]  Book Title Here  $1.00 $11.00 [SAVE 91%]   [ ADD TO CART ] │
 * └──────────────────────────────────────────────────────────────────────┘
 */

.shop-pbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.shop-pbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 10px 20px;
}

/* ── Cover ────────────────────────────────────────────────────── */
.shop-pbar__cover {
  flex: 0 0 auto;
  display: block;
  width: 50px;
  height: 66px;
  border-radius: 3px;
  overflow: hidden;
  background: #f4f4f4;
  text-decoration: none;
}

.shop-pbar__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-pbar__cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #8c1f27;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

/* ── Info ─────────────────────────────────────────────────────── */
.shop-pbar__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-pbar__title {
  font-size: 15px;
  font-weight: 600;
  color: #1c1917;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-pbar__title:hover {
  color: #8c1f27;
}

.shop-pbar__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-pbar__price-now {
  font-size: 18px;
  font-weight: 700;
  color: #1c1917;
  line-height: 1;
}

.shop-pbar__price-was {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  line-height: 1;
}

.shop-pbar__badge {
  display: inline-block;
  padding: 3px 8px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

/* ── Add to cart button ───────────────────────────────────────── */
.shop-pbar__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.18s ease;
}

.shop-pbar__btn:hover {
  background: #ea580c;
  color: #fff;
}

.shop-pbar__btn.added {
  background: #16a34a;
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .shop-pbar__inner {
    gap: 10px;
    padding: 8px 12px;
  }

  .shop-pbar__cover {
    width: 40px;
    height: 52px;
  }

  .shop-pbar__title {
    font-size: 13px;
  }

  .shop-pbar__price-now {
    font-size: 15px;
  }

  .shop-pbar__price-was {
    font-size: 11px;
  }

  .shop-pbar__badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .shop-pbar__btn {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* WooCommerce added_to_cart link hiding. */
.shop-pbar a.added_to_cart {
  display: none !important;
}
