* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: 6px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.toast-message.show {
  opacity: 1;
}

.toast-message.success {
  background-color: #28a745;
}

.toast-message.error {
  background-color: #dc3545;
}

/* ================= Django Messages ================= */

.messages {
  margin-bottom: 20px;
}

.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease-in-out;
}

/* SUCCESS */
.alert.success {
  background-color: #e6f7ee;
  color: #0f5132;
  border-left: 5px solid #198754;
}

/* ERROR */
.alert.error {
  background-color: #fdecea;
  color: #842029;
  border-left: 5px solid #dc3545;
}

/* WARNING */
.alert.warning {
  background-color: #fff3cd;
  color: #664d03;
  border-left: 5px solid #ffc107;
}

/* INFO */
.alert.info {
  background-color: #e7f1ff;
  color: #084298;
  border-left: 5px solid #0d6efd;
}

/* Close button (optional) */
.alert .close-btn {
  margin-left: auto;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}

.alert .close-btn:hover {
  opacity: 1;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========= GENERAL ========= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: #f9f9f9;
}

/* ========= NAVBAR ========= */
.header {
  background: white;
  padding: 18px 60px;
  border-bottom: 1px solid #e5e5e5;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo a {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo-her {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #2d2d2d;
  font-style: italic;
  letter-spacing: -0.5px;
}

.logo-choice {
  font-family: 'Dancing Script', cursive;
  font-size: 38px;
  font-weight: 700;
  background: linear-gradient(45deg, #ff1680, #ff4d94);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: -2px;
}

/* Search */
/* ========= NAVBAR SEARCH (Updated) ========= */

.nav-search {
  flex: 1;
  max-width: 550px;
  margin: 0 30px;
}

/* The horizontal wrapper for Box + Clear Button */
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Space between the bar and the X button */
  width: 100%;
}

/* The Main Search Box (Input + Search Button) */
.search-box {
  display: flex;
  flex: 1;
  /* Grows to fill space */
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #ff1680;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(255, 22, 128, 0.1);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 15px;
  outline: none;
  font-size: 14px;
}

/* The Pink Search Button inside the box */
.btn-search {
  background: #ff1680;
  color: white;
  border: none;
  padding: 0 20px;
  height: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-search:hover {
  background: #e61473;
}

/* The Clear Button placed BESIDE the search bar */
.btn-clear-outside {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  /* Makes it a perfect square */
  height: 42px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #888;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
}

.btn-clear-outside:hover {
  background: #fff0f6;
  color: #ff1680;
  border-color: #ff1680;
}

/* 5. Mobile Responsiveness */
@media (max-width: 992px) {
  .header {
    padding: 15px 30px;
  }

  .menu {
    gap: 20px;
  }

  .nav-search {
    max-width: 250px;
    margin: 0 15px;
  }

  .logo a {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 15px;
  }

  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu {
    display: none;
    /* Hide menu on mobile for now as there's no hamburger toggle */
  }

  .nav-search {
    order: 3;
    margin: 15px 0 0;
    max-width: 100%;
    width: 100%;
  }

  .icons {
    gap: 12px;
  }

  .btn-login {
    padding: 8px 15px;
    font-size: 13px;
  }

  .user-name {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 20px;
  }

  .icons {
    gap: 10px;
  }

  .icon-btn {
    font-size: 16px;
  }
}

/* Menu */
.menu {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.menu li a:hover {
  color: #ff1680;
}

/* Right Icons + Auth */
.icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icons form {
  display: flex;
  align-items: center;
  margin: 0;
}

.icon-btn {
  font-size: 20px;
  color: #333;
  text-decoration: none;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff1680;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 2px solid white;
  z-index: 10;
}

.icon-btn:hover {
  color: #ff1680;
}

/* Auth Buttons */
.btn-login {
  font-size: 14px;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  background: #ff1680;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: #d10068;
}

.user-name {
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.btn-profile {
  text-decoration: none;
}

/* Logout */
.logout-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #333;
}

.logout-btn:hover {
  color: #ff1680;
}

/* ========= FOOTER ========= */

/* FOOTER MAIN SECTION */
.footer {
  background: #f3f3f5;
  padding: 60px 80px;
  margin-top: 80px;
  color: #333;
  font-family: Arial, sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

/* COLUMNS */
.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.footer-logo .logo-her {
  font-size: 24px;
}

.footer-logo .logo-choice {
  font-size: 28px;
}

.footer-text {
  width: 85%;
  margin-top: 10px;
  color: #666;
  line-height: 1.6;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 17px;
  color: #000;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #555;
  font-size: 15px;
}

.footer-col ul li a:hover {
  color: #ff1680;
}

/* NEWSLETTER */
.newsletter-form {
  display: flex;
  margin-top: 10px;
}

.newsletter-form input {
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 6px 0 0 6px;
  border: 1px solid #ccc;
  width: 65%;
}

.newsletter-form button {
  padding: 10px 18px;
  font-size: 15px;
  border: none;
  background: #ff1680;
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #e01473;
}

/* DIVIDER */
.footer hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* BOTTOM ROW */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: #666;
}

.footer-links a {
  margin-left: 20px;
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff1680;
}

/* ===============================
   DJANGO MESSAGES (Her Choice Style)
   =============================== */

.messages-container {
  position: fixed;
  top: 85px;
  /* Adjust based on your header height */
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 350px;
}

.alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.3s ease;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-content i {
  font-size: 18px;
}

/* Success - Styled with a touch of your pink branding */
.alert-success {
  border-left: 5px solid #2ecc71;
  background: #f0fff4;
  color: #1b5e20;
}

.alert-success i {
  color: #2ecc71;
}

/* Error/Danger - Styled with your main brand color #ff1680 */
.alert-error,
.alert-danger {
  border-left: 5px solid #ff1680;
  background: #fff5f8;
  color: #a91054;
}

.alert-error i {
  color: #ff1680;
}

/* Warning */
.alert-warning {
  border-left: 5px solid #f1c40f;
  background: #fffdf0;
  color: #7d6608;
}

.message-text {
  font-size: 14px;
  font-weight: 500;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Optional Auto-Hide Animation (Uncomment if you want them to disappear) */
/*
.alert {
  animation: slideIn 0.4s forwards, fadeOut 0.5s forwards 4.5s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
  }
}
*/