/* ===== Book Ad Banner — يظهر ويختفي تلقائيًا ===== */
.book-mini-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0F1E3D, #1a2d5a);
  border-top: 2px solid #e6c258;
  padding: 12px 16px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.book-mini-ad.show {
  transform: translateY(0);
}
.book-mini-ad.hide {
  transform: translateY(100%);
}
.book-mini-ad .ad-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.book-mini-ad .ad-content {
  flex: 1;
  min-width: 160px;
}
.book-mini-ad .ad-title {
  font-size: 13px;
  font-weight: 800;
  color: #e6c258;
  margin-bottom: 2px;
}
.book-mini-ad .ad-text {
  font-size: 12px;
  color: #c8d6f0;
  line-height: 1.4;
}
.book-mini-ad .ad-text b {
  color: #fff;
}
.book-mini-ad .ad-text .old-price {
  color: #8ea0c4;
  text-decoration: line-through;
  font-size: 11px;
}
.book-mini-ad .ad-text .new-price {
  color: #e6c258;
  font-weight: 900;
  font-size: 14px;
}
.book-mini-ad .ad-cta {
  flex-shrink: 0;
}
.book-mini-ad .ad-cta a {
  display: inline-block;
  background: linear-gradient(135deg, #e6c258, #d4a843);
  color: #0F1E3D;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}
.book-mini-ad .ad-cta a:hover {
  transform: scale(1.05);
}
.book-mini-ad .ad-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #8ea0c4;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.2s;
}
.book-mini-ad .ad-close:hover {
  color: #e6c258;
}
@media (max-width: 600px) {
  .book-mini-ad .ad-text { font-size: 11px; }
  .book-mini-ad .ad-cta a { font-size: 12px; padding: 8px 14px; }
}
