/* ==========================
   TAMILAI STORE
========================== */
#storePopup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 999999;
}
.store-popup {
  width: 700px;
  max-width: 92%;
  background: linear-gradient(145deg, #04152d, #08244a);
  border: 1px solid var(--primary);
  border-radius: 25px;
  padding: 25px;
  box-shadow:
    0 0 20px var(--primary),
    0 0 50px rgba(0, 229, 255, 0.4);
}
.store-popup h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 20px;
  text-shadow:
    0 0 10px var(--primary),
    0 0 20px var(--primary);
}
#storeSearch {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: #0b2b57;
  color: var(--text-primary);
  padding: 0 15px;
  margin-bottom: 20px;
  outline: none;
  border: 1px solid var(--primary);
}
.store-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}
.product-card {
  background: #08244a;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  transition: 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}
.product-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}
.product-card p {
  color: #cdefff;
  font-size: 13px;
  margin-bottom: 12px;
}
.product-card span {
  display: block;
  color: #00ff99;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}
.buy-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #00d9ff;
  color: #001b30;
  font-weight: 700;
  cursor: pointer;
}
.buy-btn:hover {
  box-shadow: 0 0 15px #00d9ff;
}
#closeStoreBtn {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: none;
  border-radius: 14px;
  background: #203b75;
  color: var(--text-primary);
  cursor: pointer;
}
/* ==========================
   MOBILE PERFECT VERSION
========================== */
@media (max-width: 768px) {
  #storePopup {
    align-items: flex-start;
    overflow-y: auto;
    padding: 15px 0;
  }
  .store-popup {
    width: 90%;
    padding: 12px;
    border-radius: 18px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
      0 0 12px var(--primary),
      0 0 30px rgba(0, 229, 255, 0.25);
  }
  .store-popup h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  #storeSearch {
    height: 38px;
    font-size: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
  }
  .store-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .product-card {
    padding: 12px;
    border-radius: 14px;
  }
  .product-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .product-card p {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .product-card span {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .buy-btn {
    height: 36px;
    font-size: 12px;
    border-radius: 10px;
  }
  #closeStoreBtn {
    height: 40px;
    font-size: 12px;
    margin-top: 12px;
    border-radius: 10px;
  }
  /* Cute Glow */
  .product-card {
    box-shadow:
      inset 0 0 8px rgba(0, 229, 255, 0.08),
      0 0 10px rgba(0, 229, 255, 0.15);
  }
  .product-card:hover {
    transform: none;
  }
}
