/* store.css — Cyberpunk Data Market */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding-bottom: 40px;
}

.store-card {
  position: relative;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  
  /* Crate Shape */
  clip-path: polygon(
    20px 0, 
    100% 0, 
    100% calc(100% - 20px), 
    calc(100% - 20px) 100%, 
    0 100%, 
    0 20px
  );
}

.store-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
  z-index: 5;
}

.store-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.store-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: 0.5s;
  filter: grayscale(0.2);
}
.store-card:hover .store-thumb {
  filter: grayscale(0);
  transform: scale(1.05);
}

.store-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, rgba(15,20,30,0.8), rgba(5,5,10,1));
}

.store-card-title { 
  font-size: 16px; 
  font-weight: 700; 
  color: #fff; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
}

.store-card-meta { 
  font-size: 11px; 
  color: #888; 
  font-family: monospace; 
}

.store-card-price {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center;
}

.price-tag { 
  font-size: 16px; 
  font-weight: 800; 
  color: var(--neon-cyan); 
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* --- Modal (Holographic Overlay) --- */
.store-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.store-modal-overlay.open { opacity: 1; pointer-events: auto; }

.store-modal {
  background: rgba(10, 14, 25, 0.95);
  border: 1px solid var(--neon-cyan);
  width: 100%; max-width: 1100px; height: 85vh;
  display: flex; overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
  
  /* Complex HUD Shape */
  clip-path: polygon(
    30px 0, 100% 0, 
    100% calc(100% - 30px), 
    calc(100% - 30px) 100%, 
    0 100%, 0 30px
  );
}

.store-modal-left { 
  flex: 1.5; 
  background: #000; 
  position: relative; 
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.store-modal-hero { width: 100%; height: 100%; object-fit: contain; }

.store-modal-right {
  flex: 1; padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto;
}

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: transparent; color: var(--neon-pink);
  border: 1px solid var(--neon-pink);
  width: 40px; height: 40px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 10;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.modal-close:hover { background: var(--neon-pink); color: #000; }

.modal-gallery-thumb {
  width: 70px; height: 70px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
}
.modal-gallery-thumb:hover, .modal-gallery-thumb.active { border-color: var(--neon-cyan); }

@media (max-width: 800px) {
  .store-modal { flex-direction: column; clip-path: none; border-radius: 4px; }
  .store-modal-left { height: 40%; flex: none; }
  .store-modal-right { padding: 20px; }
}