/* Skrytie Alpine pred inicializáciou */
[x-cloak] { display: none !important; }

/* Komponenty (Tailwind @apply nefunguje cez CDN, takže klasické CSS) */
.card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.btn-primary {
  background: #0f172a;
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}

.btn-primary:hover { background: #1e293b; }

.btn-secondary {
  background: white;
  color: #0f172a;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  transition: background 0.15s;
}

.btn-secondary:hover { background: #f8fafc; }

/* Mobilné: skry sticky pravý panel */
@media (max-width: 1023px) {
  aside .sticky { position: relative; }
}

/* Touch-friendly tooltipy — ukáž aj pri fokuse (tap na mobile) */
.info-tip:focus-within .info-tip-body { display: block; }
.info-tip[tabindex] { outline: none; }

/* Mobilný nákupný zoznam — skry vedľajšie stĺpce na malom ekrane */
@media (max-width: 639px) {
  .nakup-col-odpad,
  .nakup-col-cena { display: none !important; }
}

/* Väčšie touch targety na mobile */
@media (max-width: 767px) {
  .input { min-height: 44px; font-size: 1rem; }
  select.input { min-height: 44px; }
  .btn-primary, .btn-secondary { min-height: 44px; }
}

/* Hladké range slider */
input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Print: skry tabs a navigáciu */
@media print {
  header, nav, aside { display: none; }
}
