@charset "UTF-8";
html, body { direction: rtl; }
body {
  font-family: Tahoma, sans-serif;
  margin: 20px;
  background: #f9f9f9;
  color: #222;
}

h1 { margin-bottom: 20px; }

.message {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.action-btn {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.action-btn:hover { background: #218838; }
.btn-minor {
  background: #e9ecef;
  border: 1px solid #ced4da;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-minor:hover { background: #dee2e6; }

.add-collection__form {
  display: flex; gap: 10px; max-width: 480px;
}
.add-collection__form input[type=text] { flex: 1; }

.tabs {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #007bff;
  color: #fff;
  border-radius: 6px 6px 0 0;
  cursor: grab;
  user-select: none;
  transition: background .2s;
}
.tab:hover { background: #0069d9; }
.tab.active { background: #0056b3; }
.tab button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.tab button:hover { background: rgba(255,255,255,0.35); }
.tab__title { white-space: nowrap; }

.tab-content {
  border: 1px solid #0056b3;
  background: #fff;
  padding: 15px;
  border-radius: 0 6px 6px 6px;
  display: none;
}
.tab-content.active { display: block; }

.collection-edit {
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; max-width: 520px;
}
.hidden { display: none !important; }

.edit-icon, .delete-icon {
  cursor: pointer;
  color: #007bff;
  text-decoration: none;
  border: 0;
  background: transparent;
}
.delete-icon { color: #e03131; }

.thumb {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 6px; border: 1px solid #ccc;
}
.thumb--placeholder {
  width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed #bbb; color: #888; border-radius: 6px;
}

.create-products { margin: 18px 0; }
.create-products__rows { display: flex; flex-direction: column; gap: 10px; }
.create-row {
  border: 1px dashed #ced4da; padding: 10px; border-radius: 6px;
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.create-products__actions { margin-top: 8px; display: flex; gap: 8px; }

.products-list {
  display: flex; flex-direction: column; gap: 10px; margin-top: 15px;
}
.product-item {
  display: flex; gap: 12px;
  border: 1px solid #e6e6e6; background: #fafafa;
  border-radius: 8px; padding: 10px;
}
.product-item__img { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.product-item__fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-item__actions { display: flex; align-items: center; gap: 10px; }

.field { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; }
.field label { color: #555; }
.field span { padding: 6px 8px; background: #fff; border: 1px solid #e9ecef; border-radius: 4px; min-height: 36px; display:flex; align-items:center; }
.field input[type=text], .field input[type=number], .field textarea {
  width: 100%; padding: 6px 8px; border: 1px solid #ced4da; border-radius: 4px;
}
.field textarea { min-height: 70px; }
