
/* -----------------------------------
   Google Fonts Import
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Quicksand:wght@400;500;700&display=swap');

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

/* -----------------------------------
   Global Typography
----------------------------------- */
body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
  padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1938C6;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

/* -----------------------------------
   Layout
----------------------------------- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -----------------------------------
   Responsive Wishlist Cards
----------------------------------- */
@media (min-width: 768px) {
  .wishlist-item-card {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .wishlist-item-card {
    flex-direction: column;
  }

  .item-actions {
    justify-content: flex-start;
  }
}

/* -----------------------------------
   Links & Buttons
----------------------------------- */
a {
  text-decoration: none;
  color: #1938C6;
}

button {
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #1938C6;
  color: white;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #183DE5;
}

/* -----------------------------------
   Header & Top Bar
----------------------------------- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-arrow {
  font-size: 20px;
  color: #1938C6;
}

.list-title {
  font-size: 20px;
  font-weight: bold;
}

.share-btn {
  background-color: transparent;
  color: #1938C6;
  border: 2px solid #1938C6;
}

/* -----------------------------------
   Wishlist Cards
----------------------------------- */
.wishlist-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wishlist-item-card {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  gap: 16px;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.item-price {
  color: #888;
  margin: 4px 0;
}

.store-link {
  display: inline-block;
  margin: 6px 0;
}

.item-notes {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

/* -----------------------------------
   Wishlist Buttons
----------------------------------- */
.mark-purchased-btn,
.edit-item-btn,
.delete-item-btn {
  margin-right: 8px;
}

.item-actions {
  display: flex;
  gap: 10px;
}

/* -----------------------------------
   Footer
----------------------------------- */
.wishlist-footer {
  margin-top: 30px;
  text-align: center;
}

.add-item-btn {
  background-color: #28a745;
}

/* -----------------------------------
   Forms & Inputs
----------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  font-family: 'Quicksand', sans-serif;
}

/* -----------------------------------
   Enhanced List Item Card
----------------------------------- */
.list-item-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: 100%;
  position: relative;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.list-item-card:hover {
  transform: translateY(-4px);
}

/* Product Image - Square */
.item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f0f0f0;
}
/* Shimmer Loading */
.shimmer {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #eaeaea 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  color: transparent;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}


/* Category Badge */
.category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #647CEB;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 2;
}

/* Purchased Overlay */
.purchased-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 5;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.list-item-card.purchased .purchased-overlay {
  opacity: 1;
}

/* Hover Animation for Buttons */
.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* -----------------------------------
   Filter Bar Styling
----------------------------------- */
/* Search Filter Bar - Tight + Aligned Layout */
.search-filter-bar {
  background: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
}

/* Search input spacing */
.search-filter-bar input[type="text"] {
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  width: 180px;
  background: transparent;
}

/* Select dropdown spacing + sizing */
.search-filter-bar .form-select {
  font-size: 14px;
  padding: 6px 12px;
  min-width: 160px;
  width: auto;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

/* Divider vertical rule spacing */
.search-filter-bar .vr {
  height: 30px;
  opacity: 0.15;
}

/* Button alignment */
.search-filter-bar .btn {
  white-space: nowrap;
  padding: 6px 20px;
  font-size: 14px;
}

/* Responsive stack on mobile */
@media (max-width: 767px) {
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 1rem;
  }

  .search-filter-bar input,
  .search-filter-bar .form-select,
  .search-filter-bar .btn {
    width: 100%;
  }

  .search-filter-bar .vr {
    display: none;
  }
}
.search-filter-bar .btn-outline-secondary {
  border: 1px solid #ccc;
  font-size: 14px;
  padding: 6px 18px;
}
.fade-transition {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}
/* Wishlist Footer */
.wishlist-footer {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  margin-top: 3rem;
}

.wishlist-footer .btn {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 50px;
}

.wishlist-footer .btn i {
  vertical-align: middle;
  font-size: 16px;
}
.is-invalid {
  border-color: #dc3545 !important;
}



