/* General styles for the product cards */
  
  .product-card {
    background: linear-gradient(145deg, #1a1a1a, #121212);
    border: 1px solid #333;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  }
  
  .product-image {
    width: 300px;
    height: 400px;
    object-fit: cover;
    overflow: hidden;
  }
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  
  
  .btn-outline-light {
    border-color: #aaa;
    color: #fff;
    transition: background-color 0.3s ease;
  }
  
  .btn-outline-light:hover {
    background-color: #fff;
    color: #000;
  }
  
  .fade-in-section {
    animation: fadeIn 1.2s ease-in-out both;
  }
  
  .fade-in-card {
    animation: fadeInUp 0.8s ease-in-out both;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
/* Tarot of the day  */
  #tarot-cards {
    gap: 20px;
  }
  
  .tarot-card {
    width: 120px;
    height: 200px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .tarot-card:hover {
    transform: scale(1.05);
  }
  
  .tarot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  }
  
  .card-reveal img {
    width: 160px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.8);
    transition: all 0.4s ease;
  }

  .card-of-the-day {
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}


.card.bg-dark {
  background: linear-gradient(145deg, #1c1c2e, #141420);
  border: 1px solid #383850;
}
.card-title {
  color: #d8b4fe;
}

.flip-card {
  width: 150px;
  height: 220px;
  perspective: 1500px;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 12px;
  position: relative;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
}


.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Flip side */
.flip-card-back {
  transform: rotateY(180deg);
}

/* 🔮 Hover effect before flip */
.flip-card:hover {
  box-shadow: 0 0 15px 4px rgba(123, 47, 247, 0.6), 0 0 30px rgba(255, 0, 200, 0.3);
  transform: scale(1.05);
}

/* Optional: floating animation */
@keyframes floatUp {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.flip-card {
  animation: floatUp 3s ease-in-out infinite;
}

.mystic-background {
  background: linear-gradient(160deg, #1a1a2e 0%, #0f0f1a 100%);
  position: relative;
  padding: 4rem 1rem;
  overflow: hidden;
  z-index: 1;
}

.mystic-background::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: mysticStars 60s linear infinite;
  opacity: 0.3;
  z-index: 0;
}

@keyframes mysticStars {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(50%, 50%);
  }
}

/* Custom button with glow effect */

.btn-glow {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.9);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: linear-gradient(45deg, #f107a3, #7b2ff7, #00d4ff, #7b2ff7, #f107a3);
  background-size: 400%;
  border-radius: 16px;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.6;
  animation: glowPulse 6s linear infinite;
}

@keyframes glowPulse {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}


/* Custom Modal without Bootstrap */
#customModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#customModal.hidden {
  display: none;
}

#customModal .modal-box {
  background-color: #1e1e2f;
  color: #e0d4fd;
  padding: 30px 20px;
  max-width: 400px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  text-align: center;
  position: relative;
}

#customModal .modal-box h5 {
  font-size: 1.4rem;
  color: #d8b4fe;
  margin-bottom: 15px;
  font-weight: bold;
}

#customModal .modal-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

#customModal .modal-box p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
}

#customModal .close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* Media queries */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .search-sort {
    margin-top: 25%;
  }
}

.badge-out-of-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  font-size: 0.85rem;
  border-radius: 5px;
  z-index: 10;
}

.modal-backdrop {
  z-index: 1040 !important;
}
.modal {
  z-index: 1055 !important;
}
