/* ==============================================
   SHOP TECK-BITS - Design moderne
   ============================================== */

* { box-sizing: border-box; }

.shop-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a1929 0%, #0f1729 100%);
}

/* ==============================================
   HERO SECTION
   ============================================== */

.shop-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a4d7a 0%, #132f4c 50%, #0a1929 100%);
  padding: 4rem 1rem 3rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.orb-2 {
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.hero-highlight {
  display: block;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 600px;
}

.hero-balance {
  display: flex;
  align-items: center;
}

.balance-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  text-align: center;
  min-width: 200px;
}

.balance-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.balance-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.balance-symbol {
  font-size: 2rem;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
}

/* ==============================================
   TOOLBAR
   ============================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.toolbar-search {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  opacity: 0.5;
  pointer-events: none;
}

.toolbar-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.toolbar-search input:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.toolbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.toolbar-filters {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.cats, .subcats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cat, .subcat {
  all: unset;
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat:hover, .subcat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
  color: #fff;
}

.cat[aria-selected="true"], .subcat[aria-selected="true"] {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #ec4899;
  font-weight: 600;
}

.subcats-group[hidden], .tiers[hidden] {
  display: none !important;
}

.tiers select {
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tiers select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
}

.tiers select:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.toolbar-options {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ec4899;
}

#sort {
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  outline: none;
}

#sort:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 72, 153, 0.4);
}

#sort:focus {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

#sort option {
  background: #0f1729;
  color: #fff;
  padding: 0.5rem;
}

.sort-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
}

.sort-select:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* ==============================================
   ITEMS GRID
   ============================================== */

.items-section {
  margin-bottom: 3rem;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  z-index: 10;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.item:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.item-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.emoji {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.info {
  flex: 1;
}

.label {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

.price-symbol {
  font-size: 1.25rem;
}

.buy {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.buy:active {
  transform: translateY(0);
}

.buy[disabled] {
  background: rgba(107, 114, 128, 0.5);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.buy[disabled]:hover {
  transform: none;
}

/* ==============================================
   EMPTY STATE
   ============================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
}

.hidden {
  display: none !important;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-balance {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .shop-hero {
    min-height: 40vh;
    padding: 3rem 1rem 2rem;
  }

  .shop-toolbar {
    padding: 1.5rem;
  }

  .toolbar-filters {
    flex-direction: column;
    gap: 1.5rem;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .balance-card {
    padding: 1.5rem;
  }

  .balance-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.75rem;
  }

  .toolbar-options {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }
}
