/* ===== STORE SECTION ===== */
.store-section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.store-section h2 {
  color: #facc15;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== STORE GRID ===== */
.store-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* ===== STORE CARD ===== */
.store-card {
  background-color: #1f1f1f;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #333;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.store-card h3 {
  color: #facc15;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.store-card p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 50px;
}

/* ===== IMAGE ===== */
.store-card img {
  width: 230px;
  height: 230px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 2px solid #facc15;
  background: #111;
  transition: transform 0.3s, box-shadow 0.3s;
}

.store-card img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 15px 4px rgba(250, 204, 21, 0.4);
}

/* ===== BUTTONS ===== */
.store-card button {
  background: linear-gradient(to right, #dc2626, #facc15);
  border: none;
  color: #111;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  margin: 0.3rem 0.2rem;
}

.store-card button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #facc15, #dc2626);
}

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ===== POPUP CONTENT ===== */
.popup-content {
  background: #1f1f1f;
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid #facc15;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 450px;
}

/* Popup Header */
.popup-content h3 {
  color: #facc15;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
}

/* Popup Description */
.popup-description {
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
  color: #ddd;
}

/* ===== INPUT FIELD ===== */
#usernameInput {
  width: 80%;
  padding: 0.7rem;
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 1rem;
}

/* ===== POPUP BUTTONS ===== */
.popup-buttons {
  margin-top: 1.5rem;
  text-align: center;
}

.popup-buttons button {
  padding: 0.6rem 1.4rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Confirm = Gold */
#confirmBtn {
  background-color: #facc15;
  color: #111;
}

#confirmBtn:hover {
  background-color: #ffe066;
  transform: scale(1.05);
}

/* Cancel = Dark */
#cancelBtn {
  background-color: #333;
  color: #eee;
}

#cancelBtn:hover {
  background-color: #555;
  transform: scale(1.05);
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 500px) {
  .store-card img {
    width: 180px;
    height: 180px;
  }

  .popup-content {
    width: 90%;
    padding: 1.5rem;
  }
}
