/* Commerce — brouillon (non indexé) */

.commerce-draft-banner {
  background: linear-gradient(90deg, #b45309, #d97706);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.commerce-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.commerce-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #facc15;
  margin-bottom: 0.5rem;
}

.commerce-hero p {
  color: #94a3b8;
  max-width: 52rem;
}

.commerce-disclaimer {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #fde68a;
  font-size: 0.88rem;
}

.commerce-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.25rem 0 1rem;
}

.commerce-search {
  flex: 1;
  min-width: min(100%, 260px);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 1rem;
}

.commerce-count {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

.commerce-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.commerce-city-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.commerce-city-btn--active {
  background: #facc15;
  border-color: #facc15;
  color: #0f172a;
}

.commerce-stores {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.commerce-store {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.commerce-store--demo {
  border-color: rgba(251, 191, 36, 0.35);
}

.commerce-store__head {
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.commerce-store__title {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.commerce-store__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
  margin-bottom: 0.35rem;
}

.commerce-store__badge--official {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.commerce-wilaya-group {
  margin-bottom: 2rem;
}

.commerce-wilaya-group__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.commerce-wilaya-group__stores {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.commerce-store__meta {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

.commerce-store__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.commerce-store__actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  text-decoration: none;
}

.commerce-store__actions a:hover {
  border-color: rgba(250, 204, 21, 0.45);
  color: #facc15;
}

.commerce-store__toggle {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  color: #facc15;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem;
  cursor: pointer;
}

.commerce-inventory {
  display: none;
  padding: 0 0.75rem 0.75rem;
}

.commerce-store.is-open .commerce-inventory {
  display: block;
}

.commerce-inventory-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.commerce-inventory table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.commerce-inventory th,
.commerce-inventory td {
  padding: 0.5rem 0.6rem;
  text-align: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.commerce-inventory th {
  background: rgba(0, 0, 0, 0.25);
  color: #facc15;
  font-weight: 800;
  white-space: nowrap;
}

.commerce-inventory tr:last-child td {
  border-bottom: none;
}

.commerce-price {
  font-weight: 800;
  color: #fde047;
  white-space: nowrap;
}

.commerce-stock {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.commerce-stock--in_stock {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.commerce-stock--low {
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
}

.commerce-stock--on_order {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.commerce-stock--out {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.commerce-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
}

.commerce-add-note {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 0.88rem;
}

.commerce-add-note code {
  color: #fde047;
  font-size: 0.8rem;
}
