/* STORE CSS - Namespaced */

/* --- PAGE LAYOUT --- */
/* main grid is handled by dashboard.css */

.store-content {
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  /* background-image removed, handled by global/dashboard */
  width: 100%;
  min-width: 0;
}

/* Header */
.store-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2.4rem;
  background: rgba(18, 18, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.store-header-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.4rem;
  color: #fff;
  letter-spacing: 1px;
}

/* PRODUCTS GRID */
.store-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  justify-content: center;
  justify-items: center;
  margin: 0 10rem;
}

/* PRODUCT CARD */
.store-product-card {
  background: rgba(35, 35, 45, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  width: 100%;
  max-width: 31.25rem;
}

.store-product-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* CAROUSEL */
.store-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-carousel-images {
  width: 100%;
  height: 100%;
  position: relative;
}

.store-carousel-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding: 0;
}

.store-carousel-images img.active {
  opacity: 1;
  z-index: 1;
}

/* ARROWS */
.store-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition:
    opacity 0.3s,
    background-color 0.3s;
  z-index: 2;
}

.store-carousel-container:hover .store-carousel-btn {
  opacity: 1;
}

.store-carousel-btn:hover {
  background: rgba(255, 217, 0, 0.8);
  color: #000;
}

.store-prev-btn {
  left: 1rem;
}

.store-next-btn {
  right: 1rem;
}

/* DOTS */
.store-carousel-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  backdrop-filter: blur(4px);
}

.store-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.store-dot.active {
  transform: scale(1.2);
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.store-dot:hover {
  transform: scale(1.1);
}

/* PRODUCT INFO */
.store-product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.store-product-name {
  font-family: "Orbitron", sans-serif;
  font-size: 1.9rem;
  color: #fff;
  font-weight: 500;
}

.store-product-price {
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  color: #ffd900;
  font-weight: 700;
}

.store-btn-buy {
  margin-top: 1rem;
  background: linear-gradient(135deg, #ffd900 0%, #ff8c00 100%);
  border: none;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  padding: 1rem 3rem;
  border-radius: 6px;
  cursor: pointer;
  color: #000;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.store-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 84em) {
  #page-store {
    zoom: 90%;
  }
}

@media (max-width: 75em) {
  #page-store {
    zoom: 80%;
  }
}

@media (max-width: 59em) {
  #page-store {
    zoom: 70%;
  }
}

@media (max-width: 44em) {
  .store-products-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 4rem;
  }
  .store-products-grid > :nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 34em) {
  .store-products-grid {
    grid-template-columns: 1fr;
    margin: 0 1rem;
  }
  .store-products-grid > :nth-child(3) {
    grid-column: auto;
  }
}
