.chip {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.28s ease;
  font-weight: 600;
}

.chip.active,
.chip:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.12));
  border-color: rgba(34, 197, 94, 0.55);
  transform: translateY(-2px);
}

.item {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: cardEnter 0.6s ease forwards;
}

.item-media {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.06));
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.item:hover .item-media img {
  transform: scale(1.08);
}

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.item-content {
  padding: 18px;
}

.item-header {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.item-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.item-description {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.price {
  font-weight: 800;
  font-size: 1.12rem;
  white-space: nowrap;
}

.item-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.82rem;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--text);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 8px 10px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.floating-cart.bump {
  animation: bump 0.42s ease;
}

.cart-count {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.32);
}

@media (max-width: 640px) {
  .item-media {
    height: 400px;
  }

  .chip {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    padding: 12px 16px;
  }

  .chip[data-category="todos"] {
    flex: 0 0 100%;
    font-size: 1.2rem;
    font-weight: 800;
  }

  .floating-cart {
    left: 12px;
    right: 12px;
    bottom: 18px;
    justify-content: space-between;
  }

  .cart-count {
    width: 64px;
    height: 44px;
  }
}
