/* ═══ WSTR unified footer (extracted from the canonical shop footer) ═══ */
/* FOOTER */
    .footer {
      background: #2d261a;
      padding: 70px 0 30px;
      color: rgba(248, 223, 179, 0.6);
      position: relative;
      overflow: hidden;
    }
.footer-stars {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
.footer-star {
      position: absolute;
      background: white;
      border-radius: 50%;
      animation: footerStarPulse 4s ease-in-out infinite;
    }
.footer-star:nth-child(1) { width: 2px; height: 2px; top: 10%; left: 5%; animation-delay: 0s; }
.footer-star:nth-child(2) { width: 2px; height: 2px; top: 20%; left: 15%; animation-delay: 0.5s; }
.footer-star:nth-child(3) { width: 3px; height: 3px; top: 5%; left: 30%; animation-delay: 1s; }
.footer-star:nth-child(4) { width: 2px; height: 2px; top: 15%; left: 45%; animation-delay: 0.3s; }
.footer-star:nth-child(5) { width: 2px; height: 2px; top: 8%; left: 60%; animation-delay: 0.8s; }
.footer-star:nth-child(6) { width: 3px; height: 3px; top: 22%; left: 75%; animation-delay: 1.2s; }
.footer-star:nth-child(7) { width: 2px; height: 2px; top: 12%; left: 88%; animation-delay: 0.6s; }
.footer-star:nth-child(8) { width: 2px; height: 2px; top: 25%; left: 95%; animation-delay: 0.4s; }
.footer-content {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1.5fr 2fr;
      gap: 80px;
      margin-bottom: 50px;
    }
.footer-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      margin-bottom: 20px;
    }
.footer-logo span { 
      font-family: var(--font-story); 
      font-size: 1.2rem; 
      color: #F8DFB3;
      font-style: italic;
      transition: all 0.3s ease;
    }
.footer-logo:hover span,
    .footer-logo:focus span {
      color: #fff;
      text-shadow: 0 0 10px rgba(248, 223, 179, 0.5);
    }
.footer-brand p { 
      line-height: 1.8; 
      font-size: 0.9rem; 
      color: rgba(248, 223, 179, 0.6);
    }
/* Social Links */
    .social-links {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      flex-wrap: wrap;
    }
.social-link {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(248, 223, 179, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #F8DFB3;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid rgba(248, 223, 179, 0.2);
    }
.social-link:hover, .social-link:focus {
      background: rgba(248, 223, 179, 0.25);
      transform: translateY(-5px) scale(1.1);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(248, 223, 179, 0.2);
      border-color: rgba(248, 223, 179, 0.5);
      color: #fff;
    }
.social-link svg {
      width: 20px;
      height: 20px;
    }
/* Legal Badges */
    .legal-badges {
      display: flex;
      gap: 10px;
      margin-top: 20px;
      align-items: center;
    }
.badge-link {
      display: block;
      width: 130px;
      height: 50px;
      border-radius: 8px;
      overflow: hidden;
      transition: all 0.3s ease;
    }
.badge-link:hover, .badge-link:focus {
      transform: translateY(-3px);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
.badge-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      filter: grayscale(100%) sepia(40%) brightness(1.1);
    }
.badge-link:hover .badge-img {
      filter: grayscale(50%) sepia(30%) brightness(1.2);
    }
.footer-links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
    }
.footer-column h4 {
      color: #F8DFB3;
      font-family: var(--font-story);
      font-size: 1rem;
      font-weight: 500;
      margin-bottom: 20px;
      position: relative;
      display: inline-block;
    }
.footer-column h4::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 30px;
      height: 2px;
      background: linear-gradient(90deg, var(--honey) 0%, transparent 100%);
    }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { 
      color: rgba(248, 223, 179, 0.6); 
      text-decoration: none; 
      font-size: 0.9rem; 
      transition: all 0.3s ease;
      position: relative;
      display: inline-block;
    }
.footer-column a::before {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: #F8DFB3;
      transition: width 0.3s ease;
    }
.footer-column a:hover, .footer-column a:focus { color: #F8DFB3; }
.footer-column a:hover::before, .footer-column a:focus::before { width: 100%; }
.footer-bottom {
      position: relative;
      z-index: 1;
      border-top: 1px solid rgba(248, 223, 179, 0.1);
      padding-top: 30px;
      text-align: center;
      font-size: 0.85rem;
      color: rgba(248, 223, 179, 0.5);
    }
.footer-bottom .heart {
      color: #F8DFB3;
      font-size: 1rem;
      display: inline-block;
      animation: heartbeat 1.5s ease-in-out infinite;
    }
.footer-company {
      margin-top: 10px;
      font-size: 0.75rem;
      color: rgba(248, 223, 179, 0.4);
    }
/* ISBN Publication Info */
    .isbn-info { font-size: 0.8rem; color: rgba(248, 223, 179, 0.6); line-height: 1.8; margin-top: 20px; }
.isbn-info p { margin: 5px 0; }
.isbn-info strong { color: #F8DFB3; }
@media (max-width: 768px) {
  /* Footer */
      .footer-content { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .footer-column { text-align: center; }
  .footer-column h4 { margin-bottom: 15px; }
  .footer-column ul { display: flex; flex-direction: column; align-items: center; }
  .footer-column a { 
        padding: 8px 0; 
        min-height: 44px;
        display: inline-flex;
        align-items: center;
      }
  .social-links { justify-content: center; }
  .social-link { width: 48px; height: 48px; }
  .legal-badges { justify-content: center; }
}
@media (max-width: 480px) {
  /* Footer stacked on very small screens */
      .footer-links { grid-template-columns: 1fr; gap: 25px; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-column { margin-bottom: 10px; }
  .footer-column h4::after { left: 50%; transform: translateX(-50%); }
  /* ISBN info smaller */
      .isbn-info { font-size: 0.75rem; }
  .isbn-info p { margin: 3px 0; }
}


/* ═══ Self-contained layout: the footer no longer depends on host-page CSS ═══ */
.footer .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
/* defend against host-page list/paragraph styles leaking in */
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 10px 0; padding: 0; }
.footer p { margin: 0 0 12px 0; }
.footer-column h4 { margin: 0 0 20px 0; }
.footer, .footer a { line-height: 1.7; }
.footer * { box-sizing: border-box; }
