/* =========================
   BUY PAGE - MOBILE VERSION
   ========================= */

@media (max-width: 768px) {

  /* ===== Global Reset ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Segoe UI", sans-serif;
  }

  body {
    background: #B7A3E3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    transition: background 0.5s ease-in-out;
  }

  /* ===== Navbar ===== */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(45, 29, 71, 0.95);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo {
    height: 40px;
    border-radius: 50%;
  }

  .brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }

  /* ===== Hamburger Menu ===== */
  .menu-toggle {
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    display: block;
  }

  /* ===== Navigation Links ===== */
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(45, 29, 71, 0.97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: left 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.show {
    left: 0;
  }

  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: #f472b6;
  }

  /* ===== Book Section ===== */
  .buy-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    animation: fadeInZoom 1s ease forwards;
  }

  @keyframes fadeInZoom {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .book-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: rgba(45, 29, 71, 0.85);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
  }

  .book-display:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  }

  .book-cover {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    transition: transform 0.4s ease;
  }

  .book-cover:hover {
    transform: scale(1.08) rotate(2deg);
  }

  .book-info h2 {
    font-family: 'Cormorant Upright', serif;
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f472b6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
  }

  .description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: left;
  }

  .price {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    text-align: left;
  }

  .buy-btn {
    background: linear-gradient(90deg, #10b981, #22c55e);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    text-align: center;
  }

  .buy-btn:hover {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
  }

  /* ===== Popup Modal ===== */
  .modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: fadeIn 0.4s ease forwards;
  }

  .modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 35px 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    color: #fff;
    animation: zoomIn 0.5s ease forwards;
  }

  @keyframes zoomIn {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .close:hover {
    transform: scale(1.2);
    color: #f472b6;
  }

  .modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(90deg, #f472b6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  label {
    font-weight: 600;
    color: #f9fafb;
  }

  input {
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    outline: none;
  }

  .pay-btn {
    background: linear-gradient(90deg, #f472b6, #ec4899);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
  }

  .pay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.6);
  }

  .pay2-btn {
  display: inline-block;
  text-align: center;
  background: linear-gradient(90deg, #f472b6, #ec4899);
  color: white;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 25px;
  text-decoration: none; /* Important for links */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

.pay2-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.6);
}


  /* ===== Footer ===== */
  footer {
    background: linear-gradient(90deg, #f472b6, #ec4899);
    color: rgba(45, 29, 71, 0.9);
    font-size: 14px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(5px);
  }

  footer a {
    color: rgba(45, 29, 71, 0.9);
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  footer a:hover {
    transform: scale(1.15);
    color: #fff;
  }

  footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
}
