.eco-offers-grid {
  display: grid;
  grid-template-columns: repeat(var(--eco-offer-columns, 3), minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  width: 100%;
}

.eco-offer-card {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.eco-offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.eco-offer-card a { display: block; }
.eco-offer-image { display: block; width: 100%; height: auto; }
.eco-offers-empty { text-align: center; padding: 30px; }

.eco-manager,
.eco-manager-login {
  width: min(1180px, calc(100% - 30px));
  margin: 40px auto;
  color: #202124;
  font-family: inherit;
}

.eco-manager-login {
  max-width: 460px;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

.eco-manager-login input[type="text"],
.eco-manager-login input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #d5d8dc;
  border-radius: 8px;
}

.eco-manager-login input[type="submit"] {
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.eco-manager-header,
.eco-offers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eco-manager-header { margin-bottom: 28px; }
.eco-manager-header h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 42px); }
.eco-manager-header p { margin: 0; color: #61666c; }

.eco-upload-box {
  padding: 38px 24px;
  text-align: center;
  border: 2px dashed #b9bec5;
  border-radius: 18px;
  background: #f7f8fa;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}

.eco-upload-box:hover,
.eco-upload-box.is-dragging {
  border-color: #161616;
  background: #f0f1f3;
}

.eco-upload-box.is-busy { opacity: .55; pointer-events: none; }
.eco-upload-box h2 { margin: 8px 0; }
.eco-upload-box p { margin: 0 0 20px; color: #62666c; }
.eco-upload-icon { font-size: 42px; line-height: 1; font-weight: 700; }

.eco-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #111;
  border-radius: 9px;
  background: #111;
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.eco-button:hover { opacity: .86; }
.eco-button-secondary { background: #fff; color: #111 !important; }
.eco-button-light { background: #fff; color: #111 !important; }
.eco-button-link { border: 0; background: none; color: #b42318; text-decoration: underline; cursor: pointer; }

.eco-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.eco-preview-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fff;
}
.eco-preview-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.eco-preview-item span { display: block; overflow: hidden; margin-top: 5px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.eco-manager-status { min-height: 28px; margin: 14px 0; font-weight: 700; }
.eco-manager-status.is-success { color: #067647; }
.eco-manager-status.is-error { color: #b42318; }
.eco-manager-status.is-working { color: #175cd3; }

.eco-offers-toolbar { margin: 28px 0 14px; }
.eco-offers-toolbar h2 { margin: 0; }
.eco-offers-toolbar span { color: #667085; }

.eco-manager-list { display: grid; gap: 14px; }
.eco-manager-empty { padding: 30px; text-align: center; background: #f7f8fa; border-radius: 14px; }

.eco-manager-card {
  display: grid;
  grid-template-columns: 28px 125px minmax(0, 1fr) 125px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e0e3e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

.eco-manager-card.is-dragging-card { opacity: .5; }
.eco-drag-handle { color: #697078; font-size: 22px; cursor: grab; user-select: none; }
.eco-manager-thumb img { display: block; width: 125px; height: 95px; object-fit: contain; border-radius: 8px; background: #f2f3f5; }

.eco-manager-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.eco-manager-fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.eco-manager-fields .eco-field-wide { grid-column: 1 / -1; }
.eco-manager-fields input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ccd1d7;
  border-radius: 7px;
  background: #fff;
  font: inherit;
}
.eco-manager-fields small { font-weight: 400; color: #667085; }
.eco-manager-actions { display: grid; gap: 8px; align-content: center; }
.eco-status-pill { display: inline-flex; justify-content: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.eco-status-pill.is-active { background: #dcfae6; color: #067647; }
.eco-status-pill.is-inactive { background: #f2f4f7; color: #475467; }

.eco-manager-message { width: min(800px, calc(100% - 30px)); margin: 40px auto; padding: 20px; border-radius: 10px; }
.eco-manager-error { background: #fee4e2; color: #b42318; }

@media (max-width: 900px) {
  .eco-offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-manager-card { grid-template-columns: 24px 100px minmax(0, 1fr); }
  .eco-manager-thumb img { width: 100px; height: 85px; }
  .eco-manager-actions { grid-column: 2 / -1; grid-template-columns: repeat(4, auto); align-items: center; justify-content: start; }
}

@media (max-width: 620px) {
  .eco-offers-grid { grid-template-columns: 1fr; }
  .eco-manager-header { align-items: flex-start; flex-direction: column; }
  .eco-manager-card { grid-template-columns: 22px 80px minmax(0, 1fr); gap: 10px; }
  .eco-manager-thumb img { width: 80px; height: 80px; }
  .eco-manager-fields { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .eco-manager-fields .eco-field-wide { grid-column: auto; }
  .eco-manager-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-status-pill { grid-column: 1 / -1; }
  .eco-button, .eco-button-link { width: 100%; }
}
