/* =====================================================================
   דפי המכירה הציבוריים
   נפרד לגמרי מעיצוב המערכת — הקונה לא רואה מערכת ניהול.
   ===================================================================== */

:root {
  --p-brand:   #2563eb;
  --p-deep:    #17306e;
  --p-ink:     #131c28;
  --p-muted:   #5f7085;
  --p-line:    #dfe6f0;
  --p-surface: #ffffff;
  --p-bg:      #f5f8fc;
  --p-ok:      #0a7f43;
  --p-ok-bg:   #e7f7ee;
  --p-err:     #b3261e;
  --p-err-bg:  #fdecea;
}

* , *::before, *::after { box-sizing: border-box; }

body.pub {
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--p-ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(37, 99, 235, .12), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(23, 48, 110, .10), transparent 60%),
    var(--p-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2 { margin: 0 0 .6rem; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 1rem; }
.mb-0 { margin-bottom: 0; }
a { color: var(--p-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.pub-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  flex: 1;
}
.pub-wrap--wide { max-width: 880px; }

/* ---------------------------------------------------------------- גיבור */
.pub-hero { text-align: center; margin-bottom: 2rem; }
.pub-hero--compact { margin-bottom: 1.4rem; }

.pub-kicker {
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--p-muted);
  margin: 0 0 .5rem;
  font-weight: 600;
}

.pub-domain {
  font-size: clamp(1.9rem, 7vw, 3.1rem);
  font-weight: 800;
  color: var(--p-deep);
  word-break: break-word;
  margin: 0;
  direction: ltr;
}
.pub-ascii { font-size: .85rem; color: var(--p-muted); margin: .3rem 0 0; direction: ltr; }

.pub-price {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .5rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--p-deep), var(--p-brand));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  direction: ltr;
  box-shadow: 0 6px 22px rgba(37, 99, 235, .28);
}
.pub-price--offer { font-size: 1.05rem; font-weight: 700; }

/* ---------------------------------------------------------------- כרטיס */
.pub-card {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 14px rgba(20, 40, 80, .05);
}
.pub-card--center { text-align: center; }
.pub-card--ok { background: var(--p-ok-bg); border-color: var(--p-ok); color: var(--p-ok); }
.pub-body { white-space: pre-line; margin: 0; }

/* ------------------------------------------------------------- עובדות */
.pub-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .8rem;
  margin-bottom: 1.1rem;
}
.pub-fact {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 1rem .8rem;
  text-align: center;
}
.pub-fact__value {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--p-brand);
  line-height: 1.1;
  direction: ltr;
}
.pub-fact__value--text { font-size: 1rem; color: var(--p-deep); padding: .45rem 0; }
.pub-fact__label { display: block; font-size: .78rem; color: var(--p-muted); margin-top: .2rem; }

/* --------------------------------------------------------------- טופס */
.pub-form { margin: 0; }
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 .9rem;
}
.pub-field { display: block; margin-bottom: .9rem; }
.pub-field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.pub-field b { color: var(--p-err); }
.pub-field input, .pub-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  padding: .6rem .8rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--p-ink);
}
.pub-field input:focus, .pub-field textarea:focus {
  outline: none;
  border-color: var(--p-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.pub-field textarea { resize: vertical; line-height: 1.6; }

/* מלכודת דבש — נסתרת מבני אדם, גלויה לרובוטים */
.pub-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.pub-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: .7rem 2rem;
  border: 0;
  border-radius: 10px;
  background: var(--p-brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(37, 99, 235, .3);
}
.pub-btn:hover { background: var(--p-deep); }
.pub-btn--sm { font-size: .9rem; padding: .5rem 1.2rem; }

.pub-error {
  background: var(--p-err-bg);
  border: 1px solid var(--p-err);
  color: var(--p-err);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.pub-contact {
  text-align: center;
  font-size: .9rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------- עמוד התיק */
.pub-search {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.pub-search input {
  flex: 1;
  min-width: 180px;
  font-family: inherit;
  font-size: .95rem;
  padding: .6rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
.pub-clear { font-size: .85rem; color: var(--p-muted); }

.pub-list { display: flex; flex-direction: column; gap: .6rem; }
.pub-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pub-item:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 18px rgba(20, 40, 80, .08);
}
.pub-item__main { flex: 1; min-width: 0; }
.pub-item__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p-deep);
  direction: ltr;
  text-align: start;
}
.pub-item__desc { display: block; font-size: .87rem; color: var(--p-muted); }
.pub-item__meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.pub-tag {
  font-size: .74rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
}
.pub-item__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--p-brand);
  direction: ltr;
  white-space: nowrap;
}

/* ------------------------------------------------------------ שונות */
.pub-preview {
  background: #fdf3e3;
  border-bottom: 1px solid #f0c674;
  color: #a45a06;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .88rem;
}

@media (max-width: 560px) {
  .pub-wrap { padding: 2rem 1rem 1.5rem; }
  .pub-card { padding: 1.15rem; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-item { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* שאלת האימות — שדה צר, המספר קצר ואין סיבה לשדה ברוחב מלא */
.pub-field--check input { max-width: 8rem; }
.pub-field__err { display: block; margin-top: .3rem; font-size: .82rem; color: var(--p-err); }
