/* Asosiy stillar */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.cat-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.cat-btn:hover { background: #e5e7eb; }

.cat-active {
  background: #ef4444 !important;
  color: white !important;
  font-weight: 600;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  color: #6b7280;
  gap: 2px;
}

.nav-active { color: #ef4444; font-weight: 600; }

.product-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  cursor: pointer;
  transition: transform 0.1s;
}

.product-card:active { transform: scale(0.98); }

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f4f6;
}

.product-info { padding: 8px 10px 14px; }

.product-price { color: #ef4444; font-weight: 700; font-size: 15px; }

.product-old-price { color: #9ca3af; text-decoration: line-through; font-size: 12px; margin-left: 4px; }

.product-name {
  font-size: 13px;
  color: #1f2937;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.product-add-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ef4444;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.product-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 14px;
  aspect-ratio: 1 / 1.3;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Variant tugmalari */
.variant-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.variant-chip.active {
  border-color: #ef4444;
  background: #fef2f2;
  color: #ef4444;
  font-weight: 600;
}

.variant-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  user-select: none;
}

/* Toast */
#toast.show {
  display: block;
  animation: toast 2.5s ease;
}
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  10%, 90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}
