/* ============================================================
   Bookmelon flyer skin
   Inspired by the bookstore posters: blush canvas, hot-pink
   banners, leaf-green wordmark, sun yellow, and colorful
   service chips.
   ============================================================ */

body.bm-flyer {
  background: linear-gradient(180deg, #fff7fb 0%, #fff 240px, #fff5f9 100%) !important;
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif !important;
}

body.bm-flyer h1,
body.bm-flyer h2,
body.bm-flyer h3,
body.bm-flyer h4,
body.bm-flyer h5,
body.bm-flyer h6,
body.bm-flyer .section-title,
body.bm-flyer .navbar-brand {
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  letter-spacing: -.02em;
}

/* ── Top strips ──────────────────────────────────────────── */
.site-topbar {
  background: #147233 !important;
  color: #fff !important;
  border-bottom: none !important;
  font-size: .78rem !important;
  font-weight: 700;
}

.site-topbar a { color: rgba(255,255,255,.92) !important; }
.site-topbar a:hover { color: var(--brand-yellow) !important; }
.site-topbar .topbar-accent { color: var(--brand-yellow) !important; }

.promo-bar {
  background: linear-gradient(90deg, #ff2f8a, #ff5aa4) !important;
  color: #fff !important;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
}

.promo-close { color: #fff !important; }

/* ── Navbar ──────────────────────────────────────────────── */
.main-navbar {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 3px solid #ffe08a !important;
  box-shadow: 0 8px 24px rgba(255, 47, 138, .06) !important;
}

.nav-link-custom {
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  background: #fff0f6 !important;
  color: var(--brand-pink) !important;
}

.search-form .form-control {
  background: #fff7fb !important;
  border: 2px solid #f7d0e2 !important;
  border-radius: 999px !important;
}

.search-form .form-control:focus {
  border-color: var(--brand-green) !important;
  box-shadow: 0 0 0 3px rgba(31, 157, 69, .15) !important;
}

.search-form .btn-search,
.badge-count {
  background: var(--brand-pink) !important;
}

.navbar-icon-btn:hover {
  background: #fff0f6 !important;
  color: var(--brand-pink) !important;
}

.btn-signin {
  background: var(--brand-pink) !important;
  border-radius: 999px !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  box-shadow: 0 8px 18px rgba(255, 47, 138, .28) !important;
}

.btn-signin:hover { background: var(--brand-pink-dark) !important; }

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-accent,
.btn-green,
.bcard-cart {
  background: var(--brand-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 18px rgba(31, 157, 69, .25) !important;
}

.btn-accent:hover,
.btn-green:hover,
.bcard-cart:hover {
  background: var(--brand-green-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-outline-primary-c {
  border: 2px solid var(--brand-pink) !important;
  color: var(--brand-pink) !important;
  background: #fff !important;
  border-radius: 999px !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-weight: 600 !important;
}

.btn-outline-primary-c:hover {
  background: var(--brand-pink) !important;
  color: #fff !important;
}

/* ── Flyer hero ──────────────────────────────────────────── */
.flyer-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 3vw, 2rem);
}

.flyer-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .flyer-hero-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 2.5rem;
  }
}

.flyer-script {
  font-family: 'Caveat', cursive !important;
  color: var(--brand-pink);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: .95;
  margin: 0 0 .4rem;
  transform: rotate(-6deg);
  display: inline-block;
}

.flyer-mark {
  width: 108px;
  height: auto;
  margin: .2rem 0 .35rem;
  filter: drop-shadow(0 8px 10px rgba(255, 47, 138, .18));
}

.flyer-wordmark {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.6rem) !important;
  font-weight: 700 !important;
  color: var(--brand-green) !important;
  line-height: .9 !important;
  letter-spacing: -.03em !important;
}

.flyer-tagline {
  margin: .45rem 0 1rem;
  color: var(--brand-green-dark);
  font-weight: 800;
  font-size: 1.02rem;
}

.flyer-banner {
  position: relative;
  display: inline-block;
  max-width: 560px;
  background: var(--brand-pink);
  color: #fff;
  border-radius: 28px 34px 30px 26px;
  padding: 1rem 1.4rem 1.05rem;
  box-shadow: 0 14px 0 rgba(255, 216, 74, .0), 8px 16px 0 rgba(255, 47, 138, .12);
  transform: rotate(-1.2deg);
}

.flyer-banner::before,
.flyer-banner::after {
  content: "";
  position: absolute;
  background: #ffe14d;
  border-radius: 4px;
}

.flyer-banner::before {
  width: 18px;
  height: 18px;
  left: -6px;
  top: 18px;
  transform: rotate(18deg);
  box-shadow: 28px 46px 0 #ffe14d;
}

.flyer-banner::after {
  width: 14px;
  height: 14px;
  right: 18px;
  bottom: -6px;
  transform: rotate(30deg);
}

.flyer-banner-name,
.flyer-banner-subname {
  display: block;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: .95;
  text-transform: uppercase;
}

.flyer-banner-name { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.flyer-banner-subname { font-size: clamp(1.55rem, 2.8vw, 2.15rem); color: #ffe14d; }

.flyer-banner p {
  margin: .45rem 0 0;
  font-weight: 800;
  font-size: .95rem;
}

.flyer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.25rem;
}

.flyer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.flyer-pills span {
  background: #fff;
  border: 2px solid #ffe08a;
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .78rem;
  font-weight: 800;
  color: var(--brand-green-dark);
}

.flyer-photo-wrap {
  position: relative;
  min-height: 280px;
}

.flyer-sun {
  position: absolute;
  top: -8px;
  right: 8%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ffe14d;
  box-shadow:
    0 -18px 0 -8px #ffe14d,
    0 18px 0 -8px #ffe14d,
    18px 0 0 -8px #ffe14d,
    -18px 0 0 -8px #ffe14d,
    13px 13px 0 -8px #ffe14d,
    -13px 13px 0 -8px #ffe14d,
    13px -13px 0 -8px #ffe14d,
    -13px -13px 0 -8px #ffe14d;
  z-index: 1;
}

.flyer-photo {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  border-radius: 46% 46% 28px 28px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 20px 40px rgba(255, 47, 138, .18);
  background: #ffe4f1;
}

.flyer-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.flyer-side-script {
  position: absolute;
  left: 10px;
  top: 0;
  z-index: 3;
  text-align: left;
  font-size: 2rem !important;
}

.flyer-heart {
  position: absolute;
  color: var(--brand-pink);
  z-index: 3;
  font-size: 1.3rem;
}

.flyer-heart.one { left: 8%; bottom: 12%; }
.flyer-heart.two { right: 18%; top: 8px; font-size: .9rem; }

/* ── Trust + sections ────────────────────────────────────── */
.home-trust {
  background: transparent !important;
  border: none !important;
  padding: .5rem 0 1.5rem !important;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

@media (min-width: 992px) {
  .home-trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.home-trust-item {
  background: #fff;
  border: 2px solid #ffe3ef;
  border-radius: 20px;
  padding: .85rem 1rem;
}

.home-trust-icon {
  border-radius: 50% !important;
  background: #fff0f6 !important;
  color: var(--brand-pink) !important;
}

.home-section { padding: clamp(2.2rem, 5vw, 3.6rem) 0 !important; }

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.home-section-head h2 {
  margin: .25rem 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

.home-section-alt {
  background: rgba(255,255,255,.72) !important;
  border: none !important;
  border-radius: 36px;
}

.home-section-label,
.section-eyebrow {
  color: var(--brand-pink) !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  letter-spacing: .08em !important;
}

.home-section-head h2,
.section-title {
  color: var(--brand-green-dark) !important;
  text-transform: none !important;
}

.view-all-link { color: var(--brand-pink) !important; font-weight: 800; }
.view-all-link:hover { color: var(--brand-pink-dark) !important; }

/* ── Services, matching the poster grid ──────────────────── */
.flyer-services {
  position: relative;
}

.flyer-services-head {
  text-align: center;
  margin-bottom: 1.4rem;
}

.flyer-services-pill {
  display: inline-block;
  background: var(--brand-green);
  color: #fff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  padding: .35rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 0 #147233;
  margin-bottom: .7rem;
}

.flyer-services-head p {
  max-width: 520px;
  margin: .4rem auto 0;
  color: var(--text-light);
  font-weight: 700;
}

.flyer-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

@media (min-width: 700px) {
  .flyer-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .flyer-services-grid { grid-template-columns: repeat(3, 1fr); }
}

.flyer-service {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 74px;
  padding: .55rem .9rem .55rem .55rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid transparent;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(20, 48, 36, .04);
}

.flyer-service:hover { transform: translateY(-2px); color: var(--text); }

.flyer-service i {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
}

.tone-pink { background: #ffe4f0; }
.tone-pink i { background: #ff4d8d; }
.tone-green { background: #e5f8e8; }
.tone-green i { background: #22a34a; }
.tone-orange { background: #fff1d6; }
.tone-orange i { background: #ff9f1c; }
.tone-purple { background: #f3e8ff; }
.tone-purple i { background: #9b59e0; }
.tone-blue { background: #e7f0ff; }
.tone-blue i { background: #3b82f6; }
.tone-magenta { background: #ffe4f3; }
.tone-magenta i { background: #e84393; }
.tone-teal { background: #e6faf7; }
.tone-teal i { background: #14b8a6; }
.tone-violet { background: #ede9fe; }
.tone-violet i { background: #7c3aed; }
.tone-red { background: #fee2e2; }
.tone-red i { background: #ef4444; }

.flyer-futures {
  margin: 1.4rem 0 0;
  text-align: right;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  line-height: 1 !important;
}

/* ── Bundle banner ───────────────────────────────────────── */
.bundle-promo-banner {
  background: transparent !important;
  padding: 0 0 1rem !important;
}

.bundle-promo-inner {
  background: var(--brand-pink) !important;
  border-radius: 32px !important;
  box-shadow: 0 16px 0 rgba(255, 216, 74, .85) !important;
  color: #fff !important;
}

.bundle-promo-text h3,
.bundle-promo-text p,
.bundle-promo-note { color: #fff !important; }

.bundle-promo-tag {
  background: #ffe14d !important;
  color: #7a4b00 !important;
  border-radius: 999px !important;
}

.bundle-promo-cta .btn-accent {
  background: #fff !important;
  color: var(--brand-pink) !important;
}

/* ── Cards, categories, deals ────────────────────────────── */
.book-card {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 225, 77, .55) 0 18px, transparent 19px),
    #fff !important;
  border: 3px solid #ffd0e6 !important;
  border-radius: 28px !important;
  overflow: visible !important;
  box-shadow: 7px 7px 0 #ffe14d !important;
}

.book-card:hover {
  border-color: #ff2f8a !important;
  box-shadow: 10px 12px 0 #ffe14d !important;
}

.bcard-img {
  margin: .7rem .7rem 0 !important;
  border-radius: 20px !important;
  border: 3px solid #fff !important;
  outline: 2px solid #ffd6e8;
  outline-offset: 2px;
  background: #fff0f6 !important;
  box-shadow: 0 0 0 6px #fff0f6;
  animation: none !important;
  overflow: hidden;
}

.bcard-img img {
  border-radius: 16px !important;
}

.bcard-body {
  padding: .95rem 1rem 1.05rem !important;
}

.bcard-category {
  color: var(--brand-pink) !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

.bcard-title {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 650 !important;
}

.bcard-price,
.book-detail-price { color: var(--brand-green-dark) !important; font-weight: 800; }

.bcard-price-off {
  background: #ffe14d !important;
  color: #7a4b00 !important;
  border-radius: 999px !important;
  padding: .12rem .45rem !important;
  font-weight: 800 !important;
}

.bcard-badges {
  top: .65rem !important;
  bottom: auto !important;
  left: .65rem !important;
}

.bcard-badge {
  border: 2px solid #fff !important;
  box-shadow: 0 3px 0 #ff2f8a;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  letter-spacing: .04em !important;
  transform: rotate(-8deg);
}

.bcard-badge-sale {
  background: #ffe14d !important;
  color: #7a4b00 !important;
}

.bcard-badge-new { background: var(--brand-green) !important; }
.bcard-badge-pre { background: #8b5cf6 !important; }

.bcard-ribbon {
  background: var(--brand-yellow) !important;
  color: #6b4a00 !important;
}

.category-card {
  background: #fff !important;
  border: 2px solid #ffe3ef !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}

.category-card .cat-icon {
  border-radius: 50% !important;
  background: #ffe4f0 !important;
  color: var(--brand-pink) !important;
}

.row > .col:nth-child(6n+2) .category-card .cat-icon { background: #e5f8e8 !important; color: #1f9d45 !important; }
.row > .col:nth-child(6n+3) .category-card .cat-icon { background: #fff1d6 !important; color: #e08600 !important; }
.row > .col:nth-child(6n+4) .category-card .cat-icon { background: #f3e8ff !important; color: #8b5cf6 !important; }
.row > .col:nth-child(6n+5) .category-card .cat-icon { background: #e6faf7 !important; color: #0f9488 !important; }
.row > .col:nth-child(6n+6) .category-card .cat-icon { background: #fee2e2 !important; color: #ef4444 !important; }

.category-card:hover {
  border-color: var(--brand-green) !important;
  transform: translateY(-3px);
}

.section-pills .nav-link {
  border-radius: 999px !important;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 600;
  border: 2px solid #f7d0e2 !important;
  background: #fff !important;
  color: var(--text) !important;
}

.section-pills .nav-link.active {
  background: var(--brand-pink) !important;
  border-color: var(--brand-pink) !important;
  color: #fff !important;
}

.editorial-band {
  background: linear-gradient(135deg, #fff 0%, #fff0f6 55%, #fff8dc 100%) !important;
  color: var(--text) !important;
  border: 3px solid #ffe08a !important;
  border-radius: 36px !important;
}

.editorial-band h2,
.editorial-band p { color: var(--text) !important; }

.editorial-band .section-eyebrow { color: var(--brand-pink) !important; }

.promo-card,
.premium-promo,
.testimonial-card,
.author-card,
.filter-card,
.reader-gallery-card {
  background: #fff !important;
  border: 2px solid #ffe3ef !important;
  border-radius: 22px !important;
}

.catalog-filter-toggle {
  width: 100%;
  margin-bottom: .8rem;
  border: 0;
  border-radius: 999px;
  background: #ff2f8a;
  color: #fff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 650;
  padding: .7rem 1rem;
  box-shadow: 0 6px 0 #ffe14d;
}

.catalog-filter-toggle[aria-expanded="true"] {
  background: #147233;
}

details:not([open]) > :not(summary) {
  display: none !important;
}

details.filter-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

details.filter-card > summary::-webkit-details-marker { display: none; }

details.filter-card > summary h6 {
  margin: 0;
}

details.filter-card > summary::after {
  content: "+";
  color: #ff2f8a;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

details.filter-card[open] > summary {
  margin-bottom: .7rem;
}

details.filter-card[open] > summary::after { content: "–"; }

.filter-subs {
  margin: 0 0 .45rem 1.35rem;
}

.filter-subs summary {
  cursor: pointer;
  list-style: none;
  color: #ff2f8a;
  font-size: .75rem;
  font-weight: 800;
}

.filter-subs summary::-webkit-details-marker { display: none; }

.filter-subs summary::before { content: "▸ "; }

.filter-subs[open] summary::before { content: "▾ "; }

@media (max-width: 991px) {
  .filter-card-search { display: none; }
}

.page-breadcrumb {
  background: transparent !important;
  border-bottom: none !important;
}

.breadcrumb-item a { color: var(--brand-pink); font-weight: 800; }

main .card,
.auth-card {
  border: 2px solid #ffe3ef !important;
  border-radius: 28px !important;
  box-shadow: 0 16px 36px rgba(255, 47, 138, .08) !important;
}

main .bg-light { background: transparent !important; }

.text-green { color: var(--brand-green) !important; }

.form-control,
.form-select {
  border-radius: 14px;
  border-color: #f3d5e4;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(31, 157, 69, .15);
}

.form-check-input:checked {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}

/* ── Newsletter ──────────────────────────────────────────── */
.premium-newsletter .newsletter-panel {
  background: var(--brand-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 32px !important;
  box-shadow: 0 16px 0 #ffe14d !important;
}

.premium-newsletter h2,
.premium-newsletter p,
.premium-newsletter .section-eyebrow { color: #fff !important; }

.premium-newsletter .newsletter-form .form-control {
  border-radius: 999px !important;
  border: none !important;
}

.premium-newsletter .btn-accent {
  background: var(--brand-pink) !important;
  color: #fff !important;
}

/* ── Footer ribbon ───────────────────────────────────────── */
.main-footer {
  background: #fff7fb !important;
  color: var(--text-light) !important;
  border-top: none !important;
  padding-top: 2.5rem !important;
  position: relative;
}

.main-footer::before { display: none !important; }

.main-footer .footer-heading {
  color: var(--brand-green-dark) !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
}

.main-footer .footer-links a,
.main-footer .footer-desc,
.main-footer .footer-contact-list,
.main-footer .footer-promo-text,
.footer-bottom {
  color: var(--text-light) !important;
}

.main-footer .footer-links a:hover { color: var(--brand-pink) !important; }

.footer-bottom {
  border-top: 2px dashed #f7d0e2 !important;
}

.footer-social-pill {
  background: #fff0f6 !important;
  color: var(--brand-pink) !important;
  border-radius: 50% !important;
}

.footer-whatsapp-card {
  background: #e9f9ee !important;
  border: 2px solid #b7ebc6 !important;
  border-radius: 24px !important;
  color: var(--text) !important;
}

.flyer-ribbon {
  margin-top: 1.5rem;
  background: linear-gradient(90deg, #ff2f8a, #ff4d9a);
  color: #fff;
  border-radius: 36px 36px 0 0;
  padding: 1.15rem 1.25rem .9rem;
  position: relative;
}

.flyer-ribbon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.flyer-ribbon a {
  color: #fff !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 180px;
}

.flyer-ribbon a i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flyer-ribbon a small {
  display: block;
  font-weight: 700;
  opacity: .85;
  font-size: .72rem;
}

.flyer-ribbon-tagline {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: .35rem;
}

.flyer-waves {
  height: 28px;
  margin: .35rem -1.25rem -0.9rem;
  background:
    radial-gradient(circle at 12px 0, transparent 12px, #ffe14d 13px) left top / 24px 16px repeat-x,
    linear-gradient(#1f9d45, #1f9d45);
  background-position: bottom, bottom;
  background-size: 28px 16px, 100% 12px;
  background-repeat: repeat-x, no-repeat;
}

.whatsapp-float {
  background: #25d366 !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35) !important;
}

.cart-drawer {
  border-left: 4px solid var(--brand-pink) !important;
}

.cart-drawer-head {
  background: #fff7fb;
}

.exit-popup-inner {
  border-radius: 28px !important;
  border: 3px solid #ffe08a;
}

/* Motion stays playful, but copy is never left invisible. */
@keyframes bm-rise {
  from { transform: translateY(18px); }
  to { transform: none; }
}

@keyframes bm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bm-sway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(-2deg); }
}

@keyframes bm-wobble {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(.8deg); }
}

@keyframes bm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bm-heartbeat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18); }
  60% { transform: scale(.96); }
}

@keyframes bm-pulse {
  0% { box-shadow: 0 8px 18px rgba(37, 211, 102, .35); }
  70% { box-shadow: 0 8px 18px rgba(37, 211, 102, .2), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 18px rgba(37, 211, 102, .35); }
}

.fade-in-up,
.stagger-children > * {
  opacity: 1 !important;
  transform: none;
}

.fade-in-up.is-visible {
  animation: bm-rise .7s cubic-bezier(.16, 1, .3, 1);
}

.stagger-children.is-visible > * {
  animation: bm-rise .55s cubic-bezier(.16, 1, .3, 1) both;
}

.stagger-children.is-visible > *:nth-child(1) { animation-delay: .04s; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: .08s; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: .12s; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: .16s; }
.stagger-children.is-visible > *:nth-child(5) { animation-delay: .2s; }
.stagger-children.is-visible > *:nth-child(6) { animation-delay: .24s; }
.stagger-children.is-visible > *:nth-child(7) { animation-delay: .28s; }
.stagger-children.is-visible > *:nth-child(8) { animation-delay: .32s; }
.stagger-children.is-visible > *:nth-child(9) { animation-delay: .36s; }
.stagger-children.is-visible > *:nth-child(10) { animation-delay: .4s; }
.stagger-children.is-visible > *:nth-child(11) { animation-delay: .44s; }
.stagger-children.is-visible > *:nth-child(12) { animation-delay: .48s; }

.flyer-hero-copy > * {
  animation: bm-rise .65s cubic-bezier(.16, 1, .3, 1) both;
}

.flyer-hero-copy > *:nth-child(1) { animation-delay: .05s; }
.flyer-hero-copy > *:nth-child(2) { animation-delay: .12s; }
.flyer-hero-copy > *:nth-child(3) { animation-delay: .18s; }
.flyer-hero-copy > *:nth-child(4) { animation-delay: .24s; }
.flyer-hero-copy > *:nth-child(5) { animation-delay: .3s; }
.flyer-hero-copy > *:nth-child(6) { animation-delay: .36s; }
.flyer-hero-copy > *:nth-child(7) { animation-delay: .42s; }
.flyer-hero-copy > *:nth-child(8) { animation-delay: .48s; }

.flyer-hero-copy > .flyer-mark {
  animation: bm-float 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.flyer-sun {
  animation: bm-spin 28s linear infinite;
}

.flyer-heart {
  animation: bm-heartbeat 1.8s ease-in-out infinite;
}

.flyer-heart.two { animation-delay: .6s; }

.flyer-service {
  animation: bm-rise .5s cubic-bezier(.16, 1, .3, 1) both;
}

.flyer-service:nth-child(2) { animation-delay: .05s; }
.flyer-service:nth-child(3) { animation-delay: .1s; }
.flyer-service:nth-child(4) { animation-delay: .15s; }
.flyer-service:nth-child(5) { animation-delay: .2s; }
.flyer-service:nth-child(6) { animation-delay: .25s; }
.flyer-service:nth-child(7) { animation-delay: .3s; }
.flyer-service:nth-child(8) { animation-delay: .35s; }
.flyer-service:nth-child(9) { animation-delay: .4s; }

.flyer-service i,
.home-trust-icon,
.category-card .cat-icon,
.btn-accent i,
.view-all-link i {
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.flyer-service:hover i,
.home-trust-item:hover .home-trust-icon {
  transform: scale(1.12) rotate(-8deg);
}

.category-card:hover .cat-icon {
  transform: rotate(-8deg) scale(1.08);
}

.btn-accent:hover i,
.view-all-link:hover i {
  transform: translateX(4px);
}

.book-card,
.category-card,
.home-trust-item,
.flyer-service {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.book-card {
  opacity: 1 !important;
  animation: bm-rise .55s cubic-bezier(.16, 1, .3, 1) both;
}

.whatsapp-float {
  animation: bm-pulse 2.2s ease-out infinite;
}

.flyer-photo {
  animation: bm-rise .8s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: .2s;
}

@media (min-width: 768px) {
  .flyer-hero-copy > .flyer-script,
  .flyer-futures {
    animation: bm-sway 4.8s ease-in-out infinite;
  }

  .flyer-hero-copy > .flyer-banner {
    animation: bm-wobble 5.5s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flyer-mark,
  .flyer-sun,
  .flyer-heart,
  .flyer-script,
  .flyer-banner,
  .flyer-futures,
  .flyer-photo,
  .flyer-service,
  .flyer-hero-copy > *,
  .fade-in-up,
  .fade-in-up.is-visible,
  .stagger-children > *,
  .stagger-children.is-visible > *,
  .whatsapp-float {
    animation: none !important;
  }
}

.promo-bar,
.promo-bar .promo-text {
  color: #fff !important;
}

.promo-text strong { color: #ffe14d !important; }

/* Footer copy was styled for a dark footer, so it vanished on the light one. */
.main-footer,
.main-footer .footer-heading,
.main-footer .footer-desc,
.main-footer .footer-links a,
.main-footer .footer-bottom,
.main-footer .footer-contact-list,
.main-footer .footer-contact-list li,
.main-footer .footer-contact-list li a,
.main-footer .footer-promo-heading,
.main-footer .footer-promo-text,
.main-footer .footer-promo-text p,
.main-footer .footer-whatsapp-title,
.main-footer .footer-brand {
  color: #143024 !important;
}

.main-footer .footer-whatsapp-text,
.main-footer .footer-desc {
  color: #3d5348 !important;
}

.main-footer .footer-contact-list li i { color: var(--brand-pink) !important; }

.main-footer .footer-links a:hover,
.main-footer .footer-contact-list li a:hover { color: var(--brand-pink) !important; }

.footer-bottom span {
  color: #147233 !important;
  background: #fff !important;
  border: 1px solid #f7d0e2;
}

.flyer-ribbon {
  background-color: #ff2f8a !important;
}

.flyer-ribbon,
.flyer-ribbon a,
.flyer-ribbon a small,
.flyer-ribbon-tagline {
  color: #fff !important;
}

.premium-promo h5,
.premium-promo p,
.promo-card h5,
.promo-card p,
.promo-card .eyebrow,
.editorial-band h2,
.editorial-band p,
.bcard-title,
.category-card h6 {
  color: #143024 !important;
}

.premium-promo p,
.promo-card p,
.bcard-author,
.category-card small,
.editorial-band p {
  color: #3d5348 !important;
}

@media (max-width: 991px) {
  body.bm-flyer { overflow-x: hidden; }

  .mobile-nav-actions {
    display: inline-flex !important;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .mobile-nav-icon,
  button.mobile-nav-icon,
  .navbar-toggler,
  .mobile-cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #147233 !important;
    background: #ffe4f1 !important;
    border: 2px solid #ffc2dd !important;
    border-radius: 999px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-decoration: none !important;
    position: relative;
  }

  .main-navbar {
    background: #fff !important;
    position: sticky;
  }

  .navbar-collapse {
    position: static !important;
    background: #fff !important;
    color: #143024 !important;
    border: 2px solid #ffe3ef !important;
  }

  .nav-link-custom,
  .mobile-cat-header,
  .mobile-cat-parent,
  .mobile-cat-child,
  .dropdown-item {
    color: #143024 !important;
  }

  .container-fluid.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .flyer-banner {
    transform: none;
    max-width: 100%;
  }

  .flyer-wordmark { font-size: 2.7rem !important; }

  .flyer-photo img {
    aspect-ratio: 1 / 1;
    max-height: 280px;
    object-fit: cover;
  }

  .flyer-service {
    border-radius: 22px;
    align-items: flex-start;
  }

  .flyer-service span { font-size: .95rem; }

  .home-section-head,
  .section-head {
    align-items: flex-start;
  }

  .section-pills {
    flex-wrap: wrap;
    width: 100%;
  }

  .flyer-ribbon-row { flex-direction: column; }
  .flyer-ribbon a { min-width: 0; }
}

/* iPad and other tablets: phone rules stop at 767, desktop starts at 992. */
@media (min-width: 768px) and (max-width: 1099px) {
  .flyer-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(240px, .82fr);
    gap: 1.25rem;
    align-items: center;
  }

  .flyer-wordmark { font-size: clamp(2.4rem, 4vw, 3.1rem) !important; }

  .flyer-banner {
    max-width: 100%;
    transform: none;
  }

  .flyer-banner-name { font-size: 1.55rem; }
  .flyer-banner-subname { font-size: 1.4rem; }

  .flyer-hero-copy > .flyer-script,
  .flyer-hero-copy > .flyer-banner,
  .flyer-futures {
    animation: none;
  }

  .flyer-side-script {
    position: static;
    display: block;
    width: auto;
    margin: 0 0 .35rem;
    text-align: left;
    font-size: 1.7rem !important;
    line-height: 1;
    transform: none !important;
  }

  .flyer-sun,
  .flyer-heart { display: none; }

  .flyer-photo-wrap { min-height: 0; }

  .flyer-photo {
    margin-top: 8px;
  }

  .flyer-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 440px;
    object-fit: cover;
    object-position: center 18%;
  }

  .flyer-sun {
    width: 52px;
    height: 52px;
    top: 42px;
    right: 6px;
  }

  .home-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
  }

  .home-trust-item {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: .8rem;
  }

  .home-trust-item h6,
  .home-trust-item p { color: #143024; }

  .flyer-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
  }
}

/* Phone: keep the script and sun off the reader's face. */
@media (max-width: 767px) {
  .flyer-photo-wrap {
    min-height: 0;
    margin-top: .15rem;
  }

  .flyer-side-script {
    position: relative;
    z-index: 2;
    display: block;
    width: calc(100% - 78px);
    margin: 0 0 .55rem;
    text-align: left;
    font-size: 2.05rem !important;
    line-height: .9;
    transform: none !important;
  }

  .flyer-sun {
    width: 46px;
    height: 46px;
    top: 2px;
    right: 2px;
    box-shadow:
      0 -11px 0 -5px #ffe14d,
      0 11px 0 -5px #ffe14d,
      11px 0 0 -5px #ffe14d,
      -11px 0 0 -5px #ffe14d,
      8px 8px 0 -5px #ffe14d,
      -8px 8px 0 -5px #ffe14d,
      8px -8px 0 -5px #ffe14d,
      -8px -8px 0 -5px #ffe14d;
  }

  .flyer-photo { margin-top: 0; }

  .flyer-photo img {
    aspect-ratio: 4 / 5;
    max-height: 440px;
    object-position: center 12%;
  }

  .flyer-heart.one { left: 12px; bottom: 14px; }
  .flyer-heart.two { top: auto; right: 14px; bottom: 18%; }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
  }

  .home-trust-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .65rem;
    padding: .8rem .85rem;
  }

  .home-trust-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    font-size: .95rem;
  }

  .home-trust-item h6,
  .home-trust-item p {
    margin: 0;
    color: #143024;
  }

  .home-trust-item p {
    font-size: .78rem;
    line-height: 1.3;
  }
}

/* Tablet header: fill the empty bar and match the icon buttons. */
.navbar-tablet-search { display: none; }

@media (min-width: 576px) and (max-width: 991px) {
  .main-navbar .container-fluid {
    flex-wrap: nowrap !important;
    align-items: center;
    gap: .85rem;
  }

  .navbar-brand {
    margin-right: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .brand-logo-img {
    width: auto !important;
    max-width: 180px !important;
    height: 74px !important;
    padding: 0 !important;
    transform: none !important;
    object-fit: contain;
    object-position: left center;
  }

  .navbar-tablet-search {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    position: relative;
    min-width: 0;
    margin: 0;
  }

  .navbar-tablet-search i {
    position: absolute;
    left: 1rem;
    color: #147233;
    font-size: .9rem;
    pointer-events: none;
  }

  .navbar-tablet-search input {
    width: 100%;
    height: 46px;
    border: 2px solid #f7d0e2;
    border-radius: 999px;
    background: #fff7fb;
    color: #143024;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: .95rem;
    padding: 0 1.1rem 0 2.6rem;
    outline: none;
  }

  .navbar-tablet-search input:focus {
    border-color: #1f9d45;
    box-shadow: 0 0 0 3px rgba(31, 157, 69, .15);
  }

  .mobile-nav-actions > a.mobile-nav-icon {
    display: none !important;
  }
}

/* Stacked watermelon lockup: show the whole logo, including the wordmark. */
.navbar-brand {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center;
  padding: 0 !important;
}

.brand-logo-img {
  display: block !important;
  width: auto !important;
  height: 88px !important;
  max-width: 220px !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.footer-logo-img {
  display: block !important;
  width: 200px !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  background: transparent !important;
  border-radius: 0 !important;
}

@media (max-width: 991px) {
  .brand-logo-img {
    height: 74px !important;
    max-width: 180px !important;
  }
}

@media (max-width: 575px) {
  .brand-logo-img {
    height: 68px !important;
    max-width: 150px !important;
  }
}
