@import url('./global.css');

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
  margin: 2.4rem 0 1.8rem;
}

.category-card {
  background: linear-gradient(145deg, rgba(23, 23, 23, 0.95), rgba(16, 16, 16, 0.95));
  border: 1px solid var(--color-line);
  border-radius: 12px;
  text-align: center;
  padding: 1rem 0.4rem;
  color: #f6f6f6;
}

.shop-tools {
  margin-top: 1.8rem;
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #e7e7e7;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.filter-btn.active {
  border-color: var(--color-gold);
  color: #e6d3a1;
  background: rgba(201, 168, 76, 0.12);
}

.search-sort {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}

.product-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: linear-gradient(160deg, #111111, #151515);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge.neu {
  background: var(--color-gold);
  color: #1a1a1a;
}

.badge.beliebt {
  background: #711f33;
  color: #fff;
}

.badge.sale {
  background: #2e9a5f;
  color: #fff;
}

.wishlist-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(10, 10, 10, 0.7);
  color: #fff;
  cursor: pointer;
}

.wishlist-btn.active {
  border-color: #d64545;
  color: #ffb2b2;
}

.product-body {
  padding: 1rem;
}

.tag {
  display: inline-block;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #e6d3a1;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
}

.product-name {
  margin: 0.7rem 0 0.2rem;
  font-weight: 600;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.product-price-old {
  color: #b7b7b7;
  text-decoration: line-through;
  font-weight: 400;
  font-size: 0.9rem;
}

.size-row {
  margin: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.size-chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  cursor: pointer;
  font-size: 0.78rem;
}

.size-chip.active {
  border-color: var(--color-gold);
  color: #e6d3a1;
}

.rating {
  color: var(--color-gold);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0.3rem 0;
}

.empty-state {
  margin-top: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.2rem;
  color: #d7d7d7;
  text-align: center;
}

.produkt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hide {
  display: none;
}

@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .search-sort {
    grid-template-columns: 1fr;
  }

  .produkt-layout {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}

:root[data-theme='light'] .shop-tools,
:root[data-theme='light'] .product-card,
:root[data-theme='light'] .category-card {
  background: #fff;
  color: #111;
  border-color: var(--color-line);
}

:root[data-theme='light'] .tag,
:root[data-theme='light'] .rating,
:root[data-theme='light'] .product-price,
:root[data-theme='light'] .product-name {
  color: #111;
}

:root[data-theme='light'] .filter-btn,
:root[data-theme='light'] .size-chip {
  color: #111;
  border-color: rgba(0, 0, 0, 0.25);
}
