/**
 * LoveSweetBook — Elementor-friendly page helpers (v0.18.2)
 * Shelf bar + multi-row bookshelf + light layout hooks for Phòng Khách / Kệ sách pages.
 */

.lsb-shelf-bar {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0.35rem 0 1.5rem;
  border-radius: 2px 2px 4px 4px;
  background:
    linear-gradient(180deg, #c4a574 0%, #a67c52 45%, #8b5e3c 100%);
  box-shadow:
    0 2px 0 rgba(61, 43, 31, 0.18),
    0 6px 10px rgba(61, 43, 31, 0.12),
    inset 0 1px 0 rgba(255, 236, 200, 0.45);
  position: relative;
}

.lsb-shelf-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 1px;
  background: rgba(255, 236, 200, 0.35);
  pointer-events: none;
}

.lsb-shelf-bar::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6px;
  height: 6px;
  border-radius: 0 0 3px 3px;
  background: rgba(61, 43, 31, 0.12);
  filter: blur(2px);
  pointer-events: none;
}

.lsb-ek-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffb6c8 url("") center / cover no-repeat;
  box-sizing: border-box;
}

.lsb-ek-hero__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  box-sizing: border-box;
  text-align: center;
  color: #3d2b1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lsb-ek-hero__inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.lsb-ek-hero__inner p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 36em;
}

.lsb-ek-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  box-sizing: border-box;
}

.lsb-ek-two-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .lsb-ek-two-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.lsb-love-note,
.lsb-around-room {
  margin: 0.75rem 0 0;
}

.lsb-love-note--empty,
.lsb-around-room--empty {
  color: #6b4f5a;
  font-style: italic;
}

.lsb-around-room {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.lsb-around-room__item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(61, 43, 31, 0.1);
}

.lsb-around-room__item:last-child {
  border-bottom: 0;
}

.lsb-around-room__author {
  font-weight: 600;
  color: #c2185b;
}

.lsb-around-room__excerpt {
  margin: 0.25rem 0 0;
}

.lsb-around-room__meta {
  margin: 0.2rem 0 0;
  font-size: 0.9em;
  opacity: 0.8;
}

.lsb-phong-rieng {
  max-width: 42rem;
  margin: 1.5rem auto;
  padding: 1.25rem 1rem;
}

.lsb-phong-rieng__guest {
  text-align: center;
}

.lsb-phong-rieng__guest p {
  margin: 0.5rem 0;
}

.lsb-phong-rieng__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.lsb-phong-rieng__actions a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  background: #ff80b3;
  color: #fff;
}

.lsb-phong-rieng__actions a.lsb-phong-rieng__register {
  background: transparent;
  color: #c2185b;
  border: 1px solid #ff80b3;
}

.lsb-phong-rieng__section {
  margin: 1.25rem 0;
}

.lsb-latest-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem 0.85rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.35rem;
}

/* Multi-row bookshelf: shelf spans full grid width after every row */
.lsb-bookshelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem 0.75rem;
  align-items: end;
  margin: 1rem 0 0.35rem;
  box-sizing: border-box;
}

.lsb-bookshelf__item {
  min-width: 0;
}

.lsb-bookshelf__shelf {
  grid-column: 1 / -1;
  margin: 0;
}

.lsb-bookshelf__shelf .lsb-shelf-bar {
  margin: 0.15rem 0 1.25rem;
}

.lsb-bookshelf__title {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
}

.lsb-bookshelf__title a {
  color: inherit;
  text-decoration: none;
}

.lsb-bookshelf__cover-placeholder {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  background: #ffe6f2;
  color: #6b4f5a;
  font-size: 0.85rem;
}

/* Uniform portrait covers (~2:3) for grids + [lsb_book_cover] */
.lsb-bookshelf__cover,
.lsb-latest-books__cover,
.lsb-book-cover {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ffe6f2;
}

.lsb-bookshelf__cover-link,
.lsb-latest-books__cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

.lsb-bookshelf__cover img,
.lsb-bookshelf__cover .lsb-book-cover__img,
.lsb-latest-books__cover img,
.lsb-latest-books__cover .lsb-book-cover__img,
.lsb-book-cover__img,
.lsb-quote-book-cover__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lsb-quote-book-cover {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ffe6f2;
}

.lsb-latest-books__cover-placeholder {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  background: #ffe6f2;
  color: #6b4f5a;
  font-size: 0.85rem;
}
