/* Next Egypt Agri — هوية ثابتة */
:root {
  --nea-bg: #0d3d2b;
  --nea-bg-card: #124832;
  --nea-text: #f5c842;
  --nea-text-soft: rgba(245, 200, 66, 0.85);
  --nea-text-muted: rgba(245, 200, 66, 0.55);
  --nea-border: rgba(245, 200, 66, 0.3);
  --nea-wa: #25d366;
  --nea-danger: #ff8a80;
  --nea-radius: 14px;
  --nea-gap: 1rem;
  --nea-font: "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: auto; }
body.nea-offers {
  margin: 0;
  padding: 0;
  min-height: 0;
  height: auto;
  font-family: var(--nea-font);
  background: #0d3d2b !important;
  color: #f5c842 !important;
  line-height: 1.6;
  font-size: 1rem;
}

.nea-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─── شريط التنقل ─── */
.nea-nav {
  background: #124832;
  border-bottom: 1px solid var(--nea-border);
  padding: 0.5rem 0;
}
.nea-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.nea-nav__brand {
  color: var(--nea-text);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}
.nea-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nea-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--nea-border);
}
.nea-nav__btn--primary {
  background: var(--nea-text);
  color: var(--nea-bg);
  border-color: var(--nea-text);
}
.nea-nav__btn--ghost {
  background: transparent;
  color: var(--nea-text);
}

/* ─── ترويسة ─── */
.nea-header {
  padding: 1rem 0 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--nea-border);
}
.nea-header--embed { padding: 0.65rem 0 0.5rem; }
.nea-header__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  color: var(--nea-text-muted);
  letter-spacing: 0.06em;
}
.nea-header h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  font-weight: 800;
  color: #f5c842;
}
.nea-header__sub {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--nea-text-muted);
}

.nea-content { height: auto; min-height: 0; }
.nea-main {
  padding: 1rem 0 0.75rem;
  min-height: 0;
}
.nea-offers--embed .nea-main { padding: 0.75rem 0 0.5rem; }
.nea-offers--embed .nea-footer { padding: 0.65rem 0; }

.nea-grid {
  display: grid;
  gap: var(--nea-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .nea-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .nea-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── بطاقة ─── */
.nea-card {
  background: #124832;
  border: 1px solid var(--nea-border);
  border-radius: var(--nea-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nea-card--promo {
  border-color: #f5c842;
  box-shadow: 0 0 0 1px rgba(245, 200, 66, 0.35);
}
.nea-card--expired { opacity: 0.65; }

/* صورة المنتج كاملة — بدون قص */
.nea-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--nea-border);
  padding: clamp(0.5rem, 2vw, 0.85rem);
  min-height: 100px;
}
.nea-card__img {
  width: 100%;
  height: auto;
  max-height: clamp(180px, 42vw, 320px);
  object-fit: contain;
  object-position: center;
  display: block;
}
.nea-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.nea-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.nea-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--nea-border);
  color: #f5c842;
}
.nea-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.nea-status--active { background: rgba(37, 211, 102, 0.25); color: #9effc8; }
.nea-status--scheduled { background: rgba(245, 200, 66, 0.15); color: #f5c842; }
.nea-status--expired { background: rgba(255, 138, 128, 0.2); color: #ff8a80; }

.nea-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f5c842;
}
.nea-summary {
  margin: 0;
  padding: 0.5rem 0.6rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  border-right: 3px solid #f5c842;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f5c842;
  line-height: 1.45;
}
.nea-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--nea-text-soft);
}

.nea-card__section {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--nea-border);
  border-radius: 10px;
}
.nea-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--nea-text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.nea-details { margin: 0; }
.nea-details__row {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 0.35rem 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--nea-border);
  font-size: 0.84rem;
}
.nea-details__row:last-child { border: 0; }
.nea-details dt { margin: 0; color: var(--nea-text-muted); font-weight: 600; }
.nea-details dd { margin: 0; color: #f5c842; font-weight: 600; }
.nea-details__sublist { margin: 0.2rem 0 0; padding-right: 1rem; }

@media (max-width: 400px) {
  .nea-details__row { grid-template-columns: 1fr; }
}

/* ─── عدّاد تنازلي ─── */
.nea-countdown {
  margin-top: auto;
  padding: 0.75rem 0.65rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.15));
  border: 1px solid var(--nea-border-strong);
  border-radius: 12px;
  text-align: center;
}
.nea-countdown__title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--nea-text-muted);
}
.nea-countdown__boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
@media (max-width: 360px) {
  .nea-countdown__boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}
.nea-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.45rem 0.25rem;
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid var(--nea-border);
  border-radius: 10px;
}
.nea-cd-unit[data-unit="d"] { display: flex; }
.nea-cd-num {
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f5c842;
  line-height: 1.1;
}
.nea-cd-lbl {
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--nea-text-muted);
}
.nea-countdown--ended {
  border-color: rgba(255, 138, 128, 0.45);
  background: rgba(255, 138, 128, 0.08);
}
.nea-countdown__ended {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--nea-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.nea-countdown__ended-icon { font-size: 1.2rem; }

.nea-actions { margin-top: 0.25rem; }
.nea-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 0.65rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.nea-btn--wa { background: var(--nea-wa); color: #fff; }
.nea-btn--disabled {
  background: rgba(245, 200, 66, 0.08);
  color: var(--nea-text-muted);
  border: 1px solid var(--nea-border);
}
.nea-btn--outline {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #f5c842;
  border: 2px solid #f5c842;
  margin: 0 0.25rem;
}

.nea-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--nea-text-muted);
  border: 1px dashed var(--nea-border);
  border-radius: var(--nea-radius);
}

.nea-footer {
  text-align: center;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--nea-border);
}
.nea-footer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.nea-footer__copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--nea-text-muted);
}

.nea-offers--embed {
  background: #0d3d2b !important;
  min-height: 0 !important;
  height: auto !important;
}
