/* magaza.css — public + paylaşımlı kartlar */
:root {
  --mz-red: #dc2626;
  --mz-red-d: #b91c1c;
  --mz-slate: #0f172a;
  --mz-muted: #64748b;
  --mz-border: #e2e8f0;
  --mz-bg: #f8fafc;
  --mz-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mz-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
}
.mz-page { font-family: var(--mz-font); color: var(--mz-slate); background: var(--mz-bg); }
.mz-wrap { max-width: 1140px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 1.5rem) 3rem; }
.mz-head { margin-bottom: 1.5rem; }
.mz-head h1 { font-family: var(--mz-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .4rem; }
.mz-head p { color: var(--mz-muted); margin: 0; }
.mz-kur {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--mz-muted);
  background: #fff; border: 1px solid var(--mz-border); border-radius: 999px;
  padding: 6px 12px; margin-top: .75rem;
}
.mz-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.mz-cat {
  text-decoration: none; color: var(--mz-slate); font-weight: 700; font-size: .85rem;
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--mz-border);
}
.mz-cat:hover, .mz-cat.is-active { background: var(--mz-red); color: #fff; border-color: var(--mz-red); }
.mz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.mz-card {
  background: #fff; border: 1px solid var(--mz-border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
a.mz-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.08); color: inherit; }
.mz-card__img {
  aspect-ratio: 1; background: #f1f5f9; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.mz-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mz-card__img .bi { font-size: 2.5rem; color: #cbd5e1; }
.mz-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mz-card__cat { font-size: .72rem; font-weight: 700; color: var(--mz-muted); text-transform: uppercase; letter-spacing: .04em; }
.mz-card__title { font-weight: 800; font-size: .98rem; margin: 0; line-height: 1.3; }
.mz-price { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.mz-price__usd { font-size: 1.15rem; font-weight: 800; color: var(--mz-slate); }
.mz-price__tl { font-size: .88rem; font-weight: 700; color: var(--mz-muted); }
.mz-price__old { font-size: .8rem; color: #94a3b8; text-decoration: line-through; }
.mz-kdv {
  font-size: 0.68em;
  font-weight: 700;
  color: var(--mz-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mz-price__note {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b91c1c;
}

/* Kampanya geri sayım */
.mz-countdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 55%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28);
}
.mz-countdown--sm { padding: 8px 10px; gap: 4px; }
.mz-countdown--lg { padding: 14px 16px; gap: 8px; }
.mz-countdown__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
}
.mz-countdown--lg .mz-countdown__label { font-size: 0.82rem; }
.mz-countdown__digits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mz-countdown__unit {
  min-width: 46px;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 4px 6px;
  line-height: 1.1;
}
.mz-countdown--lg .mz-countdown__unit {
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
}
.mz-countdown__unit b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mz-countdown--lg .mz-countdown__unit b { font-size: 1.45rem; }
.mz-countdown__unit small {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
}
.mz-countdown--endless {
  background: linear-gradient(135deg, #9f1239, #dc2626);
}
.mz-countdown__endless {
  font-size: 0.9rem;
  font-weight: 800;
}
.mz-countdown.is-urgent {
  animation: mzPulse 1s ease-in-out infinite;
}
.mz-countdown.is-expired {
  background: #334155;
  box-shadow: none;
  animation: none;
}
@keyframes mzPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .mz-countdown.is-urgent { animation: none; }
}

.mz-admin-gallery {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.mz-admin-gallery__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 600; color: var(--mz-muted); cursor: pointer;
}
.mz-admin-gallery__item img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--mz-border);
}
.mz-gallery { display: flex; flex-direction: column; gap: 10px; }
.mz-gallery__main {
  border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--mz-border);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.mz-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.mz-gallery__thumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.mz-gallery__thumbs button {
  width: 64px; height: 64px; padding: 0; border: 2px solid var(--mz-border);
  border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer;
}
.mz-gallery__thumbs button.is-active,
.mz-gallery__thumbs button:hover { border-color: var(--mz-red); }
.mz-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-badge {
  display: inline-block; font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 6px;
  background: #fef2f2; color: var(--mz-red); width: fit-content;
}
.mz-badge--bayi { background: #fff7ed; color: #c2410c; }
.mz-badge--stok0 { background: #f1f5f9; color: #64748b; }
.mz-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .mz-detail { grid-template-columns: 1fr; } }
.mz-detail__media {
  border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--mz-border);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.mz-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.mz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; font-weight: 800; font-size: .92rem;
  border: none; cursor: pointer; text-decoration: none;
}
.mz-btn--primary { background: var(--mz-red); color: #fff; }
.mz-btn--primary:hover { background: var(--mz-red-d); color: #fff; }
.mz-btn--wa { background: #16a34a; color: #fff; }
.mz-btn--wa:hover { background: #15803d; color: #fff; }
.mz-btn--ghost { background: #fff; color: var(--mz-slate); border: 1px solid var(--mz-border); }
.mz-btn:disabled, .mz-btn.is-disabled { opacity: .5; pointer-events: none; }
.mz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.mz-empty { text-align: center; padding: 3rem 1rem; color: var(--mz-muted); }

/* Admin compact */
.mz-admin-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--mz-border); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.mz-admin-bar strong { font-size: 1.05rem; }
.mz-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--mz-red); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px;
}
.mz-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.mz-table th, .mz-table td { padding: 10px 12px; border-bottom: 1px solid var(--mz-border); text-align: left; font-size: .88rem; }
.mz-table th { background: #f8fafc; font-weight: 700; color: var(--mz-muted); }
.mz-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .mz-form-grid { grid-template-columns: 1fr; } }
.mz-field label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 5px; color: #334155; }
.mz-field input, .mz-field select, .mz-field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--mz-border); border-radius: 10px;
  font: inherit; background: #f8fafc;
}
.mz-field input:focus, .mz-field select:focus, .mz-field textarea:focus {
  outline: none; border-color: var(--mz-red); background: #fff; box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.mz-hint { font-size: .75rem; color: var(--mz-muted); margin-top: 4px; }
.mz-preview-tl { font-weight: 700; color: var(--mz-red); font-size: .85rem; }
.mz-alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: .88rem; }
.mz-alert--ok { background: #ecfdf5; color: #065f46; }
.mz-alert--err { background: #fef2f2; color: #991b1b; }
.mz-alert--warn { background: #fffbeb; color: #92400e; }
